Changeset View
Changeset View
Standalone View
Standalone View
core/ModuleView.h
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Line(s) | 54 | public: | |||
---|---|---|---|---|---|
90 | * If possible, always check with resolveChanges() first. | 90 | * If possible, always check with resolveChanges() first. | ||
91 | */ | 91 | */ | ||
92 | void closeModules(); | 92 | void closeModules(); | ||
93 | 93 | | |||
94 | void setFaceType(KPageView::FaceType type); | 94 | void setFaceType(KPageView::FaceType type); | ||
95 | 95 | | |||
96 | KPageView::FaceType faceType() const; | 96 | KPageView::FaceType faceType() const; | ||
97 | 97 | | |||
98 | /** | ||||
99 | * Sets whether Systemsettings should save statisctics about | ||||
100 | * most used modules using KActivities::Stats | ||||
101 | */ | ||||
102 | void setSaveStatistics(bool save); | ||||
103 | | ||||
104 | /** | ||||
105 | * @returns whether Systemsettings should save statisctics about | ||||
106 | * most used module | ||||
107 | */ | ||||
108 | bool saveStatistics() const; | ||||
109 | | ||||
110 | /** | ||||
111 | * Shows or hides the Apply button. | ||||
112 | */ | ||||
113 | void setApplyVisible(bool visible); | ||||
114 | | ||||
115 | /** | ||||
116 | * @returns True if the Apply button is visible. | ||||
117 | */ | ||||
118 | bool isApplyVisible() const; | ||||
119 | | ||||
120 | /** | ||||
121 | * Shows or hides the Defaults button. | ||||
122 | */ | ||||
123 | void setDefaultsVisible(bool visible); | ||||
124 | | ||||
125 | /** | ||||
126 | * @returns True if the Defaults button is visible. | ||||
127 | */ | ||||
128 | bool isDefaultsVisible() const; | ||||
129 | | ||||
130 | /** | ||||
131 | * Shows or hides the Reset button. | ||||
132 | */ | ||||
133 | void setResetVisible(bool visible); | ||||
134 | | ||||
135 | /** | ||||
136 | * @returns True if the Reset button is visible. | ||||
137 | */ | ||||
138 | bool isResetVisible() const; | ||||
139 | | ||||
98 | public Q_SLOTS: | 140 | public Q_SLOTS: | ||
99 | /** | 141 | /** | ||
100 | * Loads the module specified by menuItem.\n | 142 | * Loads the module specified by menuItem.\n | ||
101 | * If the module has children, they will all be loaded instead of the module. | 143 | * If the module has children, they will all be loaded instead of the module. | ||
102 | * | 144 | * | ||
103 | * @param menuItem the QModelIndex that you want to load. Must be sourced from either MenuModel or MenuProxyModel | 145 | * @param menuItem the QModelIndex that you want to load. Must be sourced from either MenuModel or MenuProxyModel | ||
104 | */ | 146 | */ | ||
105 | void loadModule(const QModelIndex &menuItem ); | 147 | void loadModule(const QModelIndex &menuItem ); | ||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |