• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • applications API Reference
  • KDE Home
  • Contact Us
 

Konsole

  • Konsole
  • TerminalDisplay
Classes | Public Slots | Signals | Public Member Functions | Protected Types | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
Konsole::TerminalDisplay Class Reference

#include <TerminalDisplay.h>

Inheritance diagram for Konsole::TerminalDisplay:
Inheritance graph
[legend]

Classes

struct  DragInfo
 

Public Slots

void bell (const QString &message)
 
bool bracketedPasteMode () const
 
void copyToClipboard ()
 
void copyToX11Selection ()
 
bool flowControlWarningEnabled () const
 
QColor getBackgroundColor () const
 
void outputSuspended (bool suspended)
 
void pasteFromClipboard (bool appendEnter=false)
 
void pasteFromX11Selection (bool appendEnter=false)
 
void scrollScreenWindow (enum ScreenWindow::RelativeScrollMode mode, int amount)
 
void setAutoCopySelectedText (bool enabled)
 
void setBackgroundColor (const QColor &color)
 
void setBracketedPasteMode (bool bracketedPasteMode)
 
void setCenterContents (bool enable)
 
void setFlowControlWarningEnabled (bool enabled)
 
void setForegroundColor (const QColor &color)
 
void setMargin (int margin)
 
void setMiddleClickPasteMode (Enum::MiddleClickPasteModeEnum mode)
 
void setUsesMouse (bool usesMouse)
 
void updateImage ()
 
void updateLineProperties ()
 
bool usesMouse () const
 

Signals

void changedContentSizeSignal (int height, int width)
 
void changedFontMetricSignal (int height, int width)
 
void configureRequest (const QPoint &position)
 
void keyPressedSignal (QKeyEvent *event)
 
void mouseSignal (int button, int column, int line, int eventType)
 
void overrideShortcutCheck (QKeyEvent *keyEvent, bool &override)
 
void sendStringToEmu (const char *)
 

Public Member Functions

 TerminalDisplay (QWidget *parent=0)
 
virtual ~TerminalDisplay ()
 
bool antialias () const
 
int bellMode () const
 
bool blinkingCursorEnabled () const
 
const ColorEntry * colorTable () const
 
int columns () const
 
bool ctrlRequiredForDrag () const
 
void decreaseFontSize ()
 
QList< QAction * > filterActions (const QPoint &position)
 
FilterChain * filterChain () const
 
int fontHeight () const
 
int fontWidth () const
 
bool getBoldIntense () const
 
bool getOpenLinksByDirectClick () const
 
bool getUnderlineLinks () const
 
QFont getVTFont ()
 
void increaseFontSize ()
 
bool isBidiEnabled () const
 
QColor keyboardCursorColor () const
 
Enum::CursorShapeEnum keyboardCursorShape () const
 
int lines () const
 
uint lineSpacing () const
 
bool mouseWheelZoom ()
 
void printContent (QPainter &painter, bool friendly)
 
void processFilters ()
 
uint randomSeed () const
 
ScreenWindow * screenWindow () const
 
Enum::ScrollBarPositionEnum scrollBarPosition () const
 
bool scrollFullPage () const
 
void selectCurrentLine ()
 
SessionController * sessionController ()
 
void setAntialias (bool value)
 
void setBellMode (int mode)
 
void setBidiEnabled (bool set)
 
void setBlinkingCursorEnabled (bool blink)
 
void setBlinkingTextEnabled (bool blink)
 
void setBoldIntense (bool value)
 
void setColorTable (const ColorEntry table[])
 
void setControlDrag (bool enable)
 
virtual void setFont (const QFont &)
 
void setKeyboardCursorColor (const QColor &color)
 
void setKeyboardCursorShape (Enum::CursorShapeEnum shape)
 
void setLineSpacing (uint)
 
void setMouseWheelZoom (bool value)
 
void setOpacity (qreal opacity)
 
void setOpenLinksByDirectClick (bool value)
 
void setRandomSeed (uint seed)
 
void setScreenWindow (ScreenWindow *window)
 
void setScroll (int cursor, int lines)
 
void setScrollBarPosition (Enum::ScrollBarPositionEnum position)
 
void setScrollFullPage (bool fullPage)
 
void setSessionController (SessionController *controller)
 
void setShowTerminalSizeHint (bool on)
 
void setSize (int columns, int lines)
 
void setTrimTrailingSpaces (bool enabled)
 
void setTripleClickMode (Enum::TripleClickModeEnum mode)
 
void setUnderlineLinks (bool value)
 
void setVTFont (const QFont &font)
 
void setWallpaper (ColorSchemeWallpaper::Ptr p)
 
void setWordCharacters (const QString &wc)
 
bool showTerminalSizeHint () const
 
QSize sizeHint () const
 
bool trimTrailingSpaces () const
 
Enum::TripleClickModeEnum tripleClickMode () const
 
void visualBell ()
 
QString wordCharacters () const
 
- Public Member Functions inherited from QWidget
 QWidget (QWidget *parent, QFlags< Qt::WindowType > f)
 
 QWidget (QWidget *parent, const char *name, QFlags< Qt::WindowType > f)
 
 ~QWidget ()
 
bool acceptDrops () const
 
QString accessibleDescription () const
 
QString accessibleName () const
 
QList< QAction * > actions () const
 
void activateWindow ()
 
void addAction (QAction *action)
 
void addActions (QList< QAction * > actions)
 
void adjustSize ()
 
bool autoFillBackground () const
 
Qt::BackgroundMode backgroundMode () const
 
QPoint backgroundOffset () const
 
BackgroundOrigin backgroundOrigin () const
 
QPalette::ColorRole backgroundRole () const
 
QSize baseSize () const
 
QString caption () const
 
QWidget * childAt (int x, int y, bool includeThis) const
 
QWidget * childAt (const QPoint &p, bool includeThis) const
 
QWidget * childAt (int x, int y) const
 
