5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
25 #ifndef __NEW_PACKET_LIST_H__
26 #define __NEW_PACKET_LIST_H__
31 * @ingroup main_window_group
35 COLUMN_SELECTED_SORT_ASCENDING,
36 COLUMN_SELECTED_SORT_DESCENDING,
37 COLUMN_SELECTED_SORT_NONE,
38 COLUMN_SELECTED_TOGGLE_RESOLVED,
39 COLUMN_SELECTED_ALIGN_LEFT,
40 COLUMN_SELECTED_ALIGN_CENTER,
41 COLUMN_SELECTED_ALIGN_RIGHT,
42 COLUMN_SELECTED_ALIGN_DEFAULT,
43 COLUMN_SELECTED_RESIZE,
44 COLUMN_SELECTED_CHANGE,
46 COLUMN_SELECTED_REMOVE
49 /** Create the packet list */
50 GtkWidget *new_packet_list_create(void);
51 /** Recreate the packetr list */
52 void new_packet_list_recreate(void);
53 void new_packet_list_toggle_visible_column (gint col_id);
54 void new_packet_list_set_all_columns_visible (void);
55 void new_packet_list_column_menu_cb (GtkWidget *w, gpointer data, COLUMN_SELECTED_E action);
56 void new_packet_list_resize_columns_cb(GtkWidget *widget _U_, gpointer data _U_);
57 gboolean new_packet_list_get_event_row_column(GdkEventButton *event_button, gint *physical_row, gint *row, gint *column);
58 guint new_packet_list_get_column_id (gint col_num);
60 /** Set the font of the packet list window.
62 * @param font new font
64 extern void new_packet_list_set_font(PangoFontDescription *font);
66 /** Mark the currently selected packet.
68 * @param widget parent widget (unused)
71 extern void new_packet_list_mark_frame_cb(GtkWidget *widget, gpointer data);
73 /** Toggle Mark on all displayed packets.
75 * @param widget parent widget (unused)
78 extern void new_packet_list_toggle_mark_all_displayed_frames_cb(GtkWidget *w _U_, gpointer data _U_);
80 /** Mark all displayed packets.
82 * @param widget parent widget (unused)
85 extern void new_packet_list_mark_all_displayed_frames_cb(GtkWidget *w _U_, gpointer data _U_);
87 /** UnMark all packets in the capture.
89 * @param widget parent widget (unused)
92 extern void new_packet_list_unmark_all_displayed_frames_cb(GtkWidget *w _U_, gpointer data _U_);
94 /** Ignore the currently selected packet.
96 * @param widget parent widget (unused)
99 extern void new_packet_list_ignore_frame_cb(GtkWidget *widget, gpointer data);
101 /** Ignore/Unignore all displayed packets.
103 * @param widget parent widget (unused)
106 extern void new_packet_list_ignore_all_displayed_frames_cb(GtkWidget *w _U_, gpointer data _U_);
108 /** Un-ignore all packets in the list.
110 * @param widget parent widget (unused)
113 extern void new_packet_list_unignore_all_frames_cb(GtkWidget *w _U_, gpointer data _U_);
115 /** Un-Time Reference all packets in the capture.
117 * @param widget parent widget (unused)
120 extern void new_packet_list_untime_reference_all_frames_cb(GtkWidget *w _U_, gpointer data _U_);
122 /** Different modes of copying summary data */
124 CS_TEXT, /**< Packet summary data (tab separated) */
125 CS_CSV /**< Packet summary data (comma separated) */
128 /** Called when user clicks on menu item to copy summary data.
131 * @param data Not used.
132 * @param copy_type Mode in which to copy data (e.g. tab-separated, CSV)
134 void new_packet_list_copy_summary_cb(gpointer data _U_, copy_summary_type copy_type);
136 gchar *new_packet_list_get_packet_comment(void);
137 void new_packet_list_update_packet_comment(gchar *new_packet_comment);
139 GtkWidget * new_packet_list_get_widget(void);
140 void new_packet_list_colorize_packets(void);
142 /** Set the selection mode of the packet list window.
144 * @param val TRUE for GTK_SELECTION_SINGLE, FALSE for GTK_SELECTION_BROWSE
145 * @param force_set TRUE to force setting of the selection mode even if it
146 * was already set (used within packet_list_recreate).
148 extern void new_packet_list_set_sel_browse(gboolean val, gboolean force_set);
150 #endif /* __NEW_PACKET_LIST_H__ */