GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
QWinTerminalImpl Class Reference

#include "QWinTerminalImpl.h"

Inheritance diagram for QWinTerminalImpl:
Collaboration diagram for QWinTerminalImpl:

Public Types

enum  CursorType { IBeamCursor , BlockCursor , UnderlineCursor }
 

Public Slots

void blinkCursorEvent (void)
 
void copyClipboard (void)
 
void doc_on_expression (void)
 
void edit_file (void)
 
void edit_selected (void)
 
virtual void handle_visibility_changed (bool)
 
virtual void handleCustomContextMenuRequested (const QPoint &at)
 
void help_on_expression (void)
 
void init_terminal_size (void)
 
void notice_settings (const gui_settings *settings)
 
void pasteClipboard (void)
 
void run_selection (void)
 
void selectAll (void)
 
void terminal_interrupt (void)
 

Signals

void clear_command_window_request (void)
 
void edit_mfile_request (const QString &, int)
 
void execute_command_in_terminal_signal (const QString &)
 
void interrupt_signal (void)
 
void report_status_message (const QString &)
 
void request_edit_mfile_signal (const QString &, int)
 
void request_open_file_signal (const QString &, const QString &, int)
 
void set_screen_size_signal (int, int)
 
void show_doc_signal (const QString &)
 
void terminated (void)
 
void titleChanged (const QString &)
 

Public Member Functions

 QWinTerminalImpl (octave::base_qobject &, QWidget *parent)
 
 ~QWinTerminalImpl (void)
 
virtual QList< QAction * > get_hotspot_actions (const QPoint &)
 
void has_extra_interrupt (bool)
 
QString selectedText ()
 
void sendText (const QString &s)
 
void setBackgroundColor (const QColor &color)
 
void setCursorColor (bool useForegoundColor, 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 columns, int lines)
 
void setTerminalFont (const QFont &font)
 

Static Public Member Functions

static QTerminalcreate (octave::base_qobject &oct_qobj, QWidget *xparent)
 

Protected Member Functions

void construct (octave::base_qobject &oct_qobj)
 
void dragEnterEvent (QDragEnterEvent *event)
 
void dropEvent (QDropEvent *event)
 
bool eventFilter (QObject *obj, QEvent *ev)
 
void focusInEvent (QFocusEvent *)
 
void focusOutEvent (QFocusEvent *)
 
void keyPressEvent (QKeyEvent *)
 
void mouseDoubleClickEvent (QMouseEvent *event)
 
void mouseMoveEvent (QMouseEvent *event)
 
void mousePressEvent (QMouseEvent *event)
 
void mouseReleaseEvent (QMouseEvent *event)
 
void mouseTripleClickEvent (QMouseEvent *event)
 
void setBlinkingCursor (bool blink)
 
void setBlinkingCursorState (bool blink)
 
virtual void start (void)
 
void viewPaintEvent (QConsoleView *, QPaintEvent *)
 
void viewResizeEvent (QConsoleView *, QResizeEvent *)
 
void wheelEvent (QWheelEvent *)
 

Private Slots

void horizontalScrollValueChanged (int value)
 
void monitorConsole (void)
 
void tripleClickTimeout (void)
 
void updateSelection (void)
 
void verticalScrollValueChanged (int value)
 

Private Attributes

QMenu_contextMenu
 
QAction * _copy_action
 
QAction * _edit_action
 
bool _extra_interrupt
 
QAction * _interrupt_action
 
QAction * _nop_action
 
QAction * _paste_action
 
QAction * _run_selection_action
 
QAction * _selectall_action
 
bool allowTripleClick
 
QConsolePrivated
 
QAction * m_doc_selected_action
 
QAction * m_edit_selected_action
 
QAction * m_help_selected_action
 
octave::base_qobject & m_octave_qobj
 

Friends

class QConsolePrivate
 
class QConsoleThread
 
class QConsoleView
 

Detailed Description

Definition at line 44 of file QWinTerminalImpl.h.

Member Enumeration Documentation

◆ CursorType

enum QTerminal::CursorType
inherited
Enumerator
IBeamCursor 
BlockCursor 
UnderlineCursor 

Definition at line 72 of file QTerminal.h.

Constructor & Destructor Documentation

◆ QWinTerminalImpl()

