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