Changeset View
Changeset View
Standalone View
Standalone View
src/TerminalDisplay.h
Show All 15 Lines | 1 | /* | |||
---|---|---|---|---|---|
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software | ||
17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
18 | 02110-1301 USA. | 18 | 02110-1301 USA. | ||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | #ifndef TERMINALDISPLAY_H | 21 | #ifndef TERMINALDISPLAY_H | ||
22 | #define TERMINALDISPLAY_H | 22 | #define TERMINALDISPLAY_H | ||
23 | 23 | | |||
24 | #include <functional> | | |||
25 | | ||||
26 | // Qt | 24 | // Qt | ||
27 | #include <QColor> | 25 | #include <QColor> | ||
28 | #include <QPointer> | 26 | #include <QPointer> | ||
29 | #include <QWidget> | 27 | #include <QWidget> | ||
30 | 28 | | |||
31 | // Konsole | 29 | // Konsole | ||
32 | #include "Character.h" | 30 | #include "Character.h" | ||
33 | #include "konsoleprivate_export.h" | 31 | #include "konsoleprivate_export.h" | ||
▲ Show 20 Lines • Show All 843 Lines • ▼ Show 20 Line(s) | 789 | private: | |||
877 | QPoint findLineEnd(const QPoint &pnt); | 875 | QPoint findLineEnd(const QPoint &pnt); | ||
878 | QPoint findWordStart(const QPoint &pnt); | 876 | QPoint findWordStart(const QPoint &pnt); | ||
879 | QPoint findWordEnd(const QPoint &pnt); | 877 | QPoint findWordEnd(const QPoint &pnt); | ||
880 | 878 | | |||
881 | // Uses the current settings for trimming whitespace and preserving linebreaks to create a proper flag value for Screen | 879 | // Uses the current settings for trimming whitespace and preserving linebreaks to create a proper flag value for Screen | ||
882 | Screen::DecodingOptions currentDecodingOptions(); | 880 | Screen::DecodingOptions currentDecodingOptions(); | ||
883 | 881 | | |||
884 | // Boilerplate setup for MessageWidget | 882 | // Boilerplate setup for MessageWidget | ||
885 | KMessageWidget* createMessageWidget(const QString &text, std::function<void (const QString&)> linkHandler); | 883 | KMessageWidget* createMessageWidget(const QString &text); | ||
886 | 884 | | |||
887 | // the window onto the terminal screen which this display | 885 | // the window onto the terminal screen which this display | ||
888 | // is currently showing. | 886 | // is currently showing. | ||
889 | QPointer<ScreenWindow> _screenWindow; | 887 | QPointer<ScreenWindow> _screenWindow; | ||
890 | 888 | | |||
891 | bool _bellMasked; | 889 | bool _bellMasked; | ||
892 | 890 | | |||
893 | QVBoxLayout *_verticalLayout; | 891 | QVBoxLayout *_verticalLayout; | ||
▲ Show 20 Lines • Show All 160 Lines • Show Last 20 Lines |