GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Types | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
QUnixTerminalImpl Class Reference

#include "QUnixTerminalImpl.h"

Inheritance diagram for QUnixTerminalImpl:
Inheritance graph
[legend]
Collaboration diagram for QUnixTerminalImpl:
Collaboration graph
[legend]

Public Types

enum  CursorType { UnderlineCursor, BlockCursor, IBeamCursor }

Public Slots

void copyClipboard ()
virtual void handleCustomContextMenuRequested (const QPoint &at)
void notice_settings (const QSettings *settings)
void pasteClipboard ()
void terminal_interrupt (void)

Signals

void interrupt_signal (void)
void report_status_message (const QString &)

Public Member Functions

 QUnixTerminalImpl (QWidget *parent=0)
virtual ~QUnixTerminalImpl ()
QString selectedText ()
void sendText (const QString &text)
void setBackgroundColor (const QColor &color)
void setCursorColor (bool useForegroundColor, const QColor &color)
void setCursorType (CursorType type, bool blinking)
void setForegroundColor (const QColor &color)
void setSelectionColor (const QColor &color)
void setSize (int h, int v)
void setTerminalFont (const QFont &font)

Static Public Member Functions

static QStringList color_names (void)
static QTerminalcreate (QWidget *xparent=0)
static QList< QColor > default_colors (void)

Protected Member Functions

virtual void resizeEvent (QResizeEvent *)
void showEvent (QShowEvent *)

Private Member Functions

void connectToPty ()
void initialize ()

Private Attributes

int fdstderr
KPtym_kpty
TerminalModelm_terminalModel
TerminalViewm_terminalView

Detailed Description

Definition at line 30 of file QUnixTerminalImpl.h.

Member Enumeration Documentation

enum QTerminal::CursorType
inherited
Enumerator:
UnderlineCursor 
BlockCursor 
IBeamCursor 

Definition at line 59 of file QTerminal.h.

Constructor & Destructor Documentation

QUnixTerminalImpl::QUnixTerminalImpl ( QWidget parent = 0)

Definition at line 27 of file QUnixTerminalImpl.cpp.

References initialize().

QUnixTerminalImpl::~QUnixTerminalImpl ( )
virtual

Definition at line 104 of file QUnixTerminalImpl.cpp.

References fdstderr.

Member Function Documentation

QStringList QTerminal::color_names ( void  )
staticinherited

Definition at line 59 of file QTerminal.cc.

References names().

Referenced by resource_manager::terminal_color_names().

void QUnixTerminalImpl::connectToPty ( )
private

Definition at line 79 of file QUnixTerminalImpl.cpp.

References fdstderr, isatty(), m_kpty, KPty::slaveFd(), and STDIN_FILENO.

Referenced by initialize().

void QUnixTerminalImpl::copyClipboard ( void  )
slot

Definition at line 197 of file QUnixTerminalImpl.cpp.

References TerminalView::copyClipboard(), and m_terminalView.

QTerminal * QTerminal::create ( QWidget xparent = 0)
staticinherited

Definition at line 33 of file QTerminal.cc.

QList< QColor > QTerminal::default_colors ( void  )
staticinherited
virtual void QTerminal::handleCustomContextMenuRequested ( const QPoint &  at)
inlinevirtualslotinherited
void QUnixTerminalImpl::initialize ( void  )
private
void QTerminal::interrupt_signal ( void  )
signalinherited
void QTerminal::notice_settings ( const QSettings *  settings)
slotinherited
void QUnixTerminalImpl::pasteClipboard ( void  )
slot

Definition at line 202 of file QUnixTerminalImpl.cpp.

References m_terminalView, and TerminalView::pasteClipboard().

void QTerminal::report_status_message ( const QString &  )
signalinherited
void QUnixTerminalImpl::resizeEvent ( QResizeEvent *  )
protectedvirtual

Definition at line 189 of file QUnixTerminalImpl.cpp.

References m_terminalView, size(), and TerminalView::updateImage().

QString QUnixTerminalImpl::selectedText ( )
virtual

Implements QTerminal.

Definition at line 207 of file QUnixTerminalImpl.cpp.

References m_terminalView, and TerminalView::selectedText().

void QUnixTerminalImpl::sendText ( const QString &  text)
virtual

Implements QTerminal.

Definition at line 126 of file QUnixTerminalImpl.cpp.

References m_terminalModel, and TerminalModel::sendText().

void QUnixTerminalImpl::setBackgroundColor ( const QColor &  color)
virtual
void QUnixTerminalImpl::setCursorColor ( bool  useForegroundColor,
const QColor &  color 
)
virtual

Implements QTerminal.

Definition at line 176 of file QUnixTerminalImpl.cpp.

References m_terminalView, and TerminalView::setKeyboardCursorColor().

void QUnixTerminalImpl::setCursorType ( CursorType  type,
bool  blinking 
)
virtual
void QUnixTerminalImpl::setForegroundColor ( const QColor &  color)
virtual
void QUnixTerminalImpl::setSelectionColor ( const QColor &  color)
virtual

Implements QTerminal.

Definition at line 174 of file QUnixTerminalImpl.cpp.

void QUnixTerminalImpl::setSize ( int  h,
int  v 
)
virtual

Implements QTerminal.

Definition at line 119 of file QUnixTerminalImpl.cpp.

References m_terminalView, and TerminalView::setSize().

void QUnixTerminalImpl::setTerminalFont ( const QFont &  font)
virtual

Implements QTerminal.

Definition at line 112 of file QUnixTerminalImpl.cpp.

References m_terminalView, and TerminalView::setVTFont().

Referenced by initialize().

void QUnixTerminalImpl::showEvent ( QShowEvent *  )
protected

Definition at line 182 of file QUnixTerminalImpl.cpp.

References m_terminalView, and TerminalView::updateImage().

void QTerminal::terminal_interrupt ( void  )
inlineslotinherited

Definition at line 109 of file QTerminal.h.

References QTerminal::interrupt_signal().

Referenced by QWinTerminalImpl::copyClipboard(), and initialize().

Member Data Documentation

int QUnixTerminalImpl::fdstderr
private

Definition at line 34 of file QUnixTerminalImpl.h.

Referenced by connectToPty(), and ~QUnixTerminalImpl().

KPty* QUnixTerminalImpl::m_kpty
private

Definition at line 67 of file QUnixTerminalImpl.h.

Referenced by connectToPty(), and initialize().

TerminalModel* QUnixTerminalImpl::m_terminalModel
private

Definition at line 66 of file QUnixTerminalImpl.h.

Referenced by initialize(), and sendText().

TerminalView* QUnixTerminalImpl::m_terminalView
private

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