#include "QUnixTerminalImpl.h"
Public Types | |
enum | CursorType { IBeamCursor , BlockCursor , UnderlineCursor } |
Public Slots | |
void | copyClipboard () |
void | doc_on_expression (void) |
void | edit_file (void) |
void | edit_selected (void) |
virtual void | handle_visibility_changed (bool visible) |
virtual void | handleCustomContextMenuRequested (const QPoint &at) |
void | help_on_expression (void) |
virtual void | init_terminal_size (void) |
void | notice_settings (const gui_settings *settings) |
void | pasteClipboard () |
void | run_selection (void) |
void | selectAll () |
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 | |
QUnixTerminalImpl (QWidget *parent=nullptr) | |
virtual | ~QUnixTerminalImpl () |
QList< QAction * > | get_hotspot_actions (const QPoint &at) |
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 QTerminal * | create (octave::base_qobject &oct_qobj, QWidget *xparent=nullptr) |
Protected Member Functions | |
void | construct (octave::base_qobject &oct_qobj, QWidget *xparent) |
virtual void | resizeEvent (QResizeEvent *) |
void | showEvent (QShowEvent *) |
Private Member Functions | |
void | connectToPty () |
void | initialize () |
Private Attributes | |
QMenu * | _contextMenu |
QAction * | _copy_action |
QAction * | _edit_action |
bool | _extra_interrupt |
QAction * | _interrupt_action |
QAction * | _nop_action |
QWidget * | _parent |
QAction * | _paste_action |
QAction * | _run_selection_action |
QAction * | _selectall_action |
int | fdstderr |
QAction * | m_doc_selected_action |
QAction * | m_edit_selected_action |
QAction * | m_help_selected_action |
KPty * | m_kpty |
TerminalModel * | m_terminalModel |
TerminalView * | m_terminalView |
Definition at line 30 of file QUnixTerminalImpl.h.
|
inherited |
Enumerator | |
---|---|
IBeamCursor | |
BlockCursor | |
UnderlineCursor |
Definition at line 71 of file QTerminal.h.
QUnixTerminalImpl::QUnixTerminalImpl | ( | QWidget * | parent = nullptr | ) |
Definition at line 27 of file QUnixTerminalImpl.cpp.
References initialize().
|
virtual |
Definition at line 133 of file QUnixTerminalImpl.cpp.
References octave::sys::dup2(), fdstderr, m_kpty, m_terminalModel, and m_terminalView.
|
private |
Definition at line 108 of file QUnixTerminalImpl.cpp.
References octave::sys::dup2(), fdstderr, isatty, m_kpty, KPty::slaveFd(), and STDIN_FILENO.
Referenced by initialize().
|
protectedinherited |
Definition at line 295 of file QTerminal.cc.
References QTerminal::_contextMenu, QTerminal::_copy_action, QTerminal::_edit_action, QTerminal::_interrupt_action, QTerminal::_nop_action, QTerminal::_paste_action, QTerminal::_run_selection_action, QTerminal::_selectall_action, QTerminal::copyClipboard(), QTerminal::doc_on_expression(), QTerminal::edit_file(), QTerminal::edit_mfile_request(), QTerminal::edit_selected(), QTerminal::execute_command_in_terminal_signal(), octave::base_qobject::get_resource_manager(), QTerminal::handleCustomContextMenuRequested(), QTerminal::help_on_expression(), octave::resource_manager::icon(), QTerminal::init_terminal_size(), QTerminal::m_doc_selected_action, QTerminal::m_edit_selected_action, QTerminal::m_help_selected_action, QTerminal::notice_settings(), QTerminal::pasteClipboard(), QTerminal::report_status_message(), QTerminal::run_selection(), QTerminal::selectAll(), QTerminal::show_doc_signal(), and QTerminal::terminal_interrupt().
Referenced by QTerminal::create().
|
slot |
Definition at line 235 of file QUnixTerminalImpl.cpp.
References _extra_interrupt, TerminalView::copyClipboard(), and m_terminalView.
|
staticinherited |
Definition at line 52 of file QTerminal.cc.
References QTerminal::construct().
|
slotinherited |
Definition at line 214 of file QTerminal.cc.
References QTerminal::m_doc_selected_action, and QTerminal::show_doc_signal().
Referenced by QTerminal::construct().
|
slotinherited |
Definition at line 189 of file QTerminal.cc.
References QTerminal::_edit_action, and QTerminal::edit_mfile_request().
Referenced by QTerminal::construct().
|
signalinherited |
Referenced by QTerminal::construct(), QTerminal::edit_file(), and QTerminal::edit_selected().
|
slotinherited |
Definition at line 198 of file QTerminal.cc.
References QTerminal::edit_mfile_request(), and QTerminal::m_edit_selected_action.
Referenced by QTerminal::construct().
|
signalinherited |
Referenced by QTerminal::construct(), QTerminal::help_on_expression(), and QTerminal::run_selection().
|
virtual |
Reimplemented from QTerminal.
Definition at line 103 of file QUnixTerminalImpl.cpp.
References TerminalView::filterActions(), and m_terminalView.
|
virtualslot |
Definition at line 263 of file QUnixTerminalImpl.cpp.
References m_terminalView, and TerminalView::visibility_changed().
|
virtualslotinherited |
Definition at line 92 of file QTerminal.cc.
References QTerminal::_contextMenu, QTerminal::_copy_action, QTerminal::_edit_action, QTerminal::_paste_action, QTerminal::_run_selection_action, QTerminal::get_hotspot_actions(), QTerminal::m_doc_selected_action, QTerminal::m_edit_selected_action, QTerminal::m_help_selected_action, and QTerminal::selectedText().
Referenced by QTerminal::construct(), and initialize().
|
virtual |
Implements QTerminal.
Definition at line 257 of file QUnixTerminalImpl.cpp.
References _extra_interrupt.
|
slotinherited |
Definition at line 206 of file QTerminal.cc.
References QTerminal::execute_command_in_terminal_signal(), and QTerminal::m_help_selected_action.
Referenced by QTerminal::construct().
|
inlinevirtualslotinherited |
Definition at line 122 of file QTerminal.h.
Referenced by QTerminal::construct().
|
private |
Definition at line 34 of file QUnixTerminalImpl.cpp.
References _parent, FilterChain::addFilter(), TerminalModel::addView(), connectToPty(), TerminalView::filterChain(), QTerminal::handleCustomContextMenuRequested(), QTerminal::interrupt_signal(), m_kpty, m_terminalModel, m_terminalView, TerminalView::NotifyBell, KPty::open(), TerminalModel::run(), TerminalView::ScrollBarRight, TerminalView::SelectWholeLine, TerminalModel::setAutoClose(), TerminalView::setBellMode(), TerminalView::setBlinkingCursor(), TerminalModel::setCodec(), TerminalModel::setDarkBackground(), TerminalModel::setHistoryType(), TerminalModel::setKeyBindings(), TerminalView::setKeyboardCursorShape(), TerminalView::setScrollBarPosition(), TerminalView::setSize(), setTerminalFont(), TerminalView::setTerminalSizeHint(), TerminalView::setTerminalSizeStartup(), TerminalView::setTripleClickMode(), QTerminal::terminal_interrupt(), and TerminalView::UnderlineCursor.
Referenced by QUnixTerminalImpl().
|
signalinherited |
Referenced by initialize(), and QTerminal::terminal_interrupt().
|
slotinherited |
Definition at line 222 of file QTerminal.cc.
References QTerminal::_interrupt_action, QTerminal::_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(), QTerminal::has_extra_interrupt(), QTerminal::IBeamCursor, gui_pref::key, sc_main_ctrld(), sc_main_edit_copy(), octave::gui_settings::sc_value(), QTerminal::setBackgroundColor(), QTerminal::setCursorColor(), QTerminal::setCursorType(), QTerminal::setForegroundColor(), QTerminal::setScrollBufferSize(), QTerminal::setSelectionColor(), QTerminal::setTerminalFont(), QTerminal::UnderlineCursor, and octave::gui_settings::value().
Referenced by QTerminal::construct().
|
slot |
Definition at line 240 of file QUnixTerminalImpl.cpp.
References m_terminalView, and TerminalView::pasteClipboard().
|
signalinherited |
Referenced by QTerminal::construct(), and QWinTerminalImpl::copyClipboard().
|
protectedvirtual |
Definition at line 227 of file QUnixTerminalImpl.cpp.
References m_terminalView, and TerminalView::updateImage().
|
slotinherited |
Definition at line 174 of file QTerminal.cc.
References QTerminal::execute_command_in_terminal_signal(), and QTerminal::selectedText().
Referenced by QTerminal::construct().
|
slot |
Definition at line 245 of file QUnixTerminalImpl.cpp.
References m_terminalView, and TerminalView::selectAll().
|
virtual |
Implements QTerminal.
Definition at line 251 of file QUnixTerminalImpl.cpp.
References m_terminalView, and TerminalView::selectedText().
|
virtual |
Implements QTerminal.
Definition at line 159 of file QUnixTerminalImpl.cpp.
References m_terminalModel, and TerminalModel::sendText().
|
slotinherited |
Definition at line 73 of file QTerminal.cc.
References QTerminal::_interrupt_action, and QTerminal::_nop_action.
Referenced by QWinTerminalImpl::QWinTerminalImpl().
|
virtual |
Implements QTerminal.
Definition at line 176 of file QUnixTerminalImpl.cpp.
References ColorEntry::color, TerminalView::colorTable(), DEFAULT_BACK_COLOR, m_terminalView, TerminalView::setColorTable(), and TABLE_COLORS.
|
virtual |
Implements QTerminal.
Definition at line 214 of file QUnixTerminalImpl.cpp.
References m_terminalView, and TerminalView::setKeyboardCursorColor().
|
virtual |
Reimplemented from QTerminal.
Definition at line 164 of file QUnixTerminalImpl.cpp.
References QTerminal::BlockCursor, TerminalView::BlockCursor, QTerminal::IBeamCursor, TerminalView::IBeamCursor, m_terminalView, TerminalView::setBlinkingCursor(), TerminalView::setKeyboardCursorShape(), QTerminal::UnderlineCursor, and TerminalView::UnderlineCursor.
|
virtual |
Implements QTerminal.
Definition at line 196 of file QUnixTerminalImpl.cpp.
References ColorEntry::color, TerminalView::colorTable(), DEFAULT_FORE_COLOR, m_terminalView, TerminalView::setColorTable(), and TABLE_COLORS.
|
virtual |
Implements QTerminal.
Definition at line 91 of file QUnixTerminalImpl.cpp.
References TerminalModel::clearHistory(), m_terminalModel, and TerminalModel::setHistoryType().
|
virtual |
Implements QTerminal.
Definition at line 212 of file QUnixTerminalImpl.cpp.
|
virtual |
Implements QTerminal.
Definition at line 152 of file QUnixTerminalImpl.cpp.
References m_terminalView, and TerminalView::setSize().
|
virtual |
Implements QTerminal.
Definition at line 145 of file QUnixTerminalImpl.cpp.
References m_terminalView, and TerminalView::setVTFont().
Referenced by initialize().
|
signalinherited |
Referenced by QTerminal::construct(), and QTerminal::doc_on_expression().
|
protected |
Definition at line 220 of file QUnixTerminalImpl.cpp.
References m_terminalView, and TerminalView::updateImage().
|
inlineslotinherited |
Definition at line 124 of file QTerminal.h.
References QTerminal::interrupt_signal().
Referenced by QTerminal::construct(), QWinTerminalImpl::copyClipboard(), and initialize().
|
privateinherited |
Definition at line 148 of file QTerminal.h.
Referenced by QTerminal::construct(), and QTerminal::handleCustomContextMenuRequested().
|
privateinherited |
Definition at line 149 of file QTerminal.h.
Referenced by QTerminal::construct(), and QTerminal::handleCustomContextMenuRequested().
|
privateinherited |
Definition at line 152 of file QTerminal.h.
Referenced by QTerminal::construct(), QTerminal::edit_file(), and QTerminal::handleCustomContextMenuRequested().
|
private |
Definition at line 72 of file QUnixTerminalImpl.h.
Referenced by copyClipboard(), and has_extra_interrupt().
|
privateinherited |
Definition at line 158 of file QTerminal.h.
Referenced by QTerminal::construct(), QTerminal::notice_settings(), and QTerminal::set_global_shortcuts().
|
privateinherited |
Definition at line 159 of file QTerminal.h.
Referenced by QTerminal::construct(), QTerminal::notice_settings(), and QTerminal::set_global_shortcuts().
|
private |
Definition at line 73 of file QUnixTerminalImpl.h.
Referenced by initialize().
|
privateinherited |
Definition at line 150 of file QTerminal.h.
Referenced by QTerminal::construct(), and QTerminal::handleCustomContextMenuRequested().
|
privateinherited |
Definition at line 153 of file QTerminal.h.
Referenced by QTerminal::construct(), and QTerminal::handleCustomContextMenuRequested().
|
privateinherited |
Definition at line 151 of file QTerminal.h.
Referenced by QTerminal::construct().
|
private |
Definition at line 34 of file QUnixTerminalImpl.h.
Referenced by ~QUnixTerminalImpl(), and connectToPty().
|
privateinherited |
Definition at line 156 of file QTerminal.h.
Referenced by QTerminal::construct(), QTerminal::doc_on_expression(), and QTerminal::handleCustomContextMenuRequested().
|
privateinherited |
Definition at line 154 of file QTerminal.h.
Referenced by QTerminal::construct(), QTerminal::edit_selected(), and QTerminal::handleCustomContextMenuRequested().
|
privateinherited |
Definition at line 155 of file QTerminal.h.
Referenced by QTerminal::construct(), QTerminal::handleCustomContextMenuRequested(), and QTerminal::help_on_expression().
|
private |
Definition at line 71 of file QUnixTerminalImpl.h.
Referenced by ~QUnixTerminalImpl(), connectToPty(), and initialize().
|
private |
Definition at line 70 of file QUnixTerminalImpl.h.
Referenced by ~QUnixTerminalImpl(), initialize(), sendText(), and setScrollBufferSize().
|
private |
Definition at line 69 of file QUnixTerminalImpl.h.
Referenced by ~QUnixTerminalImpl(), copyClipboard(), get_hotspot_actions(), handle_visibility_changed(), initialize(), pasteClipboard(), resizeEvent(), selectAll(), selectedText(), setBackgroundColor(), setCursorColor(), setCursorType(), setForegroundColor(), setSize(), setTerminalFont(), and showEvent().