QWinTerminalImpl::QWinTerminalImpl ( octave::base_qobject &  oct_qobj,
QWidget parent 
)

Definition at line 1440 of file QWinTerminalImpl.cpp.

◆ ~QWinTerminalImpl()

QWinTerminalImpl::~QWinTerminalImpl ( void  )

Definition at line 1452 of file QWinTerminalImpl.cpp.

References d.

Member Function Documentation

◆ blinkCursorEvent

◆ clear_command_window_request

void QTerminal::clear_command_window_request ( void  )
signalinherited

◆ construct()

◆ copyClipboard

void QWinTerminalImpl::copyClipboard ( void  )
slot

◆ create()

QTerminal * QTerminal::create ( octave::base_qobject &  oct_qobj,
QWidget xparent 
)
staticinherited

Definition at line 52 of file QTerminal.cc.

References QTerminal::construct().

Referenced by terminal_dock_widget::terminal_dock_widget().

◆ doc_on_expression

void QTerminal::doc_on_expression ( void  )
slotinherited

Definition at line 195 of file QTerminal.cc.

References QTerminal::m_doc_selected_action, and QTerminal::m_octave_qobj.

Referenced by QTerminal::construct().

◆ dragEnterEvent()

void QWinTerminalImpl::dragEnterEvent ( QDragEnterEvent *  event)
protected

Definition at line 1827 of file QWinTerminalImpl.cpp.

◆ dropEvent()

void QWinTerminalImpl::dropEvent ( QDropEvent *  event)
protected

Definition at line 1837 of file QWinTerminalImpl.cpp.

References sendText().

◆ edit_file

void QTerminal::edit_file ( void  )
slotinherited

Definition at line 170 of file QTerminal.cc.

References QTerminal::_edit_action, and QTerminal::edit_mfile_request().

Referenced by QTerminal::construct().

◆ edit_mfile_request

void QTerminal::edit_mfile_request ( const QString &  ,
int   
)
signalinherited

◆ edit_selected

void QTerminal::edit_selected ( void  )
slotinherited

◆ eventFilter()

bool QWinTerminalImpl::eventFilter ( QObject obj,
QEvent *  ev 
)
protected

Definition at line 1652 of file QWinTerminalImpl.cpp.

References sendText().

◆ execute_command_in_terminal_signal

void QTerminal::execute_command_in_terminal_signal ( const QString &  )
signalinherited

◆ focusInEvent()

void QWinTerminalImpl::focusInEvent ( QFocusEvent *  event)
protected

Definition at line 1635 of file QWinTerminalImpl.cpp.

References setBlinkingCursorState().

◆ focusOutEvent()

void QWinTerminalImpl::focusOutEvent ( QFocusEvent *  event)
protected

◆ get_hotspot_actions()

virtual QList<QAction*> QTerminal::get_hotspot_actions ( const QPoint &  )
inlinevirtualinherited

Reimplemented in QUnixTerminalImpl.

Definition at line 69 of file QTerminal.h.

Referenced by QTerminal::handleCustomContextMenuRequested().

◆ handle_visibility_changed

virtual void QTerminal::handle_visibility_changed ( bool  )
inlinevirtualslotinherited

Definition at line 145 of file QTerminal.h.

Referenced by terminal_dock_widget::terminal_dock_widget().

◆ handleCustomContextMenuRequested

◆ has_extra_interrupt()

void QWinTerminalImpl::has_extra_interrupt ( bool  extra)
virtual

Implements QTerminal.

Definition at line 1855 of file QWinTerminalImpl.cpp.

References _extra_interrupt.

◆ help_on_expression

void QTerminal::help_on_expression ( void  )
slotinherited

◆ horizontalScrollValueChanged

void QWinTerminalImpl::horizontalScrollValueChanged ( int  value)
privateslot

◆ init_terminal_size

void QWinTerminalImpl::init_terminal_size ( void  )
slot

Definition at line 1591 of file QWinTerminalImpl.cpp.

References d, and QConsolePrivate::updateConsoleSize().

◆ interrupt_signal

void QTerminal::interrupt_signal ( void  )
signalinherited

◆ keyPressEvent()

◆ monitorConsole

void QWinTerminalImpl::monitorConsole ( void  )
privateslot

Definition at line 1623 of file QWinTerminalImpl.cpp.

References d, and QConsolePrivate::monitorConsole().

◆ mouseDoubleClickEvent()

void QWinTerminalImpl::mouseDoubleClickEvent ( QMouseEvent *  event)
protected

◆ mouseMoveEvent()

void QWinTerminalImpl::mouseMoveEvent ( QMouseEvent *  event)
protected

◆ mousePressEvent()

void QWinTerminalImpl::mousePressEvent ( QMouseEvent *  event)
protected

◆ mouseReleaseEvent()

void QWinTerminalImpl::mouseReleaseEvent ( QMouseEvent *  event)
protected

◆ mouseTripleClickEvent()

void QWinTerminalImpl::mouseTripleClickEvent ( QMouseEvent *  event)
protected

Definition at line 1510 of file QWinTerminalImpl.cpp.

References d, QConsolePrivate::posToCell(), and QConsolePrivate::selectLine().

Referenced by mousePressEvent().

◆ notice_settings

◆ pasteClipboard

void QWinTerminalImpl::pasteClipboard ( void  )
slot

Definition at line 1788 of file QWinTerminalImpl.cpp.

References sendText().

◆ report_status_message

void QTerminal::report_status_message ( const QString &  )
signalinherited

◆ request_edit_mfile_signal

void QTerminal::request_edit_mfile_signal ( const QString &  ,
int   
)
signalinherited

◆ request_open_file_signal

void QTerminal::request_open_file_signal ( const QString &  ,
const QString &  ,
int   
)
signalinherited

◆ run_selection

void QTerminal::run_selection ( void  )
slotinherited

◆ selectAll

void QWinTerminalImpl::selectAll ( void  )
slot

Definition at line 1808 of file QWinTerminalImpl.cpp.

References d, and QConsolePrivate::selectAll().

◆ selectedText()

QString QWinTerminalImpl::selectedText ( )
virtual

Implements QTerminal.

Definition at line 1819 of file QWinTerminalImpl.cpp.

References d, and QConsolePrivate::getSelection().

◆ sendText()

void QWinTerminalImpl::sendText ( const QString &  s)
virtual

Implements QTerminal.

Definition at line 1694 of file QWinTerminalImpl.cpp.

References d, and QConsolePrivate::sendConsoleText().

Referenced by dropEvent(), eventFilter(), keyPressEvent(), and pasteClipboard().

◆ set_screen_size_signal

void QTerminal::set_screen_size_signal ( int  ,
int   
)
signalinherited

◆ setBackgroundColor()

void QWinTerminalImpl::setBackgroundColor ( const QColor &  color)
virtual

Implements QTerminal.

Definition at line 1719 of file QWinTerminalImpl.cpp.

References d, and QConsolePrivate::setBackgroundColor().

◆ setBlinkingCursor()

void QWinTerminalImpl::setBlinkingCursor ( bool  blink)
protected

Definition at line 1568 of file QWinTerminalImpl.cpp.

References d, QConsolePrivate::m_hasBlinkingCursor, and setBlinkingCursorState().

Referenced by setCursorType().

◆ setBlinkingCursorState()

void QWinTerminalImpl::setBlinkingCursorState ( bool  blink)
protected

◆ setCursorColor()

void QWinTerminalImpl::setCursorColor ( bool  useForegoundColor,
const QColor &  color 
)
virtual

Implements QTerminal.

Definition at line 1734 of file QWinTerminalImpl.cpp.

References d, and QConsolePrivate::setCursorColor().

◆ setCursorType()

◆ setForegroundColor()

void QWinTerminalImpl::setForegroundColor ( const QColor &  color)
virtual

Implements QTerminal.

Definition at line 1724 of file QWinTerminalImpl.cpp.

References d, and QConsolePrivate::setForegroundColor().

◆ setScrollBufferSize()

void QWinTerminalImpl::setScrollBufferSize ( int  value)
virtual

Implements QTerminal.

Definition at line 1740 of file QWinTerminalImpl.cpp.

References d, and QConsolePrivate::setScrollBufferSize().

◆ setSelectionColor()

void QWinTerminalImpl::setSelectionColor ( const QColor &  color)
virtual

Implements QTerminal.

Definition at line 1729 of file QWinTerminalImpl.cpp.

