Changeset View
Changeset View
Standalone View
Standalone View
src/dolphintabpage.h
Show All 17 Lines | |||||
18 | ***************************************************************************/ | 18 | ***************************************************************************/ | ||
19 | 19 | | |||
20 | #ifndef DOLPHIN_TAB_PAGE_H | 20 | #ifndef DOLPHIN_TAB_PAGE_H | ||
21 | #define DOLPHIN_TAB_PAGE_H | 21 | #define DOLPHIN_TAB_PAGE_H | ||
22 | 22 | | |||
23 | #include <QPointer> | 23 | #include <QPointer> | ||
24 | #include <QUrl> | 24 | #include <QUrl> | ||
25 | #include <QWidget> | 25 | #include <QWidget> | ||
26 | #include <QUuid> | ||||
26 | 27 | | |||
27 | class QSplitter; | 28 | class QSplitter; | ||
28 | class DolphinViewContainer; | 29 | class DolphinViewContainer; | ||
29 | class KFileItemList; | 30 | class KFileItemList; | ||
30 | 31 | | |||
31 | class DolphinTabPage : public QWidget | 32 | class DolphinTabPage : public QWidget | ||
32 | { | 33 | { | ||
33 | Q_OBJECT | 34 | Q_OBJECT | ||
▲ Show 20 Lines • Show All 96 Lines • ▼ Show 20 Line(s) | 36 | public: | |||
130 | Q_DECL_DEPRECATED void restoreStateV1(const QByteArray& state); | 131 | Q_DECL_DEPRECATED void restoreStateV1(const QByteArray& state); | ||
131 | 132 | | |||
132 | /** | 133 | /** | ||
133 | * Set whether the tab page is active | 134 | * Set whether the tab page is active | ||
134 | * | 135 | * | ||
135 | */ | 136 | */ | ||
136 | void setActive(bool active); | 137 | void setActive(bool active); | ||
137 | 138 | | |||
139 | /** | ||||
140 | * Returns UUID of the tab. | ||||
141 | * UUIDs are generated during construction. | ||||
142 | */ | ||||
143 | QUuid uuid() const; | ||||
elvisangelaccio: Coding style: please call it `uuid()`, we don't usually use the getXXX naming style for getters. | |||||
144 | | ||||
138 | signals: | 145 | signals: | ||
139 | void activeViewChanged(DolphinViewContainer* viewContainer); | 146 | void activeViewChanged(DolphinViewContainer* viewContainer); | ||
140 | void activeViewUrlChanged(const QUrl& url); | 147 | void activeViewUrlChanged(const QUrl& url); | ||
141 | 148 | | |||
142 | private slots: | 149 | private slots: | ||
143 | /** | 150 | /** | ||
144 | * Handles the view activated event. | 151 | * Handles the view activated event. | ||
145 | * | 152 | * | ||
Show All 21 Lines | 173 | private: | |||
167 | QSplitter* m_splitter; | 174 | QSplitter* m_splitter; | ||
168 | 175 | | |||
169 | QPointer<DolphinViewContainer> m_primaryViewContainer; | 176 | QPointer<DolphinViewContainer> m_primaryViewContainer; | ||
170 | QPointer<DolphinViewContainer> m_secondaryViewContainer; | 177 | QPointer<DolphinViewContainer> m_secondaryViewContainer; | ||
171 | 178 | | |||
172 | bool m_primaryViewActive; | 179 | bool m_primaryViewActive; | ||
173 | bool m_splitViewEnabled; | 180 | bool m_splitViewEnabled; | ||
174 | bool m_active; | 181 | bool m_active; | ||
182 | const QUuid m_uuid; | ||||
175 | }; | 183 | }; | ||
176 | 184 | | |||
177 | #endif // DOLPHIN_TAB_PAGE_H | 185 | #endif // DOLPHIN_TAB_PAGE_H |
Coding style: please call it uuid(), we don't usually use the getXXX naming style for getters.