From 4a3342e4bac842152cbe73afbbb3593caf6c0e65 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Sat, 5 Jan 2013 02:30:58 +0000 Subject: 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 --- ui/qt/preferences_dialog.ui | 236 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 236 insertions(+) create mode 100644 ui/qt/preferences_dialog.ui (limited to 'ui/qt/preferences_dialog.ui') diff --git a/ui/qt/preferences_dialog.ui b/ui/qt/preferences_dialog.ui new file mode 100644 index 0000000000..ffc65f87cc --- /dev/null +++ b/ui/qt/preferences_dialog.ui @@ -0,0 +1,236 @@ + + + PreferencesDialog + + + + 0 + 0 + 680 + 475 + + + + Dialog + + + + + + Qt::Horizontal + + + + true + + + true + + + + 1 + + + + + Appearance + + + ItemIsDragEnabled|ItemIsUserCheckable + + + + Layout + + + ItemIsDragEnabled|ItemIsUserCheckable + + + + + Columns + + + ItemIsDragEnabled|ItemIsUserCheckable + + + + + Font and Colors + + + ItemIsDragEnabled|ItemIsUserCheckable + + + + + + Capture + + + ItemIsDragEnabled|ItemIsUserCheckable + + + + + Filter Expressions + + + ItemIsDragEnabled|ItemIsUserCheckable + + + + + Name Resolution + + + ItemIsDragEnabled|ItemIsUserCheckable + + + + + Protocols + + + ItemIsDragEnabled|ItemIsUserCheckable + + + + + Statistics + + + ItemIsDragEnabled|ItemIsUserCheckable + + + + + Advanced + + + + + + 9 + + + + + + + + + + + + + + + + + + Search: + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + true + + + true + + + + Name + + + + + Status + + + + + Type + + + + + Value + + + + + + + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Help|QDialogButtonBox::Ok + + + + + + + + + buttonBox + accepted() + PreferencesDialog + accept() + + + 248 + 254 + + + 157 + 274 + + + + + buttonBox + rejected() + PreferencesDialog + reject() + + + 316 + 260 + + + 286 + 274 + + + + + -- cgit v1.2.1