Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

EmulationHandler Class Reference

#include </home/clem/local/src/opie/noncore/apps/opie-console/emulation_handler.h>

Collaboration diagram for EmulationHandler:

Collaboration graph
[legend]
List of all members.

Public Slots

void recv (const QByteArray &)
void paste ()
void copy ()

Signals

void send (const QByteArray &)
void changeSize (int rows, int cols)

Public Member Functions

 EmulationHandler (const Profile &, QWidget *parent, const char *name=0l)
 ~EmulationHandler ()
void load (const Profile &)
QWidget * widget ()
TEmulationemulation ()
void setColor (const QColor &fore, const QColor &back)
QPushButton * cornerButton ()
void startRecording ()
void startLogging (const QString)
bool isRecording ()
bool isLogging ()
QString logFileName ()
Scriptscript ()
void clearScript ()
void clearLog ()
void runScript (const Script *)
void setWrap (int columns)
void setScrollbarLocation (int index)

Private Slots

void recvEmulation (const char *, int len)

Private Member Functions

QFont font (int)
QColor foreColor (int)
QColor backColor (int)

Private Attributes

TEWidgetm_teWid
TEmulationm_teEmu
Scriptm_script
Loggerm_log
QString m_logFileName

Constructor & Destructor Documentation

EmulationHandler::EmulationHandler const Profile ,
QWidget *  parent,
const char *  name = 0l
 

simple c'tor the parent of the TEWdiget and a name and a Profile

Definition at line 14 of file emulation_handler.cpp.

References TEWidget::calcSize(), changeSize(), load(), m_log, m_script, m_teEmu, m_teWid, Profile::readNumEntry(), recvEmulation(), TEmulation::setConnect(), TEmulation::setHistory(), setWrap(), and TRUE.

EmulationHandler::~EmulationHandler  ) 
 

delete all components

Definition at line 41 of file emulation_handler.cpp.

References clearScript(), isRecording(), m_log, m_teEmu, and m_teWid.


Member Function Documentation

QColor EmulationHandler::backColor int   )  [private]
 

Definition at line 169 of file emulation_handler.cpp.

References Profile::Black, Qt::black, Profile::Green, Profile::Orange, Qt::white, and Profile::White.

Referenced by load().

void EmulationHandler::changeSize int  rows,
int  cols
[signal]
 

Referenced by EmulationHandler().

void EmulationHandler::clearLog  ) 
 

Definition at line 231 of file emulation_handler.cpp.

References isLogging(), and m_log.

void EmulationHandler::clearScript  ) 
 

Definition at line 224 of file emulation_handler.cpp.

References isRecording(), and m_script.

Referenced by ~EmulationHandler().

void EmulationHandler::copy  )  [slot]
 

Definition at line 242 of file emulation_handler.cpp.

References TEWidget::emitSelection(), and m_teWid.

QPushButton * EmulationHandler::cornerButton  ) 
 

Definition at line 192 of file emulation_handler.cpp.

References TEWidget::cornerButton(), and m_teWid.

TEmulation * EmulationHandler::emulation  ) 
 

Definition at line 38 of file emulation_handler.cpp.

References m_teEmu.

QFont EmulationHandler::font int   )  [private]
 

Definition at line 125 of file emulation_handler.cpp.

References QString::fromLatin1(), name, Dasher::Opts::Normal, size, and TRUE.

Referenced by load().

QColor EmulationHandler::foreColor int   )  [private]
 

Definition at line 147 of file emulation_handler.cpp.

References Qt::black, Profile::Black, Qt::green, Profile::Green, Profile::Orange, Qt::white, and Profile::White.

Referenced by load().

bool EmulationHandler::isLogging  ) 
 

Definition at line 205 of file emulation_handler.cpp.

References m_log.

Referenced by clearLog(), recv(), and startLogging().

bool EmulationHandler::isRecording  ) 
 

Definition at line 201 of file emulation_handler.cpp.

References m_script.

Referenced by clearScript(), recvEmulation(), startRecording(), and ~EmulationHandler().

void EmulationHandler::load const Profile  ) 
 

Definition at line 49 of file emulation_handler.cpp.

References backColor(), font(), foreColor(), Profile::Linux, m_teEmu, m_teWid, QString::null, Config::readEntry(), Profile::readEntry(), Config::readNumEntry(), Profile::readNumEntry(), setColor(), Config::setGroup(), TEmulation::setKeytrans(), TEWidget::setVTFont(), TRUE, Profile::VT100, Profile::VT102, and Profile::XTerm.

Referenced by EmulationHandler().

QString EmulationHandler::logFileName  ) 
 

Definition at line 220 of file emulation_handler.cpp.

References m_logFileName.

void EmulationHandler::paste  )  [slot]
 

Definition at line 245 of file emulation_handler.cpp.

References m_teWid, and TEWidget::pasteClipboard().

void EmulationHandler::recv const QByteArray  )  [slot]
 

Definition at line 85 of file emulation_handler.cpp.

References Logger::append(), isLogging(), m_log, m_teEmu, and TEmulation::onRcvBlock().

void EmulationHandler::recvEmulation const char *  ,
int  len
[private, slot]
 

Definition at line 92 of file emulation_handler.cpp.

References Script::append(), isRecording(), m_script, and send().

Referenced by EmulationHandler().

void EmulationHandler::runScript const Script  ) 
 

Definition at line 238 of file emulation_handler.cpp.

References Script::script(), and send().

Script * EmulationHandler::script  ) 
 

Definition at line 197 of file emulation_handler.cpp.

References m_script.

void EmulationHandler::send const QByteArray  )  [signal]
 

Referenced by recvEmulation(), and runScript().

void EmulationHandler::setColor const QColor &  fore,
const QColor &  back
 

Definition at line 108 of file emulation_handler.cpp.

References ColorEntry::color, TEWidget::getdefaultColorTable(), i, m_teWid, TEWidget::setColorTable(), TABLE_COLORS, and ColorEntry::transparent.

Referenced by load().

void EmulationHandler::setScrollbarLocation int  index  ) 
 

Definition at line 253 of file emulation_handler.cpp.

References m_teWid, and TEWidget::setScrollbarLocation().

void EmulationHandler::setWrap int  columns  ) 
 

Definition at line 249 of file emulation_handler.cpp.

References m_teWid, and TEWidget::setWrapAt().

Referenced by EmulationHandler().

void EmulationHandler::startLogging const   QString  ) 
 

Definition at line 214 of file emulation_handler.cpp.

References isLogging(), m_log, and m_logFileName.

void EmulationHandler::startRecording  ) 
 

Definition at line 209 of file emulation_handler.cpp.

References isRecording(), and m_script.

QWidget * EmulationHandler::widget  ) 
 

Definition at line 102 of file emulation_handler.cpp.

References m_teWid.

Referenced by Session::widget().


Member Data Documentation

Logger* EmulationHandler::m_log [private]
 

Definition at line 108 of file emulation_handler.h.

Referenced by clearLog(), EmulationHandler(), isLogging(), recv(), startLogging(), and ~EmulationHandler().

QString EmulationHandler::m_logFileName [private]
 

Definition at line 109 of file emulation_handler.h.

Referenced by logFileName(), and startLogging().

Script* EmulationHandler::m_script [private]
 

Definition at line 107 of file emulation_handler.h.

Referenced by clearScript(), EmulationHandler(), isRecording(), recvEmulation(), script(), and startRecording().

TEmulation* EmulationHandler::m_teEmu [private]
 

Definition at line 106 of file emulation_handler.h.

Referenced by emulation(), EmulationHandler(), load(), recv(), and ~EmulationHandler().

TEWidget* EmulationHandler::m_teWid [private]
 

Definition at line 105 of file emulation_handler.h.

Referenced by copy(), cornerButton(), EmulationHandler(), load(), paste(), setColor(), setScrollbarLocation(), setWrap(), widget(), and ~EmulationHandler().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:32:01 2005 for OPIE by  doxygen 1.4.2