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

A widget which displays output from a terminal emulation and sends input keypresses and mouse activity to the terminal. More...

#include "TerminalView.h"

Inheritance diagram for TerminalView:
Collaboration diagram for TerminalView:

Classes

struct  _dragInfo
 
struct  InputMethodData
 

Public Types

enum  BellMode { SystemBeepBell =0 , NotifyBell =1 , VisualBell =2 , NoBell =3 }
 This enum describes the different types of sounds and visual effects which can be used to alert the user when a 'bell' occurs in the terminal session. More...
 
enum  KeyboardCursorShape { BlockCursor , UnderlineCursor , IBeamCursor }
 This enum describes the available shapes for the keyboard cursor. More...
 
enum  ScrollBarPosition { NoScrollBar =0 , ScrollBarLeft =1 , ScrollBarRight =2 }
 This enum describes the location where the scroll bar is positioned in the display widget. More...
 
enum  TripleClickMode { SelectWholeLine , SelectForwardsFromCursor }
 This enum describes the methods for selecting text when the user triple-clicks within the display. More...
 

Public Slots

bool bracketedPasteMode () const
 
void copyClipboard (bool extra_interrupt)
 Copies the selected text to the clipboard. More...
 
void outputSuspended (bool suspended)
 Causes the widget to display or hide a message informing the user that terminal output has been suspended (by using the flow control key combination Ctrl+S) More...
 
void pasteClipboard ()
 Pastes the content of the clipboard into the display. More...
 
void pasteSelection ()
 Pastes the content of the selection into the display. More...
 
void processFilters ()
 Updates the filters in the display's filter chain. More...
 
void selectAll ()
 selects all content More...
 
void setBracketedPasteMode (bool bracketedPasteMode)
 
void setUsesMouse (bool usesMouse)
 Sets whether the program whoose output is being displayed in the view is interested in mouse events. More...
 
void updateImage ()
 Causes the terminal display to fetch the latest character image from the associated terminal screen ( see setScreenWindow() ) and redraw the display. More...
 
void updateLineProperties ()
 Causes the terminal display to fetch the latest line status flags from the associated terminal screen ( see setScreenWindow() ). More...
 
bool usesMouse () const
 See setUsesMouse() More...
 

Signals

void changedContentSizeSignal (int height, int width)
 
void changedFontMetricSignal (int height, int width)
 
void configureRequest (TerminalView *, int state, const QPoint &position)
 Emitted when the user right clicks on the display, or right-clicks with the Shift key held down if usesMouse() is true. More...
 
void interrupt_signal (void)
 
void isBusySelecting (bool)
 
void keyPressedSignal (QKeyEvent *e)
 Emitted when the user presses a key whilst the terminal widget has focus. More...
 
void mouseSignal (int button, int column, int line, int eventType)
 A mouse event occurred. More...
 
void sendStringToEmu (const char *)
 
void tripleClicked (const QString &text)
 

Public Member Functions

 TerminalView (QWidget *parent=nullptr)
 Constructs a new terminal display widget with the specified parent. More...
 
virtual ~TerminalView ()
 
int bellMode ()
 Returns the type of effect used to alert the user when a 'bell' occurs in the terminal session. More...
 
bool blinkingCursor ()
 Returns true if the cursor is set to blink or false otherwise. More...
 
bool bracketedPasteModeIsDisabled () const
 
void bracketText (QString &text)
 change and wrap text corresponding to paste mode More...
 
const ColorEntrycolorTable () const
 Returns the terminal color palette used by the display. More...
 
int columns ()
 Returns the number of characters of text which can be displayed on each line in the widget. More...
 
bool ctrlDrag ()
 
void disableBracketedPasteMode (bool disable)
 
void emitSelection (bool useXselection, bool appendReturn)
 
QList< QAction * > filterActions (const QPoint &position)
 Returns a list of menu actions created by the filters for the content at the given position. More...
 
FilterChainfilterChain () const
 Returns the display's filter chain. More...
 
int fontHeight ()
 Returns the height of the characters in the font used to draw the text in the display. More...
 
int fontWidth ()
 Returns the width of the characters in the display. More...
 
QFont getVTFont ()
 Returns the font used to draw characters in the display. More...
 
QColor keyboardCursorColor () const
 Returns the color of the keyboard cursor, or an invalid color if the keyboard cursor color is set to change according to the foreground color of the character underneath it. More...
 
KeyboardCursorShape keyboardCursorShape () const
 Returns the shape of the keyboard cursor. More...
 
int lines ()
 Returns the number of lines of text which can be displayed in the widget. More...
 
uint lineSpacing () const
 
uint randomSeed () const
 Returns the seed used to generate random colors for the display (in color schemes that support them). More...
 
ScreenWindowscreenWindow () const
 Returns the terminal screen section which is displayed in this widget. More...
 
QString selectedText ()
 
void setBellMode (int mode)
 Sets the type of effect used to alert the user when a 'bell' occurs in the terminal session. More...
 
void setBlinkingCursor (bool blink)
 Specifies whether or not the cursor blinks. More...
 
void setBlinkingCursorState (bool blink)
 
void setColorTable (const ColorEntry table[])
 Sets the terminal color palette used by the display. More...
 
void setCtrlDrag (bool enable)
 
void setFixedSize (int cols, int lins)
 
virtual void setFont (const QFont &)
 Reimplemented. More...
 
void setKeyboardCursorColor (bool useForegroundColor, const QColor &color)
 Sets the color used to draw the keyboard cursor. More...
 
void setKeyboardCursorShape (KeyboardCursorShape shape)
 Sets the shape of the keyboard cursor. More...
 
void setLineSpacing (uint)
 
void setRandomSeed (uint seed)
 Sets the seed used to generate random colors for the display (in color schemes that support them). More...
 
void setReadOnly (bool readonly)
 Specified whether terminal widget should be at read-only mode Defaults to false. More...
 
void setScreenWindow (ScreenWindow *window)
 Sets the terminal screen section which is displayed in this widget. More...
 
void setScroll (int cursor, int lines)
 Sets the current position and range of the display's scroll bar. More...
 
void setScrollBarPosition (ScrollBarPosition position)
 Specifies whether the terminal display has a vertical scroll bar, and if so whether it is shown on the left or right side of the display. More...
 
void setSelection (const QString &t)
 
void setSize (int cols, int lins)
 
void setTerminalSizeHint (bool on)
 Sets whether or not the current height and width of the terminal in lines and columns is displayed whilst the widget is being resized. More...
 
void setTerminalSizeStartup (bool on)
 Sets whether the terminal size display is shown briefly after the widget is first shown. More...
 
void setTripleClickMode (TripleClickMode mode)
 Sets how the text is selected when the user triple clicks within the display. More...
 
void setVTFont (const QFont &font)
 Sets the font used to draw the display. More...
 
void setWordCharacters (const QString &wc)
 Sets which characters, in addition to letters and numbers, are regarded as being part of a word for the purposes of selecting words in the display by double clicking on them. More...
 
QSize sizeHint () const
 
bool terminalSizeHint ()
 Returns whether or not the current height and width of the terminal in lines and columns is displayed whilst the widget is being resized. More...
 
TripleClickMode tripleClickMode ()
 See setTripleClickSelectionMode() More...
 
void visibility_changed (bool visible)
 Is called, when the terminal's visibility has changed in order to stop orstart timers etc. More...
 
QString wordCharacters ()
 Returns the characters which are considered part of a word for the purpose of selecting words in the display with the mouse. More...
 

Static Public Member Functions

static bool antialias ()
 Returns true if anti-aliasing of text in the terminal is enabled. More...
 
static void setAntialias (bool antialias)
 Specified whether anti-aliasing of text in the terminal display is enabled or not. More...
 

Protected Types

enum  DragState { diNone , diPending , diDragging }
 

Protected Slots

void blinkCursorEvent ()
 
void blinkEvent ()
 
void enableBell ()
 
void scrollBarPositionChanged (int value)
 

Protected Member Functions

virtual int charClass (quint16) const
 
void clearImage ()
 
void doDrag ()
 
virtual void dragEnterEvent (QDragEnterEvent *event)
 
virtual void dropEvent (QDropEvent *event)
 
virtual void extendSelection (const QPoint &pos)
 
void focusInEvent (QFocusEvent *focusEvent)
 
virtual bool focusNextPrevChild (bool next)
 
void focusOutEvent (QFocusEvent *focusEvent)
 
virtual void fontChange (const QFont &font)
 
virtual void hideEvent (QHideEvent *)
 
virtual void inputMethodEvent (QInputMethodEvent *event)
 
virtual QVariant inputMethodQuery (Qt::InputMethodQuery query) const
 
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void mouseDoubleClickEvent (QMouseEvent *ev)
 
virtual void mouseMoveEvent (QMouseEvent *)
 
virtual void mousePressEvent (QMouseEvent *)
 
virtual void mouseReleaseEvent (QMouseEvent *)
 
void mouseTripleClickEvent (QMouseEvent *ev)
 
virtual void paintEvent (QPaintEvent *)
 
virtual void resizeEvent (QResizeEvent *)
 
virtual void showEvent (QShowEvent *)
 
virtual void wheelEvent (QWheelEvent *)
 

Protected Attributes

struct TerminalView::_dragInfo dragInfo
 

Private Slots

void swapColorTable ()
 
void tripleClickTimeout ()
 

Private Member Functions

void calcGeometry ()
 
QPoint cursorPosition () const
 
void drawBackground (QPainter &painter, const QRect &rect, const QColor &color)
 
void drawCharacters (QPainter &painter, const QRect &rect, const QString &text, const Character *style, bool invertCharacterColor)
 
void drawContents (QPainter &paint, const QRect &rect)
 
void drawCursor (QPainter &painter, const QRect &rect, const QColor &foregroundColor, const QColor &backgroundColor, bool &invertColors)
 
void drawInputMethodPreeditString (QPainter &painter, const QRect &rect)
 
void drawTextFragment (QPainter &painter, const QRect &rect, const QString &text, const Character *style)
 
void getCharacterPosition (const QPoint &widgetPoint, int &line, int &column) const
 
QRegion hotSpotRegion () const
 
QRect imageToWidget (const QRect &imageArea) const
 
void makeImage ()
 
void paintFilters (QPainter &painter)
 
QRect preeditRect () const
 
void propagateSize ()
 
void scrollImage (int lines, const QRect &region)
 
void showResizeNotification ()
 
void updateImageSize ()
 

Private Attributes

int _actSel
 
bool _allowBell
 
int _bellMode
 
QRgb _blendColor
 
QTimer * _blinkCursorTimer
 
bool _blinking
 
QTimer * _blinkTimer
 
bool _bracketedPasteMode
 
QClipboard * _clipboard
 
bool _colorsInverted
 
ColorEntry _colorTable [TABLE_COLORS]
 
int _columns
 
bool _columnSelectionMode
 
int _contentHeight
 
int _contentWidth
 
bool _ctrlDrag
 
bool _cursorBlinking
 
QColor _cursorColor
 
KeyboardCursorShape _cursorShape
 
bool _disabledBracketedPasteMode
 
int _dndFileCount
 
QString _dropText
 
TerminalImageFilterChain_filterChain
 
bool _fixedFont
 
bool _flowControlWarningEnabled
 
int _fontAscent
 
double _fontHeight
 
double _fontWidth
 
QGridLayout * _gridLayout
 
bool _hasBlinker
 
bool _hasBlinkingCursor
 
Character_image
 
int _imageSize
 
InputMethodData _inputMethodData
 
QPoint _iPntSel
 
bool _isFixedSize
 
int _leftMargin
 
QVector< LineProperty_lineProperties
 
int _lines
 
bool _lineSelectionMode
 
uint _lineSpacing
 
bool _mouseMarks
 
QRect _mouseOverHotspotArea
 
QLabel_outputSuspendedLabel
 
QPoint _pntSel
 
bool _possibleTripleClick
 
bool _preserveLineBreaks
 
QTimer * _process_filter_timer
 
uint _randomSeed
 
bool _readonly
 
QTimer * _resizeTimer
 
QLabel_resizeWidget
 
bool _resizing
 
QPointer< ScreenWindow_screenWindow
 
QScrollBar * _scrollBar
 
ScrollBarPosition _scrollbarLocation
 
QSize _size
 
bool _terminalSizeHint
 
bool _terminalSizeStartup
 
int _topMargin
 
TripleClickMode _tripleClickMode
 
QPoint _tripleSelBegin
 
int _usedColumns
 
int _usedLines
 
QString _wordCharacters
 
bool _wordSelectionMode
 

Static Private Attributes

static bool _antialiasText = true
 
static const int BLINK_DELAY = 500
 
static const int DEFAULT_LEFT_MARGIN = 2
 
static const int DEFAULT_TOP_MARGIN = 2
 

Detailed Description