QWidget * childAt (const QPoint &p) const
 
QRect childrenRect () const
 
QRegion childrenRegion () const
 
void clearFocus ()
 
void clearMask ()
 
bool close (bool alsoDelete)
 
bool close ()
 
QColorGroup colorGroup () const
 
void constPolish () const
 
QMargins contentsMargins () const
 
QRect contentsRect () const
 
Qt::ContextMenuPolicy contextMenuPolicy () const
 
QCursor cursor () const
 
void customContextMenuRequested (const QPoint &pos)
 
void drawText (const QPoint &p, const QString &s)
 
void drawText (int x, int y, const QString &s)
 
WId effectiveWinId () const
 
void ensurePolished () const
 
void erase ()
 
void erase (const QRect &rect)
 
void erase (const QRegion &rgn)
 
void erase (int x, int y, int w, int h)
 
Qt::FocusPolicy focusPolicy () const
 
QWidget * focusProxy () const
 
QWidget * focusWidget () const
 
const QFont & font () const
 
QFontInfo fontInfo () const
 
QFontMetrics fontMetrics () const
 
QPalette::ColorRole foregroundRole () const
 
QRect frameGeometry () const
 
QSize frameSize () const
 
const QRect & geometry () const
 
void getContentsMargins (int *left, int *top, int *right, int *bottom) const
 
virtual HDC getDC () const
 
void grabGesture (Qt::GestureType gesture, QFlags< Qt::GestureFlag > flags)
 
void grabKeyboard ()
 
void grabMouse ()
 
void grabMouse (const QCursor &cursor)
 
int grabShortcut (const QKeySequence &key, Qt::ShortcutContext context)
 
QGraphicsEffect * graphicsEffect () const
 
QGraphicsProxyWidget * graphicsProxyWidget () const
 
bool hasEditFocus () const
 
bool hasFocus () const
 
bool hasMouse () const
 
bool hasMouseTracking () const
 
int height () const
 
virtual int heightForWidth (int w) const
 
void hide ()
 
const QPixmap * icon () const
 
void iconify ()
 
QString iconText () const
 
QInputContext * inputContext ()
 
Qt::InputMethodHints inputMethodHints () const
 
void insertAction (QAction *before, QAction *action)
 
void insertActions (QAction *before, QList< QAction * > actions)
 
bool isActiveWindow () const
 
bool isAncestorOf (const QWidget *child) const
 
bool isDesktop () const
 
bool isDialog () const
 
bool isEnabled () const
 
bool isEnabledTo (QWidget *ancestor) const
 
bool isEnabledToTLW () const
 
bool isFullScreen () const
 
bool isHidden () const
 
bool isInputMethodEnabled () const
 
bool isMaximized () const
 
bool isMinimized () const
 
bool isModal () const
 
bool isPopup () const
 
bool isShown () const
 
bool isTopLevel () const
 
bool isUpdatesEnabled () const
 
bool isVisible () const
 
bool isVisibleTo (QWidget *ancestor) const
 
bool isVisibleToTLW () const
 
bool isWindow () const
 
bool isWindowModified () const
 
QLayout * layout () const
 
Qt::LayoutDirection layoutDirection () const
 
QLocale locale () const
 
void lower ()
 
Qt::HANDLE macCGHandle () const
 
Qt::HANDLE macQDHandle () const
 
QPoint mapFrom (QWidget *parent, const QPoint &pos) const
 
QPoint mapFromGlobal (const QPoint &pos) const
 
QPoint mapFromParent (const QPoint &pos) const
 
QPoint mapTo (QWidget *parent, const QPoint &pos) const
 
QPoint mapToGlobal (const QPoint &pos) const
 
QPoint mapToParent (const QPoint &pos) const
 
QRegion mask () const
 
int maximumHeight () const
 
QSize maximumSize () const
 
int maximumWidth () const
 
int minimumHeight () const
 
QSize minimumSize () const
 
virtual QSize minimumSizeHint () const
 
int minimumWidth () const
 
void move (int x, int y)
 
void move (const QPoint &)
 
QWidget * nativeParentWidget () const
 
QWidget * nextInFocusChain () const
 
QRect normalGeometry () const
 
void overrideWindowFlags (QFlags< Qt::WindowType > flags)
 
bool ownCursor () const
 
bool ownFont () const
 
bool ownPalette () const
 
virtual QPaintEngine * paintEngine () const
 
const QPalette & palette () const
 
QWidget * parentWidget (bool sameWindow) const
 
QWidget * parentWidget () const
 
QPlatformWindow * platformWindow () const
 
QPlatformWindowFormat platformWindowFormat () const
 
void polish ()
 
QPoint pos () const
 
QWidget * previousInFocusChain () const
 
void raise ()
 
void recreate (QWidget *parent, QFlags< Qt::WindowType > f, const QPoint &p, bool showIt)
 
QRect rect () const
 
virtual void releaseDC (HDC hdc) const
 
void releaseKeyboard ()
 
void releaseMouse ()
 
void releaseShortcut (int id)
 
void removeAction (QAction *action)
 
void render (QPaintDevice *target, const QPoint &targetOffset, const QRegion &sourceRegion, QFlags< QWidget::RenderFlag > renderFlags)
 
void render (QPainter *painter, const QPoint &targetOffset, const QRegion &sourceRegion, QFlags< QWidget::RenderFlag > renderFlags)
 
void repaint (int x, int y, int w, int h, bool b)
 
void repaint (const QRegion &rgn, bool b)
 
void repaint ()
 
void repaint (int x, int y, int w, int h)
 
void repaint (const QRegion &rgn)
 
void repaint (bool b)
 
void repaint (const QRect &rect)
 
void repaint (const QRect &r, bool b)
 
void reparent (QWidget *parent, QFlags< Qt::WindowType > f, const QPoint &p, bool showIt)
 
void reparent (QWidget *parent, const QPoint &p, bool showIt)
 
