aboutsummaryrefslogtreecommitdiffstats
path: root/ui_util.h
AgeCommit message (Collapse)AuthorFilesLines
2001-03-24"reactivate_window()" is used only by stuff in the "gtk" directory, andguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3181 f5534014-38df-0310-8fa8-9805f1628bb7
2001-03-24The declaration of "destroy_packet_wins()" belongs inguy1-4/+1
"gtk/packet_win.h", along with the declarations of the other packet window manipulation routines; put it there. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3180 f5534014-38df-0310-8fa8-9805f1628bb7
2001-03-24Give the code that computes protocol statistics a progress dialog box,guy1-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+. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3179 f5534014-38df-0310-8fa8-9805f1628bb7
2000-07-07Use "progdlg_t *" rather than "void *" as the handle for a progressguy1-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".) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2120 f5534014-38df-0310-8fa8-9805f1628bb7
2000-07-03Remove the progress bar from the status line, and, instead, for anyguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2103 f5534014-38df-0310-8fa8-9805f1628bb7
2000-02-29Jeff Foster's changes, with my additions, to allow the user to pop up aguy1-1/+4
window showing the protocol tree and hex/ASCII data for the currently selected packet. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1670 f5534014-38df-0310-8fa8-9805f1628bb7
2000-01-03Take the "simple_dialog()" stuff out of "ui_util.h" and "gtk/ui_util.c",guy1-17/+1
and move it to "simple_dialog.h" and "gtk/simple_dialog.c". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1414 f5534014-38df-0310-8fa8-9805f1628bb7
1999-12-20Move the code to raise a window into a "reactivate_window()" routine,guy1-1/+8
and have that routine also de-iconify the window. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1365 f5534014-38df-0310-8fa8-9805f1628bb7
1999-12-09Move the GTK+ implementations of various UI utilities out of "util.c"guy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1255 f5534014-38df-0310-8fa8-9805f1628bb7