aboutsummaryrefslogtreecommitdiffstats
path: root/ui_util.h
AgeCommit message (Collapse)AuthorFilesLines
2006-05-21name changeRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18197
2005-12-05move some GTK only function declarations from ui_util.h to the appropriate ↵Ulf Lamping1-22/+3
header files in the gtk dir, as these declarations are obsolete and only confuses (at least me) svn path=/trunk/; revision=16687
2005-08-20Explain in more detail what this file is for.Guy Harris1-1/+3
svn path=/trunk/; revision=15481
2005-08-20Add some comments on the originating files of the declarationsJörg Mayer1-3/+10
svn path=/trunk/; revision=15470
2004-12-31Make the "col_data" field in a "column_info" structure a pointer to anGuy Harris1-1/+1
array of "const char *" rather than to an array of "char *", and make the second argument of "col_set_str()" a "const char *" - there's no guarantee that "col_data" points to something you're allowed to modify. svn path=/trunk/; revision=12880
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-01-22moved GTK specific parts from capture.c to ui_util.c,Ulf Lamping1-1/+14
implemented Win32 "Capture Stop" when using "update list of packets in realtime" while capturing svn path=/trunk/; revision=9777
2004-01-10close the Save (As) dialog, when the capture file is closedUlf Lamping1-1/+8
svn path=/trunk/; revision=9642
2003-12-09Don't automatically size the columns - that's expensive in largeGuy Harris1-4/+1
captures, as it has to compute the width of an auto-resizing column in every row. Just pick fixed widths for the columns (and tune the width of the "Protocol" column so that it's not narrower than the column title). svn path=/trunk/; revision=9219
2003-12-06From Jeff Morriss: avoid at least some N^2 behavior when changing theGuy Harris1-3/+3
time stamp format. svn path=/trunk/; revision=9179
2002-09-23Change to color filters :Olivier Abad1-2/+2
- moved color_filter_t in color.h - change color_filter_t to use color_t instead of GdkColor This changed allowed to remove the last gtk includes in file.c. It is now completely free of any gtk related code. svn path=/trunk/; revision=6324
2002-09-21Removed all gtk calls in file.c :Olivier Abad1-1/+28
- created a few packet_list_xxx functions (ui_util.h gtk/packet_list.c gtk2/packet_list.c) ; - removed almost all "gtk/xxx" and "gtk2/xxx" includes in file.c The only remaining includes are related to color filters. We have to make color_filter_t GUI independent by replacing GdkColor with color_t. I'll work on this later. svn path=/trunk/; revision=6311
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer1-4/+4
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
2001-03-24"reactivate_window()" is used only by stuff in the "gtk" directory, andGuy Harris1-8/+1
has an API that depends on GTK+. "set_main_window_name()" is UI-toolkit-independent. Declare the former in a new "gtk/ui_util.h" file, rather than in "ui_util.h"; this helps separate UI-toolkit-independent stuff from UI-toolkit-dependent stuff. svn path=/trunk/; revision=3181
2001-03-24The declaration of "destroy_packet_wins()" belongs inGuy Harris1-4/+1
"gtk/packet_win.h", along with the declarations of the other packet window manipulation routines; put it there. svn path=/trunk/; revision=3180
2001-03-24Give the code that computes protocol statistics a progress dialog box,Guy Harris1-33/+1
as, on a large capture, it could take a significant amount of time. Let the user stop the computation and, if they do, don't pop up the statistics dialog box. Create a new header file declaring the routines to create, update, and destroy progress dialog boxes; those routines' APIs don't depend on GTK+, but others declared in "ui_util.h" do, and we don't want to oblige a source file to depend on GTK+ headers unless it uses a GTK+ API or an API that depends on GTK+. svn path=/trunk/; revision=3179
2000-07-07Use "progdlg_t *" rather than "void *" as the handle for a progressGuy Harris1-9/+16
dialog box; that lets us do some type-checking, but we can still typedef it to an incompletely-defined structure to hide the implementation details from the caller. Make "create_progress_dlg()" take, as an argument, the title to put in the "stop the operation" button, and use "Stop" rather than "Cancel" if stopping the operation doesn't undo all the work it's done. Thaw the clist if we break out of a "read the file" operation, as we freeze it before the operation. Have the handler for the "delete" event on the progress dialog box return FALSE, to let GTK+ know that it should, in fact, delete the window. ("delete" event handlers should return TRUE if the window shouldn't actually be deleted, FALSE if it should; they should not return "void".) svn path=/trunk/; revision=2120
2000-07-03Remove the progress bar from the status line, and, instead, for anyGuy Harris1-1/+26
potentially long-running operation that has a progress indicator, pop up a modal dialog box with an indication of what is being done; a progress bar; a "Cancel" button to stop the operation. This: leaves more room on the status line for a filter expression; provides a mechanism to allow the user to cancel long-running operations (although the way we do so may not back out of them as nicely as the user might like, if it's not obvious what the "right" way is or if the "right" way is difficult to implement or involves doing as much work as letting the operation continue); means that, because the dialog box is modal, we don't have to worry about the user performing arbitrary UI operations out from under the operation and changing arbitrary bits of state being used by that operation. svn path=/trunk/; revision=2103
2000-02-29Jeff Foster's changes, with my additions, to allow the user to pop up aGuy Harris1-1/+4
window showing the protocol tree and hex/ASCII data for the currently selected packet. svn path=/trunk/; revision=1670
2000-01-03Take the "simple_dialog()" stuff out of "ui_util.h" and "gtk/ui_util.c",Guy Harris1-17/+1
and move it to "simple_dialog.h" and "gtk/simple_dialog.c". svn path=/trunk/; revision=1414
1999-12-20Move the code to raise a window into a "reactivate_window()" routine,Guy Harris1-1/+8
and have that routine also de-iconify the window. svn path=/trunk/; revision=1365
1999-12-09Move the GTK+ implementations of various UI utilities out of "util.c"Guy Harris1-0/+56
into "gtk/ui_util.c", and move the declarations of those UI utilities out of "util.h" into "ui_util.h". (The header file is in the top-level directory, rather than the "gtk" directory, because it declares window-system-independent interfaces to routines with window-system-dependent implementations.) Add to "gtk/ui_util.c" a routine to set the window and icon title. Use that routine to make the title of an Ethereal top-level window be {filename} - Ethereal if there's a capture open, and have "{filename}" be "<capture>" if it's a temporary capture file. svn path=/trunk/; revision=1255