summaryrefslogtreecommitdiff
path: root/scripts/kconfig/qconf.h
Unidiff
Diffstat (limited to 'scripts/kconfig/qconf.h') (more/less context) (ignore whitespace changes)
-rw-r--r--scripts/kconfig/qconf.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/scripts/kconfig/qconf.h b/scripts/kconfig/qconf.h
index 6f096b4..c548884 100644
--- a/scripts/kconfig/qconf.h
+++ b/scripts/kconfig/qconf.h
@@ -101,10 +101,14 @@ public:
101 void setAllOpen(bool open); 101 void setAllOpen(bool open);
102 void setParentMenu(void); 102 void setParentMenu(void);
103 103
104 template <class P>
105 void ConfigList::updateMenuList(P*, struct menu*);
106
104 bool updateAll; 107 bool updateAll;
105 108
106 QPixmap symbolYesPix, symbolModPix, symbolNoPix; 109 QPixmap symbolYesPix, symbolModPix, symbolNoPix;
107 QPixmap choiceYesPix, choiceNoPix, menuPix, menuInvPix; 110 QPixmap choiceYesPix, choiceNoPix;
111 QPixmap menuPix, menuInvPix, menuBackPix, voidPix;
108 112
109 bool showAll, showName, showRange, showData; 113 bool showAll, showName, showRange, showData;
110 enum listMode mode; 114 enum listMode mode;
@@ -121,12 +125,17 @@ class ConfigItem : public QListViewItem {
121 typedef class QListViewItem Parent; 125 typedef class QListViewItem Parent;
122public: 126public:
123 ConfigItem(QListView *parent, ConfigItem *after, struct menu *m, bool v) 127 ConfigItem(QListView *parent, ConfigItem *after, struct menu *m, bool v)
124 : Parent(parent, after), menu(m), visible(v) 128 : Parent(parent, after), menu(m), visible(v), goParent(false)
125 { 129 {
126 init(); 130 init();
127 } 131 }
128 ConfigItem(ConfigItem *parent, ConfigItem *after, struct menu *m, bool v) 132 ConfigItem(ConfigItem *parent, ConfigItem *after, struct menu *m, bool v)
129 : Parent(parent, after), menu(m), visible(v) 133 : Parent(parent, after), menu(m), visible(v), goParent(false)
134 {
135 init();
136 }
137 ConfigItem(QListView *parent, ConfigItem *after, bool v)
138 : Parent(parent, after), menu(0), visible(v), goParent(true)
130 { 139 {
131 init(); 140 init();
132 } 141 }
@@ -136,7 +145,7 @@ public:
136 void okRename(int col); 145 void okRename(int col);
137#endif 146#endif
138 void updateMenu(void); 147 void updateMenu(void);
139 bool updateNeeded(void); 148 void testUpdateMenu(bool v);
140 ConfigList* listView() const 149 ConfigList* listView() const
141 { 150 {
142 return (ConfigList*)Parent::listView(); 151 return (ConfigList*)Parent::listView();
@@ -170,6 +179,7 @@ public:
170 ConfigItem* nextItem; 179 ConfigItem* nextItem;
171 struct menu *menu; 180 struct menu *menu;
172 bool visible; 181 bool visible;
182 bool goParent;
173}; 183};
174 184
175class ConfigLineEdit : public QLineEdit { 185class ConfigLineEdit : public QLineEdit {
@@ -216,7 +226,9 @@ public slots:
216protected: 226protected:
217 void closeEvent(QCloseEvent *e); 227 void closeEvent(QCloseEvent *e);
218 228
229 ConfigView *menuView;
219 ConfigList *menuList; 230 ConfigList *menuList;
231 ConfigView *configView;
220 ConfigList *configList; 232 ConfigList *configList;
221 QTextView *helpText; 233 QTextView *helpText;
222 QToolBar *toolBar; 234 QToolBar *toolBar;