diff options
Diffstat (limited to 'scripts/kconfig/qconf.h')
| -rw-r--r-- | scripts/kconfig/qconf.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/scripts/kconfig/qconf.h b/scripts/kconfig/qconf.h index b3b5657b6b35..636a74b23bf9 100644 --- a/scripts/kconfig/qconf.h +++ b/scripts/kconfig/qconf.h | |||
| @@ -44,6 +44,9 @@ enum colIdx { | |||
| 44 | enum listMode { | 44 | enum listMode { |
| 45 | singleMode, menuMode, symbolMode, fullMode, listMode | 45 | singleMode, menuMode, symbolMode, fullMode, listMode |
| 46 | }; | 46 | }; |
| 47 | enum optionMode { | ||
| 48 | normalOpt = 0, allOpt, promptOpt | ||
| 49 | }; | ||
| 47 | 50 | ||
| 48 | class ConfigList : public QListView { | 51 | class ConfigList : public QListView { |
| 49 | Q_OBJECT | 52 | Q_OBJECT |
| @@ -115,6 +118,8 @@ public: | |||
| 115 | void setAllOpen(bool open); | 118 | void setAllOpen(bool open); |
| 116 | void setParentMenu(void); | 119 | void setParentMenu(void); |
| 117 | 120 | ||
| 121 | bool menuSkip(struct menu *); | ||
| 122 | |||
| 118 | template <class P> | 123 | template <class P> |
| 119 | void updateMenuList(P*, struct menu*); | 124 | void updateMenuList(P*, struct menu*); |
| 120 | 125 | ||
| @@ -124,8 +129,9 @@ public: | |||
| 124 | QPixmap choiceYesPix, choiceNoPix; | 129 | QPixmap choiceYesPix, choiceNoPix; |
| 125 | QPixmap menuPix, menuInvPix, menuBackPix, voidPix; | 130 | QPixmap menuPix, menuInvPix, menuBackPix, voidPix; |
| 126 | 131 | ||
| 127 | bool showAll, showName, showRange, showData; | 132 | bool showName, showRange, showData; |
| 128 | enum listMode mode; | 133 | enum listMode mode; |
| 134 | enum optionMode optMode; | ||
| 129 | struct menu *rootEntry; | 135 | struct menu *rootEntry; |
| 130 | QColorGroup disabledColorGroup; | 136 | QColorGroup disabledColorGroup; |
| 131 | QColorGroup inactivedColorGroup; | 137 | QColorGroup inactivedColorGroup; |
| @@ -222,17 +228,15 @@ public: | |||
| 222 | static void updateList(ConfigItem* item); | 228 | static void updateList(ConfigItem* item); |
| 223 | static void updateListAll(void); | 229 | static void updateListAll(void); |
| 224 | 230 | ||
| 225 | bool showAll(void) const { return list->showAll; } | ||
| 226 | bool showName(void) const { return list->showName; } | 231 | bool showName(void) const { return list->showName; } |
| 227 | bool showRange(void) const { return list->showRange; } | 232 | bool showRange(void) const { return list->showRange; } |
| 228 | bool showData(void) const { return list->showData; } | 233 | bool showData(void) const { return list->showData; } |
| 229 | public slots: | 234 | public slots: |
| 230 | void setShowAll(bool); | ||
| 231 | void setShowName(bool); | 235 | void setShowName(bool); |
| 232 | void setShowRange(bool); | 236 | void setShowRange(bool); |
| 233 | void setShowData(bool); | 237 | void setShowData(bool); |
| 238 | void setOptionMode(QAction *); | ||
| 234 | signals: | 239 | signals: |
| 235 | void showAllChanged(bool); | ||
| 236 | void showNameChanged(bool); | 240 | void showNameChanged(bool); |
| 237 | void showRangeChanged(bool); | 241 | void showRangeChanged(bool); |
| 238 | void showDataChanged(bool); | 242 | void showDataChanged(bool); |
| @@ -242,6 +246,10 @@ public: | |||
| 242 | 246 | ||
| 243 | static ConfigView* viewList; | 247 | static ConfigView* viewList; |
| 244 | ConfigView* nextView; | 248 | ConfigView* nextView; |
| 249 | |||
| 250 | static QAction *showNormalAction; | ||
| 251 | static QAction *showAllAction; | ||
| 252 | static QAction *showPromptAction; | ||
| 245 | }; | 253 | }; |
| 246 | 254 | ||
| 247 | class ConfigInfoView : public QTextBrowser { | 255 | class ConfigInfoView : public QTextBrowser { |
| @@ -254,7 +262,6 @@ public: | |||
| 254 | public slots: | 262 | public slots: |
| 255 | void setInfo(struct menu *menu); | 263 | void setInfo(struct menu *menu); |
| 256 | void saveSettings(void); | 264 | void saveSettings(void); |
| 257 | void setSource(const QString& name); | ||
| 258 | void setShowDebug(bool); | 265 | void setShowDebug(bool); |
| 259 | 266 | ||
| 260 | signals: | 267 | signals: |
