#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 | 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 &) |
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) |
Protected Member Functions | |
QTerminal (octave::base_qobject &oct_qobj, QWidget *xparent=nullptr) | |
void | construct (octave::base_qobject &oct_qobj) |
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 |
octave::base_qobject & | m_octave_qobj |
Definition at line 48 of file QTerminal.h.
Enumerator | |
---|---|
IBeamCursor | |
BlockCursor | |
UnderlineCursor |
Definition at line 72 of file QTerminal.h.
|
virtualdefault |
|
inlineprotected |
Definition at line 149 of file QTerminal.h.
|
signal |
Referenced by main_window::adopt_terminal_widget(), and construct().
|
protected |
Definition at line 277 of file QTerminal.cc.
References _contextMenu, _copy_action, _edit_action, _interrupt_action, _nop_action, _paste_action, _run_selection_action, _selectall_action, clear_command_window_request(), copyClipboard(), doc_on_expression(), edit_file(), edit_selected(), handleCustomContextMenuRequested(), help_on_expression(), m_doc_selected_action, m_edit_selected_action, m_help_selected_action, pasteClipboard(), run_selection(), selectAll(), and terminal_interrupt().
Referenced by create().
|
pure virtualslot |
Referenced by main_window::adopt_terminal_widget(), and construct().
Definition at line 52 of file QTerminal.cc.
References construct().
Referenced by terminal_dock_widget::terminal_dock_widget().
|
slot |
Definition at line 195 of file QTerminal.cc.
References m_doc_selected_action, and m_octave_qobj.
Referenced by construct().
|
slot |
Definition at line 170 of file QTerminal.cc.
References _edit_action, and edit_mfile_request().
Referenced by construct().
|
signal |
Referenced by main_window::adopt_terminal_widget(), edit_file(), and edit_selected().
|
slot |
Definition at line 179 of file QTerminal.cc.
References edit_mfile_request(), and m_edit_selected_action.
Referenced by construct().
|
signal |
Referenced by main_window::adopt_terminal_widget(), help_on_expression(), and run_selection().
|
inlinevirtual |
Reimplemented in QUnixTerminalImpl.
Definition at line 69 of file QTerminal.h.
Referenced by handleCustomContextMenuRequested().
|
inlinevirtualslot |
Definition at line 145 of file QTerminal.h.
Referenced by terminal_dock_widget::terminal_dock_widget().
|
virtualslot |
Definition at line 73 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 187 of file QTerminal.cc.
References execute_command_in_terminal_signal(), and m_help_selected_action.
Referenced by construct().
|
inlinevirtualslot |
Definition at line 131 of file QTerminal.h.
Referenced by main_window::adopt_terminal_widget().
|
signal |
Referenced by QUnixTerminalImpl::initialize(), terminal_interrupt(), and base_qobject::terminal_widget().
|
slot |
Definition at line 202 of file QTerminal.cc.
References _interrupt_action, _nop_action, cs_color_mode(), cs_colors, cs_cursor(), cs_cursor_blinking(), cs_cursor_types, cs_cursor_use_fgcol(), cs_font(), cs_font_size(), cs_hist_buffer(), global_cursor_blinking(), global_mono_font(), has_extra_interrupt(), IBeamCursor, gui_pref::key, sc_main_ctrld(), sc_main_edit_copy(), sc_prevent_rl_conflicts(), setBackgroundColor(), setCursorColor(), setCursorType(), setForegroundColor(), setScrollBufferSize(), setSelectionColor(), setTerminalFont(), and UnderlineCursor.
Referenced by terminal_dock_widget::terminal_dock_widget().
|
pure virtualslot |
Referenced by main_window::adopt_terminal_widget(), and construct().
|
signal |
Referenced by main_window::adopt_terminal_widget(), and QWinTerminalImpl::copyClipboard().
|
signal |
Referenced by main_window::adopt_terminal_widget(), and QUnixTerminalImpl::initialize().
|
signal |
Referenced by main_window::adopt_terminal_widget(), and QUnixTerminalImpl::initialize().
|
slot |
Definition at line 155 of file QTerminal.cc.
References execute_command_in_terminal_signal(), and selectedText().
Referenced by construct().
|
pure virtualslot |
Referenced by main_window::adopt_terminal_widget(), and construct().
|
pure virtual |
Implemented in QWinTerminalImpl, and QUnixTerminalImpl.
Referenced by handleCustomContextMenuRequested(), and run_selection().
|
pure virtual |
Implemented in QUnixTerminalImpl, and QWinTerminalImpl.
|
signal |
Referenced by main_window::adopt_terminal_widget(), and QWinTerminalImpl::setSize().
|
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 79 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 |
|
inlineslot |
Definition at line 133 of file QTerminal.h.
References interrupt_signal().
Referenced by construct(), QWinTerminalImpl::copyClipboard(), and QUnixTerminalImpl::initialize().
|
private |
Definition at line 158 of file QTerminal.h.
Referenced by construct(), and handleCustomContextMenuRequested().
|
private |
Definition at line 159 of file QTerminal.h.
Referenced by construct(), and handleCustomContextMenuRequested().
|
private |
Definition at line 162 of file QTerminal.h.
Referenced by construct(), edit_file(), and handleCustomContextMenuRequested().
|
private |
Definition at line 168 of file QTerminal.h.
Referenced by construct(), and notice_settings().
|
private |
Definition at line 169 of file QTerminal.h.
Referenced by construct(), and notice_settings().
|
private |
Definition at line 160 of file QTerminal.h.
Referenced by construct(), and handleCustomContextMenuRequested().
|
private |
Definition at line 163 of file QTerminal.h.
Referenced by construct(), and handleCustomContextMenuRequested().
|
private |
Definition at line 161 of file QTerminal.h.
Referenced by construct().
|
private |
Definition at line 166 of file QTerminal.h.
Referenced by construct(), doc_on_expression(), and handleCustomContextMenuRequested().
|
private |
Definition at line 164 of file QTerminal.h.
Referenced by construct(), edit_selected(), and handleCustomContextMenuRequested().
|
private |
Definition at line 165 of file QTerminal.h.
Referenced by construct(), handleCustomContextMenuRequested(), and help_on_expression().
|
private |
Definition at line 156 of file QTerminal.h.
Referenced by doc_on_expression().