| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* | 
|  | 2 | * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> | 
|  | 3 | * Released under the terms of the GNU GPL v2.0. | 
|  | 4 | */ | 
|  | 5 |  | 
| Alexander Stein | 133c5f7 | 2010-08-31 17:34:37 +0200 | [diff] [blame] | 6 | #if QT_VERSION < 0x040000 | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | #include <qlistview.h> | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | #else | 
| Alexander Stein | 133c5f7 | 2010-08-31 17:34:37 +0200 | [diff] [blame] | 9 | #include <q3listview.h> | 
|  | 10 | #endif | 
|  | 11 | #include <qsettings.h> | 
|  | 12 |  | 
|  | 13 | #if QT_VERSION < 0x040000 | 
|  | 14 | #define Q3ValueList             QValueList | 
|  | 15 | #define Q3PopupMenu             QPopupMenu | 
|  | 16 | #define Q3ListView              QListView | 
|  | 17 | #define Q3ListViewItem          QListViewItem | 
|  | 18 | #define Q3VBox                  QVBox | 
|  | 19 | #define Q3TextBrowser           QTextBrowser | 
|  | 20 | #define Q3MainWindow            QMainWindow | 
|  | 21 | #define Q3Action                QAction | 
|  | 22 | #define Q3ToolBar               QToolBar | 
|  | 23 | #define Q3ListViewItemIterator  QListViewItemIterator | 
|  | 24 | #define Q3FileDialog            QFileDialog | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 25 | #endif | 
|  | 26 |  | 
| Roman Zippel | 7fc925f | 2006-06-08 22:12:46 -0700 | [diff] [blame] | 27 | class ConfigView; | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | class ConfigList; | 
|  | 29 | class ConfigItem; | 
|  | 30 | class ConfigLineEdit; | 
|  | 31 | class ConfigMainWindow; | 
|  | 32 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | class ConfigSettings : public QSettings { | 
|  | 34 | public: | 
| Alexander Stein | 133c5f7 | 2010-08-31 17:34:37 +0200 | [diff] [blame] | 35 | Q3ValueList<int> readSizes(const QString& key, bool *ok); | 
|  | 36 | bool writeSizes(const QString& key, const Q3ValueList<int>& value); | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 37 | }; | 
|  | 38 |  | 
|  | 39 | enum colIdx { | 
|  | 40 | promptColIdx, nameColIdx, noColIdx, modColIdx, yesColIdx, dataColIdx, colNr | 
|  | 41 | }; | 
|  | 42 | enum listMode { | 
| Roman Zippel | 43bf612 | 2006-06-08 22:12:45 -0700 | [diff] [blame] | 43 | singleMode, menuMode, symbolMode, fullMode, listMode | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 44 | }; | 
| Li Zefan | 39a4897 | 2010-05-10 16:33:41 +0800 | [diff] [blame] | 45 | enum optionMode { | 
|  | 46 | normalOpt = 0, allOpt, promptOpt | 
|  | 47 | }; | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 48 |  | 
| Alexander Stein | 133c5f7 | 2010-08-31 17:34:37 +0200 | [diff] [blame] | 49 | class ConfigList : public Q3ListView { | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 50 | Q_OBJECT | 
| Alexander Stein | 133c5f7 | 2010-08-31 17:34:37 +0200 | [diff] [blame] | 51 | typedef class Q3ListView Parent; | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 52 | public: | 
| Roman Zippel | 7fc925f | 2006-06-08 22:12:46 -0700 | [diff] [blame] | 53 | ConfigList(ConfigView* p, const char *name = 0); | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 54 | void reinit(void); | 
|  | 55 | ConfigView* parent(void) const | 
|  | 56 | { | 
|  | 57 | return (ConfigView*)Parent::parent(); | 
|  | 58 | } | 
| Roman Zippel | b65a47e | 2006-06-08 22:12:47 -0700 | [diff] [blame] | 59 | ConfigItem* findConfigItem(struct menu *); | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 60 |  | 
|  | 61 | protected: | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 62 | void keyPressEvent(QKeyEvent *e); | 
|  | 63 | void contentsMousePressEvent(QMouseEvent *e); | 
|  | 64 | void contentsMouseReleaseEvent(QMouseEvent *e); | 
|  | 65 | void contentsMouseMoveEvent(QMouseEvent *e); | 
|  | 66 | void contentsMouseDoubleClickEvent(QMouseEvent *e); | 
|  | 67 | void focusInEvent(QFocusEvent *e); | 
| Roman Zippel | 7fc925f | 2006-06-08 22:12:46 -0700 | [diff] [blame] | 68 | void contextMenuEvent(QContextMenuEvent *e); | 
|  | 69 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 70 | public slots: | 
|  | 71 | void setRootMenu(struct menu *menu); | 
|  | 72 |  | 
|  | 73 | void updateList(ConfigItem *item); | 
|  | 74 | void setValue(ConfigItem* item, tristate val); | 
|  | 75 | void changeValue(ConfigItem* item); | 
|  | 76 | void updateSelection(void); | 
| Roman Zippel | 7fc925f | 2006-06-08 22:12:46 -0700 | [diff] [blame] | 77 | void saveSettings(void); | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 78 | signals: | 
| Roman Zippel | 43bf612 | 2006-06-08 22:12:45 -0700 | [diff] [blame] | 79 | void menuChanged(struct menu *menu); | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 80 | void menuSelected(struct menu *menu); | 
|  | 81 | void parentSelected(void); | 
| Roman Zippel | b65a47e | 2006-06-08 22:12:47 -0700 | [diff] [blame] | 82 | void gotFocus(struct menu *); | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 83 |  | 
|  | 84 | public: | 
|  | 85 | void updateListAll(void) | 
|  | 86 | { | 
|  | 87 | updateAll = true; | 
|  | 88 | updateList(NULL); | 
|  | 89 | updateAll = false; | 
|  | 90 | } | 
|  | 91 | ConfigList* listView() | 
|  | 92 | { | 
|  | 93 | return this; | 
|  | 94 | } | 
|  | 95 | ConfigItem* firstChild() const | 
|  | 96 | { | 
|  | 97 | return (ConfigItem *)Parent::firstChild(); | 
|  | 98 | } | 
|  | 99 | int mapIdx(colIdx idx) | 
|  | 100 | { | 
|  | 101 | return colMap[idx]; | 
|  | 102 | } | 
|  | 103 | void addColumn(colIdx idx, const QString& label) | 
|  | 104 | { | 
|  | 105 | colMap[idx] = Parent::addColumn(label); | 
|  | 106 | colRevMap[colMap[idx]] = idx; | 
|  | 107 | } | 
|  | 108 | void removeColumn(colIdx idx) | 
|  | 109 | { | 
|  | 110 | int col = colMap[idx]; | 
|  | 111 | if (col >= 0) { | 
|  | 112 | Parent::removeColumn(col); | 
|  | 113 | colRevMap[col] = colMap[idx] = -1; | 
|  | 114 | } | 
|  | 115 | } | 
|  | 116 | void setAllOpen(bool open); | 
|  | 117 | void setParentMenu(void); | 
|  | 118 |  | 
| Li Zefan | 39a4897 | 2010-05-10 16:33:41 +0800 | [diff] [blame] | 119 | bool menuSkip(struct menu *); | 
|  | 120 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 121 | template <class P> | 
| Dave Jones | 19144d0 | 2006-01-08 01:05:02 -0800 | [diff] [blame] | 122 | void updateMenuList(P*, struct menu*); | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 123 |  | 
|  | 124 | bool updateAll; | 
|  | 125 |  | 
|  | 126 | QPixmap symbolYesPix, symbolModPix, symbolNoPix; | 
|  | 127 | QPixmap choiceYesPix, choiceNoPix; | 
|  | 128 | QPixmap menuPix, menuInvPix, menuBackPix, voidPix; | 
|  | 129 |  | 
| Li Zefan | 39a4897 | 2010-05-10 16:33:41 +0800 | [diff] [blame] | 130 | bool showName, showRange, showData; | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 131 | enum listMode mode; | 
| Li Zefan | 39a4897 | 2010-05-10 16:33:41 +0800 | [diff] [blame] | 132 | enum optionMode optMode; | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 133 | struct menu *rootEntry; | 
|  | 134 | QColorGroup disabledColorGroup; | 
|  | 135 | QColorGroup inactivedColorGroup; | 
| Alexander Stein | 133c5f7 | 2010-08-31 17:34:37 +0200 | [diff] [blame] | 136 | Q3PopupMenu* headerPopup; | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 137 |  | 
|  | 138 | private: | 
|  | 139 | int colMap[colNr]; | 
|  | 140 | int colRevMap[colNr]; | 
|  | 141 | }; | 
|  | 142 |  | 
| Alexander Stein | 133c5f7 | 2010-08-31 17:34:37 +0200 | [diff] [blame] | 143 | class ConfigItem : public Q3ListViewItem { | 
|  | 144 | typedef class Q3ListViewItem Parent; | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 145 | public: | 
| Alexander Stein | 133c5f7 | 2010-08-31 17:34:37 +0200 | [diff] [blame] | 146 | ConfigItem(Q3ListView *parent, ConfigItem *after, struct menu *m, bool v) | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 147 | : Parent(parent, after), menu(m), visible(v), goParent(false) | 
|  | 148 | { | 
|  | 149 | init(); | 
|  | 150 | } | 
|  | 151 | ConfigItem(ConfigItem *parent, ConfigItem *after, struct menu *m, bool v) | 
|  | 152 | : Parent(parent, after), menu(m), visible(v), goParent(false) | 
|  | 153 | { | 
|  | 154 | init(); | 
|  | 155 | } | 
| Alexander Stein | 133c5f7 | 2010-08-31 17:34:37 +0200 | [diff] [blame] | 156 | ConfigItem(Q3ListView *parent, ConfigItem *after, bool v) | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 157 | : Parent(parent, after), menu(0), visible(v), goParent(true) | 
|  | 158 | { | 
|  | 159 | init(); | 
|  | 160 | } | 
|  | 161 | ~ConfigItem(void); | 
|  | 162 | void init(void); | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 163 | void okRename(int col); | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 164 | void updateMenu(void); | 
|  | 165 | void testUpdateMenu(bool v); | 
|  | 166 | ConfigList* listView() const | 
|  | 167 | { | 
|  | 168 | return (ConfigList*)Parent::listView(); | 
|  | 169 | } | 
|  | 170 | ConfigItem* firstChild() const | 
|  | 171 | { | 
|  | 172 | return (ConfigItem *)Parent::firstChild(); | 
|  | 173 | } | 
|  | 174 | ConfigItem* nextSibling() const | 
|  | 175 | { | 
|  | 176 | return (ConfigItem *)Parent::nextSibling(); | 
|  | 177 | } | 
|  | 178 | void setText(colIdx idx, const QString& text) | 
|  | 179 | { | 
|  | 180 | Parent::setText(listView()->mapIdx(idx), text); | 
|  | 181 | } | 
|  | 182 | QString text(colIdx idx) const | 
|  | 183 | { | 
|  | 184 | return Parent::text(listView()->mapIdx(idx)); | 
|  | 185 | } | 
|  | 186 | void setPixmap(colIdx idx, const QPixmap& pm) | 
|  | 187 | { | 
|  | 188 | Parent::setPixmap(listView()->mapIdx(idx), pm); | 
|  | 189 | } | 
|  | 190 | const QPixmap* pixmap(colIdx idx) const | 
|  | 191 | { | 
|  | 192 | return Parent::pixmap(listView()->mapIdx(idx)); | 
|  | 193 | } | 
|  | 194 | void paintCell(QPainter* p, const QColorGroup& cg, int column, int width, int align); | 
|  | 195 |  | 
|  | 196 | ConfigItem* nextItem; | 
|  | 197 | struct menu *menu; | 
|  | 198 | bool visible; | 
|  | 199 | bool goParent; | 
|  | 200 | }; | 
|  | 201 |  | 
|  | 202 | class ConfigLineEdit : public QLineEdit { | 
|  | 203 | Q_OBJECT | 
|  | 204 | typedef class QLineEdit Parent; | 
|  | 205 | public: | 
| Roman Zippel | 43bf612 | 2006-06-08 22:12:45 -0700 | [diff] [blame] | 206 | ConfigLineEdit(ConfigView* parent); | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 207 | ConfigView* parent(void) const | 
|  | 208 | { | 
|  | 209 | return (ConfigView*)Parent::parent(); | 
|  | 210 | } | 
|  | 211 | void show(ConfigItem *i); | 
|  | 212 | void keyPressEvent(QKeyEvent *e); | 
|  | 213 |  | 
|  | 214 | public: | 
|  | 215 | ConfigItem *item; | 
|  | 216 | }; | 
|  | 217 |  | 
| Alexander Stein | 133c5f7 | 2010-08-31 17:34:37 +0200 | [diff] [blame] | 218 | class ConfigView : public Q3VBox { | 
| Roman Zippel | 7fc925f | 2006-06-08 22:12:46 -0700 | [diff] [blame] | 219 | Q_OBJECT | 
| Alexander Stein | 133c5f7 | 2010-08-31 17:34:37 +0200 | [diff] [blame] | 220 | typedef class Q3VBox Parent; | 
| Roman Zippel | 7fc925f | 2006-06-08 22:12:46 -0700 | [diff] [blame] | 221 | public: | 
|  | 222 | ConfigView(QWidget* parent, const char *name = 0); | 
|  | 223 | ~ConfigView(void); | 
|  | 224 | static void updateList(ConfigItem* item); | 
|  | 225 | static void updateListAll(void); | 
|  | 226 |  | 
| Roman Zippel | 7fc925f | 2006-06-08 22:12:46 -0700 | [diff] [blame] | 227 | bool showName(void) const { return list->showName; } | 
|  | 228 | bool showRange(void) const { return list->showRange; } | 
|  | 229 | bool showData(void) const { return list->showData; } | 
|  | 230 | public slots: | 
| Roman Zippel | 7fc925f | 2006-06-08 22:12:46 -0700 | [diff] [blame] | 231 | void setShowName(bool); | 
|  | 232 | void setShowRange(bool); | 
|  | 233 | void setShowData(bool); | 
| Li Zefan | 39a4897 | 2010-05-10 16:33:41 +0800 | [diff] [blame] | 234 | void setOptionMode(QAction *); | 
| Roman Zippel | 7fc925f | 2006-06-08 22:12:46 -0700 | [diff] [blame] | 235 | signals: | 
| Roman Zippel | 7fc925f | 2006-06-08 22:12:46 -0700 | [diff] [blame] | 236 | void showNameChanged(bool); | 
|  | 237 | void showRangeChanged(bool); | 
|  | 238 | void showDataChanged(bool); | 
|  | 239 | public: | 
|  | 240 | ConfigList* list; | 
|  | 241 | ConfigLineEdit* lineEdit; | 
|  | 242 |  | 
|  | 243 | static ConfigView* viewList; | 
|  | 244 | ConfigView* nextView; | 
| Li Zefan | 39a4897 | 2010-05-10 16:33:41 +0800 | [diff] [blame] | 245 |  | 
|  | 246 | static QAction *showNormalAction; | 
|  | 247 | static QAction *showAllAction; | 
|  | 248 | static QAction *showPromptAction; | 
| Roman Zippel | 7fc925f | 2006-06-08 22:12:46 -0700 | [diff] [blame] | 249 | }; | 
|  | 250 |  | 
| Alexander Stein | 133c5f7 | 2010-08-31 17:34:37 +0200 | [diff] [blame] | 251 | class ConfigInfoView : public Q3TextBrowser { | 
| Roman Zippel | 43bf612 | 2006-06-08 22:12:45 -0700 | [diff] [blame] | 252 | Q_OBJECT | 
| Alexander Stein | 133c5f7 | 2010-08-31 17:34:37 +0200 | [diff] [blame] | 253 | typedef class Q3TextBrowser Parent; | 
| Roman Zippel | 43bf612 | 2006-06-08 22:12:45 -0700 | [diff] [blame] | 254 | public: | 
|  | 255 | ConfigInfoView(QWidget* parent, const char *name = 0); | 
|  | 256 | bool showDebug(void) const { return _showDebug; } | 
|  | 257 |  | 
|  | 258 | public slots: | 
|  | 259 | void setInfo(struct menu *menu); | 
| Roman Zippel | 7fc925f | 2006-06-08 22:12:46 -0700 | [diff] [blame] | 260 | void saveSettings(void); | 
| Roman Zippel | 43bf612 | 2006-06-08 22:12:45 -0700 | [diff] [blame] | 261 | void setShowDebug(bool); | 
|  | 262 |  | 
|  | 263 | signals: | 
|  | 264 | void showDebugChanged(bool); | 
| Roman Zippel | b65a47e | 2006-06-08 22:12:47 -0700 | [diff] [blame] | 265 | void menuSelected(struct menu *); | 
| Roman Zippel | 43bf612 | 2006-06-08 22:12:45 -0700 | [diff] [blame] | 266 |  | 
|  | 267 | protected: | 
| Roman Zippel | ab45d19 | 2006-06-08 22:12:47 -0700 | [diff] [blame] | 268 | void symbolInfo(void); | 
| Roman Zippel | 43bf612 | 2006-06-08 22:12:45 -0700 | [diff] [blame] | 269 | void menuInfo(void); | 
|  | 270 | QString debug_info(struct symbol *sym); | 
|  | 271 | static QString print_filter(const QString &str); | 
| Roman Zippel | ab45d19 | 2006-06-08 22:12:47 -0700 | [diff] [blame] | 272 | static void expr_print_help(void *data, struct symbol *sym, const char *str); | 
| Alexander Stein | 133c5f7 | 2010-08-31 17:34:37 +0200 | [diff] [blame] | 273 | Q3PopupMenu* createPopupMenu(const QPoint& pos); | 
| Roman Zippel | 7fc925f | 2006-06-08 22:12:46 -0700 | [diff] [blame] | 274 | void contentsContextMenuEvent(QContextMenuEvent *e); | 
| Roman Zippel | 43bf612 | 2006-06-08 22:12:45 -0700 | [diff] [blame] | 275 |  | 
| Roman Zippel | ab45d19 | 2006-06-08 22:12:47 -0700 | [diff] [blame] | 276 | struct symbol *sym; | 
| Alexander Stein | 133c5f7 | 2010-08-31 17:34:37 +0200 | [diff] [blame] | 277 | struct menu *_menu; | 
| Roman Zippel | 43bf612 | 2006-06-08 22:12:45 -0700 | [diff] [blame] | 278 | bool _showDebug; | 
|  | 279 | }; | 
|  | 280 |  | 
|  | 281 | class ConfigSearchWindow : public QDialog { | 
|  | 282 | Q_OBJECT | 
|  | 283 | typedef class QDialog Parent; | 
|  | 284 | public: | 
| Marco Costalba | 63431e7 | 2006-10-05 19:12:59 +0200 | [diff] [blame] | 285 | ConfigSearchWindow(ConfigMainWindow* parent, const char *name = 0); | 
| Roman Zippel | 7fc925f | 2006-06-08 22:12:46 -0700 | [diff] [blame] | 286 |  | 
| Roman Zippel | 43bf612 | 2006-06-08 22:12:45 -0700 | [diff] [blame] | 287 | public slots: | 
| Roman Zippel | 7fc925f | 2006-06-08 22:12:46 -0700 | [diff] [blame] | 288 | void saveSettings(void); | 
| Roman Zippel | 43bf612 | 2006-06-08 22:12:45 -0700 | [diff] [blame] | 289 | void search(void); | 
| Roman Zippel | 7fc925f | 2006-06-08 22:12:46 -0700 | [diff] [blame] | 290 |  | 
| Roman Zippel | 43bf612 | 2006-06-08 22:12:45 -0700 | [diff] [blame] | 291 | protected: | 
|  | 292 | QLineEdit* editField; | 
|  | 293 | QPushButton* searchButton; | 
| Roman Zippel | 7fc925f | 2006-06-08 22:12:46 -0700 | [diff] [blame] | 294 | QSplitter* split; | 
| Roman Zippel | 43bf612 | 2006-06-08 22:12:45 -0700 | [diff] [blame] | 295 | ConfigView* list; | 
|  | 296 | ConfigInfoView* info; | 
|  | 297 |  | 
|  | 298 | struct symbol **result; | 
|  | 299 | }; | 
|  | 300 |  | 
| Alexander Stein | 133c5f7 | 2010-08-31 17:34:37 +0200 | [diff] [blame] | 301 | class ConfigMainWindow : public Q3MainWindow { | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 302 | Q_OBJECT | 
| Karsten Wiese | 3b354c5 | 2006-12-13 00:34:08 -0800 | [diff] [blame] | 303 |  | 
| Alexander Stein | 133c5f7 | 2010-08-31 17:34:37 +0200 | [diff] [blame] | 304 | static Q3Action *saveAction; | 
| Karsten Wiese | 3b354c5 | 2006-12-13 00:34:08 -0800 | [diff] [blame] | 305 | static void conf_changed(void); | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 306 | public: | 
|  | 307 | ConfigMainWindow(void); | 
|  | 308 | public slots: | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 309 | void changeMenu(struct menu *); | 
| Roman Zippel | b65a47e | 2006-06-08 22:12:47 -0700 | [diff] [blame] | 310 | void setMenuLink(struct menu *); | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 311 | void listFocusChanged(void); | 
|  | 312 | void goBack(void); | 
|  | 313 | void loadConfig(void); | 
| Michal Marek | bac6aa8 | 2011-05-25 15:10:25 +0200 | [diff] [blame] | 314 | bool saveConfig(void); | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 315 | void saveConfigAs(void); | 
| Roman Zippel | 43bf612 | 2006-06-08 22:12:45 -0700 | [diff] [blame] | 316 | void searchConfig(void); | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 317 | void showSingleView(void); | 
|  | 318 | void showSplitView(void); | 
|  | 319 | void showFullView(void); | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 320 | void showIntro(void); | 
|  | 321 | void showAbout(void); | 
|  | 322 | void saveSettings(void); | 
|  | 323 |  | 
|  | 324 | protected: | 
|  | 325 | void closeEvent(QCloseEvent *e); | 
|  | 326 |  | 
| Roman Zippel | 43bf612 | 2006-06-08 22:12:45 -0700 | [diff] [blame] | 327 | ConfigSearchWindow *searchWindow; | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 328 | ConfigView *menuView; | 
|  | 329 | ConfigList *menuList; | 
|  | 330 | ConfigView *configView; | 
|  | 331 | ConfigList *configList; | 
| Roman Zippel | 43bf612 | 2006-06-08 22:12:45 -0700 | [diff] [blame] | 332 | ConfigInfoView *helpText; | 
| Alexander Stein | 133c5f7 | 2010-08-31 17:34:37 +0200 | [diff] [blame] | 333 | Q3ToolBar *toolBar; | 
|  | 334 | Q3Action *backAction; | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 335 | QSplitter* split1; | 
|  | 336 | QSplitter* split2; | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 337 | }; |