aboutsummaryrefslogtreecommitdiffstats
path: root/prefs.c
AgeCommit message (Collapse)AuthorFilesLines
2004-09-11Use _WIN32 rather than WIN32 to determine if we're compiling on Win32;Guy Harris1-1/+1
according to Gisle Vanem, WIN32 isn't a built-in in MSVC, but _WIN32 is. svn path=/trunk/; revision=11972
2004-09-04We don't need the stuff in "globals.h" or "file.h"; don't include them.Guy Harris1-2/+0
svn path=/trunk/; revision=11897
2004-08-31added a preference setting, to be able to change the preview timeout in the ↵Ulf Lamping1-9/+20
file open dialog (as requested by Ronnie Sahlberg). svn path=/trunk/; revision=11859
2004-08-15From Greg Morris: Add a configuration option to control search wrapping.Gerald Combs1-0/+15
svn path=/trunk/; revision=11744
2004-08-08Map the old one-port "generic ASN.1" TCP/UDP/SCTP port-numberGuy Harris1-0/+10
preferences to the new multi-port ones, so that, instead of complaining when the old preferences were seen, we make the port be the one port in the new preference. Make the "message_win" "generic ASN.1" preference an obsolete preference, so we silently ignore it rather than complaining about it. svn path=/trunk/; revision=11623
2004-08-06From Albert Chin: rename resolv.{ch} to addr_resolv.{ch}, so that anGuy Harris1-1/+1
include of <resolv.h> in any system header file gets the system <resolv.h> (needed for builds on Tru64 with GTK+ 1.2[.x]). svn path=/trunk/; revision=11615
2004-07-18Set the svn:eol-style property on all text files to "native", so thatGuy Harris1-1/+1
they have LF at the end of the line on UN*X and CR/LF on Windows; hopefully this means that if a CR/LF version is checked in on Windows, the CRs will be stripped so that they show up only when checked out on Windows, not on UN*X. svn path=/trunk/; revision=11400
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