Changeset View
Changeset View
Standalone View
Standalone View
src/MainWindow.h
Show All 34 Lines | |||||
35 | class KToggleAction; | 35 | class KToggleAction; | ||
36 | 36 | | |||
37 | namespace Konsole { | 37 | namespace Konsole { | ||
38 | class IncrementalSearchBar; | 38 | class IncrementalSearchBar; | ||
39 | class ViewManager; | 39 | class ViewManager; | ||
40 | class ViewProperties; | 40 | class ViewProperties; | ||
41 | class Session; | 41 | class Session; | ||
42 | class SessionController; | 42 | class SessionController; | ||
43 | class TerminalDisplay; | ||||
43 | class ProfileList; | 44 | class ProfileList; | ||
44 | class BookmarkHandler; | 45 | class BookmarkHandler; | ||
45 | 46 | | |||
46 | /** | 47 | /** | ||
47 | * The main window. This contains the menus and an area which contains the terminal displays. | 48 | * The main window. This contains the menus and an area which contains the terminal displays. | ||
48 | * | 49 | * | ||
49 | * The main window does not create the views or the container widgets which hold the views. | 50 | * The main window does not create the views or the container widgets which hold the views. | ||
50 | * This is done by the ViewManager class. When a MainWindow is instantiated, it creates | 51 | * This is done by the ViewManager class. When a MainWindow is instantiated, it creates | ||
Show All 34 Lines | 61 | public: | |||
85 | * @param profile The profile to use to create the new session. | 86 | * @param profile The profile to use to create the new session. | ||
86 | * @param url the URL representing the new SSH connection | 87 | * @param url the URL representing the new SSH connection | ||
87 | */ | 88 | */ | ||
88 | Session *createSSHSession(Profile::Ptr profile, const QUrl &url); | 89 | Session *createSSHSession(Profile::Ptr profile, const QUrl &url); | ||
89 | 90 | | |||
90 | /** | 91 | /** | ||
91 | * create view for the specified session | 92 | * create view for the specified session | ||
92 | */ | 93 | */ | ||
93 | void createView(Session *session); | 94 | void createView(Session *session, TerminalDisplay *detachedView = nullptr); | ||
94 | 95 | | |||
95 | /** | 96 | /** | ||
96 | * Helper method to make this window get input focus | 97 | * Helper method to make this window get input focus | ||
97 | */ | 98 | */ | ||
98 | void setFocus(); | 99 | void setFocus(); | ||
99 | 100 | | |||
100 | /** | 101 | /** | ||
101 | * Set the initial visibility of the menubar. | 102 | * Set the initial visibility of the menubar. | ||
Show All 20 Lines | 114 | Q_SIGNALS: | |||
122 | * if the default working directory associated with the profile should | 123 | * if the default working directory associated with the profile should | ||
123 | * be used. | 124 | * be used. | ||
124 | */ | 125 | */ | ||
125 | void newWindowRequest(Profile::Ptr profile, const QString &directory); | 126 | void newWindowRequest(Profile::Ptr profile, const QString &directory); | ||
126 | 127 | | |||
127 | /** | 128 | /** | ||
128 | * Emitted when a view for one session is detached from this window | 129 | * Emitted when a view for one session is detached from this window | ||
129 | */ | 130 | */ | ||
130 | void viewDetached(Session *session); | 131 | void viewDetached(Session *session, TerminalDisplay *view); | ||
131 | 132 | | |||
132 | protected: | 133 | protected: | ||
133 | // Reimplemented for internal reasons. | 134 | // Reimplemented for internal reasons. | ||
134 | void showEvent(QShowEvent *event) Q_DECL_OVERRIDE; | 135 | void showEvent(QShowEvent *event) Q_DECL_OVERRIDE; | ||
135 | 136 | | |||
136 | // reimplemented from KMainWindow | 137 | // reimplemented from KMainWindow | ||
137 | bool queryClose() Q_DECL_OVERRIDE; | 138 | bool queryClose() Q_DECL_OVERRIDE; | ||
138 | void saveProperties(KConfigGroup &group) Q_DECL_OVERRIDE; | 139 | void saveProperties(KConfigGroup &group) Q_DECL_OVERRIDE; | ||
▲ Show 20 Lines • Show All 78 Lines • Show Last 20 Lines |