void resize (int w, int h)
 
void resize (const QSize &)
 
bool restoreGeometry (const QByteArray &geometry)
 
QByteArray saveGeometry () const
 
void scroll (int dx, int dy)
 
void scroll (int dx, int dy, const QRect &r)
 
void setAcceptDrops (bool on)
 
void setAccessibleDescription (const QString &description)
 
void setAccessibleName (const QString &name)
 
void setActiveWindow ()
 
void setAttribute (Qt::WidgetAttribute attribute, bool on)
 
void setAutoFillBackground (bool enabled)
 
void setBackgroundColor (const QColor &color)
 
void setBackgroundMode (Qt::BackgroundMode widgetBackground, Qt::BackgroundMode paletteBackground)
 
void setBackgroundOrigin (BackgroundOrigin background)
 
void setBackgroundPixmap (const QPixmap &pixmap)
 
void setBackgroundRole (QPalette::ColorRole role)
 
void setBaseSize (const QSize &)
 
void setBaseSize (int basew, int baseh)
 
void setCaption (const QString &c)
 
void setContentsMargins (int left, int top, int right, int bottom)
 
void setContentsMargins (const QMargins &margins)
 
void setContextMenuPolicy (Qt::ContextMenuPolicy policy)
 
void setCursor (const QCursor &)
 
void setDisabled (bool disable)
 
void setEditFocus (bool enable)
 
void setEnabled (bool)
 
void setEraseColor (const QColor &color)
 
void setErasePixmap (const QPixmap &pixmap)
 
void setFixedHeight (int h)
 
void setFixedSize (const QSize &s)
 
void setFixedSize (int w, int h)
 
void setFixedWidth (int w)
 
void setFocus (Qt::FocusReason reason)
 
void setFocus ()
 
void setFocusPolicy (Qt::FocusPolicy policy)
 
void setFocusProxy (QWidget *w)
 
void setFont (const QFont &)
 
void setFont (const QFont &f, bool b)
 
void setForegroundRole (QPalette::ColorRole role)
 
void setGeometry (int x, int y, int w, int h)
 
void setGeometry (const QRect &)
 
void setGraphicsEffect (QGraphicsEffect *effect)
 
void setHidden (bool hidden)
 
void setIcon (const QPixmap &i)
 
void setIconText (const QString &it)
 
void setInputContext (QInputContext *context)
 
void setInputMethodEnabled (bool enabled)
 
void setInputMethodHints (QFlags< Qt::InputMethodHint > hints)
 
void setKeyCompression (bool b)
 
void setLayout (QLayout *layout)
 
void setLayoutDirection (Qt::LayoutDirection direction)
 
void setLocale (const QLocale &locale)
 
void setMask (const QBitmap &bitmap)
 
void setMask (const QRegion &region)
 
void setMaximumHeight (int maxh)
 
void setMaximumSize (const QSize &)
 
void setMaximumSize (int maxw, int maxh)
 
void setMaximumWidth (int maxw)
 
void setMinimumHeight (int minh)
 
void setMinimumSize (int minw, int minh)
 
void setMinimumSize (const QSize &)
 
void setMinimumWidth (int minw)
 
void setMouseTracking (bool enable)
 
void setPalette (const QPalette &)
 
void setPalette (const QPalette &p, bool b)
 
void setPaletteBackgroundColor (const QColor &color)
 
void setPaletteBackgroundPixmap (const QPixmap &pixmap)
 
void setPaletteForegroundColor (const QColor &color)
 
void setParent (QWidget *parent)
 
void setParent (QWidget *parent, QFlags< Qt::WindowType > f)
 
void setPlatformWindow (QPlatformWindow *window)
 
void setPlatformWindowFormat (const QPlatformWindowFormat &format)
 
void setShortcutAutoRepeat (int id, bool enable)
 
void setShortcutEnabled (int id, bool enable)
 
void setShown (bool shown)
 
void setSizeIncrement (const QSize &)
 
void setSizeIncrement (int w, int h)
 
void setSizePolicy (QSizePolicy::Policy hor, QSizePolicy::Policy ver, bool hfw)
 
void setSizePolicy (QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical)
 
void setSizePolicy (QSizePolicy)
 
void setStatusTip (const QString &)
 
void setStyle (QStyle *style)
 
QStyle * setStyle (const QString &style)
 
void setStyleSheet (const QString &styleSheet)
 
void setToolTip (const QString &)
 
void setUpdatesEnabled (bool enable)
 
void setupUi (QWidget *widget)
 
virtual void setVisible (bool visible)
 
void setWhatsThis (const QString &)
 
void setWindowFilePath (const QString &filePath)
 
void setWindowFlags (QFlags< Qt::WindowType > type)
 
void setWindowIcon (const QIcon &icon)
 
void setWindowIconText (const QString &)
 
void setWindowModality (Qt::WindowModality windowModality)
 
void setWindowModified (bool)
 
void setWindowOpacity (qreal level)
 
void setWindowRole (const QString &role)
 
void setWindowState (QFlags< Qt::WindowState > windowState)
 
void setWindowSurface (QWindowSurface *surface)
 
void setWindowTitle (const QString &)
 
void show ()
 
void showFullScreen ()
 
void showMaximized ()
 
void showMinimized ()
 
void showNormal ()
 
QSize size () const
 
QSize sizeIncrement () const
 
QSizePolicy sizePolicy () const
 
void stackUnder (QWidget *w)
 
QString statusTip () const
 
QStyle * style () const
 
QString styleSheet () const
 
bool testAttribute (Qt::WidgetAttribute attribute) const
 
QString toolTip () const
 
QWidget * topLevelWidget () const
 
bool underMouse () const
 
void ungrabGesture (Qt::GestureType gesture)
 
void unsetCursor ()
 
void unsetFont ()
 
void unsetLayoutDirection ()
 
void unsetLocale ()
 
void unsetPalette ()
 
