aboutsummaryrefslogtreecommitdiffstats
path: root/ui_util.h
AgeCommit message (Collapse)AuthorFilesLines
2012-01-16Move some headers for UI stuff, and the alert_box.c UI-specific file, toGuy Harris1-81/+0
the ui directory. (Perhaps some other files that would be used by all flavors of Wireshark, for any GUI toolkit or for someting such as ncurses, and not for any command-line tool such as TShark, should be moved there as well.) Shuffle some #includes to put the "ui/XXX.h" includes together. svn path=/trunk/; revision=40529
2011-04-24new_packet_list_find_row_from_data() is always used to select a packet,Guy Harris1-1/+1
so get rid of the select_flag argument, and rename it new_packet_list_select_row_from_data(). It's also always passed a frame_data *, so make its argument a frame_data *. Its return value is used only to detect whether the packet was found in the display or not, so make it a gboolean. Check it in *all* cases where it's called, and change the dialog message a bit (the most likely cause is that the user cancelled a redissection of the packets, so not all packets in the capture file are in the display. Also, in the find case, pass it the new packet we found. svn path=/trunk/; revision=36839
2011-03-08Removal of the old packet-list in favor of the new packet list.Sake Blok1-26/+0
It compiles with "./configure without options" on my Mac. Let's see what the buildbots have to say about it :-) svn path=/trunk/; revision=36161
2010-08-07From Cal Turney:Anders Broman1-1/+1
Optionally display Wireshark version in the main window's title bar. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5040 svn path=/trunk/; revision=33729
2009-09-07Rename new_packet_list_set_time_width() -> new_packet_list_resize_column() ↵Kovarththanan Rajaratnam1-1/+1
because it contains no time format specific code. Further this change also ensures that new_packet_list_resize_columns() uses the newly introduced new_packet_list_resize_column() svn path=/trunk/; revision=29782
2009-09-07col_fmt not needed.Anders Broman1-1/+1
svn path=/trunk/; revision=29760
2009-09-07Automatically adjust the time column width when time format changes.Anders Broman1-0/+1
svn path=/trunk/; revision=29758
2009-09-05Get rid off GtkTreeModelFilter because the time to sort becomes unbearable ↵Kovarththanan Rajaratnam1-0/+1
when combined with GtkTreeSortable. This means that we now track which frames are visible in the our own packet list store. To do so, we now distinguish between physical and visible rows. All frames are added as physical rows. Only those that passes the display filter are marked as visible. svn path=/trunk/; revision=29705
2009-09-03Make sure that we stop auto scroll if we start scrolling manually. Kovarththanan Rajaratnam1-0/+1
Caveat: we jump to first frame when auto scroll is stopped svn path=/trunk/; revision=29685
2009-09-02Add seperate new_packet_list_moveto_end() which scrolls to the end _without_ ↵Kovarththanan Rajaratnam1-0/+1
selecting the last packet. svn path=/trunk/; revision=29670
2009-08-10From Kovarththanan Rajaratnam:Anders Broman1-1/+3
- Compute and cache color/custom filters dynamically. - Delay column construction. svn path=/trunk/; revision=29370
2009-07-29Add pinfo to new_packet_list_append() this should give us the abillityAnders Broman1-1/+1
to store (most) of the underlying data rather than the strings in the store and render it when we need it, thuss saving storage space and loading time. Idealy we should not store the complete fdata or pinfo structures but rather just the data relevant to the currently selected/used columns. I'm not entierly sure how to accomplish that however. Dynamically allocated array to hold pointers to the actual data? svn path=/trunk/; revision=29237
2009-07-28From Kovarththanan Rajaratnam:Anders Broman1-0/+1
Enable popup menu in packet list view. svn path=/trunk/; revision=29223
2009-07-28Fix setting of new time format.Anders Broman1-0/+1
svn path=/trunk/; revision=29212
2009-07-26From Kovarththanan Rajaratnam:Anders Broman1-0/+1
Only clear packet list store if we need to redissect. svn path=/trunk/; revision=29195
2009-07-25From Kovarththanan Rajaratnam:Anders Broman1-0/+4
Include needed header (unbreak OSX buildbot) svn path=/trunk/; revision=29192
2009-07-25From Kovarththanan Rajaratnam:Anders Broman1-0/+2
packet_goto_next_previous_frame svn path=/trunk/; revision=29191
2009-07-25From Kovarththanan Rajaratnam:Anders Broman1-0/+1
New packet list: enable goto first/last packet (Optimized) svn path=/trunk/; revision=29190
2009-07-24When using the new packet list select the first packet when the file read is ↵Anders Broman1-0/+1
complete. This should take care of the crash when closing WS. svn path=/trunk/; revision=29186
2009-07-22From kovarththanan Rajaratnam:Anders Broman1-1/+1
Pass column_info as a pointer (new packet list). svn path=/trunk/; revision=29169
2009-07-20Implement new_packet_list_find_row_from_data()Anders Broman1-0/+1
Goto frame should work now. svn path=/trunk/; revision=29147
2009-07-20Introduce packet list coloring for the NEW_PACKET_LIST. One caveat: whenStephen Fisher1-0/+1
enabling/disabling the coloring of the packet list from the menus, the user has to drag the mouse cursor over each displayed row to take away/add the coloring. Dragging the scroll bar up or down will also take care of this as only the displayed rows are colored. svn path=/trunk/; revision=29142
2009-07-02Get it compiling with -DNEW_PACKET_LIST on Mac OS X.Michael Tüxen1-1/+1
svn path=/trunk/; revision=28929
2009-07-01Realy make the new packet list compile under Windows...Anders Broman1-0/+2
svn path=/trunk/; revision=28909
2009-07-01Make the new packet list compile on Windows.Anders Broman1-2/+6
svn path=/trunk/; revision=28907
2009-06-30Introduce experimental new feature: GTK2 tree view based packet listStephen Fisher1-0/+3
To use the GTK2 based packet list, define NEW_PACKET_LIST when compiling. To do this with gcc, set the environment variable CPPFLAGS to "-DNEW_PACKET_LIST" and re-run configure. Many features do not yet work. This work began with prototypes by Ulf quite a while back. I've put quite a bit of work into this so far and as discussed with a few of the core team members at Sharkfest09 and it was decided that it would be best to commit what I have so far to allow others to help work on this. svn path=/trunk/; revision=28892
2008-06-14Update all time columns when changing the time precision.Stig Bjørlykke1-1/+1
Not implemented for conversation relative and delta time yet, because this will need a reload as they are set by the dissectors and does not exist in the frame data. svn path=/trunk/; revision=25452
2007-12-05Make sure the "auto scroll in live capture" toolbar button and menu itemGerald Combs1-1/+1
correctly reflect the auto scroll state. Re-enable the ability to use the auto scroll toolbar button and menu item during a live capture. svn path=/trunk/; revision=23777
2007-07-09From Dustin Johnson: If "Update list of packets in real time" andGerald Combs1-0/+1
"Automatic scrolling in live capture" are both enabled, make the scroll bar behavior more natural. If the packet list is scrolled to the bottom, scroll automatically. If the user scrolls back, keep the packet list scrolled at that point instead of jumping back to the end. svn path=/trunk/; revision=22277
2007-05-25Squelch some qualifier (const vs. non-const) warnings.Guy Harris1-1/+1
svn path=/trunk/; revision=21938
2007-05-22Don't explicitly set the main window name unless you're changing theGuy Harris1-0/+3
state to "no packets", "file open", or "live capture in progress". Instead, to update the main window title when the user-specified prefix for the title changes: save the un-decorated title as a data value attached to the main window in set_main_window_name(); have a new routine to update the title, which fetches the un-decorated title, decorates it, and sets the title to the decorated value. This fixes bug 1608. svn path=/trunk/; revision=21876
2007-01-11Fix for bug #1140: Filtering messes up packet list sort orderStephen Fisher1-0/+1
svn path=/trunk/; revision=20394
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