GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "QWinTerminalImpl.h"
Public Types | |
enum | CursorType { UnderlineCursor, BlockCursor, IBeamCursor } |
Public Slots | |
void | blinkCursorEvent (void) |
void | copyClipboard (void) |
void | edit_file (void) |
virtual void | handleCustomContextMenuRequested (const QPoint &at) |
void | init_terminal_size (void) |
void | notice_settings (const QSettings *settings) |
void | pasteClipboard (void) |
void | selectAll (void) |
void | set_global_shortcuts (bool focus_out) |
void | terminal_interrupt (void) |
Signals | |
void | edit_mfile_request (const QString &, int) |
void | interrupt_signal (void) |
void | report_status_message (const QString &) |
void | set_global_shortcuts_signal (bool) |
void | set_screen_size_signal (int, int) |
void | terminated (void) |
void | titleChanged (const QString &) |
Public Member Functions | |
QWinTerminalImpl (QWidget *parent=0) | |
QWinTerminalImpl (const QString &cmd, QWidget *parent=0) | |
~QWinTerminalImpl (void) | |
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 QStringList | color_names (void) |
static QTerminal * | create (QWidget *xparent=0) |
static QList< QColor > | default_colors (void) |
Protected Member Functions | |
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 | |
bool | _extra_interrupt |
bool | allowTripleClick |
QConsolePrivate * | d |
Friends | |
class | QConsolePrivate |
class | QConsoleThread |
class | QConsoleView |
Definition at line 44 of file QWinTerminalImpl.h.
|
inherited |
Enumerator | |
---|---|
UnderlineCursor | |
BlockCursor | |
IBeamCursor |
Definition at line 64 of file QTerminal.h.
QWinTerminalImpl::QWinTerminalImpl | ( | QWidget * | parent = 0 | ) |
Definition at line 1428 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 1447 of file QWinTerminalImpl.cpp.
QWinTerminalImpl::~QWinTerminalImpl | ( | void | ) |
Definition at line 1454 of file QWinTerminalImpl.cpp.
References d.
|
slot |
Definition at line 1559 of file QWinTerminalImpl.cpp.
References QConsolePrivate::cursorRect(), d, QConsolePrivate::m_consoleView, QConsolePrivate::m_cursorBlinking, and QConsolePrivate::m_hasBlinkingCursor.
Referenced by keyPressEvent(), QConsolePrivate::QConsolePrivate(), and setBlinkingCursorState().
|
staticinherited |
Definition at line 59 of file QTerminal.cc.
Referenced by resource_manager::terminal_color_names().
|
slot |
Definition at line 1771 of file QWinTerminalImpl.cpp.
References _extra_interrupt, d, QConsolePrivate::getSelection(), QTerminal::report_status_message(), and QTerminal::terminal_interrupt().
Definition at line 33 of file QTerminal.cc.
|
staticinherited |
Definition at line 43 of file QTerminal.cc.
Referenced by QTerminal::notice_settings(), and resource_manager::terminal_default_colors().
|
protected |
Definition at line 1824 of file QWinTerminalImpl.cpp.
|
protected |
Definition at line 1834 of file QWinTerminalImpl.cpp.
References sendText(), and url.
|
slotinherited |
Definition at line 131 of file QTerminal.cc.
References QTerminal::_edit_action, QTerminal::edit_mfile_request(), and file.
Referenced by QTerminal::QTerminal().
|
signalinherited |
Definition at line 142 of file moc-QTerminal.cc.
Referenced by QTerminal::edit_file(), and QTerminal::QTerminal().
Definition at line 1657 of file QWinTerminalImpl.cpp.
References k, and sendText().
|
protected |
Definition at line 1636 of file QWinTerminalImpl.cpp.
References set_global_shortcuts_signal(), and setBlinkingCursorState().
|
protected |
Definition at line 1645 of file QWinTerminalImpl.cpp.
References d, QConsolePrivate::m_cursorBlinking, set_global_shortcuts_signal(), and setBlinkingCursorState().
|
virtualslotinherited |
Definition at line 94 of file QTerminal.cc.
References QTerminal::_contextMenu, QTerminal::_copy_action, QTerminal::_edit_action, QTerminal::_paste_action, arg, file, and QTerminal::selectedText().
Referenced by QUnixTerminalImpl::initialize(), and QTerminal::QTerminal().
|
virtual |
Implements QTerminal.
Definition at line 1852 of file QWinTerminalImpl.cpp.
References _extra_interrupt.
|
privateslot |
Definition at line 1612 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::setHorizontalScrollValue().
Referenced by QConsolePrivate::QConsolePrivate().
|
slot |
Definition at line 1592 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::updateConsoleSize().
|
signalinherited |
Definition at line 136 of file moc-QTerminal.cc.
Referenced by QUnixTerminalImpl::initialize(), and QTerminal::terminal_interrupt().
|
protected |
Definition at line 1673 of file QWinTerminalImpl.cpp.
References QConsolePrivate::BLINK_DELAY, blinkCursorEvent(), d, QConsolePrivate::m_blinkCursorTimer, QConsolePrivate::m_cursorBlinking, QConsolePrivate::m_hasBlinkingCursor, s, sendText(), and translateKey().
|
privateslot |
Definition at line 1624 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::monitorConsole().
|
protected |
Definition at line 1495 of file QWinTerminalImpl.cpp.
References allowTripleClick, d, QConsolePrivate::m_settingSelection, QConsolePrivate::posToCell(), QConsolePrivate::selectWord(), and tripleClickTimeout().
|
protected |
Definition at line 1459 of file QWinTerminalImpl.cpp.
References d, QConsolePrivate::m_endSelection, QConsolePrivate::m_settingSelection, QConsolePrivate::posToCell(), and updateSelection().
|
protected |
Definition at line 1469 of file QWinTerminalImpl.cpp.
References allowTripleClick, d, QConsolePrivate::m_beginSelection, QConsolePrivate::m_settingSelection, mouseTripleClickEvent(), and QConsolePrivate::posToCell().
|
protected |
Definition at line 1483 of file QWinTerminalImpl.cpp.
References d, QConsolePrivate::m_endSelection, QConsolePrivate::m_settingSelection, QConsolePrivate::posToCell(), and updateSelection().
|
protected |
Definition at line 1512 of file QWinTerminalImpl.cpp.
References d, QConsolePrivate::posToCell(), and QConsolePrivate::selectLine().
Referenced by mousePressEvent().
|
slotinherited |
Definition at line 140 of file QTerminal.cc.
References QTerminal::_interrupt_action, QTerminal::_nop_action, QTerminal::BlockCursor, QTerminal::default_colors(), QTerminal::has_extra_interrupt(), QTerminal::IBeamCursor, sc, QTerminal::setBackgroundColor(), QTerminal::setCursorColor(), QTerminal::setCursorType(), QTerminal::setForegroundColor(), QTerminal::setScrollBufferSize(), QTerminal::setSelectionColor(), QTerminal::setTerminalFont(), and QTerminal::UnderlineCursor.
Referenced by QTerminal::QTerminal().
|
slot |
Definition at line 1793 of file QWinTerminalImpl.cpp.
References sendText(), and text::text().
|
signalinherited |
Definition at line 129 of file moc-QTerminal.cc.
Referenced by copyClipboard(), and QTerminal::QTerminal().
|
slot |
Definition at line 1805 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::selectAll().
|
virtual |
Implements QTerminal.
Definition at line 1816 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::getSelection().
|
virtual |
Implements QTerminal.
Definition at line 1699 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::sendConsoleText().
Referenced by dropEvent(), eventFilter(), keyPressEvent(), and pasteClipboard().
|
slotinherited |
Definition at line 76 of file QTerminal.cc.
References QTerminal::_interrupt_action, and QTerminal::_nop_action.
Referenced by QWinTerminalImpl().
|
signal |
Referenced by focusInEvent(), focusOutEvent(), and QWinTerminalImpl().
Referenced by QWinTerminalImpl(), and setSize().
|
virtual |
Implements QTerminal.
Definition at line 1724 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::setBackgroundColor().
|
protected |
Definition at line 1569 of file QWinTerminalImpl.cpp.
References d, QConsolePrivate::m_hasBlinkingCursor, and setBlinkingCursorState().
Referenced by setCursorType().
|
protected |
Definition at line 1576 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 1739 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::setCursorColor().
|
virtual |
Reimplemented from QTerminal.
Definition at line 1704 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 1729 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::setForegroundColor().
|
virtual |
Implements QTerminal.
Definition at line 1745 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::setScrollBufferSize().
|
virtual |
Implements QTerminal.
Definition at line 1734 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::setSelectionColor().
Implements QTerminal.
Definition at line 1762 of file QWinTerminalImpl.cpp.
References d, QConsolePrivate::log(), and set_screen_size_signal().
Referenced by QConsolePrivate::updateConsoleSize().
|
virtual |
Implements QTerminal.
Definition at line 1753 of file QWinTerminalImpl.cpp.
References d, f, QConsolePrivate::m_consoleView, QConsolePrivate::m_font, and QConsolePrivate::updateConsoleSize().
|
protectedvirtual |
Definition at line 1692 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::startCommand().
Referenced by QConsoleThread::run().
|
inlineslotinherited |
Definition at line 113 of file QTerminal.h.
References QTerminal::interrupt_signal().
Referenced by copyClipboard(), QUnixTerminalImpl::initialize(), and QTerminal::QTerminal().
|
signal |
Referenced by QConsolePrivate::QConsolePrivate().
|
signal |
Referenced by QConsolePrivate::monitorConsole().
|
privateslot |
Definition at line 1520 of file QWinTerminalImpl.cpp.
References allowTripleClick.
Referenced by mouseDoubleClickEvent().
|
privateslot |
Definition at line 1629 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::updateSelection().
Referenced by mouseMoveEvent(), and mouseReleaseEvent().
|
privateslot |
Definition at line 1617 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::setVerticalScrollValue().
Referenced by QConsolePrivate::QConsolePrivate().
|
protected |
Definition at line 1535 of file QWinTerminalImpl.cpp.
References d, QConsolePrivate::drawCursor(), QConsolePrivate::drawSelection(), QConsolePrivate::drawText(), QConsolePrivate::drawTextBackground(), QConsolePrivate::m_charSize, QConsolePrivate::m_consoleRect, and p.
Referenced by QConsoleView::paintEvent().
|
protected |
Definition at line 1527 of file QWinTerminalImpl.cpp.
References d, QConsolePrivate::grabConsoleBuffer(), and QConsolePrivate::updateConsoleSize().
Referenced by QConsoleView::resizeEvent().
|
protected |
Definition at line 1599 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().
|
private |
Definition at line 115 of file QWinTerminalImpl.h.
Referenced by copyClipboard(), and has_extra_interrupt().
|
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 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(), wheelEvent(), and ~QWinTerminalImpl().