A widget which displays output from a terminal emulation and sends input keypresses and mouse activity to the terminal.

When the terminal emulation receives new output from the program running in the terminal, it will update the display by calling updateImage().

TODO More documentation

Definition at line 63 of file TerminalView.h.

Member Enumeration Documentation

◆ BellMode

This enum describes the different types of sounds and visual effects which can be used to alert the user when a 'bell' occurs in the terminal session.

Enumerator
SystemBeepBell 

A system beep.

NotifyBell 

KDE notification.

This may play a sound, show a passive popup or perform some other action depending on the user's settings.

VisualBell 

A silent, visual bell (eg.

inverting the display's colors briefly)

NoBell 

No bell effects.

Definition at line 296 of file TerminalView.h.

◆ DragState

enum TerminalView::DragState
protected
Enumerator
diNone 
diPending 
diDragging 

Definition at line 526 of file TerminalView.h.

◆ KeyboardCursorShape

This enum describes the available shapes for the keyboard cursor.

See setKeyboardCursorShape()

Enumerator
BlockCursor 

A rectangular block which covers the entire area of the cursor character.

UnderlineCursor 

A single flat line which occupies the space at the bottom of the cursor character's area.

IBeamCursor 

An cursor shaped like the capital letter 'I', similar to the IBeam cursor used in Qt/KDE text editors.

Definition at line 170 of file TerminalView.h.

◆ ScrollBarPosition

This enum describes the location where the scroll bar is positioned in the display widget.

Enumerator
NoScrollBar 

Do not show the scroll bar.

ScrollBarLeft 

Show the scroll bar on the left side of the display.

ScrollBarRight 

Show the scroll bar on the right side of the display.

Definition at line 91 of file TerminalView.h.

◆ TripleClickMode

This enum describes the methods for selecting text when the user triple-clicks within the display.

Enumerator
SelectWholeLine 

Select the whole line underneath the cursor.

SelectForwardsFromCursor 

Select from the current cursor position to the end of the line.

Definition at line 146 of file TerminalView.h.

Constructor & Destructor Documentation

◆ TerminalView()

◆ ~TerminalView()

TerminalView::~TerminalView ( )
virtual

Definition at line 339 of file TerminalView.cpp.

References _filterChain, _gridLayout, _image, and _outputSuspendedLabel.

Member Function Documentation

◆ antialias()

static bool TerminalView::antialias ( )
inlinestatic

Returns true if anti-aliasing of text in the terminal is enabled.

Definition at line 346 of file TerminalView.h.

References _antialiasText.

Referenced by setAntialias().

◆ bellMode()

int TerminalView::bellMode ( )
inline

Returns the type of effect used to alert the user when a 'bell' occurs in the terminal session.

See setBellMode()

Definition at line 289 of file TerminalView.h.

References _bellMode.

◆ blinkCursorEvent

void TerminalView::blinkCursorEvent ( )
protectedslot

◆ blinkEvent

void TerminalView::blinkEvent ( )
protectedslot

Definition at line 1266 of file TerminalView.cpp.

References _blinking.

Referenced by TerminalView().

◆ blinkingCursor()

bool TerminalView::blinkingCursor ( )
inline

Returns true if the cursor is set to blink or false otherwise.

Definition at line 134 of file TerminalView.h.

References _hasBlinkingCursor.

◆ bracketedPasteMode

bool TerminalView::bracketedPasteMode ( ) const
slot

Definition at line 2186 of file TerminalView.cpp.

References _bracketedPasteMode.

Referenced by emitSelection().

◆ bracketedPasteModeIsDisabled()

bool TerminalView::bracketedPasteModeIsDisabled ( ) const
inline

Definition at line 386 of file TerminalView.h.

References _disabledBracketedPasteMode.

◆ bracketText()

void TerminalView::bracketText ( QString &  text)

change and wrap text corresponding to paste mode

Definition at line 2227 of file TerminalView.cpp.

Referenced by emitSelection().

◆ calcGeometry()

◆ changedContentSizeSignal

void TerminalView::changedContentSizeSignal ( int  height,
int  width 
)
signal

◆ changedFontMetricSignal

void TerminalView::changedFontMetricSignal ( int  height,
int  width 
)
signal

Referenced by fontChange().

◆ charClass()

int TerminalView::charClass ( quint16  ch) const
protectedvirtual

Definition at line 2155 of file TerminalView.cpp.

References _wordCharacters.

Referenced by extendSelection(), mouseDoubleClickEvent(), and mouseTripleClickEvent().

◆ clearImage()

◆ colorTable()

const ColorEntry * TerminalView::colorTable ( ) const

Returns the terminal color palette used by the display.

Definition at line 113 of file TerminalView.cpp.

References _colorTable.

Referenced by paintFilters(), QUnixTerminalImpl::setBackgroundColor(), and QUnixTerminalImpl::setForegroundColor().

◆ columns()

int TerminalView::columns ( void  )
inline

Returns the number of characters of text which can be displayed on each line in the widget.

This will depend upon the width of the widget and the current font. See fontWidth()

Definition at line 237 of file TerminalView.h.

References _columns.

Referenced by setSize(), updateImage(), updateImageSize(), and TerminalModel::updateTerminalSize().

◆ configureRequest

void TerminalView::configureRequest ( TerminalView ,
int  state,
const QPoint &  position 
)
signal

Emitted when the user right clicks on the display, or right-clicks with the Shift key held down if usesMouse() is true.

This can be used to display a context menu.

Referenced by mousePressEvent().

◆ copyClipboard

void TerminalView::copyClipboard ( bool  extra_interrupt)
slot

Copies the selected text to the clipboard.

Definition at line 2238 of file TerminalView.cpp.

References _preserveLineBreaks, _screenWindow, and interrupt_signal().

Referenced by QUnixTerminalImpl::copyClipboard().

◆ ctrlDrag()

bool TerminalView::ctrlDrag ( )
inline

Definition at line 140 of file TerminalView.h.

References _ctrlDrag.

◆ cursorPosition()

QPoint TerminalView::cursorPosition ( ) const
private

Definition at line 997 of file TerminalView.cpp.

References _screenWindow.

Referenced by blinkCursorEvent(), drawInputMethodPreeditString(), and preeditRect().

◆ disableBracketedPasteMode()

void TerminalView::disableBracketedPasteMode ( bool  disable)
inline

Definition at line 385 of file TerminalView.h.

References _disabledBracketedPasteMode.

◆ doDrag()

void TerminalView::doDrag ( )
protected

◆ dragEnterEvent()

void TerminalView::dragEnterEvent ( QDragEnterEvent *  event)
protectedvirtual

Definition at line 2550 of file TerminalView.cpp.

◆ drawBackground()

void TerminalView::drawBackground ( QPainter painter,
const QRect &  rect,
const QColor &  color 
)
private

Definition at line 428 of file TerminalView.cpp.

References _scrollBar.

Referenced by drawInputMethodPreeditString(), drawTextFragment(), and paintEvent().

◆ drawCharacters()

void TerminalView::drawCharacters ( QPainter painter,
const QRect &  rect,
const QString &  text,
const Character style,
bool  invertCharacterColor 
)
private

◆ drawContents()

◆ drawCursor()

void TerminalView::drawCursor ( QPainter painter,
const QRect &  rect,
const QColor &  foregroundColor,
const QColor &  backgroundColor,
bool &  invertColors 
)
private

◆ drawInputMethodPreeditString()

◆ drawTextFragment()

void TerminalView::drawTextFragment ( QPainter painter,
const QRect &  rect,
const QString &  text,
const Character style 
)
private

◆ dropEvent()

void TerminalView::dropEvent ( QDropEvent *  event)
protectedvirtual

Definition at line 2556 of file TerminalView.cpp.

References sendStringToEmu().

◆ emitSelection()

void TerminalView::emitSelection ( bool  useXselection,
bool  appendReturn 
)

◆ enableBell

void TerminalView::enableBell ( )
protectedslot

Definition at line 2417 of file TerminalView.cpp.

References _allowBell.

◆ extendSelection()

◆ filterActions()

QList< QAction * > TerminalView::filterActions ( const QPoint &  position)

Returns a list of menu actions created by the filters for the content at the given position.

Definition at line 1542 of file TerminalView.cpp.

References _filterChain, Filter::HotSpot::actions(), getCharacterPosition(), and FilterChain::hotSpotAt().

Referenced by QUnixTerminalImpl::get_hotspot_actions().

◆ filterChain()

FilterChain * TerminalView::filterChain ( ) const

Returns the display's filter chain.

When the image for the display is updated, the text is passed through each filter in the chain. Each filter can define hotspots which correspond to certain strings (such as URLs or particular words). Depending on the type of the hotspots created by the filter ( returned by Filter::Hotspot::type() ) the view will draw visual cues such as underlines on mouse-over for links or translucent rectangles for markers.

To add a new filter to the view, call: viewWidget->filterChain()->addFilter( filterObject );

Definition at line 1037 of file TerminalView.cpp.

References _filterChain.

Referenced by QUnixTerminalImpl::initialize().

◆ focusInEvent()

void TerminalView::focusInEvent ( QFocusEvent *  focusEvent)
protected

Definition at line 978 of file TerminalView.cpp.

References setBlinkingCursorState(), and updateImage().

◆ focusNextPrevChild()

bool TerminalView::focusNextPrevChild ( bool  next)
protectedvirtual

Definition at line 2146 of file TerminalView.cpp.

References next.

◆ focusOutEvent()

void TerminalView::focusOutEvent ( QFocusEvent *  focusEvent)
protected

Definition at line 988 of file TerminalView.cpp.

References _cursorBlinking, and setBlinkingCursorState().

◆ fontChange()

void TerminalView::fontChange ( const QFont &  font)
protectedvirtual

◆ fontHeight()

int TerminalView::fontHeight ( )
inline

Returns the height of the characters in the font used to draw the text in the display.

Definition at line 242 of file TerminalView.h.

References _fontHeight.

◆ fontWidth()

int TerminalView::fontWidth ( )
inline

Returns the width of the characters in the display.

This assumes the use of a fixed-width font.

Definition at line 247 of file TerminalView.h.

References _fontWidth.

◆ getCharacterPosition()

void TerminalView::getCharacterPosition ( const QPoint &  widgetPoint,
int &  line,
int &  column 
) const
private

◆ getVTFont()

QFont TerminalView::getVTFont ( )
inline

Returns the font used to draw characters in the display.

Definition at line 323 of file TerminalView.h.

◆ hideEvent()

void TerminalView::hideEvent ( QHideEvent *  )
protectedvirtual

Definition at line 1380 of file TerminalView.cpp.

References _contentHeight, _contentWidth, and changedContentSizeSignal().

◆ hotSpotRegion()

◆ imageToWidget()

QRect TerminalView::imageToWidget ( const QRect &  imageArea) const
private

Definition at line 1276 of file TerminalView.cpp.

References _fontHeight, _fontWidth, _leftMargin, and _topMargin.

Referenced by blinkCursorEvent(), hotSpotRegion(), and inputMethodQuery().

◆ inputMethodEvent()

void TerminalView::inputMethodEvent ( QInputMethodEvent *  event)
protectedvirtual

◆ inputMethodQuery()

QVariant TerminalView::inputMethodQuery ( Qt::InputMethodQuery  query) const
protectedvirtual

◆ interrupt_signal

void TerminalView::interrupt_signal ( void  )
signal

Referenced by copyClipboard().

◆ isBusySelecting

void TerminalView::isBusySelecting ( bool  )
signal

◆ keyboardCursorColor()

QColor TerminalView::keyboardCursorColor ( ) const

Returns the color of the keyboard cursor, or an invalid color if the keyboard cursor color is set to change according to the foreground color of the character underneath it.

Definition at line 423 of file TerminalView.cpp.

References _cursorColor.

◆ keyboardCursorShape()

TerminalView::KeyboardCursorShape TerminalView::keyboardCursorShape ( ) const

Returns the shape of the keyboard cursor.

See setKeyboardCursorShape()

Definition at line 408 of file TerminalView.cpp.

References _cursorShape.

◆ keyPressedSignal

void TerminalView::keyPressedSignal ( QKeyEvent *  e)
signal

Emitted when the user presses a key whilst the terminal widget has focus.

Referenced by emitSelection(), inputMethodEvent(), and keyPressEvent().

◆ keyPressEvent()

◆ lines()

int TerminalView::lines ( )
inline

Returns the number of lines of text which can be displayed in the widget.

This will depend upon the height of the widget and the current font. See fontHeight()

Definition at line 229 of file TerminalView.h.

References _lines.

Referenced by scrollImage(), setSize(), updateImage(), updateImageSize(), and TerminalModel::updateTerminalSize().

◆ lineSpacing()

uint TerminalView::lineSpacing ( ) const

Definition at line 2660 of file TerminalView.cpp.

References _lineSpacing.

◆ makeImage()

void TerminalView::makeImage ( )
private

◆ mouseDoubleClickEvent()

◆ mouseMoveEvent()

◆ mousePressEvent()

◆ mouseReleaseEvent()

void TerminalView::mouseReleaseEvent ( QMouseEvent *  ev)
protectedvirtual

◆ mouseSignal

void TerminalView::mouseSignal ( int  button,
int  column,
int  line,
int  eventType 
)
signal

A mouse event occurred.

Parameters
buttonThe mouse button (0 for left button, 1 for middle button, 2 for right button, 3 for release)
columnThe character column where the event occurred
lineThe character row where the event occurred
eventTypeThe type of event. 0 for a mouse press / release or 1 for mouse motion

Referenced by mouseDoubleClickEvent(), mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), and wheelEvent().

◆ mouseTripleClickEvent()

◆ outputSuspended

void TerminalView::outputSuspended ( bool  suspended)
slot

Causes the widget to display or hide a message informing the user that terminal output has been suspended (by using the flow control key combination Ctrl+S)

Parameters
suspendedTrue if terminal output has been suspended and the warning message should be shown or false to indicate that terminal output has been resumed and that the warning message should disappear.

Definition at line 2616 of file TerminalView.cpp.

References _gridLayout, and _outputSuspendedLabel.

◆ paintEvent()

void TerminalView::paintEvent ( QPaintEvent *  pe)
protectedvirtual

◆ paintFilters()

◆ pasteClipboard

void TerminalView::pasteClipboard ( void  )
slot

Pastes the content of the clipboard into the display.

Definition at line 2254 of file TerminalView.cpp.

References emitSelection().

Referenced by QUnixTerminalImpl::pasteClipboard().

◆ pasteSelection

void TerminalView::pasteSelection ( )
slot

Pastes the content of the selection into the display.

Definition at line 2276 of file TerminalView.cpp.

References emitSelection().

◆ preeditRect()

QRect TerminalView::preeditRect ( ) const
private

◆ processFilters

void TerminalView::processFilters ( )
slot

Updates the filters in the display's filter chain.

This will cause the hotspots to be updated to match the current image.

WARNING: This function can be expensive depending on the image size and number of filters in the filterChain()

TODO - This API does not really allow efficient usage. Revise it so that the processing can be done in a better way.

eg:

  • Area of interest may be known ( eg. mouse cursor hovering over an area )

Definition at line 699 of file TerminalView.cpp.

References _filterChain, _screenWindow, hotSpotRegion(), FilterChain::process(), and TerminalImageFilterChain::setImage().

Referenced by TerminalView().

◆ propagateSize()

void TerminalView::propagateSize ( )
private

Definition at line 1311 of file TerminalView.cpp.

References _columns, _image, _isFixedSize, _lines, setSize(), sizeHint(), and updateImageSize().

Referenced by fontChange(), and setScrollBarPosition().

◆ randomSeed()

uint TerminalView::randomSeed ( ) const

Returns the seed used to generate random colors for the display (in color schemes that support them).

Definition at line 571 of file TerminalView.cpp.

References _randomSeed.

Referenced by setRandomSeed().

◆ resizeEvent()

void TerminalView::resizeEvent ( QResizeEvent *  )
protectedvirtual

Definition at line 1306 of file TerminalView.cpp.

References updateImageSize().

◆ screenWindow()

ScreenWindow * TerminalView::screenWindow ( ) const

Returns the terminal screen section which is displayed in this widget.

See setScreenWindow()

Definition at line 90 of file TerminalView.cpp.

References _screenWindow.

◆ scrollBarPositionChanged

void TerminalView::scrollBarPositionChanged ( int  value)
protectedslot

Definition at line 1391 of file TerminalView.cpp.

References _screenWindow, _scrollBar, and updateImage().

Referenced by TerminalView(), and setScroll().

◆ scrollImage()

void TerminalView::scrollImage ( int  lines,
const QRect &  region 
)
private

◆ selectAll

void TerminalView::selectAll ( void  )
slot

selects all content

Definition at line 2262 of file TerminalView.cpp.

References _screenWindow.

Referenced by QUnixTerminalImpl::selectAll().

◆ selectedText()

QString TerminalView::selectedText ( )

Definition at line 2671 of file TerminalView.cpp.

References _preserveLineBreaks, and _screenWindow.

Referenced by QUnixTerminalImpl::selectedText().

◆ sendStringToEmu

void TerminalView::sendStringToEmu ( const char *  )
signal

Referenced by dropEvent().

◆ setAntialias()

static void TerminalView::setAntialias ( bool  antialias)
inlinestatic

Specified whether anti-aliasing of text in the terminal display is enabled or not.

Defaults to enabled.

Definition at line 342 of file TerminalView.h.

References _antialiasText, and antialias().

◆ setBellMode()

void TerminalView::setBellMode ( int  mode)

Sets the type of effect used to alert the user when a 'bell' occurs in the terminal session.

The terminal session can trigger the bell effect by calling bell() with the alert message.

Definition at line 2412 of file TerminalView.cpp.

References _bellMode.

Referenced by QUnixTerminalImpl::initialize().

◆ setBlinkingCursor()

void TerminalView::setBlinkingCursor ( bool  blink)

Specifies whether or not the cursor blinks.

Definition at line 935 of file TerminalView.cpp.

References _hasBlinkingCursor, and setBlinkingCursorState().

Referenced by QUnixTerminalImpl::initialize(), and QUnixTerminalImpl::setCursorType().

◆ setBlinkingCursorState()

void TerminalView::setBlinkingCursorState ( bool  blink)

◆ setBracketedPasteMode

void TerminalView::setBracketedPasteMode ( bool  bracketedPasteMode)
slot

Definition at line 2182 of file TerminalView.cpp.

References _bracketedPasteMode.

Referenced by TerminalView(), and TerminalModel::addView().

◆ setColorTable()

void TerminalView::setColorTable ( const ColorEntry  table[])

Sets the terminal color palette used by the display.

Definition at line 118 of file TerminalView.cpp.

References _colorTable, _scrollBar, DEFAULT_BACK_COLOR, and TABLE_COLORS.

Referenced by TerminalView(), QUnixTerminalImpl::setBackgroundColor(), and QUnixTerminalImpl::setForegroundColor().

◆ setCtrlDrag()

void TerminalView::setCtrlDrag ( bool  enable)
inline

Definition at line 139 of file TerminalView.h.

References _ctrlDrag.

◆ setFixedSize()

void TerminalView::setFixedSize ( int  cols,
int  lins 
)

◆ setFont()

void TerminalView::setFont ( const QFont &  )
virtual

Reimplemented.

Has no effect. Use setVTFont() to change the font used to draw characters in the display.

Definition at line 227 of file TerminalView.cpp.

◆ setKeyboardCursorColor()

void TerminalView::setKeyboardCursorColor ( bool  useForegroundColor,
const QColor &  color 
)

Sets the color used to draw the keyboard cursor.

The keyboard cursor defaults to using the foreground color of the character underneath it.

Parameters
useForegroundColorIf true, the cursor color will change to match the foreground color of the character underneath it as it is moved, in this case, the color parameter is ignored and the color of the character under the cursor is inverted to ensure that it is still readable.
colorThe color to use to draw the cursor. This is only taken into account if useForegroundColor is false.

Definition at line 412 of file TerminalView.cpp.

References _cursorColor.

Referenced by QUnixTerminalImpl::setCursorColor().

◆ setKeyboardCursorShape()

void TerminalView::setKeyboardCursorShape ( KeyboardCursorShape  shape)

Sets the shape of the keyboard cursor.

This is the cursor drawn at the position in the terminal where keyboard input will appear.

In addition the terminal display widget also has a cursor for the mouse pointer, which can be set using the QWidget::setCursor() method.

Defaults to BlockCursor

Definition at line 404 of file TerminalView.cpp.

References _cursorShape.

Referenced by QUnixTerminalImpl::initialize(), and QUnixTerminalImpl::setCursorType().

◆ setLineSpacing()

void TerminalView::setLineSpacing ( uint  i)

Definition at line 2665 of file TerminalView.cpp.

References _lineSpacing, and setVTFont().

◆ setRandomSeed()

void TerminalView::setRandomSeed ( uint  seed)

Sets the seed used to generate random colors for the display (in color schemes that support them).

Definition at line 570 of file TerminalView.cpp.

References _randomSeed, and randomSeed().

◆ setReadOnly()

void TerminalView::setReadOnly ( bool  readonly)
inline

Specified whether terminal widget should be at read-only mode Defaults to false.

Definition at line 336 of file TerminalView.h.

References _readonly.

◆ setScreenWindow()

void TerminalView::setScreenWindow ( ScreenWindow window)

Sets the terminal screen section which is displayed in this widget.

When updateImage() is called, the display fetches the latest character image from the the associated terminal screen window.

In terms of the model-view paradigm, the ScreenWindow is the model which is rendered by the TerminalDisplay.

Definition at line 94 of file TerminalView.cpp.

References _lines, _screenWindow, ScreenWindow::setWindowLines(), updateImage(), and updateLineProperties().

Referenced by TerminalModel::addView().

◆ setScroll()

void TerminalView::setScroll ( int  cursor,
int  lines 
)

Sets the current position and range of the display's scroll bar.

Parameters
cursorThe position of the scroll bar's thumb.
linesThe maximum value of the scroll bar.

Definition at line 1408 of file TerminalView.cpp.

References _lines, _scrollBar, and scrollBarPositionChanged().

Referenced by TerminalView(), and updateImage().

◆ setScrollBarPosition()

void TerminalView::setScrollBarPosition ( ScrollBarPosition  position)

Specifies whether the terminal display has a vertical scroll bar, and if so whether it is shown on the left or right side of the display.

Definition at line 1431 of file TerminalView.cpp.

References _leftMargin, _scrollBar, _scrollbarLocation, _topMargin, NoScrollBar, and propagateSize().

Referenced by QUnixTerminalImpl::initialize().

◆ setSelection()

void TerminalView::setSelection ( const QString &  t)

◆ setSize()

void TerminalView::setSize ( int  cols,
int  lins 
)

◆ setTerminalSizeHint()

void TerminalView::setTerminalSizeHint ( bool  on)
inline

Sets whether or not the current height and width of the terminal in lines and columns is displayed whilst the widget is being resized.

Definition at line 353 of file TerminalView.h.

References _terminalSizeHint.

Referenced by QUnixTerminalImpl::initialize().

◆ setTerminalSizeStartup()

void TerminalView::setTerminalSizeStartup ( bool  on)
inline

Sets whether the terminal size display is shown briefly after the widget is first shown.

See setTerminalSizeHint() , isTerminalSizeHint()

Definition at line 366 of file TerminalView.h.

References _terminalSizeStartup.

Referenced by QUnixTerminalImpl::initialize().

◆ setTripleClickMode()

void TerminalView::setTripleClickMode ( TripleClickMode  mode)
inline

Sets how the text is selected when the user triple clicks within the display.

Definition at line 154 of file TerminalView.h.

References _tripleClickMode.

Referenced by QUnixTerminalImpl::initialize().

◆ setUsesMouse

void TerminalView::setUsesMouse ( bool  usesMouse)
slot

Sets whether the program whoose output is being displayed in the view is interested in mouse events.

If this is set to true, mouse signals will be emitted by the view when the user clicks, drags or otherwise moves the mouse inside the view. The user interaction needed to create selections will also change, and the user will be required to hold down the shift key to create a selection or perform other mouse activities inside the view area - since the program running in the terminal is being allowed to handle normal mouse events itself.

Parameters
usesMouseSet to true if the program running in the terminal is interested in mouse events or false otherwise.

Definition at line 2172 of file TerminalView.cpp.

References _mouseMarks.

Referenced by TerminalView(), TerminalModel::addView(), and mouseMoveEvent().

◆ setVTFont()

void TerminalView::setVTFont ( const QFont &  font)

Sets the font used to draw the display.

Has no effect if font is larger than the size of the display itself.

Definition at line 198 of file TerminalView.cpp.

References _antialiasText, f, and fontChange().

Referenced by setLineSpacing(), and QUnixTerminalImpl::setTerminalFont().

◆ setWordCharacters()

void TerminalView::setWordCharacters ( const QString &  wc)

Sets which characters, in addition to letters and numbers, are regarded as being part of a word for the purposes of selecting words in the display by double clicking on them.

The word boundaries occur at the first and last characters which are either a letter, number, or a character in wc

Parameters
wcAn array of characters which are to be considered parts of a word ( in addition to letters and numbers ).

Definition at line 2167 of file TerminalView.cpp.

References _wordCharacters.

◆ showEvent()

void TerminalView::showEvent ( QShowEvent *  )
protectedvirtual

Definition at line 1376 of file TerminalView.cpp.

References _contentHeight, _contentWidth, and changedContentSizeSignal().

◆ showResizeNotification()

void TerminalView::showResizeNotification ( )
private

◆ sizeHint()

QSize TerminalView::sizeHint ( ) const

Definition at line 2538 of file TerminalView.cpp.

References _size.

Referenced by propagateSize().

◆ swapColorTable

void TerminalView::swapColorTable ( )
privateslot

Definition at line 2422 of file TerminalView.cpp.

References _colorsInverted, and _colorTable.

◆ terminalSizeHint()

bool TerminalView::terminalSizeHint ( )
inline

Returns whether or not the current height and width of the terminal in lines and columns is displayed whilst the widget is being resized.

Definition at line 359 of file TerminalView.h.

References _terminalSizeHint.

◆ tripleClicked

void TerminalView::tripleClicked ( const QString &  text)
signal

Referenced by mouseTripleClickEvent().

◆ tripleClickMode()

TripleClickMode TerminalView::tripleClickMode ( )
inline

See setTripleClickSelectionMode()

Definition at line 156 of file TerminalView.h.

References _tripleClickMode.

◆ tripleClickTimeout

void TerminalView::tripleClickTimeout ( )
privateslot

Definition at line 2079 of file TerminalView.cpp.

References _possibleTripleClick.

Referenced by mouseDoubleClickEvent().

◆ updateImage

◆ updateImageSize()

void TerminalView::updateImageSize ( )
private

◆ updateLineProperties

void TerminalView::updateLineProperties ( )
slot

Causes the terminal display to fetch the latest line status flags from the associated terminal screen ( see setScreenWindow() ).

Definition at line 1946 of file TerminalView.cpp.

References _lineProperties, and _screenWindow.

Referenced by keyPressEvent(), setScreenWindow(), and updateImage().

◆ usesMouse

bool TerminalView::usesMouse ( ) const
slot

See setUsesMouse()

Definition at line 2177 of file TerminalView.cpp.

References _mouseMarks.

◆ visibility_changed()

void TerminalView::visibility_changed ( bool  visible)

Is called, when the terminal's visibility has changed in order to stop orstart timers etc.

Definition at line 2678 of file TerminalView.cpp.

References _process_filter_timer.

Referenced by QUnixTerminalImpl::handle_visibility_changed().

◆ wheelEvent()

void TerminalView::wheelEvent ( QWheelEvent *  ev)
protectedvirtual

Definition at line 2044 of file TerminalView.cpp.

References _mouseMarks, _scrollBar, getCharacterPosition(), and mouseSignal().

◆ wordCharacters()

QString TerminalView::wordCharacters ( )
inline

Returns the characters which are considered part of a word for the purpose of selecting words in the display with the mouse.

See also
setWordCharacters()

Definition at line 273 of file TerminalView.h.

References _wordCharacters.

Member Data Documentation

◆ _actSel

◆ _allowBell

bool TerminalView::_allowBell
private

Definition at line 628 of file TerminalView.h.

Referenced by enableBell().

◆ _antialiasText

bool TerminalView::_antialiasText = true
staticprivate

Definition at line 742 of file TerminalView.h.

Referenced by antialias(), setAntialias(), and setVTFont().

◆ _bellMode

int TerminalView::_bellMode
private

Definition at line 685 of file TerminalView.h.

Referenced by bellMode(), and setBellMode().

◆ _blendColor

QRgb TerminalView::_blendColor
private

Definition at line 721 of file TerminalView.h.

◆ _blinkCursorTimer

QTimer* TerminalView::_blinkCursorTimer
private

Definition at line 695 of file TerminalView.h.

Referenced by TerminalView(), keyPressEvent(), and setBlinkingCursorState().

◆ _blinking

bool TerminalView::_blinking
private

Definition at line 687 of file TerminalView.h.

Referenced by blinkEvent(), drawCharacters(), and updateImage().

◆ _blinkTimer

QTimer* TerminalView::_blinkTimer
private

Definition at line 694 of file TerminalView.h.

Referenced by TerminalView(), and updateImage().

◆ _bracketedPasteMode

bool TerminalView::_bracketedPasteMode
private

Definition at line 669 of file TerminalView.h.

Referenced by bracketedPasteMode(), and setBracketedPasteMode().

◆ _clipboard

QClipboard* TerminalView::_clipboard
private

Definition at line 681 of file TerminalView.h.

Referenced by updateImage().

◆ _colorsInverted

bool TerminalView::_colorsInverted
private

Definition at line 717 of file TerminalView.h.

Referenced by swapColorTable().

◆ _colorTable

ColorEntry TerminalView::_colorTable[TABLE_COLORS]
private

◆ _columns

◆ _columnSelectionMode

bool TerminalView::_columnSelectionMode
private

Definition at line 679 of file TerminalView.h.

Referenced by extendSelection(), and mousePressEvent().

◆ _contentHeight

int TerminalView::_contentHeight
private

Definition at line 654 of file TerminalView.h.

Referenced by calcGeometry(), hideEvent(), showEvent(), and updateImageSize().

◆ _contentWidth

int TerminalView::_contentWidth
private

Definition at line 655 of file TerminalView.h.

Referenced by calcGeometry(), hideEvent(), showEvent(), and updateImageSize().

◆ _ctrlDrag

bool TerminalView::_ctrlDrag
private

Definition at line 691 of file TerminalView.h.

Referenced by ctrlDrag(), mousePressEvent(), and setCtrlDrag().

◆ _cursorBlinking

bool TerminalView::_cursorBlinking
private

◆ _cursorColor

QColor TerminalView::_cursorColor
private

Definition at line 732 of file TerminalView.h.

Referenced by drawCursor(), keyboardCursorColor(), and setKeyboardCursorColor().

◆ _cursorShape

KeyboardCursorShape TerminalView::_cursorShape
private

Definition at line 728 of file TerminalView.h.

Referenced by drawCursor(), keyboardCursorShape(), and setKeyboardCursorShape().

◆ _disabledBracketedPasteMode

bool TerminalView::_disabledBracketedPasteMode
private

◆ _dndFileCount

int TerminalView::_dndFileCount
private

Definition at line 700 of file TerminalView.h.

◆ _dropText

QString TerminalView::_dropText
private

Definition at line 699 of file TerminalView.h.

◆ _filterChain

◆ _fixedFont

bool TerminalView::_fixedFont
private

Definition at line 632 of file TerminalView.h.

Referenced by drawContents(), fontChange(), and updateImage().

