diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-07-28 03:29:02 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-07-28 03:29:02 +0000 |
commit | b70d733f508ed39e2757269a72533aad4fce50b6 (patch) | |
tree | fd5c732c7824276a6a9f9e023bd4f28b67b7bc61 /column.h | |
parent | f04819106be7574c63e378d01fb400d952e52942 (diff) | |
download | wireshark-b70d733f508ed39e2757269a72533aad4fce50b6.tar.gz wireshark-b70d733f508ed39e2757269a72533aad4fce50b6.tar.bz2 wireshark-b70d733f508ed39e2757269a72533aad4fce50b6.zip |
Have:
COL_INFO columns resize automatically even during a live
capture;
columns showing network addresses never resize automatically;
other columns resize only when a capture is done;
and make all columns resizeable by hand (once they've resized, for
auto-resizeable columns).
svn path=/trunk/; revision=394
Diffstat (limited to 'column.h')
-rw-r--r-- | column.h | 27 |
1 files changed, 17 insertions, 10 deletions
@@ -1,7 +1,7 @@ /* column.h * Definitions for column handling routines * - * $Id: column.h,v 1.3 1999/07/22 21:14:13 guy Exp $ + * $Id: column.h,v 1.4 1999/07/28 03:29:00 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -31,14 +31,21 @@ typedef struct _fmt_data { gchar *fmt; } fmt_data; -gint get_column_format(gint); -gchar *get_column_title(gint); -gchar *col_format_to_pref_str(); -void get_column_format_matches(gboolean *, gint); -gint get_column_width(gint format, GdkFont *font); -GtkWidget *column_prefs_show(); -void column_prefs_ok(GtkWidget *); -void column_prefs_save(GtkWidget *); -void column_prefs_cancel(GtkWidget *); +enum col_resize_type { + RESIZE_AUTO, /* Automatically resize */ + RESIZE_LIVE, /* Automatically resize even during live capture */ + RESIZE_MANUAL /* Don't automatically resize */ +}; + +gint get_column_format(gint); +enum col_resize_type get_column_resize_type(gint); +gchar *get_column_title(gint); +gchar *col_format_to_pref_str(void); +void get_column_format_matches(gboolean *, gint); +gint get_column_width(gint format, GdkFont *font); +GtkWidget *column_prefs_show(void); +void column_prefs_ok(GtkWidget *); +void column_prefs_save(GtkWidget *); +void column_prefs_cancel(GtkWidget *); #endif /* column.h */ |