summaryrefslogtreecommitdiff
path: root/gtk/rpc_stat.c
AgeCommit message (Collapse)AuthorFilesLines
2003-10-27Add Filter Button support for onc-rpc as well ...Richard Sharpe1-5/+17
svn path=/trunk/; revision=8784
2003-09-26Assorted GUI cleanups.Guy Harris1-35/+94
svn path=/trunk/; revision=8544
2003-09-24Pass a pointer to a "capture_file" structure toGuy Harris1-2/+3
"set_menus_for_selected_packet()" and "set_menus_for_selected_tree_row()", and have them decide whether to enable or disable menu items based on whether that structure indicates that a packet or field is selected and, if one is, on its properties. Pass to the "selected packet enabled" routine for a menu item the "frame_data" and "edt" members of the "capture_file" structure, and pass to the "selected tree row enabled" routine the "field_info" member of that structure. Clear "cf->current_frame" if no packet is selected. svn path=/trunk/; revision=8525
2003-09-19Provide a mechanism by which a tap can arrange to have its menu enabledGuy Harris1-2/+3
or disabled based on a currently-selected packet (or lack of same) or a currently-selected protocol tree item (or lack of same). Not currently used, but necessary if we ever make the TCP graph stuff a tap. API is tentative and subject to change. Also, enable and disable taps based on whether we have any packets to process. svn path=/trunk/; revision=8498
2003-09-17Have "register_tap_menu_item()" put the item under Tools, notGuy Harris1-2/+2
Tools/Statistics; change the taps to put things under Statistics themselves. That allows taps to go elsewhere if appropriate. svn path=/trunk/; revision=8488
2003-09-15Add a routine to return the display name for a "capture_file" structure,Guy Harris1-10/+3
rather than constructing that name when a capture file is opened and putting a pointer to it in that structure. svn path=/trunk/; revision=8476
2003-09-15Keep a "display name" as part of a capture_file structure; for liveGuy Harris1-5/+5
capture temporary files, it's "<capture", and for saved capture files, it's the last component of the pathname of the file. Use that in various places when displaying the file name. svn path=/trunk/; revision=8474
2003-09-15From Graeme Hewson:Guy Harris1-3/+9
Don't crash if "-z" is used on the command line when a live capture is being done (e.g., with "-k -S" - in that case, "cfile.filename" is null when the window is created), just don't display the file name in the title. Don't set the title of a non-existent window - create the window first. svn path=/trunk/; revision=8472
2003-09-05Add a popup to the ServicveResponseTime tables where the user can selectRonnie Sahlberg1-2/+6
Prepare/Match/FindFrame similar to chat the ConversationList has. Only enabled for SMB and ONC-RPC at this point svn path=/trunk/; revision=8391
2003-09-02When putting the filename in the titlebarRonnie Sahlberg1-3/+4
just put the filename there and not the full path to the file. svn path=/trunk/; revision=8329
2003-08-25Update to IO-Stat to put the capture filename on the titlebarRonnie Sahlberg1-3/+8
to make it easier to navigate when having multiple instances of ethereal and io-stat open at the same time. Updates to all endpoint talkers and service response time windows to do this as well. Bonus, when the user opens a new capture file when having these windows open, the title bar will be updated to reflect the name of the new capture file. svn path=/trunk/; revision=8251
2003-08-19Update to the Response Time Statistics taps.Ronnie Sahlberg1-1/+7
SMB/FC/ONC-RPC/DCE-RPC now all use the default tap filter string as the same filter string as is used in the main window instead of using a default NULL filter string. The idea is that if you have applied a certain filter to your main window, it is likely that if you want to invoke the response time statistics feature you probably want to do the response time statistics over the same set of packets, i.e. the ones you see in the main window. svn path=/trunk/; revision=8192
2003-06-22From Lars Roland: Fix the service response time functions to work with GTK2.Gerald Combs1-3/+5
svn path=/trunk/; revision=7911
2003-06-21"gtk_window_set_default_size()" takes a GtkWindow *, not a GtkWidget *,Guy Harris1-2/+2
as its first argument. svn path=/trunk/; revision=7909
2003-06-21Update ONC-RPC response time tap to use the new helper functionRonnie Sahlberg1-183/+21
that displays the data using a CList. Renamed RTT to SRT (Service Response Time) svn path=/trunk/; revision=7904
2003-04-23Make "register_tap_listener()" return NULL on success and a "GString *"Guy Harris1-6/+6
referring to a GString containing an error message on failure, and don't have it print anything on failure. If it fails, have its Tethereal-tap callers print an error message before exiting, and have its Ethereal callers pop up a dialog box with the error (except in cases where the failure is guaranteed not to be the user's fault, and where we exit, in which case we just print an error message before we exit). In all cases, the error message includes the text of the GString. Fix a scanf format string in the DCE RPC statistics Ethereal tap, so that it properly skips the comma before the filter string. Fix some Ethereal error messages not to say "tethereal". svn path=/trunk/; revision=7542
2003-04-23Have "register_tap_menu_item()" create submenus as necessary for a menuGuy Harris1-3/+9
item. Convert all Ethereal (GUI) taps to use "register_tap_menu_item()" rather than having hardcoded menu items in "gtk/menu.c". svn path=/trunk/; revision=7541
2003-04-23Allow taps to have menu item registration routines; the menu itemGuy Harris1-2/+2
registration routines, for taps with menu items (taps that can be run from the "Tools->Statistics" menu), create the menu item for the tap. "make-tapreg-dotc" constructs a "register_all_tap_menus()" function that calls all the tap menu item registration routines it finds, and Ethereal calls that routine after the main window has been constructed (so that the main menu exists, as the menu items are added to it). (Tethereal doesn't call it.) Get rid of the "menu" and "menu_init" arguments to "register_ethereal_tap"; the menu item is registered in the tap's menu item registration routine, not in its main registration routine. Have the RTP GUI tap register its menu item that way, rather than by having it compiled into "gtk/menu.c". (We're not ready yet to have taps whose menu items are under a submenu register themselves in that fashion, as "register_tap_menu_item()" can't yet create submenus.) svn path=/trunk/; revision=7540
2002-11-11Use gtk1/gtk2 compatibility macros to reduce #ifdefs.Olivier Abad1-12/+11
svn path=/trunk/; revision=6610
2002-11-06First step in creating an API to register TAPs for use with ethereal instead ↵Ronnie Sahlberg1-5/+29
of hardcoding them in main.c/menu.c This adds functions to register the command line arguments to use the API in the same way as is done for tethereal. Later it may be extended to also register the GUI/Menu entry point to ethereal using this api but that iwll be later since the changes required to menu.c are not as intrusive as the main.c command line parsing ones were. Some of the latest changes (before this checkin) has made ethereal to produce lots of GTK errors when starting up the extension windows. They were there before this checking but will be investigated. svn path=/trunk/; revision=6566
2002-10-23From Ronnie Sahlberg: make the tap listeners for gtk and gtk2 redissectGuy Harris1-2/+3
the packet list immediately when the tap is started. svn path=/trunk/; revision=6488
2002-10-23From Ronnie Sahlberg: pass a pointer to the epan_dissect_t for a packetGuy Harris1-2/+2
to taps. svn path=/trunk/; revision=6487
2002-09-27Update tethereal to put the filter string in the statistics table for RPC_STAT.Ronnie Sahlberg1-11/+46
Update gtk and gtk2 versions of RPC_STAT to allow a filter string to be specified on both the command line as well as the GUI. Update the documentation for ethereal to reflect this. svn path=/trunk/; revision=6343
2002-09-07Tap system supprot for Gtk1 and both rpc_stat and rpc_progsRonnie Sahlberg1-0/+549
Gtk1 is still single threaded so if the tap extensions need to do something time consuming or cpu intensive, then the main application will suffer. It is better than nothing. svn path=/trunk/; revision=6215