nexmon – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /* ui_util.h |
2 | * Declarations of UI utility routines; these routines have GUI-independent |
||
3 | * APIs, but GUI-dependent implementations, so that they can be called by |
||
4 | * GUI-independent code to affect the GUI. |
||
5 | * |
||
6 | * Wireshark - Network traffic analyzer |
||
7 | * By Gerald Combs <gerald@wireshark.org> |
||
8 | * Copyright 1998 Gerald Combs |
||
9 | * |
||
10 | * This program is free software; you can redistribute it and/or |
||
11 | * modify it under the terms of the GNU General Public License |
||
12 | * as published by the Free Software Foundation; either version 2 |
||
13 | * of the License, or (at your option) any later version. |
||
14 | * |
||
15 | * This program is distributed in the hope that it will be useful, |
||
16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
18 | * GNU General Public License for more details. |
||
19 | * |
||
20 | * You should have received a copy of the GNU General Public License |
||
21 | * along with this program; if not, write to the Free Software |
||
22 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
||
23 | */ |
||
24 | |||
25 | #ifndef __UI_UTIL_H__ |
||
26 | #define __UI_UTIL_H__ |
||
27 | |||
28 | #include <stdint.h> |
||
29 | |||
30 | #include <wsutil/processes.h> |
||
31 | |||
32 | #include "epan/packet_info.h" |
||
33 | #include "epan/column-utils.h" |
||
34 | #include "epan/color_filters.h" |
||
35 | |||
36 | #ifdef __cplusplus |
||
37 | extern "C" { |
||
38 | #endif /* __cplusplus */ |
||
39 | |||
40 | /** geometry values for use in window_get_geometry() and window_set_geometry() */ |
||
41 | typedef struct window_geometry_s { |
||
42 | gchar *key; /**< current key in hashtable (internally used only) */ |
||
43 | gboolean set_pos; /**< set the x and y position values */ |
||
44 | gint x; /**< the windows x position */ |
||
45 | gint y; /**< the windows y position */ |
||
46 | gboolean set_size; /**< set the width and height values */ |
||
47 | gint width; /**< the windows width */ |
||
48 | gint height; /**< the windows height */ |
||
49 | |||
50 | gboolean set_maximized; /**< set the maximized state (GTK2 only) */ |
||
51 | gboolean maximized; /**< the windows maximized state (GTK2 only) */ |
||
52 | } window_geometry_t; |
||
53 | |||
54 | /* update the main window */ |
||
55 | extern void main_window_update(void); |
||
56 | /* quit a nested main window */ |
||
57 | extern void main_window_nested_quit(void); |
||
58 | /* quit the main window */ |
||
59 | extern void main_window_quit(void); |
||
60 | |||
61 | /* read from a pipe (callback) */ |
||
62 | typedef gboolean (*pipe_input_cb_t) (gint source, gpointer user_data); |
||
63 | /* install callback function, called if pipe input is available */ |
||
64 | extern void pipe_input_set_handler(gint source, gpointer user_data, ws_process_id *child_process, pipe_input_cb_t input_cb); |
||
65 | |||
66 | /* packet_list.c */ |
||
67 | |||
68 | void packet_list_clear(void); |
||
69 | void packet_list_freeze(void); |
||
70 | void packet_list_recreate_visible_rows(void); |
||
71 | void packet_list_thaw(void); |
||
72 | void packet_list_next(void); |
||
73 | void packet_list_prev(void); |
||
74 | guint packet_list_append(column_info *cinfo, frame_data *fdata); |
||
75 | frame_data *packet_list_get_row_data(gint row); |
||
76 | void packet_list_set_selected_row(gint row); |
||
77 | void packet_list_enable_color(gboolean enable); |
||
78 | void packet_list_queue_draw(void); |
||
79 | void packet_list_select_first_row(void); |
||
80 | void packet_list_select_last_row(void); |
||
81 | void packet_list_moveto_end(void); |
||
82 | gboolean packet_list_check_end(void); /* GTK+ only */ |
||
83 | gboolean packet_list_select_row_from_data(frame_data *fdata_needle); |
||
84 | void packet_list_resize_column(gint col); |
||
85 | |||
86 | /* XXX - Yes this isn't the best place, but they are used by file_dlg_win32.c, which is supposed |
||
87 | to be GUI independent, but has lots of GTK leanings. But if you put these in a GTK UI |
||
88 | header file, file_dlg_win32.c complains about all of the GTK structures also in the header |
||
89 | files |
||
90 | Function names make it clear where they are coming from |
||
91 | */ |
||
92 | void color_filter_add_cb(color_filter_t *colorf, gpointer user_data); |
||
93 | |||
94 | #ifdef __cplusplus |
||
95 | } |
||
96 | #endif /* __cplusplus */ |
||
97 | |||
98 | #endif /* __UI_UTIL_H__ */ |
||
99 | |||
100 | /* |
||
101 | * Editor modelines |
||
102 | * |
||
103 | * Local Variables: |
||
104 | * c-basic-offset: 4 |
||
105 | * tab-width: 8 |
||
106 | * indent-tabs-mode: nil |
||
107 | * End: |
||
108 | * |
||
109 | * ex: set shiftwidth=4 tabstop=8 expandtab: |
||
110 | * :indentSize=4:tabSize=8:noTabs=true: |
||
111 | */ |