Commit graph

36 commits

Author SHA1 Message Date
Stig Bjørlykke
ccfe41300c Added "Edit Column Details" functions to the packet list heading popup.
Removed "Rename Column Title" as this is moved to "Edit Column Details".

svn path=/trunk/; revision=34444
2010-10-09 15:22:53 +00:00
Sake Blok
7ec231f7f1 Fix the output of columns with "show resolved" disabled when all occurrences are displayed.
Limit the input field for occurrence to 4 characters to prevent an overflow.
Make sure "... as filter" does not result in an invalid filter string if all occurrences are displayed.


svn path=/trunk/; revision=34247
2010-09-25 09:33:29 +00:00
Sake Blok
7364bef1b3 When using a custom column, make it possible to select which occurrence to show if the field has multiple occurrences.
svn path=/trunk/; revision=34186
2010-09-22 20:56:14 +00:00
Stig Bjørlykke
beb4314276 Introduce "Show Resolved" as an option in custom columns. This will determine
if we show the value or the string representing the value.

This setting is not stored in the preferences file yet, and the option is
not available in the columns preferences window.

svn path=/trunk/; revision=33317
2010-06-25 06:42:34 +00:00
Stig Bjørlykke
737c0e843b Always make new columns visible.
svn path=/trunk/; revision=33285
2010-06-22 11:09:07 +00:00
Stig Bjørlykke
3e829eb564 Rename "Visible" to "Displayed" for hide columns functions.
svn path=/trunk/; revision=33279
2010-06-21 13:57:03 +00:00
Stig Bjørlykke
d3e1e2df1e Added "Hide Column" functionality.
svn path=/trunk/; revision=33266
2010-06-20 16:23:43 +00:00
Stig Bjørlykke
ff9123acbe Cleanup the escape/unescape underscore in Packet List column headers.
We only have to do this when actually set or get the title from the widget.

svn path=/trunk/; revision=31689
2010-01-26 23:05:40 +00:00
Gerasimos Dimitriadis
c08fa6f3cf Move underscore escaping/unscaping function to strutil.c;
Update decoding of IS-801 Request GPS Acquisition Assistance

svn path=/trunk/; revision=31685
2010-01-26 18:21:17 +00:00
Gerasimos Dimitriadis
065546cdcb Change the prefix of the underscore escaping/unescaping
functions from g_ to ws_; Insert function names in
libwireshark.def

svn path=/trunk/; revision=31662
2010-01-25 18:14:01 +00:00
Gerasimos Dimitriadis
11e340038f Handle underscore escaping/unescaping of the column titles
under the new packet list

svn path=/trunk/; revision=31649
2010-01-24 22:25:40 +00:00
Gerasimos Dimitriadis
6c80168b46 When a custom column is added, escape the underscores in the name of
the column so that the underscores are printed and the next characters
are not interpreted as accelerators.

svn path=/trunk/; revision=31644
2010-01-24 19:57:21 +00:00
Stig Bjørlykke
97cbb07e58 Fixed adding new columns from preferences.
svn path=/trunk/; revision=31091
2009-11-26 21:41:14 +00:00
Stig Bjørlykke
8700f6658d Add custom column before COL_INFO if this is last.
svn path=/trunk/; revision=31088
2009-11-26 09:22:01 +00:00
Stig Bjørlykke
7322057d66 Added functions to rename and remove columns.
svn path=/trunk/; revision=31085
2009-11-26 09:02:29 +00:00
Stig Bjørlykke
542a34ced8 Implement new_packet_list_recreate(). This should be reimplemented to
avoid building a new table and redissecting all packets.

svn path=/trunk/; revision=31024
2009-11-19 21:11:41 +00:00
Stig Bjørlykke
9a7d0994d8 Add a custom column from the packet details popup menu.
This fixes bug 4246.

svn path=/trunk/; revision=31020
2009-11-19 18:22:26 +00:00
Anders Broman
f4938ecf33 From Jim Young:
Add "Drag and Drop entries..." message on Columns preferences page.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4099

svn path=/trunk/; revision=30381
2009-10-07 05:03:16 +00:00
Stig Bjørlykke
d0a970fb72 Changed to use "Field type" instead of "Format", to be more descriptive.
Moved "Filed name" fields below "Field type", to improve the layout.
Always show the "Field name" fields, disable when field type is not custom.
Remember field name even when changing field type, so the user can change his
mind without losing the data entered.
Some small adjustments to "Add" and "Remove" buttons.
Added some tooltips.

svn path=/trunk/; revision=29145
2009-07-20 11:42:28 +00:00
Stephen Fisher
e6d0686f7b Introduce experimental new feature: GTK2 tree view based packet list
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
2009-06-30 18:05:04 +00:00
Gerald Combs
d91764cd0a Add a tooltip in case it's not obvious how to rearrange the columns.
svn path=/trunk/; revision=28853
2009-06-26 23:05:04 +00:00
Bill Meier
b65b001476 prefs_column: fix a small memory leak.
svn path=/trunk/; revision=28403
2009-05-18 22:21:16 +00:00
Bill Meier
40d7944873 prefs_column: Rework & cleanup Column Preferences dialog code
- Re-create packet-list only when Columns change vs every time Edit!Preferences invoked;
 - Select next row in Column List after delete of a row;
 - Remove no-longer needed code;
 - ...

svn path=/trunk/; revision=28268
2009-05-04 14:46:51 +00:00
Guy Harris
54c159cb41 Turn on -Wshorten-64-to-32 by default, and fix some issues that turned
up (99 44/100% of which were assignments of double-precision
floating-point constants to floats).  Hopefully this will catch at least
some P64 issues on UN*X.

svn path=/trunk/; revision=28108
2009-04-21 16:57:52 +00:00
Bill Meier
0528b8a243 Use consistent indentation.
svn path=/trunk/; revision=28021
2009-04-09 13:07:05 +00:00
Stig Bjørlykke
62f60df6b4 From Jakub Zawadzki (bug 3331):
g_free() is NULL safe, so we don't need check against it.

svn path=/trunk/; revision=27718
2009-03-13 22:06:48 +00:00
Anders Broman
e88a6e5392 Update CheckApi with:
#'gtk_clist_new', should we depriceate?
		# GtkCList has been deprecated since GTK+ 2.0 and should not be used
		# in newly written code. Use GtkTreeView instead. 
		'gtk_file_selection_new',

svn path=/trunk/; revision=27508
2009-02-22 14:47:07 +00:00
Gerald Combs
05c5a60f63 More work on modernizing the column prefs.
svn path=/trunk/; revision=27278
2009-01-20 20:49:33 +00:00
Gerald Combs
ea9d93e7a9 Since we're not bound to GTK1 any more, let the user drag and drop column
specifiers to change the order. Get rid of the up/down buttons.

svn path=/trunk/; revision=27274
2009-01-20 05:14:57 +00:00
Stig Bjørlykke
381285f61c Add filter autocomplete for more places we use filter entries.
svn path=/trunk/; revision=26491
2008-10-19 13:40:52 +00:00
Stig Bjørlykke
828f6baa42 Ensure we initialize all colorized filter text entries before we show the
widget, so we don't get wrong foreground color when using a dark theme.

svn path=/trunk/; revision=26414
2008-10-11 14:32:46 +00:00
Stig Bjørlykke
d4e9b3742f Only check for a valid field name in the custom column.
svn path=/trunk/; revision=26406
2008-10-10 17:01:36 +00:00
Stig Bjørlykke
91977bfa15 Add a "Field name" label for the custom column.
svn path=/trunk/; revision=26402
2008-10-10 15:50:08 +00:00
Bill Meier
56206e0002 Fix some simple cases of GTK2 deprecated API usage by using a renamed or equivalent API
gtk_container_border_width()          ==> gtk_container_set_border_width()
  gtk_container_children()              ==> gtk_container_get_children()
  gtk_entry_new_with_max_length()       ==> gtk_entry_new(); gtk_entry_set_max_length()
  gtk_menu_append()                     ==> gtk_menu_shell_append()
  gtk_menu_prepend()                    ==> gtk_menu_shell_prepend()
  gtk_notebook_set_page()               ==> gtk_notebook_set_current_page()
  gtk_paned_gutter_size()               ==> gtk_paned_set_gutter_size()
  gtk_radio_button_group()              ==> gtk_radio_button_get_group()
  gtk_signal_connect()                  ==> g_signal_connect()
  gtk_signal_disconnect()               ==> g_signal_handler_disconnect()
  gtk_signal_emit_by_name()             ==> g_signal_emit_by_name()
  gtk_signal_handler_block_by_data()    ==> g_signal_handlers_block_matched()
  gtk_signal_handler_block_by_func()    ==> g_signal_handlers_block_by_func()
  gtk_signal_handler_unblock_by_data()  ==> g_signal-handlers_unblock_matched()
  gtk_signal_handler_unblock_by_func()  ==> g_signal-handlers_unblock_by_func()
  gtk_spin_button_get_value_as_float()  ==> gtk_spin_button_get_value()
  gtk_toggle_button_set_state()         ==> gtk_toggle_button_set_active()

svn path=/trunk/; revision=25634
2008-06-29 15:51:43 +00:00
Stephen Fisher
dc262064c3 Change an option menu (deprecated in GTK+ 2.4) to a combo box (GTK+ 2.4+).
svn path=/trunk/; revision=25199
2008-04-29 19:14:44 +00:00
Ulf Lamping
6fd6381ab3 change all preferences related filenames from xy_prefs to prefs_xy
svn path=/trunk/; revision=24975
2008-04-13 13:10:32 +00:00
Renamed from gtk/column_prefs.c (Browse further)