◆ _flowControlWarningEnabled

bool TerminalView::_flowControlWarningEnabled
private

Definition at line 709 of file TerminalView.h.

◆ _fontAscent

int TerminalView::_fontAscent
private

Definition at line 638 of file TerminalView.h.

Referenced by fontChange().

◆ _fontHeight

◆ _fontWidth

◆ _gridLayout

QGridLayout* TerminalView::_gridLayout
private

Definition at line 630 of file TerminalView.h.

Referenced by TerminalView(), ~TerminalView(), and outputSuspended().

◆ _hasBlinker

bool TerminalView::_hasBlinker
private

Definition at line 688 of file TerminalView.h.

Referenced by updateImage().

◆ _hasBlinkingCursor

bool TerminalView::_hasBlinkingCursor
private

Definition at line 690 of file TerminalView.h.

Referenced by blinkCursorEvent(), blinkingCursor(), keyPressEvent(), and setBlinkingCursor().

◆ _image

◆ _imageSize

int TerminalView::_imageSize
private

Definition at line 659 of file TerminalView.h.

Referenced by clearImage(), drawContents(), extendSelection(), makeImage(), and scrollImage().

◆ _inputMethodData

InputMethodData TerminalView::_inputMethodData
private

◆ _iPntSel

QPoint TerminalView::_iPntSel
private

◆ _isFixedSize

bool TerminalView::_isFixedSize
private

Definition at line 693 of file TerminalView.h.

Referenced by calcGeometry(), propagateSize(), and setFixedSize().

◆ _leftMargin

◆ _lineProperties

QVector<LineProperty> TerminalView::_lineProperties
private

◆ _lines

◆ _lineSelectionMode

bool TerminalView::_lineSelectionMode
private

Definition at line 677 of file TerminalView.h.

Referenced by extendSelection(), mousePressEvent(), and mouseTripleClickEvent().

◆ _lineSpacing

uint TerminalView::_lineSpacing
private

Definition at line 715 of file TerminalView.h.

Referenced by drawCursor(), fontChange(), lineSpacing(), and setLineSpacing().

◆ _mouseMarks

bool TerminalView::_mouseMarks
private

◆ _mouseOverHotspotArea

QRect TerminalView::_mouseOverHotspotArea
private

Definition at line 726 of file TerminalView.h.

Referenced by mouseMoveEvent().

◆ _outputSuspendedLabel

QLabel* TerminalView::_outputSuspendedLabel
private

Definition at line 713 of file TerminalView.h.

Referenced by ~TerminalView(), outputSuspended(), and scrollImage().

◆ _pntSel

QPoint TerminalView::_pntSel
private

Definition at line 673 of file TerminalView.h.

Referenced by extendSelection(), and mousePressEvent().

◆ _possibleTripleClick

bool TerminalView::_possibleTripleClick
private

Definition at line 702 of file TerminalView.h.

Referenced by mouseDoubleClickEvent(), mousePressEvent(), and tripleClickTimeout().

◆ _preserveLineBreaks

bool TerminalView::_preserveLineBreaks
private

◆ _process_filter_timer

QTimer* TerminalView::_process_filter_timer
private

Definition at line 696 of file TerminalView.h.

Referenced by TerminalView(), and visibility_changed().

◆ _randomSeed

uint TerminalView::_randomSeed
private

Definition at line 663 of file TerminalView.h.

Referenced by randomSeed(), and setRandomSeed().

◆ _readonly

bool TerminalView::_readonly
private

Definition at line 749 of file TerminalView.h.

Referenced by keyPressEvent(), and setReadOnly().

◆ _resizeTimer

QTimer* TerminalView::_resizeTimer
private

Definition at line 707 of file TerminalView.h.

Referenced by showResizeNotification().

◆ _resizeWidget

QLabel* TerminalView::_resizeWidget
private

Definition at line 706 of file TerminalView.h.

Referenced by showResizeNotification().

◆ _resizing

bool TerminalView::_resizing
private

Definition at line 665 of file TerminalView.h.

Referenced by updateImage(), and updateImageSize().

◆ _screenWindow

◆ _scrollBar

◆ _scrollbarLocation

ScrollBarPosition TerminalView::_scrollbarLocation
private

Definition at line 683 of file TerminalView.h.

Referenced by calcGeometry(), and setScrollBarPosition().

◆ _size

QSize TerminalView::_size
private

Definition at line 719 of file TerminalView.h.

Referenced by setFixedSize(), setSize(), and sizeHint().

◆ _terminalSizeHint

bool TerminalView::_terminalSizeHint
private

Definition at line 666 of file TerminalView.h.

Referenced by setTerminalSizeHint(), showResizeNotification(), and terminalSizeHint().

◆ _terminalSizeStartup

bool TerminalView::_terminalSizeStartup
private

Definition at line 667 of file TerminalView.h.

Referenced by setTerminalSizeStartup(), and showResizeNotification().

◆ _topMargin

◆ _tripleClickMode

TripleClickMode TerminalView::_tripleClickMode
private

Definition at line 692 of file TerminalView.h.

Referenced by mouseTripleClickEvent(), setTripleClickMode(), and tripleClickMode().

◆ _tripleSelBegin

QPoint TerminalView::_tripleSelBegin
private

Definition at line 674 of file TerminalView.h.

Referenced by extendSelection(), and mouseTripleClickEvent().

◆ _usedColumns

◆ _usedLines

int TerminalView::_usedLines
private

◆ _wordCharacters

QString TerminalView::_wordCharacters
private

Definition at line 684 of file TerminalView.h.

Referenced by charClass(), setWordCharacters(), and wordCharacters().

◆ _wordSelectionMode

bool TerminalView::_wordSelectionMode
private

◆ BLINK_DELAY

const int TerminalView::BLINK_DELAY = 500
staticprivate

Definition at line 745 of file TerminalView.h.

Referenced by keyPressEvent(), setBlinkingCursorState(), and updateImage().

◆ DEFAULT_LEFT_MARGIN

const int TerminalView::DEFAULT_LEFT_MARGIN = 2
staticprivate

Definition at line 746 of file TerminalView.h.

Referenced by TerminalView(), and calcGeometry().

◆ DEFAULT_TOP_MARGIN

const int TerminalView::DEFAULT_TOP_MARGIN = 2
staticprivate

Definition at line 747 of file TerminalView.h.

Referenced by TerminalView(), and calcGeometry().

◆ dragInfo

struct TerminalView::_dragInfo TerminalView::dragInfo
protected

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