Canorus 0.0
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

◆ HistLay

enum CAPyConsole::HistLay
private
Enumerator
histPrev 
histNext 

◆ TxtType

Enumerator
txtNormal 
txtStdout 
txtStderr 

Constructor & Destructor Documentation

◆ CAPyConsole()

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

Member Function Documentation

◆ asyncBufferedInput()

QString CAPyConsole::asyncBufferedInput ( QString  prompt)

◆ asyncBufferedOutput()

void CAPyConsole::asyncBufferedOutput ( QString  bufInp,
bool  bStdErr 
)

◆ asyncKeyboardInterrupt()

void CAPyConsole::asyncKeyboardInterrupt ( )

◆ asyncPluginInit()

void CAPyConsole::asyncPluginInit ( )

◆ cmdIntern()

bool CAPyConsole::cmdIntern ( QString  strCmd)
private

◆ histAdd()

void CAPyConsole::histAdd ( )
private

◆ histGet()

void CAPyConsole::histGet ( HistLay  histLay)
private

◆ keyPressEvent()

void CAPyConsole::keyPressEvent ( QKeyEvent *  e)
protected

◆ on_fmtChanged

void CAPyConsole::on_fmtChanged ( )
privateslot

◆ on_posChanged

void CAPyConsole::on_posChanged ( )
privateslot

◆ on_selChanged

void CAPyConsole::on_selChanged ( )
privateslot

◆ on_txtChanged

void CAPyConsole::on_txtChanged ( )
privateslot

◆ sig_syncPluginInit

void CAPyConsole::sig_syncPluginInit ( )
signal

◆ sig_txtAppend

void CAPyConsole::sig_txtAppend ( const QString &  text,
TxtType  stdType 
)
signal

◆ syncPluginInit

void CAPyConsole::syncPluginInit ( )
privateslot

◆ txtAppend

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.

◆ txtGetInput()

QString CAPyConsole::txtGetInput ( bool  bReadText = false)
private

◆ txtRevert()

void CAPyConsole::txtRevert ( )
private

◆ txtSetInput()

void CAPyConsole::txtSetInput ( QString  input,
bool  bUpdateText = true 
)
private

Member Data Documentation

◆ _bIgnTxtChange

bool CAPyConsole::_bIgnTxtChange
private

◆ _bufSend

QString CAPyConsole::_bufSend
private

◆ _canorusDoc

CADocument* CAPyConsole::_canorusDoc
private

◆ _curInput

QTextCursor CAPyConsole::_curInput
private

◆ _curNew

QTextCursor CAPyConsole::_curNew
private

◆ _fmtNormal

QTextCharFormat CAPyConsole::_fmtNormal
private

◆ _fmtStderr

QTextCharFormat CAPyConsole::_fmtStderr
private

◆ _fmtStdout

QTextCharFormat CAPyConsole::_fmtStdout
private

◆ _histIndex

int CAPyConsole::_histIndex
private

◆ _histList

QList<QString> CAPyConsole::_histList
private

◆ _histOldInput

QString CAPyConsole::_histOldInput
private

◆ _iCurNow

int CAPyConsole::_iCurNow
private

◆ _iCurNowOld

int CAPyConsole::_iCurNowOld
private

◆ _iCurStart

int CAPyConsole::_iCurStart
private

◆ _parent

QWidget* CAPyConsole::_parent
private

◆ _strEntryFunc

QString CAPyConsole::_strEntryFunc
private

◆ _strInput

QString CAPyConsole::_strInput
private

◆ _tf

TxtFragment* CAPyConsole::_tf
private

◆ _thrIntrWait

QWaitCondition* CAPyConsole::_thrIntrWait
private

◆ _thrIntrWaitMut

QMutex* CAPyConsole::_thrIntrWaitMut
private

◆ _thrWait

QWaitCondition* CAPyConsole::_thrWait
private

◆ _thrWaitMut

QMutex* CAPyConsole::_thrWaitMut
private

◆ _txtFixed

QList<TxtFragment*> CAPyConsole::_txtFixed
private

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