GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
QConsolePrivate Class Reference
Collaboration diagram for QConsolePrivate:

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)
 
void selectAll ()
 
QColor selectionColor (void) const
 
void selectLine (const QPoint &cellPos)
 
void selectWord (const QPoint &cellPos)
 
void sendConsoleText (const QString &s)
 
void setBackgroundColor (const QColor &color)
 
void setCursorColor (bool useForegroundColor, const QColor &color)
 
void setForegroundColor (const QColor &color)
 
void setHorizontalScrollValue (int value)
 
void setScrollBufferSize (int value)
 
void setSelectionColor (const QColor &color)
 
void setupStandardIO (DWORD stdHandleId, int fd, const char *name, const char *devName)
 
void setVerticalScrollValue (int value)
 
void startCommand (void)
 
void syncConsoleParameters (void)
 
void updateConsoleSize (bool sync=false, bool allow_smaller_width=false)
 
void updateConsoleView (bool grab=true)
 
void updateHorizontalScrollBar (void)
 
void updateSelection (void)
 
void updateVerticalScrollBar (void)
 

Private Attributes

bool m_auto_scroll
 
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
 
QConsoleThreadm_consoleThread
 
QConsoleViewm_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
 
QScrollBar * m_horizontalScrollBar
 
bool m_inWheelEvent
 
HANDLE m_process
 
QColor m_selectionColor
 
bool m_settingSelection
 
HANDLE m_stdOut
 
QString m_title
 
CHAR_INFO * m_tmpBuffer
 
QScrollBar * m_verticalScrollBar
 
QWinTerminalImplq
 

Static Private Attributes

static const int BLINK_DELAY = 500
 

Friends

class QWinTerminalImpl
 

Detailed Description

Definition at line 166 of file QWinTerminalImpl.cpp.

Member Enumeration Documentation

◆ KeyboardCursorType

Enumerator
BlockCursor 
UnderlineCursor 
IBeamCursor 

Definition at line 172 of file QWinTerminalImpl.cpp.

Constructor & Destructor Documentation

◆ QConsolePrivate()

◆ ~QConsolePrivate()

QConsolePrivate::~QConsolePrivate ( void  )

Definition at line 453 of file QWinTerminalImpl.cpp.

References m_buffer, m_consoleThread, m_process, and m_tmpBuffer.

Member Function Documentation

◆ backgroundColor()

QColor QConsolePrivate::backgroundColor ( void  ) const

Definition at line 582 of file QWinTerminalImpl.cpp.

References m_colors.

Referenced by QConsolePrivate(), and QWinTerminalImpl::viewPaintEvent().

◆ clearSelection()

void QConsolePrivate::clearSelection ( void  )

Definition at line 575 of file QWinTerminalImpl.cpp.

References m_beginSelection, m_consoleView, and m_endSelection.

Referenced by sendConsoleText().

◆ closeStandardIO()

void QConsolePrivate::closeStandardIO ( int  fd,
DWORD  stdHandleId,
const char *  name 
)

Definition at line 959 of file QWinTerminalImpl.cpp.

References log().

Referenced by QConsolePrivate().

◆ cursorColor()

QColor QConsolePrivate::cursorColor ( void  ) const

Definition at line 597 of file QWinTerminalImpl.cpp.

References foregroundColor(), and m_cursorColor.

Referenced by drawCursor().

◆ cursorRect()

QRect QConsolePrivate::cursorRect ( void  )

Definition at line 1428 of file QWinTerminalImpl.cpp.

References m_charSize, m_consoleRect, and m_cursorPos.

Referenced by QWinTerminalImpl::blinkCursorEvent(), and drawCursor().

◆ drawCursor()

void QConsolePrivate::drawCursor ( QPainter p)

◆ drawSelection()

void QConsolePrivate::drawSelection ( QPainter p,
int  cx1,
int  cy1,
int  cx2,
int  cy2,
int  cw,
int  ch 
)

◆ drawText()

void QConsolePrivate::drawText ( QPainter p,
int  cx1,
int  cy1,
int  cx2,
int  cy2,
int  cw,
int  ch 
)

Definition at line 893 of file QWinTerminalImpl.cpp.

References foregroundColor(), m_buffer, m_colors, m_consoleRect, m_font, and x.

Referenced by QWinTerminalImpl::viewPaintEvent().

◆ drawTextBackground()

