GNU Octave  4.0.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)
 
virtual void init_terminal_size (void)
 
void notice_settings (const QSettings *settings)
 
void pasteClipboard ()
 
void selectAll ()
 
void set_global_shortcuts (bool focus_out)
 
void terminal_interrupt (void)
 

Signals

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

Public Member Functions

 QUnixTerminalImpl (QWidget *parent=0)
 
virtual ~QUnixTerminalImpl ()
 
void has_extra_interrupt (bool extra_interrupt)
 
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 setScrollBufferSize (int value)
 
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

bool _extra_interrupt
 
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 64 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 115 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 90 of file QUnixTerminalImpl.cpp.

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

Referenced by initialize().

void QUnixTerminalImpl::copyClipboard ( void  )
slot
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::has_extra_interrupt ( bool  extra_interrupt)
virtual

Implements QTerminal.

Definition at line 230 of file QUnixTerminalImpl.cpp.

References _extra_interrupt.

virtual void QTerminal::init_terminal_size ( void  )
inlinevirtualslotinherited

Definition at line 118 of file QTerminal.h.

Referenced by QTerminal::QTerminal().

void QUnixTerminalImpl::initialize ( void  )
private
void QTerminal::interrupt_signal ( void  )
signalinherited

Definition at line 130 of file moc-QTerminal.cc.

Referenced by initialize(), and QTerminal::terminal_interrupt().

void QTerminal::notice_settings ( const QSettings *  settings)
slotinherited
void QUnixTerminalImpl::pasteClipboard ( void  )
slot

Definition at line 213 of file QUnixTerminalImpl.cpp.

References m_terminalView, and TerminalView::pasteClipboard().

void QTerminal::report_status_message ( const QString &  _t1)
signalinherited

Definition at line 123 of file moc-QTerminal.cc.

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

void QUnixTerminalImpl::resizeEvent ( QResizeEvent *  )
protectedvirtual

Definition at line 200 of file QUnixTerminalImpl.cpp.

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

void QUnixTerminalImpl::selectAll ( void  )
slot

Definition at line 218 of file QUnixTerminalImpl.cpp.

References m_terminalView, and TerminalView::selectAll().

QString QUnixTerminalImpl::selectedText ( )
virtual

Implements QTerminal.

Definition at line 224 of file QUnixTerminalImpl.cpp.

References m_terminalView, and TerminalView::selectedText().

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

Implements QTerminal.

Definition at line 137 of file QUnixTerminalImpl.cpp.

References m_terminalModel, and TerminalModel::sendText().

void QTerminal::set_global_shortcuts ( bool  focus_out)
slotinherited

Definition at line 76 of file QTerminal.cc.

References QTerminal::_interrupt_action.

Referenced by QWinTerminalImpl::QWinTerminalImpl().

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

Implements QTerminal.

Definition at line 187 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::setScrollBufferSize ( int  value)
virtual
void QUnixTerminalImpl::setSelectionColor ( const QColor &  color)
virtual

Implements QTerminal.

Definition at line 185 of file QUnixTerminalImpl.cpp.

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

Implements QTerminal.

Definition at line 130 of file QUnixTerminalImpl.cpp.

References m_terminalView, and TerminalView::setSize().

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

Implements QTerminal.

Definition at line 123 of file QUnixTerminalImpl.cpp.

References m_terminalView, and TerminalView::setVTFont().

Referenced by initialize().

void QUnixTerminalImpl::showEvent ( QShowEvent *  )
protected

Definition at line 193 of file QUnixTerminalImpl.cpp.

References m_terminalView, and TerminalView::updateImage().

void QTerminal::terminal_interrupt ( void  )
inlineslotinherited

Member Data Documentation

bool QUnixTerminalImpl::_extra_interrupt
private

Definition at line 70 of file QUnixTerminalImpl.h.

Referenced by copyClipboard(), and has_extra_interrupt().

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 69 of file QUnixTerminalImpl.h.

Referenced by connectToPty(), and initialize().

TerminalModel* QUnixTerminalImpl::m_terminalModel
private

Definition at line 68 of file QUnixTerminalImpl.h.

Referenced by initialize(), sendText(), and setScrollBufferSize().

TerminalView* QUnixTerminalImpl::m_terminalView
private

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