Changeset View
Changeset View
Standalone View
Standalone View
src/dolphintabwidget.h
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Line(s) | 34 | public: | |||
---|---|---|---|---|---|
74 | 74 | | |||
75 | /** | 75 | /** | ||
76 | * Refreshes the views of the main window by recreating them according to | 76 | * Refreshes the views of the main window by recreating them according to | ||
77 | * the given Dolphin settings. | 77 | * the given Dolphin settings. | ||
78 | */ | 78 | */ | ||
79 | void refreshViews(); | 79 | void refreshViews(); | ||
80 | 80 | | |||
81 | /** | 81 | /** | ||
82 | * @param url The URL that we would like | 82 | * @return Whether any of the tab pages contains @p url in their primary | ||
83 | * @return a QPair with first containing the index of the tab with the | 83 | * or secondary view. | ||
84 | * desired URL or -1 if not found. Second says true if URL is in primary | | |||
85 | * view container, false otherwise. False means the URL is in the secondary | | |||
86 | * view container, unless first == -1. In that case the value of second | | |||
87 | * is meaningless. | | |||
88 | */ | 84 | */ | ||
89 | QPair<int, bool> getIndexByUrl(const QUrl& url) const; | 85 | bool isUrlOpen(const QUrl& url) const; | ||
90 | 86 | | |||
91 | signals: | 87 | signals: | ||
92 | /** | 88 | /** | ||
93 | * Is emitted when the active view has been changed, by changing the current | 89 | * Is emitted when the active view has been changed, by changing the current | ||
94 | * tab or by activating another view when split view is enabled in the current | 90 | * tab or by activating another view when split view is enabled in the current | ||
95 | * tab. | 91 | * tab. | ||
96 | */ | 92 | */ | ||
97 | void activeViewChanged(DolphinViewContainer* viewContainer); | 93 | void activeViewChanged(DolphinViewContainer* viewContainer); | ||
▲ Show 20 Lines • Show All 118 Lines • ▼ Show 20 Line(s) | |||||
216 | 212 | | |||
217 | private: | 213 | private: | ||
218 | /** | 214 | /** | ||
219 | * @param tabPage The tab page to get the name of | 215 | * @param tabPage The tab page to get the name of | ||
220 | * @return The name of the tab page | 216 | * @return The name of the tab page | ||
221 | */ | 217 | */ | ||
222 | QString tabName(DolphinTabPage* tabPage) const; | 218 | QString tabName(DolphinTabPage* tabPage) const; | ||
223 | 219 | | |||
220 | /** | ||||
221 | * @param url The URL that we would like | ||||
222 | * @return a QPair with first containing the index of the tab with the | ||||
223 | * desired URL or -1 if not found. Second says true if URL is in primary | ||||
224 | * view container, false otherwise. False means the URL is in the secondary | ||||
225 | * view container, unless first == -1. In that case the value of second | ||||
226 | * is meaningless. | ||||
227 | */ | ||||
228 | QPair<int, bool> indexByUrl(const QUrl& url) const; | ||||
229 | | ||||
224 | private: | 230 | private: | ||
225 | /** Caches the (negated) places panel visibility */ | 231 | /** Caches the (negated) places panel visibility */ | ||
226 | bool m_placesSelectorVisible; | 232 | bool m_placesSelectorVisible; | ||
227 | 233 | | |||
228 | int m_lastViewedTab; | 234 | int m_lastViewedTab; | ||
229 | }; | 235 | }; | ||
230 | 236 | | |||
231 | #endif | 237 | #endif |