23 #ifndef CONSOLEWIDGET_H 24 #define CONSOLEWIDGET_H 28 #include "common/sharedStructures.h" 29 #include "common/sharedStructuresQt.h" 30 #include "../python/qDebugStream.h" 31 #include "../global.h" 33 #include "abstractPyScintillaWidget.h" 39 #include <qstringlist.h> 41 #include <qsettings.h> 50 class DequeCommandList;
63 virtual void loadSettings();
64 void autoAdaptLineNumberColumnWidth();
70 void receiveStream(QString text, ito::QDebugStream::MsgStreamType msgType);
71 void pythonRunSelection(QString selectionText);
72 void pythonStateChanged(tPythonTransitions pyTransition);
73 void clearCommandLine();
74 void startInputCommandLine(QSharedPointer<QByteArray> buffer,
ItomSharedSemaphore *inputWaitCond);
78 void pythonExecuteString(QString cmd);
79 void sendToLastCommand(QString cmd);
84 void dropEvent (QDropEvent *event);
85 void dragEnterEvent (QDragEnterEvent *event);
87 void wheelEvent(QWheelEvent *event);
88 void contextMenuEvent(QContextMenuEvent *event);
89 bool canInsertFromMimeData(
const QMimeData *source)
const;
93 void textDoubleClicked(
int position,
int line,
int modifiers);
94 void clearAndStartNewCommand();
99 cmdQueueStruct() { singleLine =
""; m_lineBegin = -1; m_nrOfLines = 1; }
100 cmdQueueStruct(QString text,
int lineBegin,
int nrOfLines) {singleLine = text; m_lineBegin = lineBegin; m_nrOfLines = nrOfLines; }
109 RetVal execCommand(
int lineBegin,
int lineEnd);
110 RetVal useCmdListCommand(
int dir);
114 void moveCursorToEnd();
131 unsigned int m_markErrorLine;
132 unsigned int m_markCurrentLine;
133 unsigned int m_markInputLine;
141 QSharedPointer<QByteArray> m_inputStreamBuffer;
142 int m_inputStartLine;
153 RetVal add(
const QString &cmd);
155 QString getPrevious();
160 std::deque<QString> m_cmdList;
161 std::deque<QString>::reverse_iterator m_rit;
Class for managing status values (like errors or warning)
Definition: retVal.h:54
Definition: apiFunctionsGraph.cpp:39
semaphore which can be used for asychronous thread communication. By using this class it is possible ...
Definition: sharedStructuresQt.h:57
Definition: consoleWidget.h:147
Definition: qDebugStream.h:38