Konsole
TerminalDisplay.cpp
Go to the documentation of this file.
183 _fontWidth = qRound((static_cast<double>(fm.width(REPCHAR)) / static_cast<double>(qstrlen(REPCHAR))));
212 kWarning() << "Using an unsupported variable-width font in the terminal. This may produce display errors.";
601 void TerminalDisplay::drawBackground(QPainter& painter, const QRect& rect, const QColor& backgroundColor, bool useOpacitySetting)
720 const CharacterColor& textColor = (invertCharacterColor ? style->backgroundColor : style->foregroundColor);
983 // The emitted changedContentSizeSignal also leads to getImage being recreated, so do this first.
1055 const bool nextIsDoubleWidth = (x + len + 1 == columnsToUpdate) ? false : (newLine[x + len + 1].character == 0);
1155 _resizeWidget->setStyleSheet("background-color:palette(window);border-style:solid;border-width:1px;border-color:palette(dark)");
1322 const bool isCurrentResultLine = (_screenWindow->currentResultLine() == (spot->startLine() + _screenWindow->currentLine()));
1335 const int lux = qMin(_usedColumns - 1, qMax(0, (rect.left() - tLx - _contentRect.left()) / _fontWidth));
1336 const int luy = qMin(_usedLines - 1, qMax(0, (rect.top() - tLy - _contentRect.top()) / _fontHeight));
1337 const int rlx = qMin(_usedColumns - 1, qMax(0, (rect.right() - tLx - _contentRect.left()) / _fontWidth));
1338 const int rly = qMin(_usedLines - 1, qMax(0, (rect.bottom() - tLy - _contentRect.top()) / _fontHeight));
1360 const ushort* chars = ExtendedCharTable::instance.lookupExtendedChar(_image[loc(x, y)].character, extendedCharLength);
1389 (_image[loc(x + len, y)].rendition & ~RE_EXTENDED_CHAR) == (currentRendition & ~RE_EXTENDED_CHAR) &&
1444 QRect textArea = QRect(_contentRect.left() + tLx + _fontWidth * x , _contentRect.top() + tLy + _fontHeight * y , _fontWidth * len , _fontHeight);
1650 emit changedContentSizeSignal(_contentRect.height(), _contentRect.width()); // expose resizeEvent
1878 _preserveLineBreaks = !((ev->modifiers() & Qt::ControlModifier) && !(ev->modifiers() & Qt::AltModifier));
1879 _columnSelectionMode = (ev->modifiers() & Qt::AltModifier) && (ev->modifiers() & Qt::ControlModifier);
1893 emit mouseSignal(0, charColumn + 1, charLine + 1 + _scrollBar->value() - _scrollBar->maximum() , 0);
1911 emit mouseSignal(2, charColumn + 1, charLine + 1 + _scrollBar->value() - _scrollBar->maximum() , 0);
1965 if ((_openLinksByDirectClick || (ev->modifiers() & Qt::ControlModifier)) && (cursor().shape() != Qt::PointingHandCursor))
1971 if ((_underlineLinks && (_openLinksByDirectClick || (ev->modifiers() & Qt::ControlModifier))) || (cursor().shape() == Qt::PointingHandCursor))
2145 while ( right.x() < _usedColumns-1 && charClass(_image[i+1].character) == selClass && (right.y()<_usedLines-1) &&
2233 void TerminalDisplay::getCharacterPosition(const QPoint& widgetPoint, int& line, int& column) const
2235 column = (widgetPoint.x() + _fontWidth / 2 - contentsRect().left() - _contentRect.left()) / _fontWidth;
2280 emit mouseSignal(1, charColumn + 1, charLine + 1 + _scrollBar->value() - _scrollBar->maximum() , 0);
2458 lineProperties = screen->getLineProperties(lineInHistory, qMin(lineInHistory + visibleScreenLines, maxY));
2646 const ushort* chars = ExtendedCharTable::instance.lookupExtendedChar(ch.character, extendedCharLength);
2821 decoder.decodeLine(&_image[loc(0, cursorPos.y())], _usedColumns, _lineProperties[cursorPos.y()]);
2933 void TerminalDisplay::scrollScreenWindow(enum ScreenWindow::RelativeScrollMode mode, int amount)
virtual void resizeEvent(QResizeEvent *event)
Definition: TerminalDisplay.cpp:1612
void setWordCharacters(const QString &wc)
Sets which characters, in addition to letters and numbers, are regarded as being part of a word for t...
Definition: TerminalDisplay.cpp:2668
void setInterval(int msec)
LineEncode
A table for emulating the simple (single width) unicode drawing chars.
Definition: TerminalDisplay.cpp:446
void setScroll(int cursor, int lines)
Sets the current position and range of the display's scroll bar.
Definition: TerminalDisplay.cpp:1801
void setBottom(int y)
void setStyleSheet(const QString &styleSheet)
virtual void focusOutEvent(QFocusEvent *event)
Definition: TerminalDisplay.cpp:1548
Qt::KeyboardModifiers modifiers() const
virtual QSize sizeHint() const
Provides the menu actions to manipulate a single terminal session and view pair.
Definition: SessionController.h:85
bool mouseWheelZoom()
Returns the whether zoom terminal on Ctrl+mousewheel is enabled.
Definition: TerminalDisplay.h:354
QString & append(QChar ch)
QSize size() const
Type type() const
int doubleClickInterval()
void setContentsMargins(int left, int top, int right, int bottom)
const QPalette & palette() const
virtual void mouseReleaseEvent(QMouseEvent *event)
Definition: TerminalDisplay.cpp:2191
int ascent() const
int & rx()
int & ry()
bool isHidden() const
Definition: TerminalDisplay.h:915
int width() const
void setBlinkingCursorEnabled(bool blink)
Specifies whether or not the cursor can blink.
Definition: TerminalDisplay.cpp:1515
virtual void showEvent(QShowEvent *event)
Definition: TerminalDisplay.cpp:1740
void setCursor(const QCursor &)
void setWallpaper(ColorSchemeWallpaper::Ptr p)
Sets the background picture.
Definition: TerminalDisplay.cpp:596
void setBackgroundColor(const QColor &color)
Sets the background of the display to the specified color.
Definition: TerminalDisplay.cpp:128
const QMimeData * mimeData() const
void fillRect(const QRectF &rectangle, const QBrush &brush)
void setCompositionMode(CompositionMode mode)
void setKerning(bool enable)
CursorShapeEnum
This enum describes the shapes used to draw the cursor in terminal displays.
Definition: Enumeration.h:80
void setVTFont(const QFont &font)
Sets the font used to draw the display.
Definition: TerminalDisplay.cpp:205
void setFlowControlWarningEnabled(bool enabled)
Changes whether the flow control warning box should be shown when the flow control stop key (Ctrl+S) ...
Definition: TerminalDisplay.cpp:2874
void updateImage()
Causes the terminal display to fetch the latest character image from the associated terminal screen (...
Definition: TerminalDisplay.cpp:967
virtual KUrl url() const
Returns the URL current associated with a view.
Definition: SessionController.cpp:290
void updateGeometry()
virtual void mouseMoveEvent(QMouseEvent *event)
Definition: TerminalDisplay.cpp:1925
Definition: TerminalDisplay.cpp:469
void updateLineProperties()
Causes the terminal display to fetch the latest line status flags from the associated terminal screen...
Definition: TerminalDisplay.cpp:2255
void setColor(ColorGroup group, ColorRole role, const QColor &color)
StyleStrategy styleStrategy() const
void addWidget(QWidget *widget, int row, int column, QFlags< Qt::AlignmentFlag > alignment)
QWidget * window() const
void setMimeData(QMimeData *data)
int right() const
void setRange(int min, int max)
virtual void activate(QObject *object=0)=0
Causes the action associated with a hotspot to be triggered.
QRect contentsRect() const
static ExtendedCharTable instance
The global ExtendedCharTable instance.
Definition: ExtendedCharTable.h:68
Draw a line underneath the cursor's position.
Definition: Enumeration.h:88
Definition: TerminalDisplay.cpp:463
qreal pointSizeF() const
Represents an area of text which matched the pattern a particular filter has been looking for...
Definition: Filter.h:70
Filter::HotSpot * hotSpotAt(int line, int column) const
Returns the first hotspot which occurs at line, column or 0 if no hotspot was found.
Definition: Filter.cpp:81
const QRegion & region() const
void processFilters()
Updates the filters in the display's filter chain.
Definition: TerminalDisplay.cpp:944
virtual bool hasFormat(const QString &mimeType) const
void bell(const QString &message)
Shows a notification that a bell event has occurred in the terminal.
Definition: TerminalDisplay.cpp:3062
virtual void contextMenuEvent(QContextMenuEvent *event)
Definition: TerminalDisplay.cpp:3033
void setBellMode(int mode)
Sets the type of effect used to alert the user when a 'bell' occurs in the terminal session...
Definition: TerminalDisplay.cpp:3047
void setFocusPolicy(Qt::FocusPolicy policy)
QObject * sender() const
const QFont & font() const
QString & prepend(QChar ch)
QVariant data() const
void selectCurrentLine()
Definition: TerminalDisplay.cpp:2625
void setOpenExternalLinks(bool open)
QStyle * style() const
void getImage(Character *dest, int size, int startLine, int endLine) const
Returns the current screen image.
Definition: Screen.cpp:450
int x() const
int y() const
void setMinimumWidth(int minw)
Definition: TerminalDisplay.cpp:470
QChar charClass(const Character &ch) const
Definition: TerminalDisplay.cpp:2642
const QColor & color(ColorGroup group, ColorRole role) const
int size() const
void outputSuspended(bool suspended)
Causes the widget to display or hide a message informing the user that terminal output has been suspe...
Definition: TerminalDisplay.cpp:2884
void setWorldMatrix(const QMatrix &matrix, bool combine)
void setUnderline(bool enable)
int y() const
void setBracketedPasteMode(bool bracketedPasteMode)
Definition: TerminalDisplay.cpp:2686
bool isVisible() const
virtual void inputMethodEvent(QInputMethodEvent *event)
Definition: TerminalDisplay.cpp:2788
Definition: TerminalDisplay.cpp:448
void save()
void setAttribute(Qt::WidgetAttribute attribute, bool on)
void setAlignment(QFlags< Qt::AlignmentFlag >)
Definition: TerminalDisplay.cpp:467
int height() const
QRect boundingRect() const
virtual void mouseDoubleClickEvent(QMouseEvent *event)
Definition: TerminalDisplay.cpp:2284
int x() const
int y() const
void setPageStep(int)
void setLayoutDirection(Qt::LayoutDirection direction)
bool hasFocus() const
const QChar LTR_OVERRIDE_CHAR(0x202D)
Select the whole line underneath the cursor.
Definition: Enumeration.h:94
void keyPressedSignal(QKeyEvent *event)
Emitted when the user presses a key whilst the terminal widget has focus.
Qt::MouseButtons buttons() const
const QPoint & pos() const
static void drawLineChar(QPainter &paint, int x, int y, int w, int h, uchar code)
Definition: TerminalDisplay.cpp:474
void drawLine(const QLineF &line)
ScrollBarPositionEnum
This enum describes the positions where the terminal display's scroll bar may be placed.
Definition: Enumeration.h:58
virtual void decodeLine(const Character *const characters, int count, LineProperty properties)
Converts a line of terminal characters with associated properties into a text string and writes the s...
Definition: TerminalCharacterDecoder.cpp:68
Definition: TerminalDisplay.cpp:454
QColor getBackgroundColor() const
Gets the background of the display.
Definition: TerminalDisplay.cpp:141
void moveTopLeft(const QPoint &position)
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
Definition: TerminalDisplay.cpp:461
void setKeyboardCursorColor(const QColor &color)
Sets the color used to draw the keyboard cursor.
Definition: TerminalDisplay.cpp:567
void setScrollFullPage(bool fullPage)
Definition: TerminalDisplay.cpp:1822
void update()
int x() const
int y() const
Definition: TerminalDisplay.cpp:449
bool bold() const
geometry
Use a solid rectangular block to draw the cursor.
Definition: Enumeration.h:82
void setAutoCopySelectedText(bool enabled)
Definition: TerminalDisplay.cpp:2733
bool italic() const
Always draw text in this color with a bold weight.
Definition: CharacterColor.h:46
static bool isLineCharString(const QString &string)
Definition: TerminalDisplay.cpp:166
Definition: TerminalDisplay.cpp:459
A terminal character decoder which produces plain text, ignoring colors and other appearance-related ...
Definition: TerminalCharacterDecoder.h:72
virtual void paintEvent(QPaintEvent *event)
Definition: TerminalDisplay.cpp:1171
void setUsesMouse(bool usesMouse)
Sets whether the program whose output is being displayed in the view is interested in mouse events...
Definition: TerminalDisplay.cpp:2676
int width() const
void setBold(bool enable)
void overrideShortcutCheck(QKeyEvent *keyEvent, bool &override)
When a shortcut which is also a valid terminal key sequence is pressed while the terminal widget has ...
Qt::DropAction exec(QFlags< Qt::DropAction > supportedActions)
A single character in the terminal which consists of a unicode character value, foreground and backgr...
Definition: Character.h:77
QSize size() const
int cursorFlashTime()
void drawRect(const QRectF &rectangle)
QColor color() const
void setFont(const QFont &font)
virtual void wheelEvent(QWheelEvent *event)
Definition: TerminalDisplay.cpp:2330
enabled
void resize(int size)
Definition: TerminalDisplay.cpp:460
Definition: TerminalDisplay.cpp:466
Definition: TerminalDisplay.cpp:464
void append(const T &value)
bool isSpace() const
void setForegroundColor(const QColor &color)
Sets the text of the display to the specified color.
Definition: TerminalDisplay.cpp:146
void mouseSignal(int button, int column, int line, int eventType)
A mouse event occurred.
void drawPoint(const QPointF &position)
int lines() const
Returns the number of lines of text which can be displayed in the widget.
Definition: TerminalDisplay.h:268
void setSearchStartToWindowCurrentLine()
set start line to the first or last line (depending on the reverse search setting) in the terminal di...
Definition: SessionController.cpp:1100
Definition: Filter.h:86
void updateAccessibility(QObject *object, int child, Event reason)
void setLayout(QLayout *layout)
Enum::CursorShapeEnum keyboardCursorShape() const
Returns the shape of the keyboard cursor.
Definition: TerminalDisplay.cpp:563
void installEventFilter(QObject *filterObj)
Definition: TerminalDisplay.cpp:457
void changedContentSizeSignal(int height, int width)
int x() const
void setLayoutDirection(Qt::LayoutDirection direction)
QString fromUtf16(const ushort *unicode, int size)
QColor keyboardCursorColor() const
Returns the color of the keyboard cursor, or an invalid color if the keyboard cursor color is set to ...
Definition: TerminalDisplay.cpp:571
QClipboard * clipboard()
virtual ~TerminalDisplay()
Definition: TerminalDisplay.cpp:410
SessionController * sessionController()
Definition: TerminalDisplay.cpp:3235
int top() const
Qt::Orientation orientation() const
virtual bool focusNextPrevChild(bool next)
Definition: TerminalDisplay.cpp:2632
bool isSupportedLineChar(quint16 codePoint)
Unicode character in the range of U+2500 ~ U+257F are known as line characters, or box-drawing charac...
Definition: Character.h:56
KSharedPtr< ColorSchemeWallpaper > Ptr
Definition: ColorScheme.h:47
QRegion subtracted(const QRegion &r) const
void setPen(const QColor &color)
virtual bool focusNextPrevChild(bool next)
void setTop(int y)
void selectLine(QPoint pos, bool entireLine)
Definition: TerminalDisplay.cpp:2597
int left() const
Qt::MouseButton button() const
int maxWidth() const
QPalette::ColorRole backgroundRole() const
Provides a window onto a section of a terminal screen.
Definition: ScreenWindow.h:52
int bellMode() const
Returns the type of effect used to alert the user when a 'bell' occurs in the terminal session...
Definition: TerminalDisplay.cpp:3052
void setObjectName(const QString &name)
void setCoords(int x1, int y1, int x2, int y2)
FontWeight
Specifies the weight to use when drawing text with this color.
Definition: CharacterColor.h:44
void setWidth(int width)
bool isEmpty() const
virtual bool event(QEvent *event)
Definition: TerminalDisplay.cpp:3016
ushort * lookupExtendedChar(ushort hash, ushort &length) const
Looks up and returns a pointer to a sequence of unicode characters which was added to the table using...
Definition: ExtendedCharTable.cpp:113
Definition: TerminalDisplay.cpp:465
virtual void dragEnterEvent(QDragEnterEvent *event)
Definition: TerminalDisplay.cpp:3115
bool sendEvent(QObject *receiver, QEvent *event)
void copyToX11Selection()
Copies the selected text to the X11 Selection.
Definition: TerminalDisplay.cpp:2743
void setStyleStrategy(StyleStrategy s)
Definition: TerminalDisplay.cpp:471
bool scrollFullPage() const
Definition: TerminalDisplay.cpp:1827
QPaintDevice * device() const
void setColorTable(const ColorEntry table[])
Sets the terminal color palette used by the display.
Definition: TerminalDisplay.cpp:152
void move(int x, int y)
void setText(const QString &text)
void drawText(const QPointF &position, const QString &text)
virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const
Definition: TerminalDisplay.cpp:2801
bool underline() const
void setText(const QString &)
QColor color(const ColorEntry *palette) const
Returns the color within the specified color palette.
Definition: CharacterColor.h:277
CharacterColor backgroundColor
The color used to draw this character's background.
Definition: Character.h:117
void changedFontMetricSignal(int height, int width)
void hide()
minimum
void setScrollBarPosition(Enum::ScrollBarPositionEnum position)
Specifies whether the terminal display has a vertical scroll bar, and if so whether it is shown on th...
Definition: TerminalDisplay.cpp:1768
void setCenterContents(bool enable)
Sets whether the contents are centered between the margins.
Definition: TerminalDisplay.cpp:1755
void setMiddleClickPasteMode(Enum::MiddleClickPasteModeEnum mode)
Definition: TerminalDisplay.cpp:2738
void setColor(const QColor &color)
Definition: TerminalDisplay.cpp:458
Definition: TerminalDisplay.cpp:453
void setSessionController(SessionController *controller)
Definition: TerminalDisplay.cpp:3230
virtual bool eventFilter(QObject *watched, QEvent *event)
Definition: TerminalDisplay.cpp:3259
QPalette palette()
QRect intersected(const QRect &rectangle) const
virtual void timerEvent(QTimerEvent *event)
Definition: TerminalDisplay.cpp:3246
int columns() const
Returns the number of characters of text which can be displayed on each line in the widget...
Definition: TerminalDisplay.h:278
QRect rect() const
void setOpacity(qreal opacity)
Sets the opacity of the terminal display.
Definition: TerminalDisplay.cpp:576
QRect adjusted(int dx1, int dy1, int dx2, int dy2) const
virtual void fontChange(const QFont &)
Definition: TerminalDisplay.cpp:174
void setAcceptDrops(bool on)
Qt::KeyboardModifiers modifiers() const
bool contains(const QPoint &p) const
void setData(const QVariant &userData)
QByteArray toLocal8Bit() const
int key() const
virtual bool event(QEvent *event)
virtual void focusInEvent(QFocusEvent *event)
Definition: TerminalDisplay.cpp:1570
void accept()
bool contains(QChar ch, Qt::CaseSensitivity cs) const
const QFont & font() const
void setLineSpacing(uint)
Definition: TerminalDisplay.cpp:260
void scrollBarPositionChanged(int value)
Definition: TerminalDisplay.cpp:1784
bool isEmpty() const
int width(const QString &text, int len) const
virtual void mousePressEvent(QMouseEvent *event)
Definition: TerminalDisplay.cpp:1837
virtual QList< QAction * > actions()
Returns a list of actions associated with the hotspot which can be used in a menu or toolbar...
Definition: Filter.cpp:264
Describes the color of a single character in the terminal.
Definition: CharacterColor.h:147
void stop()
bool isValid() const
void setItalic(bool enable)
void setPointSizeF(qreal pointSize)
void setSize(int columns, int lines)
Definition: TerminalDisplay.cpp:1715
AutoScrollHandler(QWidget *parent)
Definition: TerminalDisplay.cpp:3240
int delta() const
void restore()
QString text(Mode mode) const
void setRandomSeed(uint seed)
Sets the seed used to generate random colors for the display (in color schemes that support them)...
Definition: TerminalDisplay.cpp:805
void setKeyboardCursorShape(Enum::CursorShapeEnum shape)
Sets the shape of the keyboard cursor.
Definition: TerminalDisplay.cpp:559
virtual void hideEvent(QHideEvent *event)
Definition: TerminalDisplay.cpp:1744
void setTextInteractionFlags(QFlags< Qt::TextInteractionFlag > flags)
QString & replace(int position, int n, QChar after)
void setRight(int x)
A chain which allows a group of filters to be processed as one.
Definition: Filter.h:312
int startTimer(int interval)
Definition: TerminalDisplay.cpp:455
ColorEntry::FontWeight fontWeight(const ColorEntry *base) const
Returns true if this character should always be drawn in bold when it is drawn with the specified pal...
Definition: Character.h:188
virtual void begin(QTextStream *output)
Begin decoding characters.
Definition: TerminalCharacterDecoder.cpp:49
int width() const
QFontMetrics fontMetrics() const
MiddleClickPasteModeEnum
This enum describes the source from which mouse middle click pastes data .
Definition: Enumeration.h:100
QPoint pos()
struct Konsole::TerminalDisplay::DragInfo _dragInfo
int width() const
void setSingleStep(int)
Definition: TerminalDisplay.cpp:452
Definition: TerminalDisplay.cpp:447
void scrollScreenWindow(enum ScreenWindow::RelativeScrollMode mode, int amount)
Scrolls current ScreenWindow.
Definition: TerminalDisplay.cpp:2933
QAccessibleInterface * accessibleInterfaceFactory(const QString &key, QObject *object)
This function installs the factory function which lets Qt instantiate the QAccessibleInterface for th...
Definition: TerminalDisplay.cpp:279
void setHeight(int height)
void setScreenWindow(ScreenWindow *window)
Sets the terminal screen section which is displayed in this widget.
Definition: TerminalDisplay.cpp:107
void addItem(QLayoutItem *item, int row, int column, int rowSpan, int columnSpan, QFlags< Qt::AlignmentFlag > alignment)
const QChar at(int position) const
Definition: Filter.h:84
QPoint mapFromGlobal(const QPoint &pos) const
Use an 'I' shape, similar to that used in text editing applications, to draw the cursor.
Definition: Enumeration.h:86
int height() const
virtual QSize sizeHint() const
int height() const
int count(const T &value) const
TerminalDisplay(QWidget *parent=0)
Constructs a new terminal display widget with the specified parent.
Definition: TerminalDisplay.cpp:294
void adjust(int dx1, int dy1, int dx2, int dy2)
ScreenWindow * screenWindow() const
Returns the terminal screen section which is displayed in this widget.
Definition: TerminalDisplay.cpp:103
This class serves as a place for putting enum definitions that are used or referenced in multiple pla...
Definition: Enumeration.h:31
int bottom() const
A filter chain which processes character images from terminal displays.
Definition: Filter.h:343
QPoint topLeft() const
Definition: TerminalDisplay.cpp:451
int length() const
void setMinimumHeight(int minh)
int endColumn() const
Returns the column on endLine() where the hotspot area ends.
Definition: Filter.cpp:280
void setX(int x)
void setImage(const Character *const image, int lines, int columns, const QVector< LineProperty > &lineProperties)
Set the current terminal image to image.
Definition: Filter.cpp:118
void reserve(int size)
void setMouseTracking(bool enable)
int timerId() const
QList< QAction * > filterActions(const QPoint &position)
Returns a list of menu actions created by the filters for the content at the given position...
Definition: TerminalDisplay.cpp:1915
void pasteFromClipboard(bool appendEnter=false)
Pastes the content of the clipboard into the display.
Definition: TerminalDisplay.cpp:2770
const ColorEntry * colorTable() const
Returns the terminal color palette used by the display.
Definition: TerminalDisplay.cpp:124
static const ColorEntry defaultTable[]
Definition: ColorScheme.h:171
bool isEmpty() const
void start(int msec)
void setAlphaF(qreal alpha)
void copyToClipboard()
Copies the selected text to the system clipboard.
Definition: TerminalDisplay.cpp:2758
trigger visual bell(inverting the display's colors briefly).
Definition: Enumeration.h:118
Show the scroll-bar on the right of the terminal display.
Definition: Enumeration.h:62
void setText(const QString &text, Mode mode)
void blinkCursorEvent()
Definition: TerminalDisplay.cpp:1592
virtual void keyPressEvent(QKeyEvent *event)
Definition: TerminalDisplay.cpp:2942
void setAutoFillBackground(bool enabled)
void show()
void pasteFromX11Selection(bool appendEnter=false)
Pastes the content of the X11 selection into the display.
Definition: TerminalDisplay.cpp:2776
void mouseTripleClickEvent(QMouseEvent *event)
Definition: TerminalDisplay.cpp:2586
void scroll(int dx, int dy)
const QPoint & pos() const
uint randomSeed() const
Returns the seed used to generate random colors for the display (in color schemes that support them)...
Definition: TerminalDisplay.cpp:809
Use the current font weight set by the terminal application.
Definition: CharacterColor.h:53
RelativeScrollMode
Describes the units which scrollBy() moves the window by.
Definition: ScreenWindow.h:193
void setBackgroundRole(QPalette::ColorRole role)
QMatrix inverted(bool *invertible) const
void configureRequest(const QPoint &position)
Emitted when the user right clicks on the display, or right-clicks with the Shift key held down if us...
void setBlinkingTextEnabled(bool blink)
Specifies whether or not text can blink.
Definition: TerminalDisplay.cpp:1535
bool isActive() const
maximum
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Class implementing the QAccessibleInterface for the terminal display.
Definition: TerminalDisplayAccessible.h:41
void map(int x, int y, int *tx, int *ty) const
QObject * parent() const
int size() const
A widget which displays output from a terminal emulation and sends input keypresses and mouse activit...
Definition: TerminalDisplay.h:63
void installFactory(InterfaceFactory factory)
const QPen & pen() const
virtual void dropEvent(QDropEvent *event)
Definition: TerminalDisplay.cpp:3127
QChar * data()
QString toString() const
virtual bool event(QEvent *event)
void setLeft(int x)
bool bracketedPasteMode() const
Definition: TerminalDisplay.cpp:2690
const QString & commitString() const
virtual QString currentDir() const
Returns the current directory associated with a view.
Definition: SessionController.cpp:285
QVector< LineProperty > getLineProperties(int startLine, int endLine) const
Returns the additional attributes associated with lines in the image.
Definition: Screen.cpp:485
void killTimer(int id)
int startColumn() const
Returns the column on startLine() where the hotspot area starts.
Definition: Filter.cpp:276
quint8 rendition
A combination of RENDITION flags which specify options for drawing the character. ...
Definition: Character.h:111
Show the scroll-bar on the left of the terminal display.
Definition: Enumeration.h:60
QFont getVTFont()
Returns the font used to draw characters in the display.
Definition: TerminalDisplay.h:365
virtual void leaveEvent(QEvent *event)
Definition: TerminalDisplay.cpp:2029
void setWordWrap(bool on)
void sendStringToEmu(const char *)
int height() const
FilterChain * filterChain() const
Returns the display's filter chain.
Definition: TerminalDisplay.cpp:1214
CharacterColor foregroundColor
The foreground color used to draw this character.
Definition: Character.h:114
QMatrix & scale(qreal sx, qreal sy)
QRgb rgba() const
virtual void extendSelection(const QPoint &pos)
Definition: TerminalDisplay.cpp:2038
bool isLetterOrNumber() const
bool isValid() const
QList< Filter::HotSpot * > hotSpots() const
Returns a list of all the hotspots in all the chain's filters.
Definition: Filter.cpp:95
Qt::CursorShape shape() const
void setContentsMargins(int left, int top, int right, int bottom)
void setSingleShot(bool singleShot)
void printContent(QPainter &painter, bool friendly)
Definition: TerminalDisplay.cpp:1185
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
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.