GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
Public Types | |
enum | KeyboardCursorType { BlockCursor, UnderlineCursor, IBeamCursor } |
Public Member Functions | |
QConsolePrivate (QWinTerminalImpl *parent, const QString &cmd=QString()) | |
~QConsolePrivate (void) | |
QColor | backgroundColor (void) const |
void | clearSelection (void) |
void | closeStandardIO (int fd, DWORD stdHandleId, const char *name) |
QColor | cursorColor (void) const |
QRect | cursorRect (void) |
void | drawCursor (QPainter &p) |
void | drawSelection (QPainter &p, int cx1, int cy1, int cx2, int cy2, int cw, int ch) |
void | drawText (QPainter &p, int cx1, int cy1, int cx2, int cy2, int cw, int ch) |
void | drawTextBackground (QPainter &p, int cx1, int cy1, int cx2, int cy2, int cw, int ch) |
QColor | foregroundColor (void) const |
QString | getSelection (void) |
void | grabConsoleBuffer (CHAR_INFO *buf=0) |
void | log (const char *fmt,...) |
void | monitorConsole (void) |
QPoint | posToCell (const QPoint &pt) |
QColor | selectionColor (void) const |
void | sendConsoleText (const QString &s) |
void | setBackgroundColor (const QColor &color) |
void | setCursorColor (bool useForegroundColor, const QColor &color) |
void | setForegroundColor (const QColor &color) |
void | setScrollValue (int value) |
void | setSelectionColor (const QColor &color) |
void | setupStandardIO (DWORD stdHandleId, int fd, const char *name, const char *devName) |
void | startCommand (void) |
void | syncConsoleParameters (void) |
void | updateConsoleSize (bool sync=false) |
void | updateConsoleView (bool grab=true) |
void | updateScrollBar (void) |
void | updateSelection (void) |
Private Attributes | |
QPoint | m_beginSelection |
QTimer * | m_blinkCursorTimer |
CHAR_INFO * | m_buffer |
QSize | m_bufferSize |
QSize | m_charSize |
QConsoleColors | m_colors |
QString | m_command |
QRect | m_consoleRect |
QConsoleThread * | m_consoleThread |
QConsoleView * | m_consoleView |
QTimer * | m_consoleWatcher |
HWND | m_consoleWindow |
bool | m_cursorBlinking |
QColor | m_cursorColor |
QPoint | m_cursorPos |
KeyboardCursorType | m_cursorType |
QPoint | m_endSelection |
QFont | m_font |
bool | m_hasBlinkingCursor |
bool | m_inWheelEvent |
HANDLE | m_process |
QScrollBar * | m_scrollBar |
QColor | m_selectionColor |
bool | m_settingSelection |
HANDLE | m_stdOut |
QString | m_title |
CHAR_INFO * | m_tmpBuffer |
QWinTerminalImpl * | q |
Static Private Attributes | |
static const int | BLINK_DELAY = 500 |
Friends | |
class | QWinTerminalImpl |
Definition at line 160 of file QWinTerminalImpl.cpp.
Definition at line 166 of file QWinTerminalImpl.cpp.
QConsolePrivate::QConsolePrivate | ( | QWinTerminalImpl * | parent, |
const QString & | cmd = QString () |
||
) |
Definition at line 269 of file QWinTerminalImpl.cpp.
References backgroundColor(), QWinTerminalImpl::blinkCursorEvent(), closeStandardIO(), log(), m_blinkCursorTimer, m_buffer, m_bufferSize, m_command, m_consoleRect, m_consoleThread, m_consoleView, m_consoleWatcher, m_consoleWindow, m_cursorPos, m_font, m_scrollBar, m_stdOut, m_tmpBuffer, monitorConsole(), q, QWinTerminalImpl::QConsoleThread, QWinTerminalImpl::QConsoleView, QWinTerminalImpl::scrollValueChanged(), setBackgroundColor(), setCursorColor(), setForegroundColor(), setSelectionColor(), setupStandardIO(), QWinTerminalImpl::terminated(), and updateScrollBar().
QConsolePrivate::~QConsolePrivate | ( | void | ) |
Definition at line 427 of file QWinTerminalImpl.cpp.
References m_buffer, m_consoleThread, m_process, and m_tmpBuffer.
QColor QConsolePrivate::backgroundColor | ( | void | ) | const |
Definition at line 555 of file QWinTerminalImpl.cpp.
References m_colors.
Referenced by QConsolePrivate().
Definition at line 548 of file QWinTerminalImpl.cpp.
References m_beginSelection, m_consoleView, and m_endSelection.
Referenced by sendConsoleText().
Definition at line 837 of file QWinTerminalImpl.cpp.
References log().
Referenced by QConsolePrivate().
QColor QConsolePrivate::cursorColor | ( | void | ) | const |
Definition at line 570 of file QWinTerminalImpl.cpp.
References foregroundColor(), and m_cursorColor.
Referenced by drawCursor().
QRect QConsolePrivate::cursorRect | ( | void | ) |
Definition at line 1220 of file QWinTerminalImpl.cpp.
References m_charSize, m_consoleRect, and m_cursorPos.
Referenced by QWinTerminalImpl::blinkCursorEvent(), and drawCursor().
void QConsolePrivate::drawCursor | ( | QPainter & | p | ) |
Definition at line 729 of file QWinTerminalImpl.cpp.
References BlockCursor, cursorColor(), cursorRect(), IBeamCursor, m_cursorBlinking, m_cursorType, q, and UnderlineCursor.
Referenced by QWinTerminalImpl::viewPaintEvent().
void QConsolePrivate::drawSelection | ( | QPainter & | p, |
int | cx1, | ||
int | cy1, | ||
int | cx2, | ||
int | cy2, | ||
int | cw, | ||
int | ch | ||
) |
Definition at line 657 of file QWinTerminalImpl.cpp.
References m_beginSelection, m_buffer, m_consoleRect, m_endSelection, maybeSwapPoints(), and selectionColor().
Referenced by QWinTerminalImpl::viewPaintEvent().
Definition at line 771 of file QWinTerminalImpl.cpp.
References foregroundColor(), m_buffer, m_colors, m_consoleRect, m_font, and x.
Referenced by QWinTerminalImpl::viewPaintEvent().
void QConsolePrivate::drawTextBackground | ( | QPainter & | p, |
int | cx1, | ||
int | cy1, | ||
int | cx2, | ||
int | cy2, | ||
int | cw, | ||
int | ch | ||
) |
Definition at line 596 of file QWinTerminalImpl.cpp.
References m_buffer, m_colors, m_consoleRect, and x.
Referenced by QWinTerminalImpl::viewPaintEvent().
QColor QConsolePrivate::foregroundColor | ( | void | ) | const |
Definition at line 560 of file QWinTerminalImpl.cpp.
References m_colors.
Referenced by cursorColor(), and drawText().
QString QConsolePrivate::getSelection | ( | void | ) |
Definition at line 476 of file QWinTerminalImpl.cpp.
References m_beginSelection, m_bufferSize, m_endSelection, m_stdOut, and maybeSwapPoints().
Referenced by QWinTerminalImpl::copyClipboard(), and QWinTerminalImpl::selectedText().
void QConsolePrivate::grabConsoleBuffer | ( | CHAR_INFO * | buf = 0 | ) |
Definition at line 971 of file QWinTerminalImpl.cpp.
References m_buffer, m_consoleRect, and m_stdOut.
Referenced by monitorConsole(), updateConsoleView(), and QWinTerminalImpl::viewResizeEvent().
Definition at line 848 of file QWinTerminalImpl.cpp.
References LOGFILENAME.
Referenced by closeStandardIO(), QConsolePrivate(), setScrollValue(), setupStandardIO(), syncConsoleParameters(), updateConsoleSize(), and updateScrollBar().
Definition at line 1049 of file QWinTerminalImpl.cpp.
References grabConsoleBuffer(), m_buffer, m_bufferSize, m_charSize, m_consoleRect, m_consoleView, m_cursorPos, m_title, m_tmpBuffer, q, QWinTerminalImpl::titleChanged(), updateConsoleView(), and updateScrollBar().
Referenced by QWinTerminalImpl::monitorConsole(), and QConsolePrivate().
QPoint QConsolePrivate::posToCell | ( | const QPoint & | pt | ) |
Definition at line 470 of file QWinTerminalImpl.cpp.
References m_charSize, and m_consoleRect.
Referenced by QWinTerminalImpl::mouseMoveEvent(), QWinTerminalImpl::mousePressEvent(), and QWinTerminalImpl::mouseReleaseEvent().
QColor QConsolePrivate::selectionColor | ( | void | ) | const |
Definition at line 565 of file QWinTerminalImpl.cpp.
References m_selectionColor.
Referenced by drawSelection().
void QConsolePrivate::sendConsoleText | ( | const QString & | s | ) |
Definition at line 1162 of file QWinTerminalImpl.cpp.
References clearSelection(), m_consoleWindow, and TEXT_CHUNK_SIZE.
Referenced by QWinTerminalImpl::sendText().
void QConsolePrivate::setBackgroundColor | ( | const QColor & | color | ) |
Definition at line 575 of file QWinTerminalImpl.cpp.
References m_colors.
Referenced by QConsolePrivate(), and QWinTerminalImpl::setBackgroundColor().
Definition at line 590 of file QWinTerminalImpl.cpp.
References m_cursorColor.
Referenced by QConsolePrivate(), and QWinTerminalImpl::setCursorColor().
void QConsolePrivate::setForegroundColor | ( | const QColor & | color | ) |
Definition at line 580 of file QWinTerminalImpl.cpp.
References m_colors.
Referenced by QConsolePrivate(), and QWinTerminalImpl::setForegroundColor().
Definition at line 1010 of file QWinTerminalImpl.cpp.
References log(), m_bufferSize, m_consoleRect, m_stdOut, and updateConsoleView().
Referenced by QWinTerminalImpl::scrollValueChanged().
void QConsolePrivate::setSelectionColor | ( | const QColor & | color | ) |
Definition at line 585 of file QWinTerminalImpl.cpp.
References m_selectionColor.
Referenced by QConsolePrivate(), and QWinTerminalImpl::setSelectionColor().
void QConsolePrivate::setupStandardIO | ( | DWORD | stdHandleId, |
int | fd, | ||
const char * | name, | ||
const char * | devName | ||
) |
Definition at line 442 of file QWinTerminalImpl.cpp.
References log().
Referenced by QConsolePrivate().
Definition at line 1124 of file QWinTerminalImpl.cpp.
References INFINITE, m_command, and m_process.
Referenced by QWinTerminalImpl::start().
Definition at line 910 of file QWinTerminalImpl.cpp.
References log(), m_buffer, m_bufferSize, m_consoleRect, m_stdOut, and m_tmpBuffer.
Referenced by updateConsoleSize().
Definition at line 874 of file QWinTerminalImpl.cpp.
References log(), m_bufferSize, m_charSize, m_consoleRect, m_consoleView, m_font, syncConsoleParameters(), and updateScrollBar().
Referenced by QWinTerminalImpl::setTerminalFont(), and QWinTerminalImpl::viewResizeEvent().
Definition at line 1039 of file QWinTerminalImpl.cpp.
References grabConsoleBuffer(), m_consoleView, and m_consoleWatcher.
Referenced by monitorConsole(), and setScrollValue().
Definition at line 992 of file QWinTerminalImpl.cpp.
References log(), m_bufferSize, m_consoleRect, and m_scrollBar.
Referenced by monitorConsole(), QConsolePrivate(), and updateConsoleSize().
Definition at line 535 of file QWinTerminalImpl.cpp.
References m_beginSelection, m_consoleRect, m_consoleView, m_endSelection, and maybeSwapPoints().
Referenced by QWinTerminalImpl::updateSelection().
|
friend |
Definition at line 162 of file QWinTerminalImpl.cpp.
|
staticprivate |
Definition at line 257 of file QWinTerminalImpl.cpp.
Referenced by QWinTerminalImpl::keyPressEvent(), and QWinTerminalImpl::setBlinkingCursorState().
|
private |
Definition at line 238 of file QWinTerminalImpl.cpp.
Referenced by clearSelection(), drawSelection(), getSelection(), QWinTerminalImpl::mousePressEvent(), and updateSelection().
|
private |
Definition at line 235 of file QWinTerminalImpl.cpp.
Referenced by QWinTerminalImpl::keyPressEvent(), QConsolePrivate(), and QWinTerminalImpl::setBlinkingCursorState().
|
private |
Definition at line 247 of file QWinTerminalImpl.cpp.
Referenced by drawSelection(), drawText(), drawTextBackground(), grabConsoleBuffer(), monitorConsole(), QConsolePrivate(), syncConsoleParameters(), and ~QConsolePrivate().
|
private |
Definition at line 230 of file QWinTerminalImpl.cpp.
Referenced by getSelection(), monitorConsole(), QConsolePrivate(), setScrollValue(), syncConsoleParameters(), updateConsoleSize(), and updateScrollBar().
|
private |
Definition at line 229 of file QWinTerminalImpl.cpp.
Referenced by cursorRect(), monitorConsole(), posToCell(), updateConsoleSize(), and QWinTerminalImpl::viewPaintEvent().
|
private |
Definition at line 225 of file QWinTerminalImpl.cpp.
Referenced by backgroundColor(), drawText(), drawTextBackground(), foregroundColor(), setBackgroundColor(), and setForegroundColor().
|
private |
Definition at line 224 of file QWinTerminalImpl.cpp.
Referenced by QConsolePrivate(), and startCommand().
|
private |
Definition at line 231 of file QWinTerminalImpl.cpp.
Referenced by cursorRect(), drawSelection(), drawText(), drawTextBackground(), grabConsoleBuffer(), monitorConsole(), posToCell(), QConsolePrivate(), setScrollValue(), syncConsoleParameters(), updateConsoleSize(), updateScrollBar(), updateSelection(), and QWinTerminalImpl::viewPaintEvent().
|
private |
Definition at line 254 of file QWinTerminalImpl.cpp.
Referenced by QConsolePrivate(), and ~QConsolePrivate().
|
private |
Definition at line 251 of file QWinTerminalImpl.cpp.
Referenced by QWinTerminalImpl::blinkCursorEvent(), clearSelection(), monitorConsole(), QConsolePrivate(), QWinTerminalImpl::setTerminalFont(), updateConsoleSize(), updateConsoleView(), and updateSelection().
|
private |
Definition at line 253 of file QWinTerminalImpl.cpp.
Referenced by QConsolePrivate(), and updateConsoleView().
|
private |
Definition at line 246 of file QWinTerminalImpl.cpp.
Referenced by QConsolePrivate(), and sendConsoleText().
|
private |
Definition at line 233 of file QWinTerminalImpl.cpp.
Referenced by QWinTerminalImpl::blinkCursorEvent(), drawCursor(), QWinTerminalImpl::focusOutEvent(), QWinTerminalImpl::keyPressEvent(), and QWinTerminalImpl::setBlinkingCursorState().
|
private |
Definition at line 243 of file QWinTerminalImpl.cpp.
Referenced by cursorColor(), and setCursorColor().
|
private |
Definition at line 232 of file QWinTerminalImpl.cpp.
Referenced by cursorRect(), monitorConsole(), and QConsolePrivate().
|
private |
Definition at line 236 of file QWinTerminalImpl.cpp.
Referenced by drawCursor(), and QWinTerminalImpl::setCursorType().
|
private |
Definition at line 239 of file QWinTerminalImpl.cpp.
Referenced by clearSelection(), drawSelection(), getSelection(), QWinTerminalImpl::mouseMoveEvent(), QWinTerminalImpl::mouseReleaseEvent(), and updateSelection().
|
private |
Definition at line 223 of file QWinTerminalImpl.cpp.
Referenced by drawText(), QConsolePrivate(), QWinTerminalImpl::setTerminalFont(), and updateConsoleSize().
|
private |
Definition at line 234 of file QWinTerminalImpl.cpp.
Referenced by QWinTerminalImpl::blinkCursorEvent(), QWinTerminalImpl::keyPressEvent(), and QWinTerminalImpl::setBlinkingCursor().
|
private |
Definition at line 226 of file QWinTerminalImpl.cpp.
Referenced by QWinTerminalImpl::wheelEvent().
|
private |
Definition at line 249 of file QWinTerminalImpl.cpp.
Referenced by startCommand(), and ~QConsolePrivate().
|
private |
Definition at line 252 of file QWinTerminalImpl.cpp.
Referenced by QConsolePrivate(), updateScrollBar(), and QWinTerminalImpl::wheelEvent().
|
private |
Definition at line 242 of file QWinTerminalImpl.cpp.
Referenced by selectionColor(), and setSelectionColor().
|
private |
Definition at line 240 of file QWinTerminalImpl.cpp.
Referenced by QWinTerminalImpl::mouseMoveEvent(), QWinTerminalImpl::mousePressEvent(), and QWinTerminalImpl::mouseReleaseEvent().
|
private |
Definition at line 245 of file QWinTerminalImpl.cpp.
Referenced by getSelection(), grabConsoleBuffer(), QConsolePrivate(), setScrollValue(), and syncConsoleParameters().
|
private |
Definition at line 227 of file QWinTerminalImpl.cpp.
Referenced by monitorConsole().
|
private |
Definition at line 248 of file QWinTerminalImpl.cpp.
Referenced by monitorConsole(), QConsolePrivate(), syncConsoleParameters(), and ~QConsolePrivate().
|
private |
Definition at line 220 of file QWinTerminalImpl.cpp.
Referenced by drawCursor(), monitorConsole(), and QConsolePrivate().