aboutsummaryrefslogtreecommitdiffstats
path: root/epan/prefs.h
AgeCommit message (Collapse)AuthorFilesLines
2007-03-19This change allows a structure to be created under the "Protocols" section ↵Graeme Lunt1-0/+8
of the preferences. A new function is introduced, prefs_register_protocol_subtree(), that allows the subtree the protocol should appear under to be specified. The subtree is specified as a string, with a '/' delimiting each subtree element. For example, prefs_register_protocol(proto_dap, prefs_register_dap); becomes prefs_register_protocol_subtree("OSI/X.500", proto_dap, prefs_register_dap); The function will create all the intermediate subtree nodes that are required, if they don't already exist. This allows the grouping of procotols which should make the list of protocols more manageable as even more are added. The current aim is to group by protocol family e.g. + OSI + X.400 X.411 X.420 + X.500 DISP DAP DOP DSP + X.509 X509AF X509CE ... but others grouping could be envisioned (e.g. by first letter). As the intermediate nodes may already have preferences (e.g. OSI), then modules are now allowed to have submodules. Previously each node was either a subtree or held preferences. This is consistent with the "User Interface" node. The subtree structure has no effect on how the preferences are saved to file, and the "Protocol Preferences..." menu option will bring up the preferences expanded to the correct node. In addition, a new "blank page" has been introduced for intermediate nodes that have no preferences (and is also used when the "Protocols" node itself is chosen). This prevents confusion when the user moves from a node with preferences to a node without preferences, but the page old page is still shown. There is also a change to prevent '#' characters in a value being treated as a comment when parsing the preferences file. (There is nothing that adds comments when writing the preferences file.) svn path=/trunk/; revision=21066
2007-02-03second iteration:Luis Ontanon1-0/+10
* fields of an uat table now are passed using an array of uat_filed_t * field callbacks take two more userdata arguments * add some macros to define uat field callbacks. * uats can be registered as preferences for a specific protocol - the preference widget is a button that opens the uat's window * dfilter-macro => reflect changes to API svn path=/trunk/; revision=20695
2006-12-05From Giorgio Tino: Add a "static text" protocol preference type. ThisGerald Combs1-0/+6
can be used to add descriptive text inline with other preference items. The "preference" contents are not written to disk. Fixup whitespace. svn path=/trunk/; revision=20037
2006-11-17various minor prefs code cleanupUlf Lamping1-15/+19
svn path=/trunk/; revision=19916
2006-10-11Add prefs_apply(), which lets us apply preferences (specifically,Gerald Combs1-0/+8
trigger a module's callback) for a specific module. svn path=/trunk/; revision=19487
2006-10-10First step in integrating the AirPcap WEP preferences with thoseGerald Combs1-0/+10
from the 802.11 dissector. Use a #define for the maximum number of WEP keys. Use AirPcap's if we have it (64). Rename find_module() prefs_find_module() and make it public. svn path=/trunk/; revision=19467
2006-10-03now: Don't have a Save button in the following settings dialogs:Ulf Lamping1-0/+1
- Edit/Preferences - View/Coloring Rules - Capture/Capture Filters - Analyze/Display Filters - Analyze/Enabled Protocols The settings will be automatically saved when pressing the Ok button. If someone really wants the explicit Save buttons as before - you can get them back at the Edit/Preferences/User Interface page. svn path=/trunk/; revision=19415
2006-09-29from Stephen Fisher:Ulf Lamping1-2/+3
Attached is a patch for consideration that changes the title in the preferences notebook to be the full description of the preference (but leaves the short name in the preferences list on the left). svn path=/trunk/; revision=19370
2006-06-20Change ETH_VAR_IMPORT to WS_VAR_IMPORT. Try to fix a duplicate variableGerald Combs1-1/+1
definition in the Catapult DCT2000 code. svn path=/trunk/; revision=18524
2006-05-21name changeRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18197
2005-10-12from Richard van der Hoff:Ulf Lamping1-0/+1
Attached is a patch which makes the console log level (warning/message/debug etc) a configurable preference. There's no gui for setting it, but since it's pretty much only going to be useful for developers, I'm sure you'll cope... ---- I've added a small comment to the file output that it has no dialog output svn path=/trunk/; revision=16205
2005-07-23More 'char*' -> 'const char*' changes to fix warnings.Jörg Mayer1-1/+1
svn path=/trunk/; revision=15015
2005-07-21small warning fixesJörg Mayer1-3/+3
svn path=/trunk/; revision=14973
2005-06-24Constify a bunch of structure members and function arguments, to squelchGuy Harris1-2/+2
compiler warnings. Clean up indentation. svn path=/trunk/; revision=14739
2004-12-02From Nathan Jennings: add a preference that supplies a prefix for windowGuy Harris1-0/+1
titles. svn path=/trunk/; revision=12657
2004-10-16Remove the fixed maximum number of subranges in a range_t; dynamicallyGuy Harris1-1/+1
allocate them to be large enough. Add checks that the numbers in the range fit in a guint32. Check the validity of a range before saving or printing, and report errors in an alert box. Clean up white space. svn path=/trunk/; revision=12320
2004-10-14From Jeff Morriss: PREF_RANGE preference type, for ranges of integers.Guy Harris1-0/+9
svn path=/trunk/; revision=12300
2004-10-12Check the values of the protocol preferences before fetching them; ifGuy Harris1-3/+3
any are not valid, pop up an alert box and don't dismiss the preferences dialog. svn path=/trunk/; revision=12269
2004-09-27Move prefs.c and prefs.h into the epan subdirectory.Guy Harris1-0/+343
svn path=/trunk/; revision=12115