itom 1.3.0
|
Classes | |
struct | cmdQueueStruct |
Public Slots | |
virtual void | copy () |
virtual void | paste () |
virtual void | cut () |
void | receiveStream (QString text, tMsgType msgType) |
void | pythonRunSelection (QString selectionText) |
void | pythonStateChanged (tPythonTransitions pyTransition) |
void | clearCommandLine () |
Signals | |
void | wantToCopy () |
void | pythonExecuteString (QString cmd) |
void | sendToLastCommand (QString cmd) |
Public Member Functions | |
ConsoleWidget (QWidget *parent=NULL) | |
RetVal | printMessage (QStringList msg, ito::tMsgType type=msgTextInfo) |
RetVal | printMessage (QString msg, ito::tMsgType type=msgTextInfo) |
Protected Member Functions | |
virtual void | loadSettings () |
void | autoAdaptLineNumberColumnWidth () |
void | keyPressEvent (QKeyEvent *event) |
> reimplementation to process the keyReleaseEvent | |
void | dropEvent (QDropEvent *event) |
void | dragEnterEvent (QDragEnterEvent *event) |
void | dragMoveEvent (QDragMoveEvent *event) |
Private Slots | |
void | selChanged () |
Private Member Functions | |
RetVal | initEditor () |
RetVal | clearEditor () |
RetVal | startNewCommand (bool clearEditorFirst=false) |
< new command is a new line starting with ">>" | |
RetVal | execCommand (int lineBegin, int lineEnd) |
RetVal | useCmdListCommand (int dir) |
RetVal | executeCmdQueue () |
RetVal | moveCursorToEnd () |
RetVal | moveCursorToValidRegion () |
int | checkValidDropRegion (const QPoint &pos) |
Private Attributes | |
int | startLineBeginCmd |
zero-based, first-line of actual (not evaluated command), last line which starts with ">>", -1: no command active | |
DequeCommandList * | cmdList |
std::queue< cmdQueueStruct > | cmdQueue |
upcoming events to handle | |
bool | canCopy |
bool | canCut |
QDebugStream * | qout |
QDebugStream * | qerr |
unsigned int | markErrorLine |
unsigned int | markCurrentLine |
bool | waitForCmdExecutionDone |
true: command in this console is being executed and sends a finish-event, when done. | |
bool | pythonBusy |
true: python is executing or debugging a script, a command... | |
QString | temporaryRemovedCommands |
removed text, if python busy, caused by another console instance or script. | |
Static Private Attributes | |
static const QString | lineBreak = QString("\n") |
< constants |
ito::ConsoleWidget::ConsoleWidget | ( | QWidget * | parent = NULL | ) |
< empty queue
int ito::ConsoleWidget::checkValidDropRegion | ( | const QPoint & | pos | ) | [private] |
< pos is below last line
< mouse over margin left
< mouse at the end of this line
void ito::ConsoleWidget::dragMoveEvent | ( | QDragMoveEvent * | event | ) | [protected] |
< if text selected in this widget, starting point before valid region and move action -> ignore
< check, that selections are only in valid area
void ito::ConsoleWidget::keyPressEvent | ( | QKeyEvent * | event | ) | [protected] |
> reimplementation to process the keyReleaseEvent
< no action necessary
> return pressed
< new line for possible error or message
< do not emit keyPressEvent in QsciScintilla!!
< do not emit keyPressEvent in QsciScintilla!!
< check that del and backspace is only pressed in valid cursor context
< no selection
< check that del and backspace is only pressed in valid cursor context
< no action necessary
RetVal ito::ConsoleWidget::moveCursorToValidRegion | ( | ) | [private] |
< check, that selections are only in valid area
RetVal ito::ConsoleWidget::printMessage | ( | QStringList | msg, |
ito::tMsgType | type = msgTextInfo |
||
) |
> insert msg after last line
> insert msg after last line
> insert msg before last line containing ">>" (startLineBeginCmd)
RetVal ito::ConsoleWidget::startNewCommand | ( | bool | clearEditorFirst = false | ) | [private] |
< new command is a new line starting with ">>"
< empty editor, just start new command
< append at the end of the existing text