Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Types | Signals | Public Member Functions | Protected Member Functions | Private Types | Private Slots | Private Member Functions | Private Attributes | List of all members
CAPyConsole Class Reference

#include <pyconsole.h>

Inheritance diagram for CAPyConsole:
Inheritance graph
[legend]

Classes

struct  TxtFragment
 

Public Types

enum  TxtType { txtNormal, txtStdout, txtStderr }
 

Signals

void sig_txtAppend (const QString &text, TxtType stdType)
 
void sig_syncPluginInit ()
 

Public Member Functions

 CAPyConsole (CADocument *doc, QWidget *parent=0)
 
QString asyncBufferedInput (QString prompt)
 
void asyncBufferedOutput (QString bufInp, bool bStdErr)
 
void asyncPluginInit ()
 
void asyncKeyboardInterrupt ()
 

Protected Member Functions

void keyPressEvent (QKeyEvent *e)
 

Private Types

enum  HistLay { histPrev, histNext }
 

Private Slots

void txtAppend (const QString &text, TxtType txtType=txtNormal)
 
void on_txtChanged ()
 
void on_posChanged ()
 
void on_selChanged ()
 
void on_fmtChanged ()
 
void syncPluginInit ()
 

Private Member Functions

void txtRevert ()
 
QString txtGetInput (bool bReadText=false)
 
void txtSetInput (QString input, bool bUpdateText=true)
 
void histAdd ()
 
void histGet (HistLay histLay)
 
bool cmdIntern (QString strCmd)
 

Private Attributes

QTextCursor _curInput
 
QTextCursor _curNew
 
int _iCurStart
 
int _iCurNowOld
 
int _iCurNow
 
bool _bIgnTxtChange
 
TxtFragment_tf
 
QList< TxtFragment * > _txtFixed
 
QString _strInput
 
int _histIndex
 
QList< QString > _histList
 
QString _histOldInput
 
QTextCharFormat _fmtNormal
 
QTextCharFormat _fmtStdout
 
QTextCharFormat _fmtStderr
 
QString _bufSend
 
QMutex * _thrWaitMut
 
QWaitCondition * _thrWait
 
QMutex * _thrIntrWaitMut
 
QWaitCondition * _thrIntrWait
 
QString _strEntryFunc
 
CADocument_canorusDoc
 
QWidget_parent
 

Detailed Description

Copyright (c) 2006-2008, Štefan Sakalík, Reinhard Katzmann, Matevž Jekovec, Canorus development team All Rights Reserved. See AUTHORS for a complete list of authors.

Licensed under the GNU GENERAL PUBLIC LICENSE. See COPYING for details.

Member Enumeration Documentation

enum CAPyConsole::HistLay
private
Enumerator
histPrev 
histNext 
Enumerator
txtNormal 
txtStdout 
txtStderr 

Constructor & Destructor Documentation

CAPyConsole::CAPyConsole ( CADocument doc,
QWidget parent = 0 
)

Member Function Documentation

QString CAPyConsole::asyncBufferedInput ( QString  prompt)
void CAPyConsole::asyncBufferedOutput ( QString  bufInp,
bool  bStdErr 
)
void CAPyConsole::asyncKeyboardInterrupt ( )
void CAPyConsole::asyncPluginInit ( )
bool CAPyConsole::cmdIntern ( QString  strCmd)
private
void CAPyConsole::histAdd ( )
private
void CAPyConsole::histGet ( HistLay  histLay)
private
void CAPyConsole::keyPressEvent ( QKeyEvent *  e)
protected
void CAPyConsole::on_fmtChanged ( )
privateslot
void CAPyConsole::on_posChanged ( )
privateslot
void CAPyConsole::on_selChanged ( )
privateslot
void CAPyConsole::on_txtChanged ( )
privateslot
void CAPyConsole::sig_syncPluginInit ( )
signal
void CAPyConsole::sig_txtAppend ( const QString &  text,
TxtType  stdType 
)
signal
void CAPyConsole::syncPluginInit ( )
privateslot
void CAPyConsole::txtAppend ( const QString &  text,
CAPyConsole::TxtType  txtType = txtNormal 
)
privateslot

Copyright (c) 2006-2008, Štefan Sakalík, Reinhard Katzmann, Matevž Jekovec, Canorus development team All Rights Reserved. See AUTHORS for a complete list of authors.

Licensed under the GNU GENERAL PUBLIC LICENSE. See COPYING for details.

QString CAPyConsole::txtGetInput ( bool  bReadText = false)
private
void CAPyConsole::txtRevert ( )
private
void CAPyConsole::txtSetInput ( QString  input,
bool  bUpdateText = true 
)
private

Member Data Documentation

bool CAPyConsole::_bIgnTxtChange
private
QString CAPyConsole::_bufSend
private
CADocument* CAPyConsole::_canorusDoc
private
QTextCursor CAPyConsole::_curInput
private
QTextCursor CAPyConsole::_curNew
private
QTextCharFormat CAPyConsole::_fmtNormal
private
QTextCharFormat CAPyConsole::_fmtStderr
private
QTextCharFormat CAPyConsole::_fmtStdout
private
int CAPyConsole::_histIndex
private
QList<QString> CAPyConsole::_histList
private
QString CAPyConsole::_histOldInput
private
int CAPyConsole::_iCurNow
private
int CAPyConsole::_iCurNowOld
private
int CAPyConsole::_iCurStart
private
QWidget* CAPyConsole::_parent
private
QString CAPyConsole::_strEntryFunc
private
QString CAPyConsole::_strInput
private
TxtFragment* CAPyConsole::_tf
private
QWaitCondition* CAPyConsole::_thrIntrWait
private
QMutex* CAPyConsole::_thrIntrWaitMut
private
QWaitCondition* CAPyConsole::_thrWait
private
QMutex* CAPyConsole::_thrWaitMut
private
QList<TxtFragment*> CAPyConsole::_txtFixed
private

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