QDaq  0.2.6
Qt-based Data Aqcuisition
 All Classes Functions Variables Typedefs Enumerations Enumerator Properties Groups Pages
Public Slots | Protected Member Functions | List of all members
QConsoleWidget Class Referenceabstract

A simple console for python scripting. More...

#include <QConsoleWidget.h>

Inherits QPlainTextEdit.

Inherited by QDaqConsole.

Public Slots

void executeLine (bool storeOnly)
 execute current line
 
void consoleMessage (const QString &message, const QTextCharFormat &fmt)
 output from console
 
void clear ()
 get history More...
 
virtual void cut ()
 overridden to control which characters a user may delete
 
void stdOut (const QString &s)
 output redirection
 
void stdErr (const QString &s)
 output redirection
 
void appendCommandPrompt (bool storeOnly=false)
 Appends a newline and command prompt at the end of the document.
 

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *e)
 derived key press event
 
void handleTabCompletion ()
 handle the pressing of tab
 
int commandPromptPosition ()
 Returns the position of the command prompt.
 
bool verifySelectionBeforeDeletion ()
 Returns if deletion is allowed at the current cursor (with and without selected text)
 
void setCurrentFont (const QColor &color=QColor(0, 0, 0), bool bold=false)
 Sets the current font.
 
void replaceCommandLine (const QString &str)
 change the history according to _historyPos
 
void flushStdOut ()
 flush output that was not yet printed
 

Detailed Description

A simple console for python scripting.

Definition at line 13 of file QConsoleWidget.h.

Member Function Documentation

void QConsoleWidget::clear ( )
slot

get history

set history clear the console

Definition at line 99 of file QConsoleWidget.cpp.


The documentation for this class was generated from the following files: