Logo Search packages:      
Sourcecode: kdebase-kde4 version File versions  Download package

Konsole::TerminalDisplay Class Reference

#include <TerminalDisplay.h>

List of all members.

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 65 of file TerminalDisplay.h.

Public Types

enum  BellMode { SystemBeepBell = 0, NotifyBell = 1, VisualBell = 2, NoBell = 3 }
enum  KeyboardCursorShape { BlockCursor, UnderlineCursor, IBeamCursor }
enum  ScrollBarPosition { NoScrollBar = 0, ScrollBarLeft = 1, ScrollBarRight = 2 }
enum  TripleClickMode { SelectWholeLine, SelectForwardsFromCursor }

Public Slots

void bell (const QString &message)
void copyClipboard ()
void outputSuspended (bool suspended)
void pasteClipboard ()
void pasteSelection ()
void setFlowControlWarningEnabled (bool enabled)
void setUsesMouse (bool usesMouse)
void updateImage ()
void updateLineProperties ()
bool usesMouse () const


void changedContentSizeSignal (int height, int width)
void changedFontMetricSignal (int height, int width)
void configureRequest (TerminalDisplay *, int state, const QPoint &position)
void flowControlKeyPressed (bool suspend)
void isBusySelecting (bool)
void keyPressedSignal (QKeyEvent *e)
void mouseSignal (int button, int column, int line, int eventType)
void sendStringToEmu (const char *)

Public Member Functions

int bellMode ()
bool blinkingCursor ()
const ColorEntrycolorTable () const
int columns ()
bool ctrlDrag ()
void emitSelection (bool useXselection, bool appendReturn)
QList< QAction * > filterActions (const QPoint &position)
FilterChainfilterChain () const
int fontHeight ()
int fontWidth ()
QFont getVTFont ()
bool isBidiEnabled ()
QColor keyboardCursorColor () const
KeyboardCursorShape keyboardCursorShape () const
int lines ()
uint lineSpacing () const
void processFilters ()
uint randomSeed () const
ScreenWindowscreenWindow () const
void setBellMode (int mode)
void setBidiEnabled (bool set)
void setBlinkingCursor (bool blink)
void setColorTable (const ColorEntry table[])
void setCtrlDrag (bool enable)
void setFixedSize (int cols, int lins)
virtual void setFont (const QFont &)
void setKeyboardCursorColor (bool useForegroundColor, const QColor &color)
void setKeyboardCursorShape (KeyboardCursorShape shape)
void setLineSpacing (uint)
void setOpacity (qreal opacity)
void setRandomSeed (uint seed)
void setScreenWindow (ScreenWindow *window)
void setScroll (int cursor, int lines)
void setScrollBarPosition (ScrollBarPosition position)
void setSelection (const QString &t)
void setSize (int cols, int lins)
void setTerminalSizeHint (bool on)
void setTerminalSizeStartup (bool on)
void setTripleClickMode (TripleClickMode mode)
void setVTFont (const QFont &font)
void setWordCharacters (const QString &wc)
QSize sizeHint () const
 TerminalDisplay (QWidget *parent=0)
bool terminalSizeHint ()
TripleClickMode tripleClickMode ()
QString wordCharacters ()

Static Public Member Functions

static bool antialias ()
static void setAntialias (bool antialias)
static void setTransparencyEnabled (bool enable)

Static Public Attributes

static bool HAVE_TRANSPARENCY = false

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 bool event (QEvent *)
virtual void extendSelection (const QPoint &pos)
virtual bool focusNextPrevChild (bool next)
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


Private Slots

void swapColorTable ()
void tripleClickTimeout ()

Private Member Functions

void calcGeometry ()
QPoint cursorPosition () const
void drawBackground (QPainter &painter, const QRect &rect, const QColor &color, bool useOpacitySetting)
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 drawLineCharString (QPainter &painter, int x, int y, const QString &str, const Character *attributes)
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
bool _bidiEnabled
QRgb _blendColor
QTimer * _blinkCursorTimer
bool _blinking
QTimer * _blinkTimer
QClipboard * _clipboard
bool _colorsInverted
ColorEntry _colorTable [TABLE_COLORS]
int _columns
bool _columnSelectionMode
int _contentHeight
int _contentWidth
bool _ctrlDrag
bool _cursorBlinking
QColor _cursorColor
KeyboardCursorShape _cursorShape
int _dndFileCount
KMenu * _drop
QString _dropText
bool _fixedFont
bool _flowControlWarningEnabled
int _fontAscent
int _fontHeight
int _fontWidth
QGridLayout * _gridLayout
bool _hasBlinker
bool _hasBlinkingCursor
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
uint _randomSeed
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 = 1
static const int DEFAULT_TOP_MARGIN = 1


struct  _dragInfo
struct  InputMethodData

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

Generated by  Doxygen 1.6.0   Back to index