Changeset View
Changeset View
Standalone View
Standalone View
src/SessionController.h
Show First 20 Lines • Show All 167 Lines • ▼ Show 20 Line(s) | 89 | public: | |||
---|---|---|---|---|---|
168 | bool eventFilter(QObject *watched, QEvent *event) Q_DECL_OVERRIDE; | 168 | bool eventFilter(QObject *watched, QEvent *event) Q_DECL_OVERRIDE; | ||
169 | 169 | | |||
170 | /** Returns the set of all controllers that exist. */ | 170 | /** Returns the set of all controllers that exist. */ | ||
171 | static QSet<SessionController *> allControllers() | 171 | static QSet<SessionController *> allControllers() | ||
172 | { | 172 | { | ||
173 | return _allControllers; | 173 | return _allControllers; | ||
174 | } | 174 | } | ||
175 | 175 | | |||
176 | /* Returns true if called within a KPart; false if called within Konsole. */ | ||||
177 | bool isKonsolePart() const; | ||||
178 | | ||||
176 | Q_SIGNALS: | 179 | Q_SIGNALS: | ||
177 | /** | 180 | /** | ||
178 | * Emitted when the view associated with the controller is focused. | 181 | * Emitted when the view associated with the controller is focused. | ||
179 | * This can be used by other classes to plug the controller's actions into a window's | 182 | * This can be used by other classes to plug the controller's actions into a window's | ||
180 | * menus. | 183 | * menus. | ||
181 | */ | 184 | */ | ||
182 | void focused(SessionController *controller); | 185 | void focused(SessionController *controller); | ||
183 | 186 | | |||
▲ Show 20 Lines • Show All 120 Lines • ▼ Show 20 Line(s) | 299 | private: | |||
304 | QRegularExpression regexpFromSearchBarOptions() const; | 307 | QRegularExpression regexpFromSearchBarOptions() const; | ||
305 | bool reverseSearchChecked() const; | 308 | bool reverseSearchChecked() const; | ||
306 | void setupCommonActions(); | 309 | void setupCommonActions(); | ||
307 | void setupExtraActions(); | 310 | void setupExtraActions(); | ||
308 | void removeSearchFilter(); // remove and delete the current search filter if set | 311 | void removeSearchFilter(); // remove and delete the current search filter if set | ||
309 | void setFindNextPrevEnabled(bool enabled); | 312 | void setFindNextPrevEnabled(bool enabled); | ||
310 | void listenForScreenWindowUpdates(); | 313 | void listenForScreenWindowUpdates(); | ||
311 | 314 | | |||
312 | /* Returns true if called within a KPart; false if called within Konsole. */ | | |||
313 | bool isKonsolePart() const; | | |||
314 | | ||||
315 | private: | 315 | private: | ||
316 | void updateSessionIcon(); | 316 | void updateSessionIcon(); | ||
317 | 317 | | |||
318 | QPointer<Session> _session; | 318 | QPointer<Session> _session; | ||
319 | QPointer<TerminalDisplay> _view; | 319 | QPointer<TerminalDisplay> _view; | ||
320 | SessionGroup *_copyToGroup; | 320 | SessionGroup *_copyToGroup; | ||
321 | 321 | | |||
322 | ProfileList *_profileList; | 322 | ProfileList *_profileList; | ||
▲ Show 20 Lines • Show All 214 Lines • Show Last 20 Lines |