diff options
author | Gerald Combs <gerald@wireshark.org> | 2013-01-07 19:13:03 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2013-01-07 19:13:03 +0000 |
commit | 0fa6a4c4216bf3c1e5e19d007893b8494e1860d0 (patch) | |
tree | 4623d8fe653f56522126acddc781e705060d27ab /ui/qt/preferences_dialog.h | |
parent | b671f8dbd6b6a2ae62ac0a5459930eb7c86979a3 (diff) | |
download | wireshark-0fa6a4c4216bf3c1e5e19d007893b8494e1860d0.tar.gz |
Allow editing via the advanced preferences tree. Double-clicking an
item's name, status, or type resets it to its default value.
Double-clicking the item's value lets you edit it. Implement the
advanced search field. (Clicking OK and Cancel still doesn't yet do
anything.)
Note that we could probably use a
prefs_register_{uint16|port}_preference routine for 16-bit values. Make
reset_pref public. Update some names and descriptions.
svn path=/trunk/; revision=46986
Diffstat (limited to 'ui/qt/preferences_dialog.h')
-rw-r--r-- | ui/qt/preferences_dialog.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ui/qt/preferences_dialog.h b/ui/qt/preferences_dialog.h index 67f9a48aa3..981378ea17 100644 --- a/ui/qt/preferences_dialog.h +++ b/ui/qt/preferences_dialog.h @@ -24,7 +24,17 @@ #ifndef PREFERENCES_DIALOG_H #define PREFERENCES_DIALOG_H +#include "config.h" + +#include <glib.h> + +#include "color.h" +#include "packet-range.h" + +#include <epan/prefs.h> + #include <QDialog> +#include <QTreeWidgetItem> namespace Ui { class PreferencesDialog; @@ -42,7 +52,22 @@ protected: void showEvent(QShowEvent *evt); private: + void updateItem(QTreeWidgetItem &item); + Ui::PreferencesDialog *pd_ui_; +// QHash<pref_t *, QTreeWidgetItem *> pref_item_hash_; + +private slots: + void on_prefsTree_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous); + void on_advancedSearchLineEdit_textEdited(const QString &search_str); + void on_advancedTree_itemActivated(QTreeWidgetItem *item, int column); + void uintPrefEditingFinished(); + void enumPrefCurrentIndexChanged(int index); + void stringPrefEditingFinished(); + void rangePrefTextChanged(const QString & text); + void rangePrefEditingFinished(); + void on_buttonBox_helpRequested(); + void on_advancedTree_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous); }; #endif // PREFERENCES_DIALOG_H |