aboutsummaryrefslogtreecommitdiffstats
path: root/prefs.c
AgeCommit message (Collapse)AuthorFilesLines
2004-06-29add a preference setting for the web browser commandUlf Lamping1-3/+15
svn path=/trunk/; revision=11269
2004-06-29Catch invalid GUI layout type values; if we see one, use the defaultGuy Harris1-2/+7
layout type. svn path=/trunk/; revision=11264
2004-06-20preference setting, so "ask for unsaved capture files" can be switched offUlf Lamping1-1/+16
svn path=/trunk/; revision=11196
2004-06-20preference setting for the option to "avoid" the capture info dialogUlf Lamping1-1/+11
svn path=/trunk/; revision=11195
2004-05-30sort saved preference settings by appearance in dialogUlf Lamping1-85/+90
svn path=/trunk/; revision=11034
2004-05-24give the user a hint what to do (save his/her preferences),Ulf Lamping1-12/+13
when somethings wrong with the preferences, as it's always a good idea to give a helping hand :-) svn path=/trunk/; revision=10990
2004-05-24Have two strings in an enum_val_t - one that's a short string that isGuy Harris1-11/+32
convenient to put into a command line (no capital letters, no spaces to require quotes), and one that's a detailed description for use in the UI. Allow either of them in the preferences file or "-o" option; use the detailed description in the UI, and also use it when writing the preferences out, so that the preference will be readable by older versions of Ethereal (assuming the preference existed in that version). Update "README.developer" to give more detail about an enum_val_t (and to put the _t in), and to give a more detailed description of the "radio_buttons" argument to "prefs_register_enum_preference()". svn path=/trunk/; revision=10982
2004-05-13Win32 only: Preference setting to open a console window, one of:Ulf Lamping1-1/+16
never (default), automatic (like before), always svn path=/trunk/; revision=10870
2004-05-05Use an enum when initializing "prefs.gui_layout_type".Guy Harris1-2/+2
Add an entry to that enum at the end and use that to generate the value of LAYOUT_QTY. svn path=/trunk/; revision=10800
2004-04-30The layout types and pane types don't depend on GTK+, so move theirGuy Harris1-4/+4
definitions to "prefs.h". Use them, rather than (incorrect) raw numerical values, when initializing the preferences. svn path=/trunk/; revision=10736
2004-04-29added selection of different main window pane layouts,Ulf Lamping1-1/+42
also added some preferences and a new preference page for this svn path=/trunk/; revision=10729
2004-04-06from Thomas Palmer: add a preference setting for filter toolbar placementUlf Lamping1-1/+16
svn path=/trunk/; revision=10555
2004-02-28Select "misc" as the foundry for the default font, so we don't get JISGuy Harris1-2/+2
fonts and the like when we pop up the font selection dialog. svn path=/trunk/; revision=10255
2004-02-23Use a pale variant of the foreground color for the background color of theOlivier Biot1-9/+9
follow TCP stream data display. As a result, we can now make the distinction between real data and whitespace wrapping by the UI. svn path=/trunk/; revision=10201
2004-02-21Fix a typo.Guy Harris1-2/+2
svn path=/trunk/; revision=10160
2004-02-01moved window geometry values from prefs to recent,Ulf Lamping1-42/+21
added new pref / recent setting: "maximized main window", which will save, if the main window is maximized or not, this will take effect on GTK version 2 only, but is saved nonetheless svn path=/trunk/; revision=9949
2004-01-27Map SMPP and smpp-gsm-sms preferences to their new homes in gsm-sms-ud.Guy Harris1-4/+13
svn path=/trunk/; revision=9879
2004-01-20a.) saving GTK1 and GTK2 fontnames in different preference setting, to ↵Ulf Lamping1-14/+30
prevent problems when switching between GTK1 and GTK2 ethereal versions b.) added new feature "Edit->Go To First Packet" "Edit->Go To Last Packet" with corresponding menu and toolbar items c.) added new feature "View->Zoom In" / "View->Zoom Out" / View->Normal Size" with corresponding menu and toolbar items This feature will act as a "size offset" to the current fontsize, so that the packet list/tree view/... will have a larger/smaller font size. The value is stored inside the recent file. d.) Win32 only: Try to get the win32 system font and fontsize at program startup and show the menus/dialogs and such with the same font and fontsize like other win32 windows. This makes the program make a *lot* more feel like a normal win32 program. svn path=/trunk/; revision=9753
2004-01-19added some menuitems "View->Show" including show/hide of all main widgets,Ulf Lamping1-15/+2
saving the states in the recent file svn path=/trunk/; revision=9726
2004-01-05removed some MSVC warnings (level 3)Ulf Lamping1-4/+4
svn path=/trunk/; revision=9561
2003-12-31Remove redundant protocol names from preference values.Guy Harris1-1/+7
svn path=/trunk/; revision=9505
2003-12-29Make the "max count of recently-visited files" preference unsigned.Guy Harris1-3/+3
Get rid of an unused variable. Fix up whitespace. svn path=/trunk/; revision=9475
2003-12-28Add more code to handle the recent_files_count_max as a preference ...Richard Sharpe1-2/+12
Here we can read and write it from and to the preferences file. I only have to add code to allow it to be set in the Edit->Preferences area, svn path=/trunk/; revision=9464
2003-12-28Connect the recent_file_count_max variable to the ↵Richard Sharpe1-2/+3
prefs.gui_recent_file_count_max variable entry, and fix a small spelling/grammar mistake. Now all we need is some enterprising individual to write the small amount of preferences code to actually allow it to be changed etc, but I have to go to Costco, so, later... svn path=/trunk/; revision=9463
2003-12-23Handle the move of "smpp" preferences to "smpp-gsm-sms".Guy Harris1-2/+5
svn path=/trunk/; revision=9434
2003-12-13changed read_prefs_file(): read in a generic config file and do a callback toUlf Lamping1-14/+23
pref_set_pair_fct() for every key/value pair found svn path=/trunk/; revision=9274
2003-11-16Export "protocol_t" as an opaque type.Guy Harris1-3/+8
Make "proto_is_protocol_enabled()" and "proto_get_protocol_short_name()" take a "protocol_t *" as an argument, so they don't have to look up the "protocol_t" - this will probably speed them up considerably, and they're called on almost every dissector handoff. Get rid of a number of "proto_is_protocol_enabled()" calls that aren't necessary (dissectors called through handles, including those called through dissector tables, or called as heuristic dissectors, aren't even called if their protocol isn't enabled). Change some direct dissector calls to go through handles. svn path=/trunk/; revision=8979
2003-11-09From Gisle Vanem:Guy Harris1-2/+5
Copy the "gui_fileopen_*" fields in "copy_prefs()". Fix a typo in "free_prefs()". svn path=/trunk/; revision=8915
2003-10-22From Ulf Lamping: add a preference to control whether to show or hideGuy Harris1-1/+17
the main toolbar (currently no GUI to set it; that's in progress). svn path=/trunk/; revision=8754
2003-10-16From Ulf Lamping: add a GUI preference item to control the toolbarGuy Harris1-5/+23
style. Make the style text arrays static, as nobody uses them outside prefs.c. Use FALSE and TRUE for the values for the Boolean controlling the highlighting style. Note that we're now using stock icons in the toolbar in GTK+ 2.x. Put back the resizing of elements in the top-level container, at least for GTK+ 1.2[.x]; otherwise, the toolbar's height never gets smaller, even if you change the style in such a way as to reduce the height of the elements (icons+text -> icons or text, icons -> text). Make some routines and variables not used outside gtk/toolbar.c static. svn path=/trunk/; revision=8720
2003-10-14From Ian Schorr:Guy Harris1-34/+90
Add a preference to control whether the "File > Open" dialog box should start out in the last directory in which it looked - and save that in the preferences file across invocations - or should always start out in a user-specified directory, and add another preference to specify that directory. Write out section name comments into the preferences file. Clean up white space a bit. svn path=/trunk/; revision=8699
2003-10-02Don't put an entry for a protocol into the Preferences dialog if itGuy Harris1-31/+27
doesn't have any settable preferences (for example, if it has only obsolete preferences). svn path=/trunk/; revision=8590
2003-09-10Don't export MAX_VAR_LEN - nobody uses it.Guy Harris1-1/+2
svn path=/trunk/; revision=8453
2003-09-08From Nathan Jennings:Guy Harris1-39/+86
support for user-supplied interface descriptions; support for hiding interfaces in drop-down list in capture dialog. Clean up comments written to preferences file. svn path=/trunk/; revision=8419
2003-08-26Fix a typo.Guy Harris1-2/+2
svn path=/trunk/; revision=8267
2003-08-07From Michael Lum: add the ability to have a preferences file containingGuy Harris1-9/+30
a list of disabled protocols, and to save that list from the Edit > Protocols dialog box. Add checks for read errors in "read_prefs()". Clean up white space. svn path=/trunk/; revision=8144
2003-08-04Allow hyphens in preference module names, as the WAP protocols have IANAGuy Harris1-3/+3
names, which include hyphens. svn path=/trunk/; revision=8127
2003-07-22Add two preferences to control ADNS, one to enable/disable it and one toGerald Combs1-6/+15
set its concurrency level. Fix an ADNS queueing bug. svn path=/trunk/; revision=8063
2003-05-15From Richard Urwin:Guy Harris1-7/+3
add support for a system-wide color filter file; fix a bug where "read_filters()" didn't close the file handle. Use the "get_datafile_path()" routine he added to construct the pathname of the Diameter directory, the global preferences file, and the manuf file. svn path=/trunk/; revision=7677
2003-04-21From Erwin Rol: ArtNET support.Guy Harris1-1/+5
svn path=/trunk/; revision=7518
2003-04-09Don't create a protocol tree or do anything to the columns beforeGuy Harris1-1/+5
calling "tcp_dissect_pdus()", so that if we don't have the final segment of a multi-segment packet, we don't change the columns or put in an empty protocol tree item for NDPS. Rename "ndps.desegment_ndps" to "ndps.desegment_tcp" - the "ndps." is sufficient to indicate that it's for desegmenting NDPS, but we now have a flag for desegmenting NDPS-over-SPX, so we should indicate that the other flag is for desegmenting NDPS-over-TCP. svn path=/trunk/; revision=7425
2003-03-13From Tomas Kukosa - allow a preference name to begin with the stringGuy Harris1-2/+3
that's the name of the module, as long as the prefix doesn't end with "." or "_" (so you can register "tc.tcp.port" or "tc.tcp_port", but not "tc.tc.port" or "tc.tc_port"). svn path=/trunk/; revision=7351
2003-03-12When fixing up old preferences, check the module for the currentGuy Harris1-19/+19
preference by comparing "module->name" against the module, not by checking the first part of the preference name - the preference name might not contain the correct module name, as we've mapped some modules. svn path=/trunk/; revision=7350
2003-03-11When registering a string preference, if the value of the preference isGuy Harris1-4/+17
NULL, convert it to a copy of a null string, otherwise replace it with a copy of the string, so that we know that the variable for the preference always points to a string that can be freed. That also obviates the need to worry about a null-pointer value for a preference variable when checking to see whether a preference has changed. When checking for a string preference not being set, check for an empty string, not a null pointer - the above code turns null pointers into pointers to empty strings, *and* the GUI code does (and always did!) the same. svn path=/trunk/; revision=7342
2003-01-29Fix a couple of checks for families with renamed preferences.Guy Harris1-3/+3
svn path=/trunk/; revision=7034
2003-01-28Panic if a preference starts with the name of the module to which itGuy Harris1-14/+94
belongs, as that's redundant. Fix a bunch of cases where that was done, and map the old name to the new name. Instead of marking "mtp3.mtp3_standard" as obsolete, map it to "mtp3.standard". svn path=/trunk/; revision=7030
2003-01-28Get rid of the extra "pcli." in the "pcli.pcli.udp_port" preference.Guy Harris1-1/+5
Map "pcli.pcli.udp_port" to "pcli.udp_port". svn path=/trunk/; revision=7025
2002-12-20Support putting preferences into arbitrary places in a tree, which isGuy Harris1-33/+157
used to construct the "Edit->Preferences" dialog box; this includes the ability to register a "subtree" for preferences. Instead of special-casing protocol preferences, have a subtree "Protocols" for protocol preferences. svn path=/trunk/; revision=6808
2002-09-28Disable network name resolution by default.Gerald Combs1-2/+2
svn path=/trunk/; revision=6350
2002-09-14- add a new GUI preference in the gtk2 port. It allows to useOlivier Abad1-2/+16
alternating colors in all TreeView widgets (see gtk_tree_view_set_rules_hint()). - remove unused preferences in the gtk2 port (tree_expander_style and tree_line_style). svn path=/trunk/; revision=6296