#include "QTerminal.h"
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 QTerminal * | create (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 |
Definition at line 47 of file QTerminal.h.
Enumerator | |
---|---|
IBeamCursor | |
BlockCursor | |
UnderlineCursor |
Definition at line 71 of file QTerminal.h.
|
virtualdefault |
|
inlineprotected |
Definition at line 142 of file QTerminal.h.
|
protected |
Definition at line 295 of file QTerminal.cc.
References _contextMenu, _copy_action, _edit_action, _interrupt_action, _nop_action, _paste_action, _run_selection_action, _selectall_action, copyClipboard(), doc_on_expression(), edit_file(), edit_mfile_request(), edit_selected(), execute_command_in_terminal_signal(), octave::base_qobject::get_resource_manager(), handleCustomContextMenuRequested(), help_on_expression(), octave::resource_manager::icon(), init_terminal_size(), m_doc_selected_action, m_edit_selected_action, m_help_selected_action, notice_settings(), pasteClipboard(), report_status_message(), run_selection(), selectAll(), show_doc_signal(), and terminal_interrupt().
Referenced by create().
|
pure virtualslot |
Referenced by construct().
|
static |
Definition at line 52 of file QTerminal.cc.
References construct().
|
slot |
Definition at line 214 of file QTerminal.cc.
References m_doc_selected_action, and show_doc_signal().
Referenced by construct().
|
slot |
Definition at line 189 of file QTerminal.cc.
References _edit_action, and edit_mfile_request().
Referenced by construct().
|
signal |
Referenced by construct(), edit_file(), and edit_selected().
|
slot |
Definition at line 198 of file QTerminal.cc.
References edit_mfile_request(), and m_edit_selected_action.
Referenced by construct().
|
signal |
Referenced by construct(), help_on_expression(), and run_selection().
|
inlinevirtual |
Reimplemented in QUnixTerminalImpl.
Definition at line 68 of file QTerminal.h.
Referenced by handleCustomContextMenuRequested().
|
inlinevirtualslot |
Definition at line 138 of file QTerminal.h.
|
virtualslot |
Definition at line 92 of file QTerminal.cc.
References _contextMenu, _copy_action, _edit_action, _paste_action, _run_selection_action, get_hotspot_actions(), m_doc_selected_action, m_edit_selected_action, m_help_selected_action, and selectedText().
Referenced by construct(), and QUnixTerminalImpl::initialize().
|
pure virtual |
Implemented in QWinTerminalImpl, and QUnixTerminalImpl.
Referenced by notice_settings().
|
slot |
Definition at line 206 of file QTerminal.cc.
References execute_command_in_terminal_signal(), and m_help_selected_action.
Referenced by construct().
|
inlinevirtualslot |
Definition at line 122 of file QTerminal.h.
Referenced by construct().
|
signal |
Referenced by QUnixTerminalImpl::initialize(), and terminal_interrupt().
|
slot |
Definition at line 222 of file QTerminal.cc.
References _interrupt_action, _nop_action, cs_colors, cs_cursor(), cs_cursor_blinking(), cs_cursor_types, cs_cursor_use_fgcol(), cs_font(), cs_font_size(), cs_hist_buffer(), gui_pref::def, global_cursor_blinking(), global_mono_font(), has_extra_interrupt(), IBeamCursor, gui_pref::key, sc_main_ctrld(), sc_main_edit_copy(), octave::gui_settings::sc_value(), setBackgroundColor(), setCursorColor(), setCursorType(), setForegroundColor(), setScrollBufferSize(), setSelectionColor(), setTerminalFont(), UnderlineCursor, and octave::gui_settings::value().
Referenced by construct().
|
pure virtualslot |
Referenced by construct().
|
signal |
Referenced by construct(), and QWinTerminalImpl::copyClipboard().
|
slot |
Definition at line 174 of file QTerminal.cc.
References execute_command_in_terminal_signal(), and selectedText().
Referenced by construct().
|
pure virtualslot |
Referenced by construct().
|
pure virtual |
Implemented in QWinTerminalImpl, and QUnixTerminalImpl.
Referenced by handleCustomContextMenuRequested(), and run_selection().
|
pure virtual |
Implemented in QUnixTerminalImpl, and QWinTerminalImpl.
|
slot |
Definition at line 73 of file QTerminal.cc.
References _interrupt_action, and _nop_action.
Referenced by QWinTerminalImpl::QWinTerminalImpl().
|
pure virtual |
Implemented in QWinTerminalImpl, and QUnixTerminalImpl.
Referenced by notice_settings().
|
pure virtual |
Implemented in QUnixTerminalImpl, and QWinTerminalImpl.
Referenced by notice_settings().
|
inlinevirtual |
Reimplemented in QWinTerminalImpl, and QUnixTerminalImpl.
Definition at line 78 of file QTerminal.h.
Referenced by notice_settings().
|
pure virtual |
Implemented in QWinTerminalImpl, and QUnixTerminalImpl.
Referenced by notice_settings().
|
pure virtual |
Implemented in QWinTerminalImpl, and QUnixTerminalImpl.
Referenced by notice_settings().
|
pure virtual |
Implemented in QWinTerminalImpl, and QUnixTerminalImpl.
Referenced by notice_settings().
|
pure virtual |
Implemented in QUnixTerminalImpl, and QWinTerminalImpl.
|
pure virtual |
Implemented in QWinTerminalImpl, and QUnixTerminalImpl.
Referenced by notice_settings().
|
signal |
Referenced by construct(), and doc_on_expression().
|
inlineslot |
Definition at line 124 of file QTerminal.h.
References interrupt_signal().
Referenced by construct(), QWinTerminalImpl::copyClipboard(), and QUnixTerminalImpl::initialize().
|
private |
Definition at line 148 of file QTerminal.h.
Referenced by construct(), and handleCustomContextMenuRequested().
|
private |
Definition at line 149 of file QTerminal.h.
Referenced by construct(), and handleCustomContextMenuRequested().
|
private |
Definition at line 152 of file QTerminal.h.
Referenced by construct(), edit_file(), and handleCustomContextMenuRequested().
|
private |
Definition at line 158 of file QTerminal.h.
Referenced by construct(), notice_settings(), and set_global_shortcuts().
|
private |
Definition at line 159 of file QTerminal.h.
Referenced by construct(), notice_settings(), and set_global_shortcuts().
|
private |
Definition at line 150 of file QTerminal.h.
Referenced by construct(), and handleCustomContextMenuRequested().
|
private |
Definition at line 153 of file QTerminal.h.
Referenced by construct(), and handleCustomContextMenuRequested().
|
private |
Definition at line 151 of file QTerminal.h.
Referenced by construct().
|
private |
Definition at line 156 of file QTerminal.h.
Referenced by construct(), doc_on_expression(), and handleCustomContextMenuRequested().
|
private |
Definition at line 154 of file QTerminal.h.
Referenced by construct(), edit_selected(), and handleCustomContextMenuRequested().
|
private |
Definition at line 155 of file QTerminal.h.
Referenced by construct(), handleCustomContextMenuRequested(), and help_on_expression().