Changeset View
Changeset View
Standalone View
Standalone View
treeview.h
Show First 20 Lines • Show All 176 Lines • ▼ Show 20 Line(s) | 164 | public: | |||
---|---|---|---|---|---|
177 | void restoreMenuSystem(); | 177 | void restoreMenuSystem(); | ||
178 | 178 | | |||
179 | void updateTreeView(bool showHidden); | 179 | void updateTreeView(bool showHidden); | ||
180 | 180 | | |||
181 | public Q_SLOTS: | 181 | public Q_SLOTS: | ||
182 | void currentDataChanged(MenuFolderInfo *folderInfo); | 182 | void currentDataChanged(MenuFolderInfo *folderInfo); | ||
183 | void currentDataChanged(MenuEntryInfo *entryInfo); | 183 | void currentDataChanged(MenuEntryInfo *entryInfo); | ||
184 | void findServiceShortcut(const QKeySequence &, KService::Ptr &); | 184 | void findServiceShortcut(const QKeySequence &, KService::Ptr &); | ||
185 | void searchUpdated(const QString &searchString); | ||||
185 | 186 | | |||
186 | Q_SIGNALS: | 187 | Q_SIGNALS: | ||
187 | void entrySelected(MenuFolderInfo *folderInfo); | 188 | void entrySelected(MenuFolderInfo *folderInfo); | ||
188 | void entrySelected(MenuEntryInfo *entryInfo); | 189 | void entrySelected(MenuEntryInfo *entryInfo); | ||
189 | void disableAction(); | 190 | void disableAction(); | ||
190 | 191 | | |||
191 | protected Q_SLOTS: | 192 | protected Q_SLOTS: | ||
192 | void itemSelected(QTreeWidgetItem *); | 193 | void itemSelected(QTreeWidgetItem *); | ||
193 | bool dropMimeData(QTreeWidgetItem *parent, int index, const QMimeData *data, Qt::DropAction action) override; | 194 | bool dropMimeData(QTreeWidgetItem *parent, int index, const QMimeData *data, Qt::DropAction action) override; | ||
194 | 195 | | |||
195 | void newsubmenu(); | 196 | void newsubmenu(); | ||
196 | void newitem(); | 197 | void newitem(); | ||
197 | void newsep(); | 198 | void newsep(); | ||
198 | 199 | | |||
199 | void cut(); | 200 | void cut(); | ||
200 | void copy(); | 201 | void copy(); | ||
201 | void paste(); | 202 | void paste(); | ||
202 | void del(); | 203 | void del(); | ||
203 | void sort(const int sortCmd); | 204 | void sort(const int sortCmd); | ||
204 | void moveUpItem(); | 205 | void moveUpItem(); | ||
205 | void moveDownItem(); | 206 | void moveDownItem(); | ||
206 | 207 | | |||
208 | | ||||
ngraham: Unrelated change | |||||
207 | protected: | 209 | protected: | ||
208 | enum SortType { | 210 | enum SortType { | ||
209 | SortByName = 0, | 211 | SortByName = 0, | ||
210 | SortByDescription, | 212 | SortByDescription, | ||
211 | SortAllByName, | 213 | SortAllByName, | ||
212 | SortAllByDescription | 214 | SortAllByDescription | ||
213 | }; | 215 | }; | ||
214 | 216 | | |||
Show All 9 Lines | |||||
224 | void fill(); | 226 | void fill(); | ||
225 | void fillBranch(MenuFolderInfo *folderInfo, TreeItem *parent); | 227 | void fillBranch(MenuFolderInfo *folderInfo, TreeItem *parent); | ||
226 | QString findName(KDesktopFile *df, bool deleted); | 228 | QString findName(KDesktopFile *df, bool deleted); | ||
227 | void sortItem(TreeItem *item, const SortType &sortType); | 229 | void sortItem(TreeItem *item, const SortType &sortType); | ||
228 | void sortItemChildren(const QList<QTreeWidgetItem *>::iterator &begin, const QList<QTreeWidgetItem *>::iterator &end, const SortType &sortType); | 230 | void sortItemChildren(const QList<QTreeWidgetItem *>::iterator &begin, const QList<QTreeWidgetItem *>::iterator &end, const SortType &sortType); | ||
229 | TreeItem *getParentItem(QTreeWidgetItem *item) const; | 231 | TreeItem *getParentItem(QTreeWidgetItem *item) const; | ||
230 | void moveUpOrDownItem(bool isMovingUpAction); | 232 | void moveUpOrDownItem(bool isMovingUpAction); | ||
231 | 233 | | |||
232 | void closeAllItems(QTreeWidgetItem *item); | | |||
233 | TreeItem *expandPath(TreeItem *item, const QString &path); | 234 | TreeItem *expandPath(TreeItem *item, const QString &path); | ||
234 | 235 | | |||
235 | // moving = src will be removed later | 236 | // moving = src will be removed later | ||
236 | void copy(bool moving); | 237 | void copy(bool moving); | ||
237 | 238 | | |||
238 | void cleanupClipboard(); | 239 | void cleanupClipboard(); | ||
239 | 240 | | |||
240 | bool isLayoutDirty(); | 241 | bool isLayoutDirty(); | ||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |
Unrelated change