void update (const QRect &rect)
 
void update (const QRegion &rgn)
 
void update (int x, int y, int w, int h)
 
void update ()
 
void updateGeometry ()
 
bool updatesEnabled () const
 
QRect visibleRect () const
 
QRegion visibleRegion () const
 
QString whatsThis () const
 
int width () const
 
QWidget * window () const
 
QString windowFilePath () const
 
Qt::WindowFlags windowFlags () const
 
QIcon windowIcon () const
 
QString windowIconText () const
 
Qt::WindowModality windowModality () const
 
qreal windowOpacity () const
 
QString windowRole () const
 
Qt::WindowStates windowState () const
 
QWindowSurface * windowSurface () const
 
QString windowTitle () const
 
Qt::WindowType windowType () const
 
WId winId () const
 
int x () const
 
const QX11Info & x11Info () const
 
Qt::HANDLE x11PictureHandle () const
 
int y () const
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
 QObject (QObject *parent, const char *name)
 
virtual  ~QObject ()
 
bool blockSignals (bool block)
 
QObject * child (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
const char * className () const
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const QObject *receiver, const char *method)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArray > dynamicPropertyNames () const
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
T findChild (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
QList< T > findChildren (const QString &name) const
 
bool inherits (const char *className) const
 
void insertChild (QObject *object)
 
void installEventFilter (QObject *filterObj)
 
bool isA (const char *className) const
 
bool isWidgetType () const
 
void killTimer (int id)
 
virtual const QMetaObject * metaObject () const
 
void moveToThread (QThread *targetThread)
 
const char * name () const
 
const char * name (const char *defaultName) const
 
QString objectName () const
 
QObject * parent () const
 
QVariant property (const char *name) const
 
void removeChild (QObject *object)
 
void removeEventFilter (QObject *obj)
 
void setName (const char *name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval)
 
QThread * thread () const
 
- Public Member Functions inherited from QPaintDevice
virtual  ~QPaintDevice ()
 
int colorCount () const
 
int depth () const
 
int height () const
 
int heightMM () const
 
int logicalDpiX () const
 
int logicalDpiY () const
 
int numColors () const
 
virtual QPaintEngine * paintEngine () const =0
 
bool paintingActive () const
 
int physicalDpiX () const
 
int physicalDpiY () const
 
int width () const
 
int widthMM () const
 
int x11Cells () const
 
Qt::HANDLE x11Colormap () const
 
bool x11DefaultColormap () const
 
bool x11DefaultVisual () const
 
int x11Depth () const
 
Display * x11Display () const
 
int x11Screen () const
 
void * x11Visual () const
 

Protected Types

enum  DragState { diNone, diPending, diDragging }
 

Protected Slots

void blinkCursorEvent ()
 
void blinkTextEvent ()
 
void scrollBarPositionChanged (int value)
 

Protected Member Functions

QChar charClass (const Character &ch) const
 
void clearImage ()
 
virtual void contextMenuEvent (QContextMenuEvent *event)
 
void doDrag ()
 
virtual void dragEnterEvent (QDragEnterEvent *event)
 
virtual void dropEvent (QDropEvent *event)
 
virtual bool event (QEvent *event)
 
virtual void extendSelection (const QPoint &pos)
 
virtual void focusInEvent (QFocusEvent *event)
 
virtual bool focusNextPrevChild (bool next)
 
virtual void focusOutEvent (QFocusEvent *event)
 
virtual void fontChange (const QFont &)
 
virtual void hideEvent (QHideEvent *event)
 
virtual void inputMethodEvent (QInputMethodEvent *event)
 
virtual QVariant inputMethodQuery (Qt::InputMethodQuery query) const
 
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void leaveEvent (QEvent *event)
 
virtual void mouseDoubleClickEvent (QMouseEvent *event)
 
virtual void mouseMoveEvent (QMouseEvent *event)
 
virtual void mousePressEvent (QMouseEvent *event)
 
virtual void mouseReleaseEvent (QMouseEvent *event)
 
void mouseTripleClickEvent (QMouseEvent *event)
 
virtual void paintEvent (QPaintEvent *event)
 
virtual void resizeEvent (QResizeEvent *event)
 
void selectLine (QPoint pos, bool entireLine)
 
virtual void showEvent (QShowEvent *event)
 
virtual void wheelEvent (QWheelEvent *event)
 
- Protected Member Functions inherited from QWidget
virtual void actionEvent (QActionEvent *event)
 
virtual void changeEvent (QEvent *event)
 
virtual void closeEvent (QCloseEvent *event)
 
void create (WId window, bool initializeWindow, bool destroyOldWindow)
 
void destroy (bool destroyWindow, bool destroySubWindows)
 
virtual void dragLeaveEvent (QDragLeaveEvent *event)
 
virtual void dragMoveEvent (QDragMoveEvent *event)
 
virtual void enterEvent (QEvent *event)
 
bool focusNextChild ()
 
bool focusPreviousChild ()
 
virtual void keyReleaseEvent (QKeyEvent *event)
 
virtual void languageChange ()
 
virtual bool macEvent (EventHandlerCallRef caller, EventRef event)
 
virtual int metric (PaintDeviceMetric m) const
 
virtual void moveEvent (QMoveEvent *event)
 
virtual bool qwsEvent (QWSEvent *event)
 
void resetInputContext ()
 
virtual void tabletEvent (QTabletEvent *event)
 
void updateMicroFocus ()
 
virtual bool winEvent (MSG *message, long *result)
 
virtual bool x11Event (XEvent *event)
 
- Protected Member Functions inherited from QObject
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const char *signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const char *signal)
 
int receivers (const char *signal) const
 
QObject * sender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 
- Protected Member Functions inherited from QPaintDevice
 QPaintDevice ()
 

Protected Attributes

struct
Konsole::TerminalDisplay::DragInfo 
_dragInfo
 

Additional Inherited Members