References d, and QConsolePrivate::setSelectionColor().

◆ setSize()

void QWinTerminalImpl::setSize ( int  columns,
int  lines 
)
virtual

◆ setTerminalFont()

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

◆ show_doc_signal

void QTerminal::show_doc_signal ( const QString &  )
signalinherited

◆ start()

void QWinTerminalImpl::start ( void  )
protectedvirtual

Definition at line 1687 of file QWinTerminalImpl.cpp.

References d, and QConsolePrivate::startCommand().

Referenced by QConsoleThread::run().

◆ terminal_interrupt

void QTerminal::terminal_interrupt ( void  )
inlineslotinherited

◆ terminated

void QWinTerminalImpl::terminated ( void  )
signal

◆ titleChanged

void QWinTerminalImpl::titleChanged ( const QString &  )
signal

◆ tripleClickTimeout

void QWinTerminalImpl::tripleClickTimeout ( void  )
privateslot

Definition at line 1518 of file QWinTerminalImpl.cpp.

References allowTripleClick.

Referenced by mouseDoubleClickEvent().

◆ updateSelection

void QWinTerminalImpl::updateSelection ( void  )
privateslot

Definition at line 1628 of file QWinTerminalImpl.cpp.

References d, and QConsolePrivate::updateSelection().

Referenced by mouseMoveEvent(), and mouseReleaseEvent().

◆ verticalScrollValueChanged

void QWinTerminalImpl::verticalScrollValueChanged ( int  value)
privateslot

◆ viewPaintEvent()

◆ viewResizeEvent()

void QWinTerminalImpl::viewResizeEvent ( QConsoleView ,
QResizeEvent *   
)
protected

◆ wheelEvent()

void QWinTerminalImpl::wheelEvent ( QWheelEvent *  event)
protected

Friends And Related Function Documentation

◆ QConsolePrivate

friend class QConsolePrivate
friend

Definition at line 47 of file QWinTerminalImpl.h.

◆ QConsoleThread

friend class QConsoleThread
friend

Definition at line 48 of file QWinTerminalImpl.h.

Referenced by QConsolePrivate::QConsolePrivate().

◆ QConsoleView

friend class QConsoleView
friend

Definition at line 49 of file QWinTerminalImpl.h.

Referenced by QConsolePrivate::QConsolePrivate().

Member Data Documentation

◆ _contextMenu

QMenu* QTerminal::_contextMenu
privateinherited

◆ _copy_action

QAction* QTerminal::_copy_action
privateinherited

◆ _edit_action

QAction* QTerminal::_edit_action
privateinherited

◆ _extra_interrupt

bool QWinTerminalImpl::_extra_interrupt
private

Definition at line 112 of file QWinTerminalImpl.h.

Referenced by copyClipboard(), and has_extra_interrupt().

◆ _interrupt_action

QAction* QTerminal::_interrupt_action
privateinherited

Definition at line 168 of file QTerminal.h.

Referenced by QTerminal::construct(), and QTerminal::notice_settings().

◆ _nop_action

QAction* QTerminal::_nop_action
privateinherited

Definition at line 169 of file QTerminal.h.

Referenced by QTerminal::construct(), and QTerminal::notice_settings().

◆ _paste_action

QAction* QTerminal::_paste_action
privateinherited

◆ _run_selection_action

QAction* QTerminal::_run_selection_action
privateinherited

◆ _selectall_action

QAction* QTerminal::_selectall_action
privateinherited

Definition at line 161 of file QTerminal.h.

Referenced by QTerminal::construct().

◆ allowTripleClick

bool QWinTerminalImpl::allowTripleClick
private

Definition at line 111 of file QWinTerminalImpl.h.

Referenced by mouseDoubleClickEvent(), mousePressEvent(), and tripleClickTimeout().

◆ d

◆ m_doc_selected_action

QAction* QTerminal::m_doc_selected_action
privateinherited

◆ m_edit_selected_action

QAction* QTerminal::m_edit_selected_action
privateinherited

◆ m_help_selected_action

QAction* QTerminal::m_help_selected_action
privateinherited

◆ m_octave_qobj

octave::base_qobject& QTerminal::m_octave_qobj
privateinherited

Definition at line 156 of file QTerminal.h.

Referenced by QTerminal::doc_on_expression().


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