Changeset View
Changeset View
Standalone View
Standalone View
src/ViewContainer.h
Show First 20 Lines • Show All 196 Lines • ▼ Show 20 Line(s) | 67 | public: | |||
---|---|---|---|---|---|
197 | virtual QWidget *activeView() const = 0; | 197 | virtual QWidget *activeView() const = 0; | ||
198 | 198 | | |||
199 | /** | 199 | /** | ||
200 | * Changes the focus to the specified view and updates | 200 | * Changes the focus to the specified view and updates | ||
201 | * navigation aids to reflect the change. | 201 | * navigation aids to reflect the change. | ||
202 | */ | 202 | */ | ||
203 | virtual void setActiveView(QWidget *widget) = 0; | 203 | virtual void setActiveView(QWidget *widget) = 0; | ||
204 | 204 | | |||
205 | /** | | |||
206 | * @return the search widget for this view | | |||
207 | */ | | |||
208 | IncrementalSearchBar *searchBar(); | | |||
209 | | ||||
210 | /** Changes the active view to the next view */ | 205 | /** Changes the active view to the next view */ | ||
211 | void activateNextView(); | 206 | void activateNextView(); | ||
212 | 207 | | |||
213 | /** Changes the active view to the previous view */ | 208 | /** Changes the active view to the previous view */ | ||
214 | void activatePreviousView(); | 209 | void activatePreviousView(); | ||
215 | 210 | | |||
216 | /** Changes the active view to the last view */ | 211 | /** Changes the active view to the last view */ | ||
217 | void activateLastView(); | 212 | void activateLastView(); | ||
▲ Show 20 Lines • Show All 138 Lines • ▼ Show 20 Line(s) | 305 | protected: | |||
356 | * | 351 | * | ||
357 | * @param fromIndex Current index of the widget to move | 352 | * @param fromIndex Current index of the widget to move | ||
358 | * @param toIndex New index for the widget | 353 | * @param toIndex New index for the widget | ||
359 | */ | 354 | */ | ||
360 | virtual void moveViewWidget(int fromIndex, int toIndex); | 355 | virtual void moveViewWidget(int fromIndex, int toIndex); | ||
361 | 356 | | |||
362 | private Q_SLOTS: | 357 | private Q_SLOTS: | ||
363 | void viewDestroyed(QObject *view); | 358 | void viewDestroyed(QObject *view); | ||
364 | void searchBarDestroyed(); | | |||
365 | 359 | | |||
366 | private: | 360 | private: | ||
367 | Q_DISABLE_COPY(ViewContainer) | 361 | Q_DISABLE_COPY(ViewContainer) | ||
368 | 362 | | |||
369 | void forgetView(QWidget *view); | 363 | void forgetView(QWidget *view); | ||
370 | 364 | | |||
371 | NavigationVisibility _navigationVisibility; | 365 | NavigationVisibility _navigationVisibility; | ||
372 | NavigationPosition _navigationPosition; | 366 | NavigationPosition _navigationPosition; | ||
▲ Show 20 Lines • Show All 94 Lines • Show Last 20 Lines |