void QConsolePrivate::drawTextBackground ( QPainter p,
int  cx1,
int  cy1,
int  cx2,
int  cy2,
int  cw,
int  ch 
)

Definition at line 637 of file QWinTerminalImpl.cpp.

References len, m_buffer, m_colors, m_consoleRect, and x.

Referenced by QWinTerminalImpl::viewPaintEvent().

◆ foregroundColor()

QColor QConsolePrivate::foregroundColor ( void  ) const

Definition at line 587 of file QWinTerminalImpl.cpp.

References m_colors.

Referenced by cursorColor(), and drawText().

◆ getSelection()

QString QConsolePrivate::getSelection ( void  )

◆ grabConsoleBuffer()

void QConsolePrivate::grabConsoleBuffer ( CHAR_INFO *  buf = 0)

◆ log()

◆ monitorConsole()

◆ posToCell()

◆ selectAll()

void QConsolePrivate::selectAll ( void  )

◆ selectionColor()

QColor QConsolePrivate::selectionColor ( void  ) const

Definition at line 592 of file QWinTerminalImpl.cpp.

References m_selectionColor.

Referenced by drawSelection().

◆ selectLine()

void QConsolePrivate::selectLine ( const QPoint &  cellPos)

◆ selectWord()

void QConsolePrivate::selectWord ( const QPoint &  cellPos)

◆ sendConsoleText()

void QConsolePrivate::sendConsoleText ( const QString &  s)

Definition at line 1360 of file QWinTerminalImpl.cpp.

References clearSelection(), len, m_auto_scroll, and TEXT_CHUNK_SIZE.

Referenced by QWinTerminalImpl::sendText().

◆ setBackgroundColor()

void QConsolePrivate::setBackgroundColor ( const QColor &  color)

Definition at line 602 of file QWinTerminalImpl.cpp.

References m_colors, and m_consoleView.

Referenced by QConsolePrivate(), and QWinTerminalImpl::setBackgroundColor().

◆ setCursorColor()

void QConsolePrivate::setCursorColor ( bool  useForegroundColor,
const QColor &  color 
)

Definition at line 621 of file QWinTerminalImpl.cpp.

References m_cursorColor.

Referenced by QConsolePrivate(), and QWinTerminalImpl::setCursorColor().

◆ setForegroundColor()

void QConsolePrivate::setForegroundColor ( const QColor &  color)

Definition at line 611 of file QWinTerminalImpl.cpp.

References m_colors.

Referenced by QConsolePrivate(), and QWinTerminalImpl::setForegroundColor().

◆ setHorizontalScrollValue()

void QConsolePrivate::setHorizontalScrollValue ( int  value)

◆ setScrollBufferSize()

void QConsolePrivate::setScrollBufferSize ( int  value)

Definition at line 627 of file QWinTerminalImpl.cpp.

References m_bufferSize, m_stdOut, and updateConsoleSize().

Referenced by QWinTerminalImpl::setScrollBufferSize().

◆ setSelectionColor()

void QConsolePrivate::setSelectionColor ( const QColor &  color)

Definition at line 616 of file QWinTerminalImpl.cpp.

References m_selectionColor.

Referenced by QConsolePrivate(), and QWinTerminalImpl::setSelectionColor().

◆ setupStandardIO()

void QConsolePrivate::setupStandardIO ( DWORD  stdHandleId,
int  fd,
const char *  name,
const char *  devName 
)

Definition at line 467 of file QWinTerminalImpl.cpp.

References dup2(), and log().

Referenced by QConsolePrivate().

◆ setVerticalScrollValue()

void QConsolePrivate::setVerticalScrollValue ( int  value)

◆ startCommand()

void QConsolePrivate::startCommand ( void  )

Definition at line 1322 of file QWinTerminalImpl.cpp.

References m_command, m_process, and pi.

Referenced by QWinTerminalImpl::start().

◆ syncConsoleParameters()

void QConsolePrivate::syncConsoleParameters ( void  )

Definition at line 1054 of file QWinTerminalImpl.cpp.

References log(), m_buffer, m_bufferSize, m_consoleRect, m_stdOut, and m_tmpBuffer.

Referenced by monitorConsole(), and updateConsoleSize().

◆ updateConsoleSize()

◆ updateConsoleView()

void QConsolePrivate::updateConsoleView ( bool  grab = true)

◆ updateHorizontalScrollBar()

