GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
QTerminal Class Referenceabstract

#include "QTerminal.h"

Inheritance diagram for QTerminal:
Collaboration diagram for QTerminal:

Public Types

enum  CursorType { IBeamCursor , BlockCursor , UnderlineCursor }
 

Public Slots

virtual void copyClipboard (void)=0
 
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)
 
virtual void init_terminal_size (void)
 
void notice_settings (const gui_settings *settings)
 
virtual void pasteClipboard (void)=0
 
void run_selection (void)
 
virtual void selectAll (void)=0
 
void set_global_shortcuts (bool focus_out)
 
void terminal_interrupt (void)
 

Signals

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 show_doc_signal (const QString &)
 

Public Member Functions

virtual ~QTerminal (void)=default
 
virtual QList< QAction * > get_hotspot_actions (const QPoint &)
 
virtual void has_extra_interrupt (bool extra)=0
 
virtual QString selectedText ()=0
 
virtual void sendText (const QString &text)=0
 
virtual void setBackgroundColor (const QColor &color)=0
 
virtual void setCursorColor (bool useForegroundColor, const QColor &color)=0
 
virtual void setCursorType (CursorType type, bool blinking)
 
virtual void setForegroundColor (const QColor &color)=0
 
virtual void setScrollBufferSize (int value=1000)=0
 
virtual void setSelectionColor (const QColor &color)=0
 
virtual void setSize (int h, int v)=0
 
virtual void setTerminalFont (const QFont &font)=0
 

Static Public Member Functions

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

Protected Member Functions

 QTerminal (QWidget *xparent=nullptr)
 
void construct (octave::base_qobject &oct_qobj, QWidget *xparent)
 

Private Attributes

QMenu_contextMenu
 
QAction * _copy_action
 
QAction * _edit_action
 
QAction * _interrupt_action
 
QAction * _nop_action
 
QAction * _paste_action
 
QAction * _run_selection_action
 
QAction * _selectall_action
 
QAction * m_doc_selected_action
 
QAction * m_edit_selected_action
 
QAction * m_help_selected_action
 

Detailed Description

Definition at line 47 of file QTerminal.h.

Member Enumeration Documentation

◆ CursorType

Enumerator
IBeamCursor 
BlockCursor 
UnderlineCursor 

Definition at line 71 of file QTerminal.h.

Constructor & Destructor Documentation

◆ ~QTerminal()

virtual QTerminal::~QTerminal ( void  )
virtualdefault

◆ QTerminal()

QTerminal::QTerminal ( QWidget xparent = nullptr)
inlineprotected

Definition at line 142 of file QTerminal.h.

Member Function Documentation

◆ construct()

◆ copyClipboard

virtual void QTerminal::copyClipboard ( void  )
pure virtualslot

Referenced by construct().

◆ create()

QTerminal * QTerminal::create ( octave::base_qobject oct_qobj,
QWidget xparent = nullptr 
)
static

Definition at line 52 of file QTerminal.cc.

References construct().

◆ doc_on_expression

void QTerminal::doc_on_expression ( void  )
slot

Definition at line 214 of file QTerminal.cc.

References m_doc_selected_action, and show_doc_signal().

Referenced by construct().

◆ edit_file

void QTerminal::edit_file ( void  )
slot

Definition at line 189 of file QTerminal.cc.

References _edit_action, and edit_mfile_request().

Referenced by construct().

◆ edit_mfile_request

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

Referenced by construct(), edit_file(), and edit_selected().

◆ edit_selected

void QTerminal::edit_selected ( void  )
slot

Definition at line 198 of file QTerminal.cc.

References edit_mfile_request(), and m_edit_selected_action.

Referenced by construct().

◆ execute_command_in_terminal_signal

void QTerminal::execute_command_in_terminal_signal ( const QString &  )
signal

◆ get_hotspot_actions()

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

Reimplemented in QUnixTerminalImpl.

Definition at line 68 of file QTerminal.h.

Referenced by handleCustomContextMenuRequested().

◆ handle_visibility_changed

virtual void QTerminal::handle_visibility_changed ( bool  )
inlinevirtualslot

Definition at line 138 of file QTerminal.h.

◆ handleCustomContextMenuRequested

void QTerminal::handleCustomContextMenuRequested ( const QPoint &  at)
virtualslot

◆ has_extra_interrupt()

virtual void QTerminal::has_extra_interrupt ( bool  extra)
pure virtual

Implemented in QWinTerminalImpl, and QUnixTerminalImpl.

Referenced by notice_settings().

◆ help_on_expression

void QTerminal::help_on_expression ( void  )
slot

Definition at line 206 of file QTerminal.cc.

References execute_command_in_terminal_signal(), and m_help_selected_action.

Referenced by construct().

◆ init_terminal_size

virtual void QTerminal::init_terminal_size ( void  )
inlinevirtualslot

Definition at line 122 of file QTerminal.h.

Referenced by construct().

◆ interrupt_signal

void QTerminal::interrupt_signal ( void  )
signal

◆ notice_settings

◆ pasteClipboard

virtual void QTerminal::pasteClipboard ( void  )
pure virtualslot

Referenced by construct().

◆ report_status_message

void QTerminal::report_status_message ( const QString &  )
signal

◆ run_selection

void QTerminal::run_selection ( void  )
slot

Definition at line 174 of file QTerminal.cc.

References execute_command_in_terminal_signal(), and selectedText().

Referenced by construct().

◆ selectAll

virtual void QTerminal::selectAll ( void  )
pure virtualslot

Referenced by construct().

◆ selectedText()

virtual QString QTerminal::selectedText ( )
pure virtual

◆ sendText()

virtual void QTerminal::sendText ( const QString &  text)
pure virtual

Implemented in QUnixTerminalImpl, and QWinTerminalImpl.

◆ set_global_shortcuts

void QTerminal::set_global_shortcuts ( bool  focus_out)
slot

Definition at line 73 of file QTerminal.cc.

References _interrupt_action, and _nop_action.

Referenced by QWinTerminalImpl::QWinTerminalImpl().

◆ setBackgroundColor()

virtual void QTerminal::setBackgroundColor ( const QColor &  color)
pure virtual

Implemented in QWinTerminalImpl, and QUnixTerminalImpl.

Referenced by notice_settings().

◆ setCursorColor()

virtual void QTerminal::setCursorColor ( bool  useForegroundColor,
const QColor &  color 
)
pure virtual

Implemented in QUnixTerminalImpl, and QWinTerminalImpl.

Referenced by notice_settings().

◆ setCursorType()

virtual void QTerminal::setCursorType ( CursorType  type,
bool  blinking 
)
inlinevirtual

Reimplemented in QWinTerminalImpl, and QUnixTerminalImpl.

Definition at line 78 of file QTerminal.h.

Referenced by notice_settings().

◆ setForegroundColor()

virtual void QTerminal::setForegroundColor ( const QColor &  color)
pure virtual

Implemented in QWinTerminalImpl, and QUnixTerminalImpl.

Referenced by notice_settings().

◆ setScrollBufferSize()

virtual void QTerminal::setScrollBufferSize ( int  value = 1000)
pure virtual

Implemented in QWinTerminalImpl, and QUnixTerminalImpl.

Referenced by notice_settings().

◆ setSelectionColor()

virtual void QTerminal::setSelectionColor ( const QColor &  color)
pure virtual

Implemented in QWinTerminalImpl, and QUnixTerminalImpl.

Referenced by notice_settings().

◆ setSize()

virtual void QTerminal::setSize ( int  h,
int  v 
)
pure virtual

Implemented in QUnixTerminalImpl, and QWinTerminalImpl.

◆ setTerminalFont()

virtual void QTerminal::setTerminalFont ( const QFont &  font)
pure virtual

Implemented in QWinTerminalImpl, and QUnixTerminalImpl.

Referenced by notice_settings().

◆ show_doc_signal

void QTerminal::show_doc_signal ( const QString &  )
signal

Referenced by construct(), and doc_on_expression().

◆ terminal_interrupt

void QTerminal::terminal_interrupt ( void  )
inlineslot

Member Data Documentation

◆ _contextMenu

QMenu* QTerminal::_contextMenu
private

Definition at line 148 of file QTerminal.h.

Referenced by construct(), and handleCustomContextMenuRequested().

◆ _copy_action

QAction* QTerminal::_copy_action
private

Definition at line 149 of file QTerminal.h.

Referenced by construct(), and handleCustomContextMenuRequested().

◆ _edit_action

QAction* QTerminal::_edit_action
private

Definition at line 152 of file QTerminal.h.

Referenced by construct(), edit_file(), and handleCustomContextMenuRequested().

◆ _interrupt_action

QAction* QTerminal::_interrupt_action
private

Definition at line 158 of file QTerminal.h.

Referenced by construct(), notice_settings(), and set_global_shortcuts().

◆ _nop_action

QAction* QTerminal::_nop_action
private

Definition at line 159 of file QTerminal.h.

Referenced by construct(), notice_settings(), and set_global_shortcuts().

◆ _paste_action

QAction* QTerminal::_paste_action
private

Definition at line 150 of file QTerminal.h.

Referenced by construct(), and handleCustomContextMenuRequested().

◆ _run_selection_action

QAction* QTerminal::_run_selection_action
private

Definition at line 153 of file QTerminal.h.

Referenced by construct(), and handleCustomContextMenuRequested().

◆ _selectall_action

QAction* QTerminal::_selectall_action
private

Definition at line 151 of file QTerminal.h.

Referenced by construct().

◆ m_doc_selected_action

QAction* QTerminal::m_doc_selected_action
private

Definition at line 156 of file QTerminal.h.

Referenced by construct(), doc_on_expression(), and handleCustomContextMenuRequested().

◆ m_edit_selected_action

QAction* QTerminal::m_edit_selected_action
private

Definition at line 154 of file QTerminal.h.

Referenced by construct(), edit_selected(), and handleCustomContextMenuRequested().

◆ m_help_selected_action

QAction* QTerminal::m_help_selected_action
private

Definition at line 155 of file QTerminal.h.

Referenced by construct(), handleCustomContextMenuRequested(), and help_on_expression().


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