- Static Public Member Functions inherited from QWidget
QWidget * find (WId id)
 
QWidget * keyboardGrabber ()
 
QWidget * mouseGrabber ()
 
void setTabOrder (QWidget *first, QWidget *second)
 
QWidgetMapper * wmapper ()
 
- Static Public Member Functions inherited from QObject
bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 
- Static Public Member Functions inherited from QPaintDevice
int x11AppCells (int screen)
 
Qt::HANDLE x11AppColormap (int screen)
 
bool x11AppDefaultColormap (int screen)
 
bool x11AppDefaultVisual (int screen)
 
int x11AppDepth (int screen)
 
Display * x11AppDisplay ()
 
int x11AppDpiX (int screen)
 
int x11AppDpiY (int screen)
 
Qt::HANDLE x11AppRootWindow (int screen)
 
int x11AppScreen ()
 
void * x11AppVisual (int screen)
 
void x11SetAppDpiX (int dpi, int screen)
 
void x11SetAppDpiY (int dpi, int screen)
 
- Public Attributes inherited from QWidget
typedef RenderFlags
 
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 
- Properties inherited from QWidget
 acceptDrops
 
 accessibleDescription
 
 accessibleName
 
 autoFillBackground
 
 baseSize
 
 childrenRect
 
 childrenRegion
 
 contextMenuPolicy
 
 cursor
 
 enabled
 
 focus
 
 focusPolicy
 
 font
 
 frameGeometry
 
 frameSize
 
 fullScreen
 
 geometry
 
 height
 
 inputMethodHints
 
 isActiveWindow
 
 layoutDirection
 
 locale
 
 maximized
 
 maximumHeight
 
 maximumSize
 
 maximumWidth
 
 minimized
 
 minimumHeight
 
 minimumSize
 
 minimumSizeHint
 
 minimumWidth
 
 modal
 
 mouseTracking
 
 normalGeometry
 
 palette
 
 pos
 
 rect
 
 size
 
 sizeHint
 
 sizeIncrement
 
 sizePolicy
 
 statusTip
 
 styleSheet
 
 toolTip
 
 updatesEnabled
 
 visible
 
 whatsThis
 
 width
 
 windowFilePath
 
 windowFlags
 
 windowIcon
 
 windowIconText
 
 windowModality
 
 windowModified
 
 windowOpacity
 
 windowTitle
 
 x
 
 y
 
- Properties inherited from QObject
 objectName
 

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 TerminalDisplay.h.

Member Enumeration Documentation

enum Konsole::TerminalDisplay::DragState
protected
Enumerator
diNone 
diPending 
diDragging 

Definition at line 644 of file TerminalDisplay.h.

Constructor & Destructor Documentation

TerminalDisplay::TerminalDisplay ( QWidget *  parent = 0)
explicit

Constructs a new terminal display widget with the specified parent.

Definition at line 294 of file TerminalDisplay.cpp.

TerminalDisplay::~TerminalDisplay ( )
virtual

Definition at line 410 of file TerminalDisplay.cpp.

Member Function Documentation

bool Konsole::TerminalDisplay::antialias ( ) const
inline

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

Definition at line 391 of file TerminalDisplay.h.

void TerminalDisplay::bell ( const QString &  message)
slot

Shows a notification that a bell event has occurred in the terminal.

TODO: More documentation here

Definition at line 3062 of file TerminalDisplay.cpp.

int TerminalDisplay::bellMode ( ) const

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

See setBellMode()

Definition at line 3052 of file TerminalDisplay.cpp.

void TerminalDisplay::blinkCursorEvent ( )
protectedslot

Definition at line 1592 of file TerminalDisplay.cpp.

bool Konsole::TerminalDisplay::blinkingCursorEnabled ( ) const
inline

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

Definition at line 151 of file TerminalDisplay.h.

void TerminalDisplay::blinkTextEvent ( )
protectedslot

Definition at line 1581 of file TerminalDisplay.cpp.

bool TerminalDisplay::bracketedPasteMode ( ) const
slot

Definition at line 2690 of file TerminalDisplay.cpp.

void Konsole::TerminalDisplay::changedContentSizeSignal ( int  height,
int  width 
)
signal
void Konsole::TerminalDisplay::changedFontMetricSignal ( int  height,
int  width 
)
signal
QChar TerminalDisplay::charClass ( const Character &  ch) const
protected

Definition at line 2642 of file TerminalDisplay.cpp.

void TerminalDisplay::clearImage ( )
protected

Definition at line 1676 of file TerminalDisplay.cpp.

const ColorEntry * TerminalDisplay::colorTable ( ) const

Returns the terminal color palette used by the display.

Definition at line 124 of file TerminalDisplay.cpp.

int Konsole::TerminalDisplay::columns ( ) const
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 278 of file TerminalDisplay.h.

