Changeset View
Changeset View
Standalone View
Standalone View
src/ViewContainer.h
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Line(s) | 61 | public: | |||
---|---|---|---|---|---|
71 | * Called when the ViewContainer is destroyed. When reimplementing this in | 71 | * Called when the ViewContainer is destroyed. When reimplementing this in | ||
72 | * subclasses, use object->deleteLater() to delete any widgets or other objects | 72 | * subclasses, use object->deleteLater() to delete any widgets or other objects | ||
73 | * instead of 'delete object'. | 73 | * instead of 'delete object'. | ||
74 | */ | 74 | */ | ||
75 | ~TabbedViewContainer() Q_DECL_OVERRIDE; | 75 | ~TabbedViewContainer() Q_DECL_OVERRIDE; | ||
76 | 76 | | |||
77 | /** Adds a new view to the container widget */ | 77 | /** Adds a new view to the container widget */ | ||
78 | void addView(TerminalDisplay *view, int index = -1); | 78 | void addView(TerminalDisplay *view, int index = -1); | ||
79 | void addSplitter(ViewSplitter *splitter, int index = -1); | ||||
79 | 80 | | |||
80 | /** splits the currently focused Splitter */ | 81 | /** splits the currently focused Splitter */ | ||
81 | void splitView(TerminalDisplay *view, Qt::Orientation orientation); | 82 | void splitView(TerminalDisplay *view, Qt::Orientation orientation); | ||
82 | 83 | | |||
83 | /** Removes a view from the container */ | 84 | /** Removes a view from the container */ | ||
84 | void removeView(TerminalDisplay *view); | 85 | void removeView(TerminalDisplay *view); | ||
85 | 86 | | |||
86 | void setTabActivity(int index, bool activity); | 87 | void setTabActivity(int index, bool activity); | ||
▲ Show 20 Lines • Show All 57 Lines • ▼ Show 20 Line(s) | |||||
144 | /* return the widget(int index) casted to TerminalDisplay* | 145 | /* return the widget(int index) casted to TerminalDisplay* | ||
145 | * | 146 | * | ||
146 | * The only thing that this class holds are TerminalDisplays, so | 147 | * The only thing that this class holds are TerminalDisplays, so | ||
147 | * this is the only thing that should be used to retrieve widgets. | 148 | * this is the only thing that should be used to retrieve widgets. | ||
148 | */ | 149 | */ | ||
149 | ViewSplitter *viewSplitterAt(int index); | 150 | ViewSplitter *viewSplitterAt(int index); | ||
150 | 151 | | |||
151 | void connectTerminalDisplay(TerminalDisplay *view); | 152 | void connectTerminalDisplay(TerminalDisplay *view); | ||
153 | void disconnectTerminalDisplay(TerminalDisplay *view); | ||||
152 | 154 | | |||
153 | Q_SIGNALS: | 155 | Q_SIGNALS: | ||
154 | /** Emitted when the container has no more children */ | 156 | /** Emitted when the container has no more children */ | ||
155 | void empty(TabbedViewContainer *container); | 157 | void empty(TabbedViewContainer *container); | ||
156 | 158 | | |||
157 | /** Emitted when the user requests to open a new view */ | 159 | /** Emitted when the user requests to open a new view */ | ||
158 | void newViewRequest(TabbedViewContainer *thisContainer); | 160 | void newViewRequest(TabbedViewContainer *thisContainer); | ||
159 | 161 | | |||
Show All 17 Lines | |||||
177 | 179 | | |||
178 | /** Emitted when a view is added to the container. */ | 180 | /** Emitted when a view is added to the container. */ | ||
179 | void viewAdded(TerminalDisplay *view); | 181 | void viewAdded(TerminalDisplay *view); | ||
180 | 182 | | |||
181 | /** Emitted when a view is removed from the container. */ | 183 | /** Emitted when a view is removed from the container. */ | ||
182 | void viewRemoved(TerminalDisplay *view); | 184 | void viewRemoved(TerminalDisplay *view); | ||
183 | 185 | | |||
184 | /** detach the specific tab */ | 186 | /** detach the specific tab */ | ||
185 | void detachTab(TabbedViewContainer *self, TerminalDisplay *activeView); | 187 | void detachTab(TabbedViewContainer *self); | ||
186 | 188 | | |||
187 | protected: | 189 | protected: | ||
188 | /** | 190 | /** | ||
189 | * Rearranges the order of widgets in the container. | 191 | * Rearranges the order of widgets in the container. | ||
190 | * | 192 | * | ||
191 | * @param fromIndex Current index of the widget to move | 193 | * @param fromIndex Current index of the widget to move | ||
192 | * @param toIndex New index for the widget | 194 | * @param toIndex New index for the widget | ||
193 | */ | 195 | */ | ||
Show All 24 Lines |