void QConsolePrivate::updateHorizontalScrollBar ( void  )

◆ updateSelection()

void QConsolePrivate::updateSelection ( void  )

◆ updateVerticalScrollBar()

void QConsolePrivate::updateVerticalScrollBar ( void  )

Friends And Related Function Documentation

◆ QWinTerminalImpl

friend class QWinTerminalImpl
friend

Definition at line 168 of file QWinTerminalImpl.cpp.

Member Data Documentation

◆ BLINK_DELAY

const int QConsolePrivate::BLINK_DELAY = 500
staticprivate

◆ m_auto_scroll

bool QConsolePrivate::m_auto_scroll
private

Definition at line 244 of file QWinTerminalImpl.cpp.

Referenced by monitorConsole(), sendConsoleText(), and setVerticalScrollValue().

◆ m_beginSelection

QPoint QConsolePrivate::m_beginSelection
private

◆ m_blinkCursorTimer

QTimer* QConsolePrivate::m_blinkCursorTimer
private

◆ m_buffer

◆ m_bufferSize

◆ m_charSize

QSize QConsolePrivate::m_charSize
private

◆ m_colors

QConsoleColors QConsolePrivate::m_colors
private

◆ m_command

QString QConsolePrivate::m_command
private

Definition at line 236 of file QWinTerminalImpl.cpp.

Referenced by QConsolePrivate(), and startCommand().

◆ m_consoleRect

◆ m_consoleThread

QConsoleThread* QConsolePrivate::m_consoleThread
private

Definition at line 268 of file QWinTerminalImpl.cpp.

Referenced by QConsolePrivate(), and ~QConsolePrivate().

◆ m_consoleView

◆ m_consoleWatcher

QTimer* QConsolePrivate::m_consoleWatcher
private

Definition at line 267 of file QWinTerminalImpl.cpp.

Referenced by QConsolePrivate(), and updateConsoleView().

◆ m_consoleWindow

HWND QConsolePrivate::m_consoleWindow
private

Definition at line 259 of file QWinTerminalImpl.cpp.

Referenced by QConsolePrivate().

◆ m_cursorBlinking

◆ m_cursorColor

QColor QConsolePrivate::m_cursorColor
private

Definition at line 256 of file QWinTerminalImpl.cpp.

Referenced by cursorColor(), and setCursorColor().

◆ m_cursorPos

QPoint QConsolePrivate::m_cursorPos
private

Definition at line 245 of file QWinTerminalImpl.cpp.

Referenced by QConsolePrivate(), cursorRect(), monitorConsole(), and selectAll().

◆ m_cursorType

KeyboardCursorType QConsolePrivate::m_cursorType
private

Definition at line 249 of file QWinTerminalImpl.cpp.

Referenced by drawCursor(), and QWinTerminalImpl::setCursorType().

◆ m_endSelection

◆ m_font

QFont QConsolePrivate::m_font
private

◆ m_hasBlinkingCursor

bool QConsolePrivate::m_hasBlinkingCursor
private

◆ m_horizontalScrollBar

QScrollBar* QConsolePrivate::m_horizontalScrollBar
private

Definition at line 265 of file QWinTerminalImpl.cpp.

Referenced by QConsolePrivate(), and updateHorizontalScrollBar().

◆ m_inWheelEvent

bool QConsolePrivate::m_inWheelEvent
private

Definition at line 238 of file QWinTerminalImpl.cpp.

Referenced by QWinTerminalImpl::wheelEvent().

◆ m_process

HANDLE QConsolePrivate::m_process
private

Definition at line 262 of file QWinTerminalImpl.cpp.

Referenced by ~QConsolePrivate(), and startCommand().

◆ m_selectionColor

QColor QConsolePrivate::m_selectionColor
private

Definition at line 255 of file QWinTerminalImpl.cpp.

Referenced by selectionColor(), and setSelectionColor().

◆ m_settingSelection

◆ m_stdOut

◆ m_title

QString QConsolePrivate::m_title
private

Definition at line 239 of file QWinTerminalImpl.cpp.

Referenced by monitorConsole().

◆ m_tmpBuffer

CHAR_INFO* QConsolePrivate::m_tmpBuffer
private

◆ m_verticalScrollBar

QScrollBar* QConsolePrivate::m_verticalScrollBar
private

◆ q

QWinTerminalImpl* QConsolePrivate::q
private

The documentation for this class was generated from the following file: