Changeset View
Changeset View
Standalone View
Standalone View
src/ScreenWindow.h
Show All 21 Lines | |||||
22 | 22 | | |||
23 | // Qt | 23 | // Qt | ||
24 | #include <QObject> | 24 | #include <QObject> | ||
25 | #include <QPoint> | 25 | #include <QPoint> | ||
26 | #include <QRect> | 26 | #include <QRect> | ||
27 | 27 | | |||
28 | // Konsole | 28 | // Konsole | ||
29 | #include "Character.h" | 29 | #include "Character.h" | ||
30 | #include "Screen.h" | ||||
30 | 31 | | |||
31 | namespace Konsole { | 32 | namespace Konsole { | ||
32 | class Screen; | | |||
33 | 33 | | |||
34 | /** | 34 | /** | ||
35 | * Provides a window onto a section of a terminal screen. A terminal widget can then render | 35 | * Provides a window onto a section of a terminal screen. A terminal widget can then render | ||
36 | * the contents of the window and use the window to change the terminal screen's selection | 36 | * the contents of the window and use the window to change the terminal screen's selection | ||
37 | * in response to mouse or keyboard input. | 37 | * in response to mouse or keyboard input. | ||
38 | * | 38 | * | ||
39 | * A new ScreenWindow for a terminal session can be created by calling Emulation::createWindow() | 39 | * A new ScreenWindow for a terminal session can be created by calling Emulation::createWindow() | ||
40 | * | 40 | * | ||
▲ Show 20 Lines • Show All 183 Lines • ▼ Show 20 Line(s) | 55 | public: | |||
224 | */ | 224 | */ | ||
225 | bool trackOutput() const; | 225 | bool trackOutput() const; | ||
226 | 226 | | |||
227 | /** | 227 | /** | ||
228 | * Returns the text which is currently selected. | 228 | * Returns the text which is currently selected. | ||
229 | * | 229 | * | ||
230 | * @param preserveLineBreaks See Screen::selectedText() | 230 | * @param preserveLineBreaks See Screen::selectedText() | ||
231 | * @param trimTrailingSpaces See Screen::selectedText() | 231 | * @param trimTrailingSpaces See Screen::selectedText() | ||
232 | * @param trimLeadingSpaces See Screen::selectedText() | ||||
232 | * @param html Specifies if returned text should have HTML tags. | 233 | * @param html Specifies if returned text should have HTML tags. | ||
233 | */ | 234 | */ | ||
234 | QString selectedText(bool preserveLineBreaks, bool trimTrailingSpaces = false, | 235 | QString selectedText(const Konsole::Screen::DecodingOptions options) const; | ||
235 | bool html = false) const; | | |||
236 | 236 | | |||
237 | public Q_SLOTS: | 237 | public Q_SLOTS: | ||
238 | /** | 238 | /** | ||
239 | * Notifies the window that the contents of the associated terminal screen have changed. | 239 | * Notifies the window that the contents of the associated terminal screen have changed. | ||
240 | * This moves the window to the bottom of the screen if trackOutput() is true and causes | 240 | * This moves the window to the bottom of the screen if trackOutput() is true and causes | ||
241 | * the outputChanged() signal to be emitted. | 241 | * the outputChanged() signal to be emitted. | ||
242 | */ | 242 | */ | ||
243 | void notifyOutputChanged(); | 243 | void notifyOutputChanged(); | ||
Show All 37 Lines |