An abstract Qt console.
More...
#include <widgets/QConsole.h>
An abstract Qt console.
- Author
- Houssem BDIOUI
◆ QConsole()
QConsole |
( |
QWidget * |
parent = NULL , |
|
|
const QString & |
welcomeText = "" |
|
) |
| |
◆ setPrompt()
void setPrompt |
( |
const QString & |
prompt, |
|
|
bool |
display = true |
|
) |
| |
◆ execCommand()
bool execCommand |
( |
const QString & |
command, |
|
|
bool |
writeCommand = true , |
|
|
bool |
showPrompt = true , |
|
|
QString * |
result = NULL |
|
) |
| |
◆ clear()
◆ reset()
void reset |
( |
const QString & |
welcomeText = "" | ) |
|
◆ cmdColor()
QColor cmdColor |
( |
| ) |
const |
|
inline |
◆ setCmdColor()
void setCmdColor |
( |
QColor |
c | ) |
|
|
inline |
◆ errColor()
QColor errColor |
( |
| ) |
const |
|
inline |
◆ setErrColor()
void setErrColor |
( |
QColor |
c | ) |
|
|
inline |
◆ outColor()
QColor outColor |
( |
| ) |
const |
|
inline |
◆ setOutColor()
void setOutColor |
( |
QColor |
c | ) |
|
|
inline |
◆ setCompletionColor()
void setCompletionColor |
( |
QColor |
c | ) |
|
|
inline |
◆ setFont()
void setFont |
( |
const QFont & |
f | ) |
|
◆ font()
◆ setFormat() [1/2]
void setFormat |
( |
QColor |
color, |
|
|
bool |
bold = false , |
|
|
bool |
italic = false |
|
) |
| |
|
protected |
◆ setFormat() [2/2]
void setFormat |
( |
bool |
bold = false , |
|
|
bool |
italic = false |
|
) |
| |
|
protected |
◆ println() [1/3]
void println |
( |
const QString & |
s | ) |
|
|
protected |
◆ println() [2/3]
void println |
( |
const std::string & |
s | ) |
|
|
protected |
◆ println() [3/3]
void println |
( |
const char * |
s | ) |
|
|
protected |
◆ keyPressEvent()
void keyPressEvent |
( |
QKeyEvent * |
e | ) |
|
|
protected |
◆ contextMenuEvent()
void contextMenuEvent |
( |
QContextMenuEvent * |
event | ) |
|
|
protected |
◆ isCommandComplete()
virtual bool isCommandComplete |
( |
const QString & |
command | ) |
|
|
protectedvirtual |
◆ getCurrentCommand()
QString getCurrentCommand |
( |
| ) |
|
|
protected |
◆ replaceCurrentCommand()
void replaceCurrentCommand |
( |
const QString & |
newCommand | ) |
|
|
protected |
◆ isInEditionZone() [1/2]
◆ isInEditionZone() [2/2]
bool isInEditionZone |
( |
int |
pos | ) |
|
|
protected |
◆ isSelectionInEditionZone()
bool isSelectionInEditionZone |
( |
| ) |
|
|
protected |
◆ insertFromMimeData()
void insertFromMimeData |
( |
const QMimeData * |
| ) |
|
|
protected |
◆ dragEnterEvent()
virtual void dragEnterEvent |
( |
QDragEnterEvent * |
e | ) |
|
|
protectedvirtual |
◆ dragLeaveEvent()
virtual void dragLeaveEvent |
( |
QDragLeaveEvent * |
e | ) |
|
|
protectedvirtual |
◆ dragMoveEvent()
virtual void dragMoveEvent |
( |
QDragMoveEvent * |
e | ) |
|
|
protectedvirtual |
◆ dropEvent()
virtual void dropEvent |
( |
QDropEvent * |
e | ) |
|
|
protectedvirtual |
◆ mousePressEvent()
void mousePressEvent |
( |
QMouseEvent * |
| ) |
|
|
protected |
◆ mouseReleaseEvent()
void mouseReleaseEvent |
( |
QMouseEvent * |
| ) |
|
|
protected |
◆ interpretCommand()
virtual QString interpretCommand |
( |
const QString & |
command, |
|
|
int * |
res |
|
) |
| |
|
protectedvirtual |
◆ suggestCommand()
virtual QStringList suggestCommand |
( |
const QString & |
cmd, |
|
|
QString & |
prefix |
|
) |
| |
|
protectedvirtual |
◆ cut
◆ displayPrompt
◆ onCursorPositionChanged
void onCursorPositionChanged |
( |
| ) |
|
|
slot |
◆ commandExecuted
void commandExecuted |
( |
const QString & |
command | ) |
|
|
signal |
◆ enterSearchMode()
◆ getSearchModeDescriptor()
virtual QString getSearchModeDescriptor |
( |
| ) |
|
|
protectedvirtual |
◆ getSearchList()
virtual QStringList getSearchList |
( |
| ) |
|
|
protectedvirtual |
◆ getExtendedSearchList()
virtual std::multimap<QString, QString> getExtendedSearchList |
( |
| ) |
|
|
protectedvirtual |
◆ cmdColor_
◆ errColor_
◆ outColor_
◆ completionColor
◆ oldPosition
◆ promptLength
◆ prompt
◆ history
◆ historyIndex
◆ promptPosition
◆ currentSearchMode
SearchMode currentSearchMode |
|
protected |
The documentation for this class was generated from the following file: