Changeset View
Changeset View
Standalone View
Standalone View
core/BaseMode.h
Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Line(s) | 58 | public: | |||
---|---|---|---|---|---|
108 | * Provides information about the plugin, which is used in the About dialog of System Settings.\n | 108 | * Provides information about the plugin, which is used in the About dialog of System Settings.\n | ||
109 | * This does not need to be implemented, and need only be implemented if the author | 109 | * This does not need to be implemented, and need only be implemented if the author | ||
110 | * wants information about the view displayed in the About dialog. | 110 | * wants information about the view displayed in the About dialog. | ||
111 | * | 111 | * | ||
112 | * @returns The about data of the plugin. | 112 | * @returns The about data of the plugin. | ||
113 | */ | 113 | */ | ||
114 | virtual KAboutData * aboutData(); | 114 | virtual KAboutData * aboutData(); | ||
115 | 115 | | |||
116 | void setInfoCenterMode(bool info); | ||||
117 | bool isInfoCenterMode() const; | ||||
118 | | ||||
116 | /** | 119 | /** | ||
117 | * The state of the plugin ( position of the splitter for instance ) should be saved | 120 | * The state of the plugin ( position of the splitter for instance ) should be saved | ||
118 | * to the configuration object when this is called. | 121 | * to the configuration object when this is called. | ||
119 | */ | 122 | */ | ||
120 | virtual void saveState(); | 123 | virtual void saveState(); | ||
121 | 124 | | |||
122 | /** | 125 | /** | ||
123 | * Causes the view to unload all modules in the module view, and return to their module selection state | 126 | * Causes the view to unload all modules in the module view, and return to their module selection state | ||
▲ Show 20 Lines • Show All 103 Lines • ▼ Show 20 Line(s) | 227 | protected: | |||
227 | * This is usually passed to the constructor of MenuModel. | 230 | * This is usually passed to the constructor of MenuModel. | ||
228 | * | 231 | * | ||
229 | * @warning This is shared between all views, and should not be deleted manually. | 232 | * @warning This is shared between all views, and should not be deleted manually. | ||
230 | * @returns The root menu item as provided by System Settings. | 233 | * @returns The root menu item as provided by System Settings. | ||
231 | */ | 234 | */ | ||
232 | MenuItem * rootItem() const; | 235 | MenuItem * rootItem() const; | ||
233 | 236 | | |||
234 | /** | 237 | /** | ||
238 | * Returns (if present) an item that corresponds to a KCM which should be used as startup page. | ||||
239 | * | ||||
240 | * @warning This is shared between all views, and should not be deleted manually. | ||||
241 | * @returns The item to load as startup page. It may be nullptr | ||||
242 | */ | ||||
243 | MenuItem * homeItem() const; | ||||
244 | | ||||
245 | /** | ||||
235 | * Provides access to the configuration for the plugin. | 246 | * Provides access to the configuration for the plugin. | ||
236 | * | 247 | * | ||
237 | * @returns The configuration group for the plugin. | 248 | * @returns The configuration group for the plugin. | ||
238 | */ | 249 | */ | ||
239 | KConfigGroup& config() const; | 250 | KConfigGroup& config() const; | ||
240 | 251 | | |||
241 | /** | 252 | /** | ||
242 | * Provides access to item views used by the plugin. | 253 | * Provides access to item views used by the plugin. | ||
Show All 15 Lines |