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

Konsole

  • sources
  • kde-4.12
  • 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  void setFixedSize(int columns, int lines);
298 
299  // reimplemented
300  QSize sizeHint() const;
301 
313  void setWordCharacters(const QString& wc);
320  QString wordCharacters() const {
321  return _wordCharacters;
322  }
323 
331  void setBellMode(int mode);
338  int bellMode() const;
339 
341  void visualBell();
342 
347  void setMouseWheelZoom(bool value) {
348  _mouseWheelZoom = value;
349  };
355  bool mouseWheelZoom() {
356  return _mouseWheelZoom;
357  };
358 
363  virtual void setFont(const QFont &);
364 
366  QFont getVTFont() {
367  return font();
368  }
369 
374  void setVTFont(const QFont& font);
375 
377  void increaseFontSize();
378 
380  void decreaseFontSize();
381 
386  void setAntialias(bool value) {
387  _antialiasText = value;
388  }
392  bool antialias() const {
393  return _antialiasText;
394  }
395 
400  void setBoldIntense(bool value) {
401  _boldIntense = value;
402  }
406  bool getBoldIntense() const {
407  return _boldIntense;
408  }
409 
415  void setShowTerminalSizeHint(bool on) {
416  _showTerminalSizeHint = on;
417  }
423  bool showTerminalSizeHint() const {
424  return _showTerminalSizeHint;
425  }
426 
431  void setBidiEnabled(bool set) {
432  _bidiEnabled = set;
433  }
437  bool isBidiEnabled() const {
438  return _bidiEnabled;
439  }
440 
449  void setScreenWindow(ScreenWindow* window);
451  ScreenWindow* screenWindow() const;
452 
453  void printContent(QPainter& painter, bool friendly);
454 
455 public slots:
461  void scrollScreenWindow(enum ScreenWindow::RelativeScrollMode mode , int amount);
462 
467  void updateImage();
472  void updateLineProperties();
473 
474  void setAutoCopySelectedText(bool enabled);
475 
476  void setMiddleClickPasteMode(Enum::MiddleClickPasteModeEnum mode);
477 
479  void copyToX11Selection();
480 
482  void copyToClipboard();
483 
488  void pasteFromClipboard(bool appendEnter = false);
493  void pasteFromX11Selection(bool appendEnter = false);
494 
499  void setFlowControlWarningEnabled(bool enabled);
504  bool flowControlWarningEnabled() const {
505  return _flowControlWarningEnabled;
506  }
507 
516  void outputSuspended(bool suspended);
517 
532  void setUsesMouse(bool usesMouse);
533 
535  bool usesMouse() const;
536 
541  void bell(const QString& message);
542 
547  QColor getBackgroundColor() const;
548 
553  void setBackgroundColor(const QColor& color);
554 
559  void setForegroundColor(const QColor& color);
560 
564  void setMargin(int margin);
565 
569  void setCenterContents(bool enable);
570 
571 signals:
572 
576  void keyPressedSignal(QKeyEvent* event);
577 
585  void mouseSignal(int button, int column, int line, int eventType);
586  void changedFontMetricSignal(int height, int width);
587  void changedContentSizeSignal(int height, int width);
588 
595  void configureRequest(const QPoint& position);
596 
606  void overrideShortcutCheck(QKeyEvent* keyEvent, bool& override);
607 
608  void sendStringToEmu(const char*);
609 
610 protected:
611  virtual bool event(QEvent* event);
612 
613  virtual void paintEvent(QPaintEvent* event);
614 
615  virtual void showEvent(QShowEvent* event);
616  virtual void hideEvent(QHideEvent* event);
617  virtual void resizeEvent(QResizeEvent* event);
618 
619  virtual void contextMenuEvent(QContextMenuEvent* event);
620 
621  virtual void fontChange(const QFont&);
622  virtual void focusInEvent(QFocusEvent* event);
623  virtual void focusOutEvent(QFocusEvent* event);
624  virtual void keyPressEvent(QKeyEvent* event);
625  virtual void leaveEvent(QEvent* event);
626  virtual void mouseDoubleClickEvent(QMouseEvent* event);
627  virtual void mousePressEvent(QMouseEvent* event);
628  virtual void mouseReleaseEvent(QMouseEvent* event);
629  virtual void mouseMoveEvent(QMouseEvent* event);
630  virtual void extendSelection(const QPoint& pos);
631  virtual void wheelEvent(QWheelEvent* event);
632 
633  virtual bool focusNextPrevChild(bool next);
634 
635  // drag and drop
636  virtual void dragEnterEvent(QDragEnterEvent* event);
637  virtual void dropEvent(QDropEvent* event);
638  void doDrag();
639  enum DragState { diNone, diPending, diDragging };
640 
641  struct DragInfo {
642  DragState state;
643  QPoint start;
644  QDrag* dragObject;
645  } _dragInfo;
646 
647  // classifies the 'ch' into one of three categories
648  // and returns a character to indicate which category it is in
649  //
650  // - A space (returns ' ')
651  // - Part of a word (returns 'a')
652  // - Other characters (returns the input character)
653  QChar charClass(const Character& ch) const;
654 
655  void clearImage();
656 
657  void mouseTripleClickEvent(QMouseEvent* event);
658 
659  // reimplemented
660  virtual void inputMethodEvent(QInputMethodEvent* event);
661  virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const;
662 
663 protected slots:
664 
665  void scrollBarPositionChanged(int value);
666  void blinkTextEvent();
667  void blinkCursorEvent();
668 
669 private slots:
670 
671  void unmaskBell();
672  void swapFGBGColors();
673  void tripleClickTimeout(); // resets possibleTripleClick
674  void viewScrolledByUser();
675 
679  void dropMenuPasteActionTriggered();
680 
681  void dropMenuCdActionTriggered();
682 
683 private:
684  // -- Drawing helpers --
685 
686  // divides the part of the display specified by 'rect' into
687  // fragments according to their colors and styles and calls
688  // drawTextFragment() or drawPrinterFriendlyTextFragment()
689  // to draw the fragments
690  void drawContents(QPainter& painter, const QRect& rect);
691  // draw a transparent rectangle over the line of the current match
692  void drawCurrentResultRect(QPainter& painter);
693  // draws a section of text, all the text in this section
694  // has a common color and style
695  void drawTextFragment(QPainter& painter, const QRect& rect,
696  const QString& text, const Character* style);
697 
698  void drawPrinterFriendlyTextFragment(QPainter& painter, const QRect& rect,
699  const QString& text, const Character* style);
700  // draws the background for a text fragment
701  // if useOpacitySetting is true then the color's alpha value will be set to
702  // the display's transparency (set with setOpacity()), otherwise the background
703  // will be drawn fully opaque
704  void drawBackground(QPainter& painter, const QRect& rect, const QColor& color,
705  bool useOpacitySetting);
706  // draws the cursor character
707  void drawCursor(QPainter& painter, const QRect& rect , const QColor& foregroundColor,
708  const QColor& backgroundColor , bool& invertColors);
709  // draws the characters or line graphics in a text fragment
710  void drawCharacters(QPainter& painter, const QRect& rect, const QString& text,
711  const Character* style, bool invertCharacterColor);
712  // draws a string of line graphics
713  void drawLineCharString(QPainter& painter, int x, int y,
714  const QString& str, const Character* attributes);
715 
716  // draws the preedit string for input methods
717  void drawInputMethodPreeditString(QPainter& painter , const QRect& rect);
718 
719  // --
720 
721  // maps an area in the character image to an area on the widget
722  QRect imageToWidget(const QRect& imageArea) const;
723 
724  // maps a point on the widget to the position ( ie. line and column )
725  // of the character at that point.
726  void getCharacterPosition(const QPoint& widgetPoint, int& line, int& column) const;
727 
728  // the area where the preedit string for input methods will be draw
729  QRect preeditRect() const;
730 
731  // shows a notification window in the middle of the widget indicating the terminal's
732  // current size in columns and lines
733  void showResizeNotification();
734 
735  // scrolls the image by a number of lines.
736  // 'lines' may be positive ( to scroll the image down )
737  // or negative ( to scroll the image up )
738  // 'region' is the part of the image to scroll - currently only
739  // the top, bottom and height of 'region' are taken into account,
740  // the left and right are ignored.
741  void scrollImage(int lines , const QRect& region);
742 
743  void calcGeometry();
744  void propagateSize();
745  void updateImageSize();
746  void makeImage();
747 
748  void paintFilters(QPainter& painter);
749 
750  // returns a region covering all of the areas of the widget which contain
751  // a hotspot
752  QRegion hotSpotRegion() const;
753 
754  // returns the position of the cursor in columns and lines
755  QPoint cursorPosition() const;
756 
757  // redraws the cursor
758  void updateCursor();
759 
760  bool handleShortcutOverrideEvent(QKeyEvent* event);
761 
762  void doPaste(QString text, bool appendReturn);
763 
764  void processMidButtonClick(QMouseEvent* event);
765 
766  QPoint findLineStart(const QPoint &pnt);
767  QPoint findLineEnd(const QPoint &pnt);
768 
769  // the window onto the terminal screen which this display
770  // is currently showing.
771  QPointer<ScreenWindow> _screenWindow;
772 
773  bool _bellMasked;
774 
775  QGridLayout* _gridLayout;
776 
777  bool _fixedFont; // has fixed pitch
778  int _fontHeight; // height
779  int _fontWidth; // width
780  int _fontAscent; // ascend
781  bool _boldIntense; // Whether intense colors should be rendered with bold font
782 
783  int _leftMargin; // offset
784  int _topMargin; // offset
785 
786  int _lines; // the number of lines that can be displayed in the widget
787  int _columns; // the number of columns that can be displayed in the widget
788 
789  int _usedLines; // the number of lines that are actually being used, this will be less
790  // than 'lines' if the character image provided with setImage() is smaller
791  // than the maximum image size which can be displayed
792 
793  int _usedColumns; // the number of columns that are actually being used, this will be less
794  // than 'columns' if the character image provided with setImage() is smaller
795  // than the maximum image size which can be displayed
796 
797  QRect _contentRect;
798  Character* _image; // [lines][columns]
799  // only the area [usedLines][usedColumns] in the image contains valid data
800 
801  int _imageSize;
802  QVector<LineProperty> _lineProperties;
803 
804  ColorEntry _colorTable[TABLE_COLORS];
805  uint _randomSeed;
806 
807  bool _resizing;
808  bool _showTerminalSizeHint;
809  bool _bidiEnabled;
810  bool _mouseMarks;
811 
812  QPoint _iPntSel; // initial selection point
813  QPoint _pntSel; // current selection point
814  QPoint _tripleSelBegin; // help avoid flicker
815  int _actSel; // selection state
816  bool _wordSelectionMode;
817  bool _lineSelectionMode;
818  bool _preserveLineBreaks;
819  bool _columnSelectionMode;
820 
821  bool _autoCopySelectedText;
822  Enum::MiddleClickPasteModeEnum _middleClickPasteMode;
823 
824  QScrollBar* _scrollBar;
825  Enum::ScrollBarPositionEnum _scrollbarLocation;
826  bool _scrollFullPage;
827  QString _wordCharacters;
828  int _bellMode;
829 
830  bool _allowBlinkingText; // allow text to blink
831  bool _allowBlinkingCursor; // allow cursor to blink
832  bool _textBlinking; // text is blinking, hide it when drawing
833  bool _cursorBlinking; // cursor is blinking, hide it when drawing
834  bool _hasTextBlinker; // has characters to blink
835  QTimer* _blinkTextTimer;
836  QTimer* _blinkCursorTimer;
837 
838  bool _underlineLinks; // Underline URL and hosts on mouse hover
839  bool _openLinksByDirectClick; // Open URL and hosts by single mouse click
840  bool _isFixedSize; // columns/lines are locked.
841 
842  bool _ctrlRequiredForDrag; // require Ctrl key for drag selected text
843 
844  Enum::TripleClickModeEnum _tripleClickMode;
845  bool _possibleTripleClick; // is set in mouseDoubleClickEvent and deleted
846  // after QApplication::doubleClickInterval() delay
847 
848  QLabel* _resizeWidget;
849  QTimer* _resizeTimer;
850 
851  bool _flowControlWarningEnabled;
852 
853  //widgets related to the warning message that appears when the user presses Ctrl+S to suspend
854  //terminal output - informing them what has happened and how to resume output
855  QLabel* _outputSuspendedLabel;
856 
857  uint _lineSpacing;
858 
859  QSize _size;
860 
861  QRgb _blendColor;
862 
863  ColorSchemeWallpaper::Ptr _wallpaper;
864 
865  // list of filters currently applied to the display. used for links and
866  // search highlight
867  TerminalImageFilterChain* _filterChain;
868  QRegion _mouseOverHotspotArea;
869 
870  Enum::CursorShapeEnum _cursorShape;
871 
872  // cursor color. If it is invalid (by default) then the foreground
873  // color of the character under the cursor is used
874  QColor _cursorColor;
875 
876  struct InputMethodData {
877  QString preeditString;
878  QRect previousPreeditRect;
879  };
880  InputMethodData _inputMethodData;
881 
882  bool _antialiasText; // do we anti-alias or not
883 
884  bool _printerFriendly; // are we currently painting to a printer in black/white mode
885 
886  //the delay in milliseconds between redrawing blinking text
887  static const int TEXT_BLINK_DELAY = 500;
888 
889  //the duration of the size hint in milliseconds
890  static const int SIZE_HINT_DURATION = 1000;
891 
892  SessionController* _sessionController;
893 
894  bool _trimTrailingSpaces; // trim trailing spaces in selected text
895  bool _mouseWheelZoom; // enable mouse wheel zooming or not
896 
897  int _margin; // the contents margin
898  bool _centerContents; // center the contents between margins
899 
900  friend class TerminalDisplayAccessible;
901 };
902 
903 class AutoScrollHandler : public QObject
904 {
905  Q_OBJECT
906 
907 public:
908  explicit AutoScrollHandler(QWidget* parent);
909 protected:
910  virtual void timerEvent(QTimerEvent* event);
911  virtual bool eventFilter(QObject* watched, QEvent* event);
912 private:
913  QWidget* widget() const {
914  return static_cast<QWidget*>(parent());
915  }
916  int _timerId;
917 };
918 }
919 
920 #endif // TERMINALDISPLAY_H
TABLE_COLORS
#define TABLE_COLORS
Definition: CharacterColor.h:118
Konsole::TerminalDisplay::DragState
DragState
Definition: TerminalDisplay.h:639
Konsole::TerminalDisplay::setMouseWheelZoom
void setMouseWheelZoom(bool value)
Specified whether zoom terminal on Ctrl+mousewheel is enabled or not.
Definition: TerminalDisplay.h:347
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:355
Konsole::AutoScrollHandler
Definition: TerminalDisplay.h:903
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
Konsole::TerminalDisplay::scrollBarPosition
Enum::ScrollBarPositionEnum scrollBarPosition() const
Definition: TerminalDisplay.h:98
QWidget
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
konsole_export.h
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:320
Konsole::Enum::ScrollBarPositionEnum
ScrollBarPositionEnum
This enum describes the positions where the terminal display's scroll bar may be placed.
Definition: Enumeration.h:58
QObject
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:504
Konsole::Character
A single character in the terminal which consists of a unicode character value, foreground and backgr...
Definition: Character.h:77
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:431
Konsole::TerminalDisplay::setAntialias
void setAntialias(bool value)
Specified whether anti-aliasing of text in the terminal display is enabled or not.
Definition: TerminalDisplay.h:386
Konsole::TerminalDisplay::lines
int lines() const
Returns the number of lines of text which can be displayed in the widget.
Definition: TerminalDisplay.h:268
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:423
Konsole::ColorSchemeWallpaper::Ptr
KSharedPtr< ColorSchemeWallpaper > Ptr
Definition: ColorScheme.h:47
Konsole::ScreenWindow
Provides a window onto a section of a terminal screen.
Definition: ScreenWindow.h:52
Enumeration.h
Konsole::AutoScrollHandler::eventFilter
virtual bool eventFilter(QObject *watched, QEvent *event)
Definition: TerminalDisplay.cpp:3225
Konsole::AutoScrollHandler::timerEvent
virtual void timerEvent(QTimerEvent *event)
Definition: TerminalDisplay.cpp:3212
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:392
Konsole::TerminalDisplay::DragInfo::start
QPoint start
Definition: TerminalDisplay.h:643
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:641
Konsole::AutoScrollHandler::AutoScrollHandler
AutoScrollHandler(QWidget *parent)
Definition: TerminalDisplay.cpp:3206
ColorScheme.h
Konsole::TerminalDisplay::setTrimTrailingSpaces
void setTrimTrailingSpaces(bool enabled)
Sets whether trailing spaces should be trimmed in selected text.
Definition: TerminalDisplay.h:207
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:415
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
Konsole::TerminalDisplay::getBoldIntense
bool getBoldIntense() const
Returns true if characters with intense colors are rendered in bold.
Definition: TerminalDisplay.h:406
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:400
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:644
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
ScreenWindow.h
Konsole::TerminalDisplay
A widget which displays output from a terminal emulation and sends input keypresses and mouse activit...
Definition: TerminalDisplay.h:63
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:366
Konsole::TerminalDisplay::DragInfo::state
DragState state
Definition: TerminalDisplay.h:642
QList
Konsole::TerminalDisplay::isBidiEnabled
bool isBidiEnabled() const
Returns the status of the BiDi rendering in this widget.
Definition: TerminalDisplay.h:437
Konsole::TerminalDisplay::fontWidth
int fontWidth() const
Returns the width of the characters in the display.
Definition: TerminalDisplay.h:292
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:24 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
  • Applications
  •   Libraries
  •     libkonq
  • 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