GNU Octave
4.0.0
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) |
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 | 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 1421 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 1440 of file QWinTerminalImpl.cpp.
QWinTerminalImpl::~QWinTerminalImpl | ( | void | ) |
Definition at line 1447 of file QWinTerminalImpl.cpp.
References d.
|
slot |
Definition at line 1552 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.
References names().
Referenced by resource_manager::terminal_color_names().
|
slot |
Definition at line 1764 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 1817 of file QWinTerminalImpl.cpp.
|
protected |
Definition at line 1827 of file QWinTerminalImpl.cpp.
References sendText().
Definition at line 1650 of file QWinTerminalImpl.cpp.
References sendText().
|
protected |
Definition at line 1629 of file QWinTerminalImpl.cpp.
References set_global_shortcuts_signal(), and setBlinkingCursorState().
|
protected |
Definition at line 1638 of file QWinTerminalImpl.cpp.
References d, QConsolePrivate::m_cursorBlinking, set_global_shortcuts_signal(), and setBlinkingCursorState().
|
inlinevirtualslotinherited |
Definition at line 105 of file QTerminal.h.
References QTerminal::_contextMenu, QTerminal::_copy_action, QTerminal::_paste_action, jit_convention::length, and QTerminal::selectedText().
Referenced by QUnixTerminalImpl::initialize(), and QTerminal::QTerminal().
|
virtual |
Implements QTerminal.
Definition at line 1845 of file QWinTerminalImpl.cpp.
References _extra_interrupt.
|
privateslot |
Definition at line 1605 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::setHorizontalScrollValue().
Referenced by QConsolePrivate::QConsolePrivate().
|
slot |
Definition at line 1585 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::updateConsoleSize().
|
signalinherited |
Definition at line 130 of file moc-QTerminal.cc.
Referenced by QUnixTerminalImpl::initialize(), and QTerminal::terminal_interrupt().
|
protected |
Definition at line 1666 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 1617 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::monitorConsole().
|
protected |
Definition at line 1488 of file QWinTerminalImpl.cpp.
References allowTripleClick, d, QConsolePrivate::m_settingSelection, QConsolePrivate::posToCell(), QConsolePrivate::selectWord(), and tripleClickTimeout().
|
protected |
Definition at line 1452 of file QWinTerminalImpl.cpp.
References d, QConsolePrivate::m_endSelection, QConsolePrivate::m_settingSelection, QConsolePrivate::posToCell(), and updateSelection().
|
protected |
Definition at line 1462 of file QWinTerminalImpl.cpp.
References allowTripleClick, d, QConsolePrivate::m_beginSelection, QConsolePrivate::m_settingSelection, mouseTripleClickEvent(), and QConsolePrivate::posToCell().
|
protected |
Definition at line 1476 of file QWinTerminalImpl.cpp.
References d, QConsolePrivate::m_endSelection, QConsolePrivate::m_settingSelection, QConsolePrivate::posToCell(), and updateSelection().
|
protected |
Definition at line 1505 of file QWinTerminalImpl.cpp.
References d, QConsolePrivate::posToCell(), and QConsolePrivate::selectLine().
Referenced by mousePressEvent().
|
slotinherited |
Definition at line 86 of file QTerminal.cc.
References QTerminal::_interrupt_action, QTerminal::BlockCursor, QTerminal::default_colors(), QTerminal::has_extra_interrupt(), QTerminal::IBeamCursor, 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 1786 of file QWinTerminalImpl.cpp.
References sendText(), and text::text().
|
signalinherited |
Definition at line 123 of file moc-QTerminal.cc.
Referenced by copyClipboard(), and QTerminal::QTerminal().
|
slot |
Definition at line 1798 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::selectAll().
|
virtual |
Implements QTerminal.
Definition at line 1809 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::getSelection().
|
virtual |
Implements QTerminal.
Definition at line 1692 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.
Referenced by QWinTerminalImpl().
|
signal |
Referenced by focusInEvent(), focusOutEvent(), and QWinTerminalImpl().
Referenced by QWinTerminalImpl(), and setSize().
|
virtual |
Implements QTerminal.
Definition at line 1717 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::setBackgroundColor().
|
protected |
Definition at line 1562 of file QWinTerminalImpl.cpp.
References d, QConsolePrivate::m_hasBlinkingCursor, and setBlinkingCursorState().
Referenced by setCursorType().
|
protected |
Definition at line 1569 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 1732 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::setCursorColor().
|
virtual |
Reimplemented from QTerminal.
Definition at line 1697 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 1722 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::setForegroundColor().
|
virtual |
Implements QTerminal.
Definition at line 1738 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::setScrollBufferSize().
|
virtual |
Implements QTerminal.
Definition at line 1727 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::setSelectionColor().
Implements QTerminal.
Definition at line 1755 of file QWinTerminalImpl.cpp.
References d, QConsolePrivate::log(), and set_screen_size_signal().
Referenced by QConsolePrivate::updateConsoleSize().
|
virtual |
Implements QTerminal.
Definition at line 1746 of file QWinTerminalImpl.cpp.
References d, f, QConsolePrivate::m_consoleView, QConsolePrivate::m_font, and QConsolePrivate::updateConsoleSize().
|
protectedvirtual |
Definition at line 1685 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::startCommand().
Referenced by QConsoleThread::run().
|
inlineslotinherited |
Definition at line 120 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 1513 of file QWinTerminalImpl.cpp.
References allowTripleClick.
Referenced by mouseDoubleClickEvent().
|
privateslot |
Definition at line 1622 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::updateSelection().
Referenced by mouseMoveEvent(), and mouseReleaseEvent().
|
privateslot |
Definition at line 1610 of file QWinTerminalImpl.cpp.
References d, and QConsolePrivate::setVerticalScrollValue().
Referenced by QConsolePrivate::QConsolePrivate().
|
protected |
Definition at line 1528 of file QWinTerminalImpl.cpp.
References d, QConsolePrivate::drawCursor(), QConsolePrivate::drawSelection(), QConsolePrivate::drawText(), QConsolePrivate::drawTextBackground(), QConsolePrivate::m_charSize, and QConsolePrivate::m_consoleRect.
Referenced by QConsoleView::paintEvent().
|
protected |
Definition at line 1520 of file QWinTerminalImpl.cpp.
References d, QConsolePrivate::grabConsoleBuffer(), and QConsolePrivate::updateConsoleSize().
Referenced by QConsoleView::resizeEvent().
|
protected |
Definition at line 1592 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().