aboutsummaryrefslogtreecommitdiffstats
path: root/ui_util.h
AgeCommit message (Collapse)AuthorFilesLines
2011-04-24new_packet_list_find_row_from_data() is always used to select a packet,guy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36839 f5534014-38df-0310-8fa8-9805f1628bb7
2011-03-08Removal of the old packet-list in favor of the new packet list.sake1-26/+0
It compiles with "./configure without options" on my Mac. Let's see what the buildbots have to say about it :-) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36161 f5534014-38df-0310-8fa8-9805f1628bb7
2010-08-07From Cal Turney:etxrab1-1/+1
Optionally display Wireshark version in the main window's title bar. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5040 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33729 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-07Rename new_packet_list_set_time_width() -> new_packet_list_resize_column() ↵krj1-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() git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29782 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-07col_fmt not needed.etxrab1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29760 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-07Automatically adjust the time column width when time format changes.etxrab1-0/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29758 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-05Get rid off GtkTreeModelFilter because the time to sort becomes unbearable ↵krj1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29705 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-03Make sure that we stop auto scroll if we start scrolling manually. krj1-0/+1
Caveat: we jump to first frame when auto scroll is stopped git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29685 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-02Add seperate new_packet_list_moveto_end() which scrolls to the end _without_ ↵krj1-0/+1
selecting the last packet. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29670 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-10From Kovarththanan Rajaratnam:etxrab1-1/+3
- Compute and cache color/custom filters dynamically. - Delay column construction. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29370 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-29Add pinfo to new_packet_list_append() this should give us the abillityetxrab1-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? git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29237 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-28From Kovarththanan Rajaratnam:etxrab1-0/+1
Enable popup menu in packet list view. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29223 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-28Fix setting of new time format.etxrab1-0/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29212 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-26From Kovarththanan Rajaratnam:etxrab1-0/+1
Only clear packet list store if we need to redissect. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29195 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-25From Kovarththanan Rajaratnam:etxrab1-0/+4
Include needed header (unbreak OSX buildbot) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29192 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-25From Kovarththanan Rajaratnam:etxrab1-0/+2
packet_goto_next_previous_frame git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29191 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-25From Kovarththanan Rajaratnam:etxrab1-0/+1
New packet list: enable goto first/last packet (Optimized) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29190 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-24When using the new packet list select the first packet when the file read is ↵etxrab1-0/+1
complete. This should take care of the crash when closing WS. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29186 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-22From kovarththanan Rajaratnam:etxrab1-1/+1
Pass column_info as a pointer (new packet list). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29169 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-20Implement new_packet_list_find_row_from_data()etxrab1-0/+1
Goto frame should work now. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29147 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-20Introduce packet list coloring for the NEW_PACKET_LIST. One caveat: whensfisher1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29142 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-02Get it compiling with -DNEW_PACKET_LIST on Mac OS X.tuexen1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28929 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-01Realy make the new packet list compile under Windows...etxrab1-0/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28909 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-01Make the new packet list compile on Windows.etxrab1-2/+6
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28907 f5534014-38df-0310-8fa8-9805f1628bb7
2009-06-30Introduce experimental new feature: GTK2 tree view based packet listsfisher1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28892 f5534014-38df-0310-8fa8-9805f1628bb7
2008-06-14Update all time columns when changing the time precision.stig1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25452 f5534014-38df-0310-8fa8-9805f1628bb7
2007-12-05Make sure the "auto scroll in live capture" toolbar button and menu itemgerald1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23777 f5534014-38df-0310-8fa8-9805f1628bb7
2007-07-09From Dustin Johnson: If "Update list of packets in real time" andgerald1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22277 f5534014-38df-0310-8fa8-9805f1628bb7
2007-05-25Squelch some qualifier (const vs. non-const) warnings.guy1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21938 f5534014-38df-0310-8fa8-9805f1628bb7
2007-05-22Don't explicitly set the main window name unless you're changing theguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21876 f5534014-38df-0310-8fa8-9805f1628bb7
2007-01-11Fix for bug #1140: Filtering messes up packet list sort ordersfisher1-0/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20394 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-21name changesahlberg1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18197 f5534014-38df-0310-8fa8-9805f1628bb7
2005-12-05move some GTK only function declarations from ui_util.h to the appropriate ↵ulfl1-22/+3
header files in the gtk dir, as these declarations are obsolete and only confuses (at least me) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16687 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-20Explain in more detail what this file is for.guy1-1/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15481 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-20Add some comments on the originating files of the declarationsjmayer1-3/+10
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15470 f5534014-38df-0310-8fa8-9805f1628bb7
2004-12-31Make the "col_data" field in a "column_info" structure a pointer to anguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12880 f5534014-38df-0310-8fa8-9805f1628bb7
2004-07-18Set the svn:eol-style property on all text files to "native", so thatguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11400 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-22moved GTK specific parts from capture.c to ui_util.c,ulfl1-1/+14
implemented Win32 "Capture Stop" when using "update list of packets in realtime" while capturing git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9777 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-10close the Save (As) dialog, when the capture file is closedulfl1-1/+8
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9642 f5534014-38df-0310-8fa8-9805f1628bb7
2003-12-09Don't automatically size the columns - that's expensive in largeguy1-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). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9219 f5534014-38df-0310-8fa8-9805f1628bb7
2003-12-06From Jeff Morriss: avoid at least some N^2 behavior when changing theguy1-3/+3
time stamp format. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9179 f5534014-38df-0310-8fa8-9805f1628bb7
2002-09-23Change to color filters :oabad1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6324 f5534014-38df-0310-8fa8-9805f1628bb7
2002-09-21Removed all gtk calls in file.c :oabad1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6311 f5534014-38df-0310-8fa8-9805f1628bb7
2002-08-28Removed trailing whitespaces from .h and .c files using thejmayer1-4/+4
winapi_cleanup tool written by Patrik Stridvall for the wine project. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6117 f5534014-38df-0310-8fa8-9805f1628bb7
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