Changeset View
Changeset View
Standalone View
Standalone View
src/ViewContainer.h
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | |||||
52 | * | 52 | * | ||
53 | * The container widget typically displays a list of the views which | 53 | * The container widget typically displays a list of the views which | ||
54 | * it has and provides a means of switching between them. | 54 | * it has and provides a means of switching between them. | ||
55 | * | 55 | * | ||
56 | * Subclasses should reimplement the addViewWidget() and removeViewWidget() functions | 56 | * Subclasses should reimplement the addViewWidget() and removeViewWidget() functions | ||
57 | * to actually add or remove view widgets from the container widget, as well | 57 | * to actually add or remove view widgets from the container widget, as well | ||
58 | * as updating any navigation aids. | 58 | * as updating any navigation aids. | ||
59 | */ | 59 | */ | ||
60 | class TabbedViewContainer : public QTabWidget | 60 | class KONSOLEPRIVATE_EXPORT TabbedViewContainer : public QTabWidget | ||
61 | { | 61 | { | ||
62 | Q_OBJECT | 62 | Q_OBJECT | ||
63 | 63 | | |||
64 | public: | 64 | public: | ||
65 | /** | 65 | /** | ||
66 | * Constructs a new view container with the specified parent. | 66 | * Constructs a new view container with the specified parent. | ||
67 | * | 67 | * | ||
68 | * @param connectedViewManager Connect the new view to this manager | 68 | * @param connectedViewManager Connect the new view to this manager | ||
▲ Show 20 Lines • Show All 71 Lines • ▼ Show 20 Line(s) | |||||
140 | void openTabContextMenu(const QPoint &point); | 140 | void openTabContextMenu(const QPoint &point); | ||
141 | void setNavigationVisibility(ViewManager::NavigationVisibility navigationVisibility); | 141 | void setNavigationVisibility(ViewManager::NavigationVisibility navigationVisibility); | ||
142 | void moveTabToWindow(int index, QWidget *window); | 142 | void moveTabToWindow(int index, QWidget *window); | ||
143 | Q_SIGNALS: | 143 | Q_SIGNALS: | ||
144 | /** Emitted when the container has no more children */ | 144 | /** Emitted when the container has no more children */ | ||
145 | void empty(TabbedViewContainer *container); | 145 | void empty(TabbedViewContainer *container); | ||
146 | 146 | | |||
147 | /** Emitted when the user requests to open a new view */ | 147 | /** Emitted when the user requests to open a new view */ | ||
148 | void newViewRequest(); | 148 | void newViewRequest(TabbedViewContainer *thisContainer); | ||
149 | 149 | | |||
150 | /** Requests creation of a new view, with the selected profile. */ | 150 | /** Requests creation of a new view, with the selected profile. */ | ||
151 | void newViewRequest(Profile::Ptr); | 151 | void newViewWithProfileRequest(TabbedViewContainer *thisContainer, Profile::Ptr); | ||
152 | 152 | | |||
153 | /** | 153 | /** | ||
154 | * Emitted when the user requests to move a view from another container | 154 | * Emitted when the user requests to move a view from another container | ||
155 | * into this container. If 'success' is set to true by a connected slot | 155 | * into this container. If 'success' is set to true by a connected slot | ||
156 | * then the original view will be removed. | 156 | * then the original view will be removed. | ||
157 | * | 157 | * | ||
158 | * @param index Index at which to insert the new view in the container or -1 | 158 | * @param index Index at which to insert the new view in the container or -1 | ||
159 | * to append it. This index should be passed to addView() when the new view | 159 | * to append it. This index should be passed to addView() when the new view | ||
160 | * has been created. | 160 | * has been created. | ||
161 | * @param id The identifier of the view. | 161 | * @param id The identifier of the view. | ||
162 | * @param sourceContainer Initial move event Tabbed view container. | | |||
163 | */ | 162 | */ | ||
164 | void moveViewRequest(int index, int id, TabbedViewContainer *sourceContainer); | 163 | void moveViewRequest(int index, int sessionControllerId); | ||
165 | 164 | | |||
166 | /** Emitted when the active view changes */ | 165 | /** Emitted when the active view changes */ | ||
167 | void activeViewChanged(QWidget *view); | 166 | void activeViewChanged(QWidget *view); | ||
168 | 167 | | |||
169 | /** Emitted when a view is added to the container. */ | 168 | /** Emitted when a view is added to the container. */ | ||
170 | void viewAdded(QWidget *view, ViewProperties *properties); | 169 | void viewAdded(QWidget *view, ViewProperties *properties); | ||
171 | 170 | | |||
172 | /** Emitted when a view is removed from the container. */ | 171 | /** Emitted when a view is removed from the container. */ | ||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |