Changeset View
Changeset View
Standalone View
Standalone View
src/ViewManager.h
Show All 33 Lines | |||||
34 | namespace Konsole { | 34 | namespace Konsole { | ||
35 | class ColorScheme; | 35 | class ColorScheme; | ||
36 | class Session; | 36 | class Session; | ||
37 | class TerminalDisplay; | 37 | class TerminalDisplay; | ||
38 | class TabbedViewContainer; | 38 | class TabbedViewContainer; | ||
39 | class SessionController; | 39 | class SessionController; | ||
40 | class ViewProperties; | 40 | class ViewProperties; | ||
41 | class ViewSplitter; | 41 | class ViewSplitter; | ||
42 | class TabbedViewContainer; | 42 | class ListTabbedSessionsPopup; | ||
43 | 43 | | |||
44 | /** | 44 | /** | ||
45 | * Manages the terminal display widgets in a Konsole window or part. | 45 | * Manages the terminal display widgets in a Konsole window or part. | ||
46 | * | 46 | * | ||
47 | * When a view manager is created, it constructs a splitter widget ( accessed via | 47 | * When a view manager is created, it constructs a splitter widget ( accessed via | ||
48 | * widget() ) to hold one or more view containers. Each view container holds | 48 | * widget() ) to hold one or more view containers. Each view container holds | ||
49 | * one or more terminal displays and a navigation widget ( eg. tabs or a list ) | 49 | * one or more terminal displays and a navigation widget ( eg. tabs or a list ) | ||
50 | * to allow the user to navigate between the displays in that container. | 50 | * to allow the user to navigate between the displays in that container. | ||
▲ Show 20 Lines • Show All 142 Lines • ▼ Show 20 Line(s) | 68 | public: | |||
193 | * Returns whether the @p profile has the blur setting enabled | 193 | * Returns whether the @p profile has the blur setting enabled | ||
194 | */ | 194 | */ | ||
195 | static bool profileHasBlurEnabled(const Profile::Ptr profile); | 195 | static bool profileHasBlurEnabled(const Profile::Ptr profile); | ||
196 | 196 | | |||
197 | /** returns the active tab from the view | 197 | /** returns the active tab from the view | ||
198 | */ | 198 | */ | ||
199 | TabbedViewContainer *activeContainer(); | 199 | TabbedViewContainer *activeContainer(); | ||
200 | 200 | | |||
201 | /** Behaves like a Alt + Tab application switcher | ||||
202 | * */ | ||||
203 | void displayTabChangeModalDialog(); | ||||
204 | | ||||
201 | Q_SIGNALS: | 205 | Q_SIGNALS: | ||
202 | /** Emitted when the last view is removed from the view manager */ | 206 | /** Emitted when the last view is removed from the view manager */ | ||
203 | void empty(); | 207 | void empty(); | ||
204 | 208 | | |||
205 | /** Emitted when a session is detached from a view owned by this ViewManager */ | 209 | /** Emitted when a session is detached from a view owned by this ViewManager */ | ||
206 | void viewDetached(Session *session); | 210 | void viewDetached(Session *session); | ||
207 | 211 | | |||
208 | /** | 212 | /** | ||
▲ Show 20 Lines • Show All 215 Lines • ▼ Show 20 Line(s) | 423 | private: | |||
424 | 428 | | |||
425 | KActionCollection *_actionCollection; | 429 | KActionCollection *_actionCollection; | ||
426 | 430 | | |||
427 | NavigationMethod _navigationMethod; | 431 | NavigationMethod _navigationMethod; | ||
428 | NavigationVisibility _navigationVisibility; | 432 | NavigationVisibility _navigationVisibility; | ||
429 | NewTabBehavior _newTabBehavior; | 433 | NewTabBehavior _newTabBehavior; | ||
430 | int _managerId; | 434 | int _managerId; | ||
431 | static int lastManagerId; | 435 | static int lastManagerId; | ||
436 | QPointer<ListTabbedSessionsPopup> _altTabSwitcher; | ||||
432 | }; | 437 | }; | ||
433 | } | 438 | } | ||
434 | 439 | | |||
435 | #endif | 440 | #endif |