#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 | 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 | |
QUnixTerminalImpl (octave::base_qobject &, QWidget *parent) | |
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) |
Protected Member Functions | |
void | construct (octave::base_qobject &oct_qobj) |
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 |
QAction * | _paste_action |
QAction * | _run_selection_action |
QAction * | _selectall_action |
int | fdstderr |
int | fdstdin |
int | fdstdout |
QAction * | m_doc_selected_action |
QAction * | m_edit_selected_action |
QAction * | m_help_selected_action |
KPty * | m_kpty |
octave::base_qobject & | m_octave_qobj |
TerminalModel * | m_terminalModel |
TerminalView * | m_terminalView |
Definition at line 30 of file QUnixTerminalImpl.h.
|
inherited |
Enumerator | |
---|---|
IBeamCursor | |
BlockCursor | |
UnderlineCursor |
Definition at line 72 of file QTerminal.h.
QUnixTerminalImpl::QUnixTerminalImpl | ( | octave::base_qobject & | oct_qobj, |
QWidget * | parent | ||
) |
Definition at line 27 of file QUnixTerminalImpl.cpp.
References initialize().
|
virtual |
Definition at line 137 of file QUnixTerminalImpl.cpp.
References dup2(), fdstderr, fdstdin, fdstdout, m_kpty, m_terminalModel, m_terminalView, and STDIN_FILENO.
|
signalinherited |
Referenced by main_window::adopt_terminal_widget(), and QTerminal::construct().
|
private |
Definition at line 108 of file QUnixTerminalImpl.cpp.
References dup2(), fdstderr, fdstdin, fdstdout, isatty, m_kpty, KPty::slaveFd(), and STDIN_FILENO.
Referenced by initialize().
|
protectedinherited |
Definition at line 277 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::clear_command_window_request(), QTerminal::copyClipboard(), QTerminal::doc_on_expression(), QTerminal::edit_file(), QTerminal::edit_selected(), QTerminal::handleCustomContextMenuRequested(), QTerminal::help_on_expression(), QTerminal::m_doc_selected_action, QTerminal::m_edit_selected_action, QTerminal::m_help_selected_action, QTerminal::pasteClipboard(), QTerminal::run_selection(), QTerminal::selectAll(), and QTerminal::terminal_interrupt().
Referenced by QTerminal::create().
|
slot |
Definition at line 243 of file QUnixTerminalImpl.cpp.
References _extra_interrupt, TerminalView::copyClipboard(), and m_terminalView.
|
staticinherited |
Definition at line 52 of file QTerminal.cc.
References QTerminal::construct().
Referenced by terminal_dock_widget::terminal_dock_widget().
|
slotinherited |
Definition at line 195 of file QTerminal.cc.
References QTerminal::m_doc_selected_action, and QTerminal::m_octave_qobj.
Referenced by QTerminal::construct().
|
slotinherited |
Definition at line 170 of file QTerminal.cc.
References QTerminal::_edit_action, and QTerminal::edit_mfile_request().
Referenced by QTerminal::construct().
|
signalinherited |
Referenced by main_window::adopt_terminal_widget(), QTerminal::edit_file(), and QTerminal::edit_selected().
|
slotinherited |
Definition at line 179 of file QTerminal.cc.
References QTerminal::edit_mfile_request(), and QTerminal::m_edit_selected_action.
Referenced by QTerminal::construct().
|
signalinherited |
|
virtual |
Reimplemented from QTerminal.
Definition at line 103 of file QUnixTerminalImpl.cpp.
References TerminalView::filterActions(), and m_terminalView.
|
virtualslot |
Definition at line 271 of file QUnixTerminalImpl.cpp.
References m_terminalView, and TerminalView::visibility_changed().
|
virtualslotinherited |
Definition at line 73 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 265 of file QUnixTerminalImpl.cpp.
References _extra_interrupt.
|
slotinherited |
Definition at line 187 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 131 of file QTerminal.h.
Referenced by main_window::adopt_terminal_widget().
|
private |
Definition at line 34 of file QUnixTerminalImpl.cpp.
References FilterChain::addFilter(), TerminalModel::addView(), connectToPty(), TerminalView::filterChain(), QTerminal::handleCustomContextMenuRequested(), QTerminal::interrupt_signal(), m_kpty, m_terminalModel, m_terminalView, TerminalView::NotifyBell, KPty::open(), QTerminal::request_edit_mfile_signal(), QTerminal::request_open_file_signal(), 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(), QTerminal::terminal_interrupt(), and base_qobject::terminal_widget().
|
slotinherited |
Definition at line 202 of file QTerminal.cc.
References QTerminal::_interrupt_action, QTerminal::_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(), QTerminal::has_extra_interrupt(), QTerminal::IBeamCursor, gui_pref::key, sc_main_ctrld(), sc_main_edit_copy(), sc_prevent_rl_conflicts(), QTerminal::setBackgroundColor(), QTerminal::setCursorColor(), QTerminal::setCursorType(), QTerminal::setForegroundColor(), QTerminal::setScrollBufferSize(), QTerminal::setSelectionColor(), QTerminal::setTerminalFont(), and QTerminal::UnderlineCursor.
Referenced by terminal_dock_widget::terminal_dock_widget().
|
slot |
Definition at line 248 of file QUnixTerminalImpl.cpp.
References m_terminalView, and TerminalView::pasteClipboard().
|
signalinherited |
Referenced by main_window::adopt_terminal_widget(), and QWinTerminalImpl::copyClipboard().
|
signalinherited |
Referenced by main_window::adopt_terminal_widget(), and initialize().
|
signalinherited |
Referenced by main_window::adopt_terminal_widget(), and initialize().
|
protectedvirtual |
Definition at line 235 of file QUnixTerminalImpl.cpp.
References m_terminalView, and TerminalView::updateImage().
|
slotinherited |
Definition at line 155 of file QTerminal.cc.
References QTerminal::execute_command_in_terminal_signal(), and QTerminal::selectedText().
Referenced by QTerminal::construct().
|
slot |
Definition at line 253 of file QUnixTerminalImpl.cpp.
References m_terminalView, and TerminalView::selectAll().
|
virtual |
Implements QTerminal.
Definition at line 259 of file QUnixTerminalImpl.cpp.
References m_terminalView, and TerminalView::selectedText().
|
virtual |
Implements QTerminal.
Definition at line 167 of file QUnixTerminalImpl.cpp.
References m_terminalModel, and TerminalModel::sendText().
|
signalinherited |
Referenced by main_window::adopt_terminal_widget(), and QWinTerminalImpl::setSize().
|
virtual |
Implements QTerminal.
Definition at line 184 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 222 of file QUnixTerminalImpl.cpp.
References m_terminalView, and TerminalView::setKeyboardCursorColor().
|
virtual |
Reimplemented from QTerminal.
Definition at line 172 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 204 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 220 of file QUnixTerminalImpl.cpp.
|
virtual |
Implements QTerminal.
Definition at line 160 of file QUnixTerminalImpl.cpp.
References m_terminalView, and TerminalView::setSize().
|
virtual |
Implements QTerminal.
Definition at line 153 of file QUnixTerminalImpl.cpp.
References m_terminalView, and TerminalView::setVTFont().
Referenced by initialize().
|
signalinherited |
|
protected |
Definition at line 228 of file QUnixTerminalImpl.cpp.
References m_terminalView, and TerminalView::updateImage().
|
inlineslotinherited |
Definition at line 133 of file QTerminal.h.
References QTerminal::interrupt_signal().
Referenced by QTerminal::construct(), QWinTerminalImpl::copyClipboard(), and initialize().
|
privateinherited |
Definition at line 158 of file QTerminal.h.
Referenced by QTerminal::construct(), and QTerminal::handleCustomContextMenuRequested().
|
privateinherited |
Definition at line 159 of file QTerminal.h.
Referenced by QTerminal::construct(), and QTerminal::handleCustomContextMenuRequested().
|
privateinherited |
Definition at line 162 of file QTerminal.h.
Referenced by QTerminal::construct(), QTerminal::edit_file(), and QTerminal::handleCustomContextMenuRequested().
|
private |
Definition at line 74 of file QUnixTerminalImpl.h.
Referenced by copyClipboard(), and has_extra_interrupt().
|
privateinherited |
Definition at line 168 of file QTerminal.h.
Referenced by QTerminal::construct(), and QTerminal::notice_settings().
|
privateinherited |
Definition at line 169 of file QTerminal.h.
Referenced by QTerminal::construct(), and QTerminal::notice_settings().
|
privateinherited |
Definition at line 160 of file QTerminal.h.
Referenced by QTerminal::construct(), and QTerminal::handleCustomContextMenuRequested().
|
privateinherited |
Definition at line 163 of file QTerminal.h.
Referenced by QTerminal::construct(), and QTerminal::handleCustomContextMenuRequested().
|
privateinherited |
Definition at line 161 of file QTerminal.h.
Referenced by QTerminal::construct().
|
private |
Definition at line 36 of file QUnixTerminalImpl.h.
Referenced by ~QUnixTerminalImpl(), and connectToPty().
|
private |
Definition at line 34 of file QUnixTerminalImpl.h.
Referenced by ~QUnixTerminalImpl(), and connectToPty().
|
private |
Definition at line 35 of file QUnixTerminalImpl.h.
Referenced by ~QUnixTerminalImpl(), and connectToPty().
|
privateinherited |
Definition at line 166 of file QTerminal.h.
Referenced by QTerminal::construct(), QTerminal::doc_on_expression(), and QTerminal::handleCustomContextMenuRequested().
|
privateinherited |
Definition at line 164 of file QTerminal.h.
Referenced by QTerminal::construct(), QTerminal::edit_selected(), and QTerminal::handleCustomContextMenuRequested().
|
privateinherited |
Definition at line 165 of file QTerminal.h.
Referenced by QTerminal::construct(), QTerminal::handleCustomContextMenuRequested(), and QTerminal::help_on_expression().
|
private |
Definition at line 73 of file QUnixTerminalImpl.h.
Referenced by ~QUnixTerminalImpl(), connectToPty(), and initialize().
|
privateinherited |
Definition at line 156 of file QTerminal.h.
Referenced by QTerminal::doc_on_expression().
|
private |
Definition at line 72 of file QUnixTerminalImpl.h.
Referenced by ~QUnixTerminalImpl(), initialize(), sendText(), and setScrollBufferSize().
|
private |
Definition at line 71 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().