Changeset View
Changeset View
Standalone View
Standalone View
src/dialogs/usermenu/usermenutree.h
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | 38 | public: | |||
---|---|---|---|---|---|
50 | 50 | | |||
51 | bool readXml(const QString &filename); | 51 | bool readXml(const QString &filename); | ||
52 | bool writeXml(const QString &filename); | 52 | bool writeXml(const QString &filename); | ||
53 | bool errorCheck(); | 53 | bool errorCheck(); | ||
54 | bool isItemExecutable(const QString &filename); | 54 | bool isItemExecutable(const QString &filename); | ||
55 | 55 | | |||
56 | bool isEmpty(); | 56 | bool isEmpty(); | ||
57 | 57 | | |||
58 | private Q_SLOTS: | | |||
59 | void slotPopupActivated(int id); | | |||
60 | | ||||
61 | private: | 58 | private: | ||
62 | enum PopupType { POPUP_INSERT_ABOVE=0x00, POPUP_INSERT_BELOW=0x01, | | |||
63 | POPUP_SEPARATOR_ABOVE=0x02, POPUP_SEPARATOR_BELOW=0x03, | | |||
64 | POPUP_SUBMENU_ABOVE=0x04, POPUP_SUBMENU_BELOW=0x05, | | |||
65 | POPUP_INTO_SUBMENU=0x06, POPUP_SEPARATOR_INTO_SUBMENU=0x07, POPUP_SUBMENU_INTO_SUBMENU=0x08, | | |||
66 | POPUP_DELETE_ITEM=0x09, POPUP_DELETE_TREE=0x0A, | | |||
67 | POPUP_COLLAPSE_ITEM=0x0B, POPUP_EXPAND_ITEM=0x0C, | | |||
68 | POPUP_COLLAPSE_TREE=0x0D, POPUP_EXPAND_TREE=0x0E, | | |||
69 | POPUP_ITEM_INFO=0x0F | | |||
70 | }; | | |||
71 | | ||||
72 | UserMenuItem *m_popupItem; | 59 | UserMenuItem *m_popupItem; | ||
73 | 60 | | |||
74 | void setErrorCodes(); | 61 | void setErrorCodes(); | ||
75 | bool checkSubmenuError(UserMenuItem *item); | 62 | bool checkSubmenuError(UserMenuItem *item); | ||
76 | 63 | | |||
77 | QStringList m_envPathlist; | 64 | QStringList m_envPathlist; | ||
78 | void initEnvPathlist(); | 65 | void initEnvPathlist(); | ||
79 | 66 | | |||
Show All 34 Lines |