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

Konsole

  • kde-4.14
  • applications
  • konsole
  • src
TerminalDisplay.h
Go to the documentation of this file.
1 /*
2  Copyright 2007-2008 by Robert Knight <robertknight@gmail.com>
3  Copyright 1997,1998 by Lars Doelle <lars.doelle@on-line.de>
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program; if not, write to the Free Software
17  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18  02110-1301 USA.
19 */
20 
21 #ifndef TERMINALDISPLAY_H
22 #define TERMINALDISPLAY_H
23 
24 // Qt
25 #include <QtGui/QColor>
26 #include <QtCore/QPointer>
27 #include <QWidget>
28 
29 // Konsole
30 #include "Character.h"
31 #include "konsole_export.h"
32 #include "ScreenWindow.h"
33 #include "ColorScheme.h"
34 #include "Enumeration.h"
35 
36 class QDrag;
37 class QDragEnterEvent;
38 class QDropEvent;
39 class QLabel;
40 class QTimer;
41 class QEvent;
42 class QGridLayout;
43 class QKeyEvent;
44 class QScrollBar;
45 class QShowEvent;
46 class QHideEvent;
47 class QTimerEvent;
48 
49 namespace Konsole
50 {
51 class FilterChain;
52 class TerminalImageFilterChain;
53 class SessionController;
63 class KONSOLEPRIVATE_EXPORT TerminalDisplay : public QWidget
64 {
65  Q_OBJECT
66 
67 public:
69  explicit TerminalDisplay(QWidget* parent = 0);
70  virtual ~TerminalDisplay();
71 
73  const ColorEntry* colorTable() const;
75  void setColorTable(const ColorEntry table[]);
80  void setRandomSeed(uint seed);
85  uint randomSeed() const;
86 
88  void setOpacity(qreal opacity);
89 
91  void setWallpaper(ColorSchemeWallpaper::Ptr p);
92 
97  void setScrollBarPosition(Enum::ScrollBarPositionEnum position);
98  Enum::ScrollBarPositionEnum scrollBarPosition() const {
99  return _scrollbarLocation;
100  }
101 
108  void setScroll(int cursor, int lines);
109 
110  void setScrollFullPage(bool fullPage);
111  bool scrollFullPage() const;
112 
124  FilterChain* filterChain() const;
125 
140  void processFilters();
141 
146  QList<QAction*> filterActions(const QPoint& position);
147 
149  void setBlinkingCursorEnabled(bool blink);
151  bool blinkingCursorEnabled() const {
152  return _allowBlinkingCursor;
153  }
154 
156  void setBlinkingTextEnabled(bool blink);
157 
158  void setControlDrag(bool enable) {
159  _ctrlRequiredForDrag = enable;
160  }
161  bool ctrlRequiredForDrag() const {
162  return _ctrlRequiredForDrag;
163  }
164 
166  void setTripleClickMode(Enum::TripleClickModeEnum mode) {
167  _tripleClickMode = mode;
168  }
170  Enum::TripleClickModeEnum tripleClickMode() const {
171  return _tripleClickMode;
172  }
173 
178  void setUnderlineLinks(bool value) {
179  _underlineLinks = value;
180  }
185  bool getUnderlineLinks() const {
186  return _underlineLinks;
187  }
188 
193  void setOpenLinksByDirectClick(bool value) {
194  _openLinksByDirectClick = value;
195  }
200  bool getOpenLinksByDirectClick() const {
201  return _openLinksByDirectClick;
202  }
203 
207  void setTrimTrailingSpaces(bool enabled) {
208  _trimTrailingSpaces = enabled;
209  }
210 
214  bool trimTrailingSpaces() const {
215  return _trimTrailingSpaces;
216  }
217 
218  void setLineSpacing(uint);
219  uint lineSpacing() const;
220 
221  void setSessionController(SessionController* controller);
222  SessionController* sessionController();
223 
234  void setKeyboardCursorShape(Enum::CursorShapeEnum shape);
238  Enum::CursorShapeEnum keyboardCursorShape() const;
239 
253  void setKeyboardCursorColor(const QColor& color);
254 
260  QColor keyboardCursorColor() const;
261 
268  int lines() const {
269  return _lines;
270  }
278  int columns() const {
279  return _columns;
280  }
281 
285  int fontHeight() const {
286  return _fontHeight;
287  }
292  int fontWidth() const {
293  return _fontWidth;
294  }
295 
296  void setSize(int columns, int lines);
297 
298  // reimplemented
299  QSize sizeHint() const;
300 
312  void setWordCharacters(const QString& wc);
319  QString wordCharacters() const {
320  return _wordCharacters;
321  }
322 
330  void setBellMode(int mode);
337  int bellMode() const;
338 
340  void visualBell();
341 
346  void setMouseWheelZoom(bool value) {
347  _mouseWheelZoom = value;
348  };
354  bool mouseWheelZoom() {
355  return _mouseWheelZoom;
356  };
357 
362  virtual void setFont(const QFont &);
363 
365  QFont getVTFont() {
366  return font();
367  }
368 
373  void setVTFont(const QFont& font);
374 
376  void increaseFontSize();
377 
379  void decreaseFontSize();
380 
385  void setAntialias(bool value) {
386  _antialiasText = value;
387  }
391  bool antialias() const {
392  return _antialiasText;
393  }
394 
399  void setBoldIntense(bool value) {
400  _boldIntense = value;
401  }
405  bool getBoldIntense() const {
406  return _boldIntense;
407  }
408 
414  void setShowTerminalSizeHint(bool on) {
415  _showTerminalSizeHint = on;
416  }
422  bool showTerminalSizeHint() const {
423  return _showTerminalSizeHint;
424  }
425 
430  void setBidiEnabled(bool set) {
431  _bidiEnabled = set;
432  }
436  bool isBidiEnabled() const {
437  return _bidiEnabled;
438  }
439 
448  void setScreenWindow(ScreenWindow* window);
450  ScreenWindow* screenWindow() const;
451 
452  // Select the current line.
453  void selectCurrentLine();
454 
455  void printContent(QPainter& painter, bool friendly);
456 
457 public slots:
463  void scrollScreenWindow(enum ScreenWindow::RelativeScrollMode mode , int amount);
464 
469  void updateImage();
474  void updateLineProperties();
475 
476  void setAutoCopySelectedText(bool enabled);
477 
478  void setMiddleClickPasteMode(Enum::MiddleClickPasteModeEnum mode);
479 
481  void copyToX11Selection();
482 
484  void copyToClipboard();
485 
490  void pasteFromClipboard(bool appendEnter = false);
495  void pasteFromX11Selection(bool appendEnter = false);
496 
501  void setFlowControlWarningEnabled(bool enabled);
506  bool flowControlWarningEnabled() const {
507  return _flowControlWarningEnabled;
508  }
509 
518  void outputSuspended(bool suspended);
519 
534  void setUsesMouse(bool usesMouse);
535 
537  bool usesMouse() const;
538 
539  void setBracketedPasteMode(bool bracketedPasteMode);
540  bool bracketedPasteMode() const;
541 
546  void bell(const QString& message);
547 
552  QColor getBackgroundColor() const;
553 
558  void setBackgroundColor(const QColor& color);
559 
564  void setForegroundColor(const QColor& color);
565 
569  void setMargin(int margin);
570 
574  void setCenterContents(bool enable);
575 
576 signals:
577 
581  void keyPressedSignal(QKeyEvent* event);
582 
590  void mouseSignal(int button, int column, int line, int eventType);
591  void changedFontMetricSignal(int height, int width);
592  void changedContentSizeSignal(int height, int width);
593 
600  void configureRequest(const QPoint& position);
601 
611  void overrideShortcutCheck(QKeyEvent* keyEvent, bool& override);
612 
613  void sendStringToEmu(const char*);
614 
615 protected:
616  virtual bool event(QEvent* event);
617 
618  virtual void paintEvent(QPaintEvent* event);
619 
620  virtual void showEvent(QShowEvent* event);
621  virtual void hideEvent(QHideEvent* event);
622  virtual void resizeEvent(QResizeEvent* event);
623 
624  virtual void contextMenuEvent(QContextMenuEvent* event);
625 
626  virtual void fontChange(const QFont&);
627  virtual void focusInEvent(QFocusEvent* event);
628  virtual void focusOutEvent(QFocusEvent* event);
629  virtual void keyPressEvent(QKeyEvent* event);
630  virtual void leaveEvent(QEvent* event);
631  virtual void mouseDoubleClickEvent(QMouseEvent* event);
632  virtual void mousePressEvent(QMouseEvent* event);
633  virtual void mouseReleaseEvent(QMouseEvent* event);
634  virtual void mouseMoveEvent(QMouseEvent* event);
635  virtual void extendSelection(const QPoint& pos);
636  virtual void wheelEvent(QWheelEvent* event);
637 
638  virtual bool focusNextPrevChild(bool next);
639 
640  // drag and drop
641  virtual void dragEnterEvent(QDragEnterEvent* event);
642  virtual void dropEvent(QDropEvent* event);
643  void doDrag();
644  enum DragState { diNone, diPending, diDragging };
645 
646  struct DragInfo {
647  DragState state;
648  QPoint start;
649  QDrag* dragObject;
650  } _dragInfo;
651 
652  // classifies the 'ch' into one of three categories
653  // and returns a character to indicate which category it is in
654  //
655  // - A space (returns ' ')
656  // - Part of a word (returns 'a')
657  // - Other characters (returns the input character)
658  QChar charClass(const Character& ch) const;
659 
660  void clearImage();
661 
662  void mouseTripleClickEvent(QMouseEvent* event);
663  void selectLine(QPoint pos, bool entireLine);
664 
665  // reimplemented
666  virtual void inputMethodEvent(QInputMethodEvent* event);
667  virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const;
668 
669 protected slots:
670 
671  void scrollBarPositionChanged(int value);
672  void blinkTextEvent();
673  void blinkCursorEvent();
674 
675 private slots:
676 
677  void unmaskBell();
678  void swapFGBGColors();
679  void tripleClickTimeout(); // resets possibleTripleClick
680  void viewScrolledByUser();
681 
685  void dropMenuPasteActionTriggered();
686 
687  void dropMenuCdActionTriggered();
688 
689  void dismissOutputSuspendedMessage();
690 
691 private:
692  // -- Drawing helpers --
693 
694  // divides the part of the display specified by 'rect' into
695  // fragments according to their colors and styles and calls
696  // drawTextFragment() or drawPrinterFriendlyTextFragment()
697  // to draw the fragments
698  void drawContents(QPainter& painter, const QRect& rect);
699  // draw a transparent rectangle over the line of the current match
700  void drawCurrentResultRect(QPainter& painter);
701  // draws a section of text, all the text in this section
702  // has a common color and style
703  void drawTextFragment(QPainter& painter, const QRect& rect,
704  const QString& text, const Character* style);
705 
706  void drawPrinterFriendlyTextFragment(QPainter& painter, const QRect& rect,
707  const QString& text, const Character* style);
708  // draws the background for a text fragment
709  // if useOpacitySetting is true then the color's alpha value will be set to
710  // the display's transparency (set with setOpacity()), otherwise the background
711  // will be drawn fully opaque
712  void drawBackground(QPainter& painter, const QRect& rect, const QColor& color,
713  bool useOpacitySetting);
714  // draws the cursor character
715  void drawCursor(QPainter& painter, const QRect& rect , const QColor& foregroundColor,
716  const QColor& backgroundColor , bool& invertColors);
717  // draws the characters or line graphics in a text fragment
718  void drawCharacters(QPainter& painter, const QRect& rect, const QString& text,
719  const Character* style, bool invertCharacterColor);
720  // draws a string of line graphics
721  void drawLineCharString(QPainter& painter, int x, int y,
722  const QString& str, const Character* attributes);
723 
724  // draws the preedit string for input methods
725  void drawInputMethodPreeditString(QPainter& painter , const QRect& rect);
726 
727  // --
728 
729  // maps an area in the character image to an area on the widget
730  QRect imageToWidget(const QRect& imageArea) const;
731 
732  // maps a point on the widget to the position ( ie. line and column )
733  // of the character at that point.
734  void getCharacterPosition(const QPoint& widgetPoint, int& line, int& column) const;
735 
736  // the area where the preedit string for input methods will be draw
737  QRect preeditRect() const;
738 
739  // shows a notification window in the middle of the widget indicating the terminal's
740  // current size in columns and lines
741  void showResizeNotification();
742 
743  // scrolls the image by a number of lines.
744  // 'lines' may be positive ( to scroll the image down )
745  // or negative ( to scroll the image up )
746  // 'region' is the part of the image to scroll - currently only
747  // the top, bottom and height of 'region' are taken into account,
748  // the left and right are ignored.
749  void scrollImage(int lines , const QRect& region);
750 
751  void calcGeometry();
752  void propagateSize();
753  void updateImageSize();
754  void makeImage();
755 
756  void paintFilters(QPainter& painter);
757 
758  // returns a region covering all of the areas of the widget which contain
759  // a hotspot
760  QRegion hotSpotRegion() const;
761 
762  // returns the position of the cursor in columns and lines
763  QPoint cursorPosition() const;
764 
765  // redraws the cursor
766  void updateCursor();
767 
768  bool handleShortcutOverrideEvent(QKeyEvent* event);
769 
770  void doPaste(QString text, bool appendReturn);
771 
772  void processMidButtonClick(QMouseEvent* event);
773 
774  QPoint findLineStart(const QPoint &pnt);
775  QPoint findLineEnd(const QPoint &pnt);
776  QPoint findWordStart(const QPoint &pnt);
777  QPoint findWordEnd(const QPoint &pnt);
778 
779  // the window onto the terminal screen which this display
780  // is currently showing.
781  QPointer<ScreenWindow> _screenWindow;
782 
783  bool _bellMasked;
784 
785  QGridLayout* _gridLayout;
786 
787  bool _fixedFont; // has fixed pitch
788  int _fontHeight; // height
789  int _fontWidth; // width
790  int _fontAscent; // ascend
791  bool _boldIntense; // Whether intense colors should be rendered with bold font
792 
793  int _leftMargin; // offset
794  int _topMargin; // offset
795 
796  int _lines; // the number of lines that can be displayed in the widget
797  int _columns; // the number of columns that can be displayed in the widget
798 
799  int _usedLines; // the number of lines that are actually being used, this will be less
800  // than 'lines' if the character image provided with setImage() is smaller
801  // than the maximum image size which can be displayed
802 
803  int _usedColumns; // the number of columns that are actually being used, this will be less
804  // than 'columns' if the character image provided with setImage() is smaller
805  // than the maximum image size which can be displayed
806 
807  QRect _contentRect;
808  Character* _image; // [lines][columns]
809  // only the area [usedLines][usedColumns] in the image contains valid data
810 
811  int _imageSize;
812  QVector<LineProperty> _lineProperties;
813 
814  ColorEntry _colorTable[TABLE_COLORS];
815  uint _randomSeed;
816 
817  bool _resizing;
818  bool _showTerminalSizeHint;
819  bool _bidiEnabled;
820  bool _mouseMarks;
821  bool _bracketedPasteMode;
822 
823  QPoint _iPntSel; // initial selection point
824  QPoint _pntSel; // current selection point
825  QPoint _tripleSelBegin; // help avoid flicker
826  int _actSel; // selection state
827  bool _wordSelectionMode;
828  bool _lineSelectionMode;
829  bool _preserveLineBreaks;
830  bool _columnSelectionMode;
831 
832  bool _autoCopySelectedText;
833  Enum::MiddleClickPasteModeEnum _middleClickPasteMode;
834 
835  QScrollBar* _scrollBar;
836  Enum::ScrollBarPositionEnum _scrollbarLocation;
837  bool _scrollFullPage;
838  QString _wordCharacters;
839  int _bellMode;
840 
841  bool _allowBlinkingText; // allow text to blink
842  bool _allowBlinkingCursor; // allow cursor to blink
843  bool _textBlinking; // text is blinking, hide it when drawing
844  bool _cursorBlinking; // cursor is blinking, hide it when drawing
845  bool _hasTextBlinker; // has characters to blink
846  QTimer* _blinkTextTimer;
847  QTimer* _blinkCursorTimer;
848 
849  bool _underlineLinks; // Underline URL and hosts on mouse hover
850  bool _openLinksByDirectClick; // Open URL and hosts by single mouse click
851 
852  bool _ctrlRequiredForDrag; // require Ctrl key for drag selected text
853 
854  Enum::TripleClickModeEnum _tripleClickMode;
855  bool _possibleTripleClick; // is set in mouseDoubleClickEvent and deleted
856  // after QApplication::doubleClickInterval() delay
857 
858  QLabel* _resizeWidget;
859  QTimer* _resizeTimer;
860 
861  bool _flowControlWarningEnabled;
862 
863  //widgets related to the warning message that appears when the user presses Ctrl+S to suspend
864  //terminal output - informing them what has happened and how to resume output
865  QLabel* _outputSuspendedLabel;
866 
867  uint _lineSpacing;
868 
869  QSize _size;
870 
871  QRgb _blendColor;
872 
873  ColorSchemeWallpaper::Ptr _wallpaper;
874 
875  // list of filters currently applied to the display. used for links and
876  // search highlight
877  TerminalImageFilterChain* _filterChain;
878  QRegion _mouseOverHotspotArea;
879 
880  Enum::CursorShapeEnum _cursorShape;
881 
882  // cursor color. If it is invalid (by default) then the foreground
883  // color of the character under the cursor is used
884  QColor _cursorColor;
885 
886  struct InputMethodData {
887  QString preeditString;
888  QRect previousPreeditRect;
889  };
890  InputMethodData _inputMethodData;
891 
892  bool _antialiasText; // do we anti-alias or not
893 
894  bool _printerFriendly; // are we currently painting to a printer in black/white mode
895 
896  //the delay in milliseconds between redrawing blinking text
897  static const int TEXT_BLINK_DELAY = 500;
898 
899  //the duration of the size hint in milliseconds
900  static const int SIZE_HINT_DURATION = 1000;
901 
902  SessionController* _sessionController;
903 
904  bool _trimTrailingSpaces; // trim trailing spaces in selected text
905  bool _mouseWheelZoom; // enable mouse wheel zooming or not
906 
907  int _margin; // the contents margin
908  bool _centerContents; // center the contents between margins
909 
910  qreal _opacity;
911 
912  friend class TerminalDisplayAccessible;
913 };
914 
915 class AutoScrollHandler : public QObject
916 {
917  Q_OBJECT
918 
919 public:
920  explicit AutoScrollHandler(QWidget* parent);
921 protected:
922  virtual void timerEvent(QTimerEvent* event);
923  virtual bool eventFilter(QObject* watched, QEvent* event);
924 private:
925  QWidget* widget() const {
926  return static_cast<QWidget*>(parent());
927  }
928  int _timerId;
929 };
930 }
931 
932 #endif // TERMINALDISPLAY_H
QHideEvent
TABLE_COLORS
#define TABLE_COLORS
Definition: CharacterColor.h:117
QEvent
Konsole::TerminalDisplay::DragState
DragState
Definition: TerminalDisplay.h:644
QResizeEvent
QWidget
Konsole::TerminalDisplay::setMouseWheelZoom
void setMouseWheelZoom(bool value)
Specified whether zoom terminal on Ctrl+mousewheel is enabled or not.
Definition: TerminalDisplay.h:346
Konsole::SessionController
Provides the menu actions to manipulate a single terminal session and view pair.
Definition: SessionController.h:85
Konsole::TerminalDisplay::mouseWheelZoom
bool mouseWheelZoom()
Returns the whether zoom terminal on Ctrl+mousewheel is enabled.
Definition: TerminalDisplay.h:354
Konsole::AutoScrollHandler
Definition: TerminalDisplay.h:915
Konsole::Enum::CursorShapeEnum
CursorShapeEnum
This enum describes the shapes used to draw the cursor in terminal displays.
Definition: Enumeration.h:80
Konsole::TerminalDisplay::setTripleClickMode
void setTripleClickMode(Enum::TripleClickModeEnum mode)
Sets how the text is selected when the user triple clicks within the display.
Definition: TerminalDisplay.h:166
QInputMethodEvent
Konsole::TerminalDisplay::scrollBarPosition
Enum::ScrollBarPositionEnum scrollBarPosition() const
Definition: TerminalDisplay.h:98
QChar
QFont
QPointer
QWheelEvent
QScrollBar
Konsole::TerminalDisplay::getUnderlineLinks
bool getUnderlineLinks() const
Returns true if links and email addresses should be underlined when hovered by the mouse...
Definition: TerminalDisplay.h:185
Konsole::TerminalDisplay::fontHeight
int fontHeight() const
Returns the height of the characters in the font used to draw the text in the display.
Definition: TerminalDisplay.h:285
Konsole::TerminalDisplay::setUnderlineLinks
void setUnderlineLinks(bool value)
Specifies whether links and email addresses should be underlined when hovered by the mouse...
Definition: TerminalDisplay.h:178
QGridLayout
konsole_export.h
QPoint
QMouseEvent
Konsole::TerminalDisplay::wordCharacters
QString wordCharacters() const
Returns the characters which are considered part of a word for the purpose of selecting words in the ...
Definition: TerminalDisplay.h:319
Konsole::Enum::ScrollBarPositionEnum
ScrollBarPositionEnum
This enum describes the positions where the terminal display's scroll bar may be placed.
Definition: Enumeration.h:58
Konsole::TerminalDisplay::tripleClickMode
Enum::TripleClickModeEnum tripleClickMode() const
See setTripleClickSelectionMode()
Definition: TerminalDisplay.h:170
Konsole::TerminalDisplay::flowControlWarningEnabled
bool flowControlWarningEnabled() const
Returns true if the flow control warning box is enabled.
Definition: TerminalDisplay.h:506
QObject::event
virtual bool event(QEvent *e)
Konsole::Character
A single character in the terminal which consists of a unicode character value, foreground and backgr...
Definition: Character.h:77
QTimerEvent
QRect
Konsole::TerminalDisplay::ctrlRequiredForDrag
bool ctrlRequiredForDrag() const
Definition: TerminalDisplay.h:161
Konsole::TerminalDisplay::setBidiEnabled
void setBidiEnabled(bool set)
Sets the status of the BiDi rendering inside the terminal display.
Definition: TerminalDisplay.h:430
Konsole::TerminalDisplay::setAntialias
void setAntialias(bool value)
Specified whether anti-aliasing of text in the terminal display is enabled or not.
Definition: TerminalDisplay.h:385
Konsole::TerminalDisplay::lines
int lines() const
Returns the number of lines of text which can be displayed in the widget.
Definition: TerminalDisplay.h:268
QTimer
Konsole::ColorEntry
An entry in a terminal display's color palette.
Definition: CharacterColor.h:40
Konsole::TerminalDisplay::showTerminalSizeHint
bool showTerminalSizeHint() const
Returns whether or not the current height and width of the terminal in lines and columns is displayed...
Definition: TerminalDisplay.h:422
Konsole::ColorSchemeWallpaper::Ptr
KSharedPtr< ColorSchemeWallpaper > Ptr
Definition: ColorScheme.h:47
QContextMenuEvent
QShowEvent
QObject
QDropEvent
Konsole::ScreenWindow
Provides a window onto a section of a terminal screen.
Definition: ScreenWindow.h:52
QPainter
QDrag
QString
QList
Enumeration.h
QColor
Konsole::AutoScrollHandler::eventFilter
virtual bool eventFilter(QObject *watched, QEvent *event)
Definition: TerminalDisplay.cpp:3259
Konsole::AutoScrollHandler::timerEvent
virtual void timerEvent(QTimerEvent *event)
Definition: TerminalDisplay.cpp:3246
Character.h
Konsole::TerminalDisplay::columns
int columns() const
Returns the number of characters of text which can be displayed on each line in the widget...
Definition: TerminalDisplay.h:278
Konsole::TerminalDisplay::antialias
bool antialias() const
Returns true if anti-aliasing of text in the terminal is enabled.
Definition: TerminalDisplay.h:391
Konsole::TerminalDisplay::DragInfo::start
QPoint start
Definition: TerminalDisplay.h:648
Konsole::TerminalDisplay::setOpenLinksByDirectClick
void setOpenLinksByDirectClick(bool value)
Specifies whether links and email addresses should be opened when clicked with the mouse...
Definition: TerminalDisplay.h:193
Konsole::TerminalDisplay::DragInfo
Definition: TerminalDisplay.h:646
QSize
Konsole::AutoScrollHandler::AutoScrollHandler
AutoScrollHandler(QWidget *parent)
Definition: TerminalDisplay.cpp:3240
ColorScheme.h
Konsole::TerminalDisplay::setTrimTrailingSpaces
void setTrimTrailingSpaces(bool enabled)
Sets whether trailing spaces should be trimmed in selected text.
Definition: TerminalDisplay.h:207
QKeyEvent
Konsole::FilterChain
A chain which allows a group of filters to be processed as one.
Definition: Filter.h:312
Konsole::TerminalDisplay::setShowTerminalSizeHint
void setShowTerminalSizeHint(bool on)
Sets whether or not the current height and width of the terminal in lines and columns is displayed wh...
Definition: TerminalDisplay.h:414
Konsole::TerminalDisplay::trimTrailingSpaces
bool trimTrailingSpaces() const
Returns true if trailing spaces should be trimmed in selected text.
Definition: TerminalDisplay.h:214
Konsole::Enum::TripleClickModeEnum
TripleClickModeEnum
This enum describes the behavior of triple click action .
Definition: Enumeration.h:92
Konsole::Enum::MiddleClickPasteModeEnum
MiddleClickPasteModeEnum
This enum describes the source from which mouse middle click pastes data .
Definition: Enumeration.h:100
QVector< LineProperty >
QDragEnterEvent
Konsole::TerminalDisplay::getBoldIntense
bool getBoldIntense() const
Returns true if characters with intense colors are rendered in bold.
Definition: TerminalDisplay.h:405
Konsole::TerminalDisplay::blinkingCursorEnabled
bool blinkingCursorEnabled() const
Returns true if the cursor is allowed to blink or false otherwise.
Definition: TerminalDisplay.h:151
Konsole::TerminalDisplay::setBoldIntense
void setBoldIntense(bool value)
Specifies whether characters with intense colors should be rendered as bold.
Definition: TerminalDisplay.h:399
KONSOLEPRIVATE_EXPORT
#define KONSOLEPRIVATE_EXPORT
Definition: konsole_export.h:33
Konsole::TerminalImageFilterChain
A filter chain which processes character images from terminal displays.
Definition: Filter.h:343
Konsole::TerminalDisplay::DragInfo::dragObject
QDrag * dragObject
Definition: TerminalDisplay.h:649
QPaintEvent
Konsole::ScreenWindow::RelativeScrollMode
RelativeScrollMode
Describes the units which scrollBy() moves the window by.
Definition: ScreenWindow.h:193
Konsole::TerminalDisplay::setControlDrag
void setControlDrag(bool enable)
Definition: TerminalDisplay.h:158
Konsole::TerminalDisplayAccessible
Class implementing the QAccessibleInterface for the terminal display.
Definition: TerminalDisplayAccessible.h:41
QLabel
QObject::parent
QObject * parent() const
ScreenWindow.h
Konsole::TerminalDisplay
A widget which displays output from a terminal emulation and sends input keypresses and mouse activit...
Definition: TerminalDisplay.h:63
QFocusEvent
Konsole::TerminalDisplay::getOpenLinksByDirectClick
bool getOpenLinksByDirectClick() const
Returns true if links and email addresses should be opened when clicked with the mouse.
Definition: TerminalDisplay.h:200
Konsole::TerminalDisplay::getVTFont
QFont getVTFont()
Returns the font used to draw characters in the display.
Definition: TerminalDisplay.h:365
Konsole::TerminalDisplay::DragInfo::state
DragState state
Definition: TerminalDisplay.h:647
QRegion
Konsole::TerminalDisplay::isBidiEnabled
bool isBidiEnabled() const
Returns the status of the BiDi rendering in this widget.
Definition: TerminalDisplay.h:436
Konsole::TerminalDisplay::fontWidth
int fontWidth() const
Returns the width of the characters in the display.
Definition: TerminalDisplay.h:292
QVariant
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:27 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