#include "QWinTerminalImpl.h"
Public Types | |
enum | CursorType { IBeamCursor , BlockCursor , UnderlineCursor } |
Public Slots | |
void | blinkCursorEvent (void) |
void | copyClipboard (void) |
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) |
void | init_terminal_size (void) |
void | notice_settings (const gui_settings *settings) |
void | pasteClipboard (void) |
void | run_selection (void) |
void | selectAll (void) |
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 | set_global_shortcuts_signal (bool) |
void | set_screen_size_signal (int, int) |
void | show_doc_signal (const QString &) |
void | terminated (void) |
void | titleChanged (const QString &) |
Public Member Functions | |
QWinTerminalImpl (const QString &cmd, QWidget *parent=0) | |
QWinTerminalImpl (QWidget *parent=0) | |
~QWinTerminalImpl (void) | |
virtual QList< QAction * > | get_hotspot_actions (const QPoint &) |
void | has_extra_interrupt (bool) |
QString | selectedText () |
void | sendText (const QString &s) |
void | setBackgroundColor (const QColor &color) |
void | setCursorColor (bool useForegoundColor, 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 columns, int lines) |
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) |
void | dragEnterEvent (QDragEnterEvent *event) |
void | dropEvent (QDropEvent *event) |
bool | eventFilter (QObject *obj, QEvent *ev) |
void | focusInEvent (QFocusEvent *) |
void | focusOutEvent (QFocusEvent *) |
void | keyPressEvent (QKeyEvent *) |
void | mouseDoubleClickEvent (QMouseEvent *event) |
void | mouseMoveEvent (QMouseEvent *event) |
void | mousePressEvent (QMouseEvent *event) |
void | mouseReleaseEvent (QMouseEvent *event) |
void | mouseTripleClickEvent (QMouseEvent *event) |
void | setBlinkingCursor (bool blink) |
void | setBlinkingCursorState (bool blink) |
virtual void | start (void) |
void | viewPaintEvent (QConsoleView *, QPaintEvent *) |
void | viewResizeEvent (QConsoleView *, QResizeEvent *) |
void | wheelEvent (QWheelEvent *) |
Private Slots | |
void | horizontalScrollValueChanged (int value) |
void | monitorConsole (void) |
void | tripleClickTimeout (void) |
void | updateSelection (void) |
void | verticalScrollValueChanged (int value) |
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 |
bool | allowTripleClick |
QConsolePrivate * | d |
QAction * | m_doc_selected_action |
QAction * | m_edit_selected_action |
QAction * | m_help_selected_action |
Friends | |
class | QConsolePrivate |
class | QConsoleThread |
class | QConsoleView |
Definition at line 44 of file QWinTerminalImpl.h.
|
inherited |
Enumerator | |
---|---|
IBeamCursor | |
BlockCursor | |
UnderlineCursor |
Definition at line 71 of file QTerminal.h.
QWinTerminalImpl::QWinTerminalImpl | ( | QWidget * | parent = 0 | ) |
Definition at line 1444 of file QWinTerminalImpl.cpp.
References QTerminal::set_global_shortcuts(), set_global_shortcuts_signal(), and set_screen_size_signal().
QWinTerminalImpl::QWinTerminalImpl | ( | const QString & | cmd, |
QWidget * | parent = 0 |
||
) |
Definition at line 1463 of file QWinTerminalImpl.cpp.
QWinTerminalImpl::~QWinTerminalImpl | ( | void | ) |
Definition at line 1470 of file QWinTerminalImpl.cpp.
References d.
|
slot |
Definition at line 1576 of file QWinTerminalImpl.cpp.
References QConsolePrivate::cursorRect(), d, QConsolePrivate::m_consoleView, QConsolePrivate::m_cursorBlinking, and QConsolePrivate::m_hasBlinkingCursor.
Referenced by QConsolePrivate::QConsolePrivate(), keyPressEvent(), and setBlinkingCursorState().
|
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 1788 of file QWinTerminalImpl.cpp.
References _extra_interrupt, d, QConsolePrivate::getSelection(), QTerminal::report_status_message(), and QTerminal::terminal_interrupt().
|
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().
|
protected |
Definition at line 1841 of file QWinTerminalImpl.cpp.
|
protected |
Definition at line 1851 of file QWinTerminalImpl.cpp.
References sendText().
|
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().
|
protected |
Definition at line 1674 of file QWinTerminalImpl.cpp.
References sendText().
|
signalinherited |
Referenced by QTerminal::construct(), QTerminal::help_on_expression(), and QTerminal::run_selection().
|
protected |
Definition at line 1653 of file QWinTerminalImpl.cpp.
References set_global_shortcuts_signal(), and setBlinkingCursorState().
|
protected |
Definition at line 1662 of file QWinTerminalImpl.cpp.
References d, QConsolePrivate::m_cursorBlinking, set_global_shortcuts_signal(), and setBlinkingCursorState().
|
inlinevirtualinherited |
Reimplemented in QUnixTerminalImpl.
Definition at line 68 of file QTerminal.h.
Referenced by QTerminal::handleCustomContextMenuRequested().
|
inlinevirtualslotinherited |
Definition at line 138 of file QTerminal.h.
|
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 QUnixTerminalImpl::initialize().
|
virtual |
Implements QTerminal.
Definition at line 1869 of file QWinTerminalImpl.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().
|
privateslot |
Definition at line 1629 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::setHorizontalScrollValue().
Referenced by QConsolePrivate::QConsolePrivate().
|
slot |
Definition at line 1609 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::updateConsoleSize().
|
signalinherited |
Referenced by QUnixTerminalImpl::initialize(), and QTerminal::terminal_interrupt().
|
protected |
Definition at line 1690 of file QWinTerminalImpl.cpp.
References QConsolePrivate::BLINK_DELAY, blinkCursorEvent(), d, QConsolePrivate::m_blinkCursorTimer, QConsolePrivate::m_cursorBlinking, QConsolePrivate::m_hasBlinkingCursor, sendText(), and translateKey().
|
privateslot |
Definition at line 1641 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::monitorConsole().
|
protected |
Definition at line 1511 of file QWinTerminalImpl.cpp.
References allowTripleClick, d, QConsolePrivate::m_settingSelection, QConsolePrivate::posToCell(), QConsolePrivate::selectWord(), and tripleClickTimeout().
|
protected |
Definition at line 1475 of file QWinTerminalImpl.cpp.
References d, QConsolePrivate::m_endSelection, QConsolePrivate::m_settingSelection, QConsolePrivate::posToCell(), and updateSelection().
|
protected |
Definition at line 1485 of file QWinTerminalImpl.cpp.
References allowTripleClick, d, QConsolePrivate::m_beginSelection, QConsolePrivate::m_settingSelection, mouseTripleClickEvent(), and QConsolePrivate::posToCell().
|
protected |
Definition at line 1499 of file QWinTerminalImpl.cpp.
References d, QConsolePrivate::m_endSelection, QConsolePrivate::m_settingSelection, QConsolePrivate::posToCell(), and updateSelection().
|
protected |
Definition at line 1528 of file QWinTerminalImpl.cpp.
References d, QConsolePrivate::posToCell(), and QConsolePrivate::selectLine().
Referenced by mousePressEvent().
|
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 1810 of file QWinTerminalImpl.cpp.
References text::text(), and sendText().
|
signalinherited |
Referenced by QTerminal::construct(), and copyClipboard().
|
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 1822 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::selectAll().
|
virtual |
Implements QTerminal.
Definition at line 1833 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::getSelection().
|
virtual |
Implements QTerminal.
Definition at line 1716 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::sendConsoleText().
Referenced by dropEvent(), eventFilter(), keyPressEvent(), and pasteClipboard().
|
slotinherited |
Definition at line 73 of file QTerminal.cc.
References QTerminal::_interrupt_action, and QTerminal::_nop_action.
Referenced by QWinTerminalImpl().
|
signal |
Referenced by QWinTerminalImpl(), focusInEvent(), and focusOutEvent().
|
signal |
Referenced by QWinTerminalImpl(), and setSize().
|
virtual |
Implements QTerminal.
Definition at line 1741 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::setBackgroundColor().
|
protected |
Definition at line 1586 of file QWinTerminalImpl.cpp.
References d, QConsolePrivate::m_hasBlinkingCursor, and setBlinkingCursorState().
Referenced by setCursorType().
|
protected |
Definition at line 1593 of file QWinTerminalImpl.cpp.
References QConsolePrivate::BLINK_DELAY, blinkCursorEvent(), d, QConsolePrivate::m_blinkCursorTimer, and QConsolePrivate::m_cursorBlinking.
Referenced by focusInEvent(), focusOutEvent(), and setBlinkingCursor().
|
virtual |
Implements QTerminal.
Definition at line 1756 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::setCursorColor().
|
virtual |
Reimplemented from QTerminal.
Definition at line 1721 of file QWinTerminalImpl.cpp.
References QTerminal::BlockCursor, QConsolePrivate::BlockCursor, d, QTerminal::IBeamCursor, QConsolePrivate::IBeamCursor, QConsolePrivate::m_cursorType, setBlinkingCursor(), QTerminal::UnderlineCursor, and QConsolePrivate::UnderlineCursor.
|
virtual |
Implements QTerminal.
Definition at line 1746 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::setForegroundColor().
|
virtual |
Implements QTerminal.
Definition at line 1762 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::setScrollBufferSize().
|
virtual |
Implements QTerminal.
Definition at line 1751 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::setSelectionColor().
|
virtual |
Implements QTerminal.
Definition at line 1779 of file QWinTerminalImpl.cpp.
References d, QConsolePrivate::log(), and set_screen_size_signal().
Referenced by QConsolePrivate::updateConsoleSize().
|
virtual |
Implements QTerminal.
Definition at line 1770 of file QWinTerminalImpl.cpp.
References d, f, QConsolePrivate::m_consoleView, QConsolePrivate::m_font, and QConsolePrivate::updateConsoleSize().
|
signalinherited |
Referenced by QTerminal::construct(), and QTerminal::doc_on_expression().
|
protectedvirtual |
Definition at line 1709 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::startCommand().
Referenced by QConsoleThread::run().
|
inlineslotinherited |
Definition at line 124 of file QTerminal.h.
References QTerminal::interrupt_signal().
Referenced by QTerminal::construct(), copyClipboard(), and QUnixTerminalImpl::initialize().
|
signal |
Referenced by QConsolePrivate::QConsolePrivate().
|
signal |
Referenced by QConsolePrivate::monitorConsole().
|
privateslot |
Definition at line 1536 of file QWinTerminalImpl.cpp.
References allowTripleClick.
Referenced by mouseDoubleClickEvent().
|
privateslot |
Definition at line 1646 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::updateSelection().
Referenced by mouseMoveEvent(), and mouseReleaseEvent().
|
privateslot |
Definition at line 1634 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::setVerticalScrollValue().
Referenced by QConsolePrivate::QConsolePrivate().
|
protected |
Definition at line 1551 of file QWinTerminalImpl.cpp.
References QConsolePrivate::backgroundColor(), d, QConsolePrivate::drawCursor(), QConsolePrivate::drawSelection(), QConsolePrivate::drawText(), QConsolePrivate::drawTextBackground(), QConsolePrivate::m_charSize, QConsolePrivate::m_consoleRect, and Faddeeva::w().
Referenced by QConsoleView::paintEvent().
|
protected |
Definition at line 1543 of file QWinTerminalImpl.cpp.
References d, QConsolePrivate::grabConsoleBuffer(), and QConsolePrivate::updateConsoleSize().
Referenced by QConsoleView::resizeEvent().
|
protected |
Definition at line 1616 of file QWinTerminalImpl.cpp.
References d, QConsolePrivate::m_inWheelEvent, and QConsolePrivate::m_verticalScrollBar.
|
friend |
Definition at line 47 of file QWinTerminalImpl.h.
|
friend |
Definition at line 48 of file QWinTerminalImpl.h.
Referenced by QConsolePrivate::QConsolePrivate().
|
friend |
Definition at line 49 of file QWinTerminalImpl.h.
Referenced by QConsolePrivate::QConsolePrivate().
|
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 115 of file QWinTerminalImpl.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().
|
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 114 of file QWinTerminalImpl.h.
Referenced by mouseDoubleClickEvent(), mousePressEvent(), and tripleClickTimeout().
|
private |
Definition at line 113 of file QWinTerminalImpl.h.
Referenced by ~QWinTerminalImpl(), blinkCursorEvent(), copyClipboard(), focusOutEvent(), horizontalScrollValueChanged(), init_terminal_size(), keyPressEvent(), monitorConsole(), mouseDoubleClickEvent(), mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), mouseTripleClickEvent(), selectAll(), selectedText(), sendText(), setBackgroundColor(), setBlinkingCursor(), setBlinkingCursorState(), setCursorColor(), setCursorType(), setForegroundColor(), setScrollBufferSize(), setSelectionColor(), setSize(), setTerminalFont(), start(), updateSelection(), verticalScrollValueChanged(), viewPaintEvent(), viewResizeEvent(), and wheelEvent().
|
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().