Changeset View
Changeset View
Standalone View
Standalone View
src/SessionController.h
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | |||||
51 | class KJob; | 51 | class KJob; | ||
52 | class QAction; | 52 | class QAction; | ||
53 | class KActionMenu; | 53 | class KActionMenu; | ||
54 | 54 | | |||
55 | namespace Konsole { | 55 | namespace Konsole { | ||
56 | class Session; | 56 | class Session; | ||
57 | class SessionGroup; | 57 | class SessionGroup; | ||
58 | class ScreenWindow; | 58 | class ScreenWindow; | ||
59 | class TerminalDisplay; | 59 | class TerminalWidget; | ||
60 | class IncrementalSearchBar; | 60 | class IncrementalSearchBar; | ||
61 | class ProfileList; | 61 | class ProfileList; | ||
62 | class RegExpFilter; | 62 | class RegExpFilter; | ||
63 | class UrlFilter; | 63 | class UrlFilter; | ||
64 | class FileFilter; | 64 | class FileFilter; | ||
65 | class EditProfileDialog; | 65 | class EditProfileDialog; | ||
66 | 66 | | |||
67 | // SaveHistoryTask | 67 | // SaveHistoryTask | ||
Show All 28 Lines | 90 | enum CopyInputToEnum { | |||
96 | 96 | | |||
97 | /** Do not copy keyboard input to other tabs */ | 97 | /** Do not copy keyboard input to other tabs */ | ||
98 | CopyInputToNoneMode = 2 | 98 | CopyInputToNoneMode = 2 | ||
99 | }; | 99 | }; | ||
100 | 100 | | |||
101 | /** | 101 | /** | ||
102 | * Constructs a new SessionController which operates on @p session and @p view. | 102 | * Constructs a new SessionController which operates on @p session and @p view. | ||
103 | */ | 103 | */ | ||
104 | SessionController(Session *session, TerminalDisplay *view, QObject *parent); | 104 | SessionController(Session *session, TerminalWidget *view, QObject *parent); | ||
105 | ~SessionController() Q_DECL_OVERRIDE; | 105 | ~SessionController() Q_DECL_OVERRIDE; | ||
106 | 106 | | |||
107 | /** Returns the session associated with this controller */ | 107 | /** Returns the session associated with this controller */ | ||
108 | QPointer<Session> session() | 108 | QPointer<Session> session() | ||
109 | { | 109 | { | ||
110 | return _session; | 110 | return _session; | ||
111 | } | 111 | } | ||
112 | 112 | | |||
113 | /** Returns the view associated with this controller */ | 113 | /** Returns the view associated with this controller */ | ||
114 | QPointer<TerminalDisplay> view() | 114 | QPointer<TerminalWidget> view() | ||
115 | { | 115 | { | ||
116 | return _view; | 116 | return _view; | ||
117 | } | 117 | } | ||
118 | 118 | | |||
119 | /** | 119 | /** | ||
120 | * Returns the "window title" of the associated session. | 120 | * Returns the "window title" of the associated session. | ||
121 | */ | 121 | */ | ||
122 | QString userTitle() const; | 122 | QString userTitle() const; | ||
Show All 15 Lines | |||||
138 | 138 | | |||
139 | /** | 139 | /** | ||
140 | * Sets the widget used for searches through the session's output. | 140 | * Sets the widget used for searches through the session's output. | ||
141 | * | 141 | * | ||
142 | * When the user clicks on the "Search Output" menu action the @p searchBar 's | 142 | * When the user clicks on the "Search Output" menu action the @p searchBar 's | ||
143 | * show() method will be called. The SessionController will then connect to the search | 143 | * show() method will be called. The SessionController will then connect to the search | ||
144 | * bar's signals to update the search when the widget's controls are pressed. | 144 | * bar's signals to update the search when the widget's controls are pressed. | ||
145 | */ | 145 | */ | ||
146 | void setSearchBar(IncrementalSearchBar *searchBar); | 146 | void setupSearchBar(); | ||
147 | /** | 147 | /** | ||
148 | * see setSearchBar() | 148 | * see setSearchBar() | ||
149 | */ | 149 | */ | ||
150 | IncrementalSearchBar *searchBar() const; | 150 | IncrementalSearchBar *searchBar() const; | ||
151 | 151 | | |||
152 | /** | 152 | /** | ||
153 | * Sets the action displayed in the session's context menu to hide or | 153 | * Sets the action displayed in the session's context menu to hide or | ||
154 | * show the menu bar. | 154 | * show the menu bar. | ||
▲ Show 20 Lines • Show All 165 Lines • ▼ Show 20 Line(s) | 307 | private: | |||
320 | void setFindNextPrevEnabled(bool enabled); | 320 | void setFindNextPrevEnabled(bool enabled); | ||
321 | void listenForScreenWindowUpdates(); | 321 | void listenForScreenWindowUpdates(); | ||
322 | 322 | | |||
323 | private: | 323 | private: | ||
324 | void updateSessionIcon(); | 324 | void updateSessionIcon(); | ||
325 | void updateReadOnlyActionStates(); | 325 | void updateReadOnlyActionStates(); | ||
326 | 326 | | |||
327 | QPointer<Session> _session; | 327 | QPointer<Session> _session; | ||
328 | QPointer<TerminalDisplay> _view; | 328 | QPointer<TerminalWidget> _view; | ||
329 | SessionGroup *_copyToGroup; | 329 | SessionGroup *_copyToGroup; | ||
330 | 330 | | |||
331 | ProfileList *_profileList; | 331 | ProfileList *_profileList; | ||
332 | 332 | | |||
333 | QIcon _sessionIcon; | 333 | QIcon _sessionIcon; | ||
334 | QString _sessionIconName; | 334 | QString _sessionIconName; | ||
335 | int _previousState; | 335 | int _previousState; | ||
336 | 336 | | |||
337 | RegExpFilter *_searchFilter; | 337 | RegExpFilter *_searchFilter; | ||
338 | UrlFilter *_urlFilter; | 338 | UrlFilter *_urlFilter; | ||
339 | FileFilter *_fileFilter; | 339 | FileFilter *_fileFilter; | ||
340 | 340 | | |||
341 | QAction *_copyInputToAllTabsAction; | 341 | QAction *_copyInputToAllTabsAction; | ||
342 | 342 | | |||
343 | QAction *_findAction; | 343 | QAction *_findAction; | ||
344 | QAction *_findNextAction; | 344 | QAction *_findNextAction; | ||
345 | QAction *_findPreviousAction; | 345 | QAction *_findPreviousAction; | ||
346 | 346 | | |||
347 | QTimer *_interactionTimer; | 347 | QTimer *_interactionTimer; | ||
348 | 348 | | |||
349 | int _searchStartLine; | 349 | int _searchStartLine; | ||
350 | int _prevSearchResultLine; | 350 | int _prevSearchResultLine; | ||
351 | QPointer<IncrementalSearchBar> _searchBar; | | |||
352 | 351 | | |||
353 | KCodecAction *_codecAction; | 352 | KCodecAction *_codecAction; | ||
354 | 353 | | |||
355 | KActionMenu *_switchProfileMenu; | 354 | KActionMenu *_switchProfileMenu; | ||
356 | KActionMenu *_webSearchMenu; | 355 | KActionMenu *_webSearchMenu; | ||
357 | 356 | | |||
358 | bool _listenForScreenWindowUpdates; | 357 | bool _listenForScreenWindowUpdates; | ||
359 | bool _preventClose; | 358 | bool _preventClose; | ||
▲ Show 20 Lines • Show All 186 Lines • Show Last 20 Lines |