#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 | 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 &) |
void | terminated (void) |
void | titleChanged (const QString &) |
Public Member Functions | |
QWinTerminalImpl (octave::base_qobject &, QWidget *parent) | |
~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) |
Protected Member Functions | |
void | construct (octave::base_qobject &oct_qobj) |
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 |
octave::base_qobject & | m_octave_qobj |
Friends | |
class | QConsolePrivate |
class | QConsoleThread |
class | QConsoleView |
Definition at line 44 of file QWinTerminalImpl.h.
|
inherited |
Enumerator | |
---|---|
IBeamCursor | |
BlockCursor | |
UnderlineCursor |
Definition at line 72 of file QTerminal.h.
QWinTerminalImpl::QWinTerminalImpl | ( | octave::base_qobject & | oct_qobj, |
QWidget * | parent | ||
) |
Definition at line 1440 of file QWinTerminalImpl.cpp.
QWinTerminalImpl::~QWinTerminalImpl | ( | void | ) |
Definition at line 1452 of file QWinTerminalImpl.cpp.
References d.
|
slot |
Definition at line 1558 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().
|
signalinherited |
Referenced by main_window::adopt_terminal_widget(), and QTerminal::construct().
|
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 1766 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().
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().
|
protected |
Definition at line 1827 of file QWinTerminalImpl.cpp.
|
protected |
Definition at line 1837 of file QWinTerminalImpl.cpp.
References sendText().
|
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().
|
protected |
Definition at line 1652 of file QWinTerminalImpl.cpp.
References sendText().
|
signalinherited |
|
protected |
Definition at line 1635 of file QWinTerminalImpl.cpp.
References setBlinkingCursorState().
|
protected |
Definition at line 1642 of file QWinTerminalImpl.cpp.
References d, QConsolePrivate::m_cursorBlinking, and setBlinkingCursorState().
|
inlinevirtualinherited |
Reimplemented in QUnixTerminalImpl.
Definition at line 69 of file QTerminal.h.
Referenced by QTerminal::handleCustomContextMenuRequested().
|
inlinevirtualslotinherited |
Definition at line 145 of file QTerminal.h.
Referenced by terminal_dock_widget::terminal_dock_widget().
|
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 QUnixTerminalImpl::initialize().
|
virtual |
Implements QTerminal.
Definition at line 1855 of file QWinTerminalImpl.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().
|
privateslot |
Definition at line 1611 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::setHorizontalScrollValue().
Referenced by QConsolePrivate::QConsolePrivate().
|
slot |
Definition at line 1591 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::updateConsoleSize().
|
signalinherited |
|
protected |
Definition at line 1668 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 1623 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::monitorConsole().
|
protected |
Definition at line 1493 of file QWinTerminalImpl.cpp.
References allowTripleClick, d, QConsolePrivate::m_settingSelection, QConsolePrivate::posToCell(), QConsolePrivate::selectWord(), and tripleClickTimeout().
|
protected |
Definition at line 1457 of file QWinTerminalImpl.cpp.
References d, QConsolePrivate::m_endSelection, QConsolePrivate::m_settingSelection, QConsolePrivate::posToCell(), and updateSelection().
|
protected |
Definition at line 1467 of file QWinTerminalImpl.cpp.
References allowTripleClick, d, QConsolePrivate::m_beginSelection, QConsolePrivate::m_settingSelection, mouseTripleClickEvent(), and QConsolePrivate::posToCell().
|
protected |
Definition at line 1481 of file QWinTerminalImpl.cpp.
References d, QConsolePrivate::m_endSelection, QConsolePrivate::m_settingSelection, QConsolePrivate::posToCell(), and updateSelection().
|
protected |
Definition at line 1510 of file QWinTerminalImpl.cpp.
References d, QConsolePrivate::posToCell(), and QConsolePrivate::selectLine().
Referenced by mousePressEvent().
|
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 1788 of file QWinTerminalImpl.cpp.
References sendText().
|
signalinherited |
Referenced by main_window::adopt_terminal_widget(), and copyClipboard().
|
signalinherited |
Referenced by main_window::adopt_terminal_widget(), and QUnixTerminalImpl::initialize().
|
signalinherited |
Referenced by main_window::adopt_terminal_widget(), and QUnixTerminalImpl::initialize().
|
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 1808 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::selectAll().
|
virtual |
Implements QTerminal.
Definition at line 1819 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::getSelection().
|
virtual |
Implements QTerminal.
Definition at line 1694 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::sendConsoleText().
Referenced by dropEvent(), eventFilter(), keyPressEvent(), and pasteClipboard().
|
signalinherited |
Referenced by main_window::adopt_terminal_widget(), and setSize().
|
virtual |
Implements QTerminal.
Definition at line 1719 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::setBackgroundColor().
|
protected |
Definition at line 1568 of file QWinTerminalImpl.cpp.
References d, QConsolePrivate::m_hasBlinkingCursor, and setBlinkingCursorState().
Referenced by setCursorType().
|
protected |
Definition at line 1575 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 1734 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::setCursorColor().
|
virtual |
Reimplemented from QTerminal.
Definition at line 1699 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 1724 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::setForegroundColor().
|
virtual |
Implements QTerminal.
Definition at line 1740 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::setScrollBufferSize().
|
virtual |
Implements QTerminal.
Definition at line 1729 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::setSelectionColor().
|
virtual |
Implements QTerminal.
Definition at line 1757 of file QWinTerminalImpl.cpp.
References d, QConsolePrivate::log(), and QTerminal::set_screen_size_signal().
Referenced by QConsolePrivate::updateConsoleSize().
|
virtual |
Implements QTerminal.
Definition at line 1748 of file QWinTerminalImpl.cpp.
References d, f, QConsolePrivate::m_consoleView, QConsolePrivate::m_font, and QConsolePrivate::updateConsoleSize().
|
signalinherited |
|
protectedvirtual |
Definition at line 1687 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::startCommand().
Referenced by QConsoleThread::run().
|
inlineslotinherited |
Definition at line 133 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 1518 of file QWinTerminalImpl.cpp.
References allowTripleClick.
Referenced by mouseDoubleClickEvent().
|
privateslot |
Definition at line 1628 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::updateSelection().
Referenced by mouseMoveEvent(), and mouseReleaseEvent().
|
privateslot |
Definition at line 1616 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::setVerticalScrollValue().
Referenced by QConsolePrivate::QConsolePrivate().
|
protected |
Definition at line 1533 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 1525 of file QWinTerminalImpl.cpp.
References d, QConsolePrivate::grabConsoleBuffer(), and QConsolePrivate::updateConsoleSize().
Referenced by QConsoleView::resizeEvent().
|
protected |
Definition at line 1598 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 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 112 of file QWinTerminalImpl.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 111 of file QWinTerminalImpl.h.
Referenced by mouseDoubleClickEvent(), mousePressEvent(), and tripleClickTimeout().
|
private |
Definition at line 110 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 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().
|
privateinherited |
Definition at line 156 of file QTerminal.h.
Referenced by QTerminal::doc_on_expression().