aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/preferences_dialog.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2013-01-05 02:30:58 +0000
committerGerald Combs <gerald@wireshark.org>2013-01-05 02:30:58 +0000
commit4a3342e4bac842152cbe73afbbb3593caf6c0e65 (patch)
treed627c5b6aaca63caad8d4ca718d89d1be43f198a /ui/qt/preferences_dialog.h
parentbab105d094c6fd89ee542d36f6777681ae96f68b (diff)
Break out preference type names, type descriptions, string
representations, and default status out of write_prefs and into their own routines. Split the corresponding custom preference write callbacks. Fix an apparent memory leak in the hidden column callback. Add an initial preferences dialog to the Qt port. Use the new preference routines to implement an "Adavanced" page similar to the "about:config" page available in many web browsers. Standard pages will hopefully follow soon. Remove some QDebug includes and make sure our QTreeWidgets have uniform row heights set. svn path=/trunk/; revision=46942
Diffstat (limited to 'ui/qt/preferences_dialog.h')
-rw-r--r--ui/qt/preferences_dialog.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/ui/qt/preferences_dialog.h b/ui/qt/preferences_dialog.h
new file mode 100644
index 0000000000..67f9a48aa3
--- /dev/null
+++ b/ui/qt/preferences_dialog.h
@@ -0,0 +1,48 @@
+/* preferences_dialog.h
+ *
+ * $Id$
+ *
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
+ * Copyright 1998 Gerald Combs
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#ifndef PREFERENCES_DIALOG_H
+#define PREFERENCES_DIALOG_H
+
+#include <QDialog>
+
+namespace Ui {
+class PreferencesDialog;
+}
+
+class PreferencesDialog : public QDialog
+{
+ Q_OBJECT
+
+public:
+ explicit PreferencesDialog(QWidget *parent = 0);
+ ~PreferencesDialog();
+
+protected:
+ void showEvent(QShowEvent *evt);
+
+private:
+ Ui::PreferencesDialog *pd_ui_;
+};
+
+#endif // PREFERENCES_DIALOG_H