Changeset View
Changeset View
Standalone View
Standalone View
src/panels/folders/folderspanel.h
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Line(s) | 70 | private slots: | |||
---|---|---|---|---|---|
83 | */ | 83 | */ | ||
84 | void startFadeInAnimation(); | 84 | void startFadeInAnimation(); | ||
85 | 85 | | |||
86 | 86 | | |||
87 | private: | 87 | private: | ||
88 | /** | 88 | /** | ||
89 | * Indicate if it is allowed to leave current location. | 89 | * Indicate if it is allowed to leave current location. | ||
90 | */ | 90 | */ | ||
91 | enum NavigationBehaviour { | 91 | enum class NavigationBehaviour { | ||
92 | StayWhereYouAre, ///< Don't leave current location. | 92 | StayWhereYouAre, ///< Don't leave current location. | ||
93 | AllowJumpHome ///< Go Home only when context menu option got checked. | 93 | AllowJumpHome ///< Go Home only when context menu option got checked. | ||
94 | }; | 94 | }; | ||
95 | /** | 95 | /** | ||
96 | * Initializes the base URL of the tree and expands all | 96 | * Initializes the base URL of the tree and expands all | ||
97 | * directories until \a url. | 97 | * directories until \a url. | ||
98 | * @param url URL of the leaf directory that should get expanded. | 98 | * @param url URL of the leaf directory that should get expanded. | ||
99 | * @param navigationBehaviour Navigation behaviour \see NavigationBehaviour | 99 | * @param navigationBehaviour Navigation behaviour \see NavigationBehaviour | ||
100 | */ | 100 | */ | ||
101 | void loadTree(const QUrl& url, NavigationBehaviour navigationBehaviour = StayWhereYouAre); | 101 | void loadTree(const QUrl& url, NavigationBehaviour navigationBehaviour = NavigationBehaviour::StayWhereYouAre); | ||
102 | 102 | | |||
103 | void reloadTree(); | 103 | void reloadTree(); | ||
104 | 104 | | |||
105 | /** | 105 | /** | ||
106 | * Sets the item with the index \a index as current item, selects | 106 | * Sets the item with the index \a index as current item, selects | ||
107 | * the item and assures that the item will be visible. | 107 | * the item and assures that the item will be visible. | ||
108 | */ | 108 | */ | ||
109 | void updateCurrentItem(int index); | 109 | void updateCurrentItem(int index); | ||
110 | 110 | | |||
111 | private: | 111 | private: | ||
112 | bool m_updateCurrentItem; | 112 | bool m_updateCurrentItem; | ||
113 | KItemListController* m_controller; | 113 | KItemListController* m_controller; | ||
114 | KFileItemModel* m_model; | 114 | KFileItemModel* m_model; | ||
115 | }; | 115 | }; | ||
116 | 116 | | |||
117 | #endif // FOLDERSPANEL_H | 117 | #endif // FOLDERSPANEL_H |