Rename the "saved_val" preference element to "stashed_val" in order to
authorGerald Combs <gerald@wireshark.org>
Fri, 18 Jan 2013 00:50:14 +0000 (00:50 -0000)
committerGerald Combs <gerald@wireshark.org>
Fri, 18 Jan 2013 00:50:14 +0000 (00:50 -0000)
commitae7ee61e842f46d0e7a7a4dc64c848866a6d7afb
tree6e483f057cb06bc3c9a8ee68a6211bd4be557f6a
parent7a9095ee15c9ef012f3c8fd77c8f8cd06bdaa37b
Rename the "saved_val" preference element to "stashed_val" in order to
more clearly indicate that it's a copy of a preference value rather than
something we've saved in the preferences file. Update
prefs_pref_to_str() to handle default, stashed, and current prefs.

Create ui/preference_utils.[ch] and move some common routines there. Use
prefs_pref_type_name() in the GTK+ preferences dialog.

Make the "OK" button in the Qt preferences dialog work. We simply write
the prefs and redissect on "OK" and do nothing on "Cancel". This is
intentionally different from the Apply/OK/Cancel behavior in the GTK+
version.

Add a general "emitAppSignal" method to wsApp and use it for packet
dissection and preference changes.

Suggest that we might want to create a WsString class to make conversion
between QStrings, gchar *s, and GStrings easier.

svn path=/trunk/; revision=47139
28 files changed:
epan/libwireshark.def
epan/prefs-int.h
epan/prefs.c
epan/prefs.h
ui/CMakeLists.txt
ui/Makefile.common
ui/gtk/airpcap_dlg.c
ui/gtk/capture_dlg.c
ui/gtk/filter_expression_save_dlg.c
ui/gtk/gtkglobals.h
ui/gtk/main.c
ui/gtk/main.h
ui/gtk/main_menubar.c
ui/gtk/packet_list.c
ui/gtk/prefs_dlg.c
ui/gtk/prefs_dlg.h
ui/preference_utils.c [new file with mode: 0644]
ui/preference_utils.h [new file with mode: 0644]
ui/qt/display_filter_combo.cpp
ui/qt/main.cpp
ui/qt/main_window.cpp
ui/qt/packet_list.cpp
ui/qt/packet_list.h
ui/qt/preferences_dialog.cpp
ui/qt/preferences_dialog.h
ui/qt/qt_ui_utils.cpp
ui/qt/wireshark_application.cpp
ui/qt/wireshark_application.h