void Konsole::TerminalDisplay::configureRequest ( 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.

void TerminalDisplay::contextMenuEvent ( QContextMenuEvent *  event)
protectedvirtual

Reimplemented from QWidget.

Definition at line 3033 of file TerminalDisplay.cpp.

void TerminalDisplay::copyToClipboard ( )
slot

Copies the selected text to the system clipboard.

Definition at line 2758 of file TerminalDisplay.cpp.

void TerminalDisplay::copyToX11Selection ( )
slot

Copies the selected text to the X11 Selection.

Definition at line 2743 of file TerminalDisplay.cpp.

bool Konsole::TerminalDisplay::ctrlRequiredForDrag ( ) const
inline

Definition at line 161 of file TerminalDisplay.h.

void TerminalDisplay::decreaseFontSize ( )

Decreases the font size.

Definition at line 246 of file TerminalDisplay.cpp.

void TerminalDisplay::doDrag ( )
protected

Definition at line 3220 of file TerminalDisplay.cpp.

void TerminalDisplay::dragEnterEvent ( QDragEnterEvent *  event)
protectedvirtual

Reimplemented from QWidget.

Definition at line 3115 of file TerminalDisplay.cpp.

void TerminalDisplay::dropEvent ( QDropEvent *  event)
protectedvirtual

Reimplemented from QWidget.

Definition at line 3127 of file TerminalDisplay.cpp.

bool TerminalDisplay::event ( QEvent *  event)
protectedvirtual

Reimplemented from QWidget.

Definition at line 3016 of file TerminalDisplay.cpp.

void TerminalDisplay::extendSelection ( const QPoint &  pos)
protectedvirtual

Definition at line 2038 of file TerminalDisplay.cpp.

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

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

Definition at line 1915 of file TerminalDisplay.cpp.

FilterChain * TerminalDisplay::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 1214 of file TerminalDisplay.cpp.

bool Konsole::TerminalDisplay::flowControlWarningEnabled ( ) const
inlineslot

Returns true if the flow control warning box is enabled.

See outputSuspended() and setFlowControlWarningEnabled()

Definition at line 506 of file TerminalDisplay.h.

void TerminalDisplay::focusInEvent ( QFocusEvent *  event)
protectedvirtual

Reimplemented from QWidget.

Definition at line 1570 of file TerminalDisplay.cpp.

bool TerminalDisplay::focusNextPrevChild ( bool  next)
protectedvirtual

Reimplemented from QWidget.

Definition at line 2632 of file TerminalDisplay.cpp.

void TerminalDisplay::focusOutEvent ( QFocusEvent *  event)
protectedvirtual

Reimplemented from QWidget.

Definition at line 1548 of file TerminalDisplay.cpp.

void TerminalDisplay::fontChange ( const QFont &  )
protectedvirtual

Definition at line 174 of file TerminalDisplay.cpp.

int Konsole::TerminalDisplay::fontHeight ( ) const
inline

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

Definition at line 285 of file TerminalDisplay.h.

int Konsole::TerminalDisplay::fontWidth ( ) const
inline

Returns the width of the characters in the display.

This assumes the use of a fixed-width font.

Definition at line 292 of file TerminalDisplay.h.

QColor TerminalDisplay::getBackgroundColor ( ) const
slot

Gets the background of the display.

See also
setBackgroundColor(), setColorTable(), setForegroundColor()

Definition at line 141 of file TerminalDisplay.cpp.

bool Konsole::TerminalDisplay::getBoldIntense ( ) const
inline

Returns true if characters with intense colors are rendered in bold.

Definition at line 405 of file TerminalDisplay.h.

bool Konsole::TerminalDisplay::getOpenLinksByDirectClick ( ) const
inline

Returns true if links and email addresses should be opened when clicked with the mouse.

Definition at line 200 of file TerminalDisplay.h.

bool Konsole::TerminalDisplay::getUnderlineLinks ( ) const
inline

Returns true if links and email addresses should be underlined when hovered by the mouse.

Definition at line 185 of file TerminalDisplay.h.

QFont Konsole::TerminalDisplay::getVTFont ( )
inline

Returns the font used to draw characters in the display.

Definition at line 365 of file TerminalDisplay.h.

void TerminalDisplay::hideEvent ( QHideEvent *  event)
protectedvirtual

Reimplemented from QWidget.

Definition at line 1744 of file TerminalDisplay.cpp.

void TerminalDisplay::increaseFontSize ( )

Increases the font size.

Definition at line 239 of file TerminalDisplay.cpp.

void TerminalDisplay::inputMethodEvent ( QInputMethodEvent *  event)
protectedvirtual

Reimplemented from QWidget.

Definition at line 2788 of file TerminalDisplay.cpp.

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

Reimplemented from QWidget.

Definition at line 2801 of file TerminalDisplay.cpp.

bool Konsole::TerminalDisplay::isBidiEnabled ( ) const
inline

Returns the status of the BiDi rendering in this widget.

Definition at line 436 of file TerminalDisplay.h.

QColor TerminalDisplay::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 571 of file TerminalDisplay.cpp.

Enum::CursorShapeEnum TerminalDisplay::keyboardCursorShape ( ) const

Returns the shape of the keyboard cursor.

See setKeyboardCursorShape()

Definition at line 563 of file TerminalDisplay.cpp.

void Konsole::TerminalDisplay::keyPressedSignal ( QKeyEvent *  event)
signal

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

void TerminalDisplay::keyPressEvent ( QKeyEvent *  event)
protectedvirtual

Reimplemented from QWidget.

Definition at line 2942 of file TerminalDisplay.cpp.

void TerminalDisplay::leaveEvent ( QEvent *  event)
protectedvirtual

Reimplemented from QWidget.

Definition at line 2029 of file TerminalDisplay.cpp.

int Konsole::TerminalDisplay::lines ( ) const
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 268 of file TerminalDisplay.h.

uint TerminalDisplay::lineSpacing ( ) const

Definition at line 255 of file TerminalDisplay.cpp.

void TerminalDisplay::mouseDoubleClickEvent ( QMouseEvent *  event)
protectedvirtual

Reimplemented from QWidget.

Definition at line 2284 of file TerminalDisplay.cpp.

void TerminalDisplay::mouseMoveEvent ( QMouseEvent *  event)
protectedvirtual

Reimplemented from QWidget.

Definition at line 1925 of file TerminalDisplay.cpp.

void TerminalDisplay::mousePressEvent ( QMouseEvent *  event)
protectedvirtual

Reimplemented from QWidget.

Definition at line 1837 of file TerminalDisplay.cpp.

void TerminalDisplay::mouseReleaseEvent ( QMouseEvent *  event)
protectedvirtual

Reimplemented from QWidget.

Definition at line 2191 of file TerminalDisplay.cpp.

void Konsole::TerminalDisplay::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
void TerminalDisplay::mouseTripleClickEvent ( QMouseEvent *  event)
protected

Definition at line 2586 of file TerminalDisplay.cpp.

bool Konsole::TerminalDisplay::mouseWheelZoom ( )
inline

Returns the whether zoom terminal on Ctrl+mousewheel is enabled.

See setMouseWheelZoom()

Definition at line 354 of file TerminalDisplay.h.

void TerminalDisplay::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 2884 of file TerminalDisplay.cpp.

void Konsole::TerminalDisplay::overrideShortcutCheck ( QKeyEvent *  keyEvent,
bool &  override 
)
signal

When a shortcut which is also a valid terminal key sequence is pressed while the terminal widget has focus, this signal is emitted to allow the host to decide whether the shortcut should be overridden.

When the shortcut is overridden, the key sequence will be sent to the terminal emulation instead and the action associated with the shortcut will not be triggered.

override is set to false by default and the shortcut will be triggered as normal.

void TerminalDisplay::paintEvent ( QPaintEvent *  event)
protectedvirtual

Reimplemented from QWidget.

Definition at line 1171 of file TerminalDisplay.cpp.

void TerminalDisplay::pasteFromClipboard ( bool  appendEnter = false)
slot

Pastes the content of the clipboard into the display.

Definition at line 2770 of file TerminalDisplay.cpp.

void TerminalDisplay::pasteFromX11Selection ( bool  appendEnter = false)
slot

Pastes the content of the X11 selection into the display.

Definition at line 2776 of file TerminalDisplay.cpp.

void TerminalDisplay::printContent ( QPainter &  painter,
bool  friendly 
)

Definition at line 1185 of file TerminalDisplay.cpp.

void TerminalDisplay::processFilters ( )

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 944 of file TerminalDisplay.cpp.

uint TerminalDisplay::randomSeed ( ) const

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

Definition at line 809 of file TerminalDisplay.cpp.

void TerminalDisplay::resizeEvent ( QResizeEvent *  event)
protectedvirtual

Reimplemented from QWidget.

Definition at line 1612 of file TerminalDisplay.cpp.

ScreenWindow * TerminalDisplay::screenWindow ( ) const

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

See setScreenWindow()

Definition at line 103 of file TerminalDisplay.cpp.

Enum::ScrollBarPositionEnum Konsole::TerminalDisplay::scrollBarPosition ( ) const
inline

Definition at line 98 of file TerminalDisplay.h.

void TerminalDisplay::scrollBarPositionChanged ( int  value)
protectedslot

Definition at line 1784 of file TerminalDisplay.cpp.

bool TerminalDisplay::scrollFullPage ( ) const

Definition at line 1827 of file TerminalDisplay.cpp.

void TerminalDisplay::scrollScreenWindow ( enum ScreenWindow::RelativeScrollMode  mode,
int  amount 
)
slot

Scrolls current ScreenWindow.

it's needed for proper handling scroll commands in the Vt102Emulation class

Definition at line 2933 of file TerminalDisplay.cpp.

void TerminalDisplay::selectCurrentLine ( )

Definition at line 2625 of file TerminalDisplay.cpp.

void TerminalDisplay::selectLine ( QPoint  pos,
bool  entireLine 
)
protected

Definition at line 2597 of file TerminalDisplay.cpp.

void Konsole::TerminalDisplay::sendStringToEmu ( const char *  )
signal
SessionController * TerminalDisplay::sessionController ( )

Definition at line 3235 of file TerminalDisplay.cpp.

void Konsole::TerminalDisplay::setAntialias ( bool  value)
inline

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

Defaults to enabled.

Definition at line 385 of file TerminalDisplay.h.

void TerminalDisplay::setAutoCopySelectedText ( bool  enabled)
slot

Definition at line 2733 of file TerminalDisplay.cpp.

void TerminalDisplay::setBackgroundColor ( const QColor &  color)
slot

Sets the background of the display to the specified color.

See also
setColorTable(), getBackgroundColor(), setForegroundColor()

Definition at line 128 of file TerminalDisplay.cpp.

void TerminalDisplay::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 3047 of file TerminalDisplay.cpp.

void Konsole::TerminalDisplay::setBidiEnabled ( bool  set)
inline

Sets the status of the BiDi rendering inside the terminal display.

Defaults to disabled.

Definition at line 430 of file TerminalDisplay.h.

void TerminalDisplay::setBlinkingCursorEnabled ( bool  blink)

Specifies whether or not the cursor can blink.

Definition at line 1515 of file TerminalDisplay.cpp.

void TerminalDisplay::setBlinkingTextEnabled ( bool  blink)

Specifies whether or not text can blink.

Definition at line 1535 of file TerminalDisplay.cpp.

void Konsole::TerminalDisplay::setBoldIntense ( bool  value)
inline

Specifies whether characters with intense colors should be rendered as bold.

Defaults to true.

Definition at line 399 of file TerminalDisplay.h.

void TerminalDisplay::setBracketedPasteMode ( bool  bracketedPasteMode)
slot

Definition at line 2686 of file TerminalDisplay.cpp.

void TerminalDisplay::setCenterContents ( bool  enable)
slot

Sets whether the contents are centered between the margins.

Definition at line 1755 of file TerminalDisplay.cpp.

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

Sets the terminal color palette used by the display.

Definition at line 152 of file TerminalDisplay.cpp.

void Konsole::TerminalDisplay::setControlDrag ( bool  enable)
inline

Definition at line 158 of file TerminalDisplay.h.

void TerminalDisplay::setFlowControlWarningEnabled ( bool  enabled)
slot

Changes whether the flow control warning box should be shown when the flow control stop key (Ctrl+S) are pressed.

Definition at line 2874 of file TerminalDisplay.cpp.

void TerminalDisplay::setFont ( const QFont &  )
virtual

Reimplemented.

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

Definition at line 234 of file TerminalDisplay.cpp.

void TerminalDisplay::setForegroundColor ( const QColor &  color)
slot

Sets the text of the display to the specified color.

See also
setColorTable(), setBackgroundColor(), getBackgroundColor()

Definition at line 146 of file TerminalDisplay.cpp.

void TerminalDisplay::setKeyboardCursorColor ( 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
colorBy default, the widget uses the color of the character under the cursor to draw the cursor, and inverts the color of that character to make sure it is still readable. If color is a valid QColor, the widget uses that color to draw the cursor. If color is not an valid QColor, the widget falls back to the default behavior.

Definition at line 567 of file TerminalDisplay.cpp.

void TerminalDisplay::setKeyboardCursorShape ( Enum::CursorShapeEnum  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 559 of file TerminalDisplay.cpp.

void TerminalDisplay::setLineSpacing ( uint  i)

Definition at line 260 of file TerminalDisplay.cpp.

void TerminalDisplay::setMargin ( int  margin)
slot

Sets the display's contents margins.

Definition at line 1749 of file TerminalDisplay.cpp.

void TerminalDisplay::setMiddleClickPasteMode ( Enum::MiddleClickPasteModeEnum  mode)
slot

Definition at line 2738 of file TerminalDisplay.cpp.

void Konsole::TerminalDisplay::setMouseWheelZoom ( bool  value)
inline

Specified whether zoom terminal on Ctrl+mousewheel is enabled or not.

Defaults to enabled.

Definition at line 346 of file TerminalDisplay.h.

void TerminalDisplay::setOpacity ( qreal  opacity)

Sets the opacity of the terminal display.

Definition at line 576 of file TerminalDisplay.cpp.

void Konsole::TerminalDisplay::setOpenLinksByDirectClick ( bool  value)
inline

Specifies whether links and email addresses should be opened when clicked with the mouse.

Defaults to false.

Definition at line 193 of file TerminalDisplay.h.

void TerminalDisplay::setRandomSeed ( uint  seed)

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

Definition at line 805 of file TerminalDisplay.cpp.

void TerminalDisplay::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 107 of file TerminalDisplay.cpp.

void TerminalDisplay::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 1801 of file TerminalDisplay.cpp.

void TerminalDisplay::setScrollBarPosition ( Enum::ScrollBarPositionEnum  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 1768 of file TerminalDisplay.cpp.

void TerminalDisplay::setScrollFullPage ( bool  fullPage)

Definition at line 1822 of file TerminalDisplay.cpp.

void TerminalDisplay::setSessionController ( SessionController *  controller)

Definition at line 3230 of file TerminalDisplay.cpp.

void Konsole::TerminalDisplay::setShowTerminalSizeHint ( 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 414 of file TerminalDisplay.h.

void TerminalDisplay::setSize ( int  columns,
int  lines 
)

Definition at line 1715 of file TerminalDisplay.cpp.

void Konsole::TerminalDisplay::setTrimTrailingSpaces ( bool  enabled)
inline

Sets whether trailing spaces should be trimmed in selected text.

Definition at line 207 of file TerminalDisplay.h.

void Konsole::TerminalDisplay::setTripleClickMode ( Enum::TripleClickModeEnum  mode)
inline

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

Definition at line 166 of file TerminalDisplay.h.

void Konsole::TerminalDisplay::setUnderlineLinks ( bool  value)
inline

Specifies whether links and email addresses should be underlined when hovered by the mouse.

Defaults to true.

Definition at line 178 of file TerminalDisplay.h.

void TerminalDisplay::setUsesMouse ( bool  usesMouse)
slot

Sets whether the program whose 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 2676 of file TerminalDisplay.cpp.

void TerminalDisplay::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 205 of file TerminalDisplay.cpp.

void TerminalDisplay::setWallpaper ( ColorSchemeWallpaper::Ptr  p)

Sets the background picture.

Definition at line 596 of file TerminalDisplay.cpp.

void TerminalDisplay::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 2668 of file TerminalDisplay.cpp.

void TerminalDisplay::showEvent ( QShowEvent *  event)
protectedvirtual

Reimplemented from QWidget.

Definition at line 1740 of file TerminalDisplay.cpp.

bool Konsole::TerminalDisplay::showTerminalSizeHint ( ) const
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 422 of file TerminalDisplay.h.

QSize TerminalDisplay::sizeHint ( ) const
virtual

Reimplemented from QWidget.

Definition at line 1730 of file TerminalDisplay.cpp.

bool Konsole::TerminalDisplay::trimTrailingSpaces ( ) const
inline

Returns true if trailing spaces should be trimmed in selected text.

Definition at line 214 of file TerminalDisplay.h.

Enum::TripleClickModeEnum Konsole::TerminalDisplay::tripleClickMode ( ) const
inline

See setTripleClickSelectionMode()

Definition at line 170 of file TerminalDisplay.h.

void TerminalDisplay::updateImage ( )
slot

Causes the terminal display to fetch the latest character image from the associated terminal screen ( see setScreenWindow() ) and redraw the display.

Definition at line 967 of file TerminalDisplay.cpp.

void TerminalDisplay::updateLineProperties ( )
slot

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

Definition at line 2255 of file TerminalDisplay.cpp.

bool TerminalDisplay::usesMouse ( ) const
slot

See setUsesMouse()

Definition at line 2681 of file TerminalDisplay.cpp.

void TerminalDisplay::visualBell ( )

Play a visual bell for prompt or warning.

Definition at line 3093 of file TerminalDisplay.cpp.

void TerminalDisplay::wheelEvent ( QWheelEvent *  event)
protectedvirtual

Reimplemented from QWidget.

Definition at line 2330 of file TerminalDisplay.cpp.

QString Konsole::TerminalDisplay::wordCharacters ( ) const
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 319 of file TerminalDisplay.h.

Member Data Documentation

struct Konsole::TerminalDisplay::DragInfo Konsole::TerminalDisplay::_dragInfo
protected

The documentation for this class was generated from the following files:
  • TerminalDisplay.h
  • TerminalDisplay.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Konsole

Skip menu "Konsole"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Konsole

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal