forked from osmocom/wireshark
parent
0d6000b5ff
commit
0042c07d2a
|
@ -131,13 +131,12 @@ gdkcolor_to_color_t(color_t *target, const GdkColor *source)
|
|||
#else
|
||||
/** Copied from GTK sources
|
||||
* gdk_color_to_string:
|
||||
* @param color a #GdkColor
|
||||
*
|
||||
* Returns a textual specification of parameter color in the hexadecimal form
|
||||
* \c#rrrrggggbbbb\c, where \c r \c,
|
||||
* \c g \c and \c b \c are hex digits
|
||||
* \c #rrrrggggbbbb \c , where \c r \c ,
|
||||
* \c g \c and \c b \c are hex digits
|
||||
* representing the red, green and blue components respectively.
|
||||
*
|
||||
* @param color a #GdkColor
|
||||
* @return a newly-allocated text string
|
||||
*
|
||||
* Since: 2.12
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
node [shape=record, fontname=Helvetica, fontsize=10];
|
||||
main [ label="main window" URL="\ref main.h"];
|
||||
menu [ label="menubar" URL="\ref menus.h"];
|
||||
toolbar [ label="toolbar" URL="\ref toolbar.h"];
|
||||
toolbar [ label="toolbar" URL="\ref main_toolbar.h"];
|
||||
packet_list [ label="packet list pane" URL="\ref main_packet_list.h"];
|
||||
proto_draw [ label="packet details & bytes panes" URL="\ref main_proto_draw.h"];
|
||||
recent [ label="recent user settings" URL="\ref recent.h"];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* toolbar.h
|
||||
/* main_toolbar.h
|
||||
* Definitions for toolbar utility routines
|
||||
* Copyright 2003, Ulf Lamping <ulf.lamping@web.de>
|
||||
*
|
||||
|
|
|
@ -109,7 +109,7 @@ new_packet_list_create(void)
|
|||
return scrollwin;
|
||||
}
|
||||
|
||||
/* XXX - implement a smarter solution for recreating the packet list */
|
||||
/** @todo XXX - implement a smarter solution for recreating the packet list */
|
||||
void
|
||||
new_packet_list_recreate(void)
|
||||
{
|
||||
|
|
|
@ -28,6 +28,10 @@
|
|||
#ifdef NEW_PACKET_LIST
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
/** @file
|
||||
* @ingroup main_window_group
|
||||
*/
|
||||
|
||||
#define RECENT_KEY_COL_WIDTH "column.width"
|
||||
|
||||
typedef enum {
|
||||
|
@ -45,7 +49,9 @@ typedef enum {
|
|||
COLUMN_SELECTED_REMOVE
|
||||
} COLUMN_SELECTED_E;
|
||||
|
||||
/** Create the packet list */
|
||||
GtkWidget *new_packet_list_create(void);
|
||||
/** Recreate the packetr list */
|
||||
void new_packet_list_recreate(void);
|
||||
void new_packet_list_toggle_visible_column (gint col_id);
|
||||
void new_packet_list_set_all_columns_visible (void);
|
||||
|
@ -109,10 +115,10 @@ extern void new_packet_list_unignore_all_frames_cb(GtkWidget *w _U_, gpointer da
|
|||
*/
|
||||
extern void new_packet_list_untime_reference_all_frames_cb(GtkWidget *w _U_, gpointer data _U_);
|
||||
|
||||
/* Different modes of copying summary data */
|
||||
/** Different modes of copying summary data */
|
||||
typedef enum {
|
||||
CS_TEXT, /* Packet summary data (tab separated) */
|
||||
CS_CSV /* Packet summary data (comma separated) */
|
||||
CS_TEXT, /**< Packet summary data (tab separated) */
|
||||
CS_CSV /**< Packet summary data (comma separated) */
|
||||
} copy_summary_type;
|
||||
|
||||
/** Called when user clicks on menu item to copy summary data.
|
||||
|
|
|
@ -35,6 +35,10 @@
|
|||
#include "epan/column_info.h"
|
||||
#include "epan/frame_data.h"
|
||||
|
||||
/** @file
|
||||
* The packet list store
|
||||
* @ingroup main_window_group
|
||||
*/
|
||||
#define PACKETLIST_TYPE_LIST (packet_list_get_type())
|
||||
#define PACKET_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PACKETLIST_TYPE_LIST, PacketList))
|
||||
#define PACKETLIST_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CART((klass), PACKETLIST_TYPE_LIST))
|
||||
|
@ -52,54 +56,55 @@ typedef struct _PacketListClass PacketListClass;
|
|||
#define PACKET_LIST_RECORD_COUNT(rows) ((rows) ? (rows)->len : 0)
|
||||
#define PACKET_LIST_RECORD_INDEX_VALID(rows, idx) ((rows) ? (((guint) (idx)) < (rows)->len) : FALSE)
|
||||
|
||||
/* PacketListRecord: represents a row */
|
||||
/** PacketListRecord: represents a row */
|
||||
struct _PacketListRecord
|
||||
{
|
||||
/* Has this record been columnized? */
|
||||
/** Has this record been columnized? */
|
||||
gboolean columnized;
|
||||
/* Has this record been colorized? */
|
||||
/** Has this record been colorized? */
|
||||
gboolean colorized;
|
||||
frame_data *fdata;
|
||||
|
||||
/* admin stuff used by the custom list model */
|
||||
/* position within the physical array */
|
||||
/** position within the physical array */
|
||||
guint physical_pos;
|
||||
/* position within the visible array */
|
||||
/** position within the visible array */
|
||||
gint visible_pos;
|
||||
};
|
||||
|
||||
/* PacketListRecord: Everything for our model implementation. */
|
||||
/** PacketListRecord: Everything for our model implementation. */
|
||||
struct _PacketList
|
||||
{
|
||||
GObject parent; /* MUST be first */
|
||||
GObject parent; /** MUST be first */
|
||||
|
||||
/** Array of pointers to the PacketListRecord structure for each visible row. */
|
||||
GPtrArray *visible_rows;
|
||||
/* Array of pointers to the PacketListRecord structure for each row. */
|
||||
/** Array of pointers to the PacketListRecord structure for each row. */
|
||||
GPtrArray *physical_rows;
|
||||
|
||||
/* Has the entire file been columnized? */
|
||||
/** Has the entire file been columnized? */
|
||||
gboolean columnized;
|
||||
|
||||
gint n_columns;
|
||||
/* Note: We need one extra column to store the entire PacketListRecord */
|
||||
/**< Note: We need one extra column to store the entire PacketListRecord */
|
||||
GType column_types[NUM_COL_FMTS+1];
|
||||
GtkWidget *view; /* XXX - Does this really belong here?? */
|
||||
GtkWidget *view; /**< @todo XXX - Does this really belong here?? */
|
||||
|
||||
gint sort_id;
|
||||
GtkSortType sort_order;
|
||||
|
||||
GStringChunk *string_pool;
|
||||
|
||||
/* Random integer to check whether an iter belongs to our model. */
|
||||
/** Random integer to check whether an iter belongs to our model. */
|
||||
gint stamp;
|
||||
|
||||
#ifdef NEW_PACKET_LIST_STATISTICS
|
||||
/* Statistics */
|
||||
/** Statistics */
|
||||
guint const_strings;
|
||||
#endif
|
||||
};
|
||||
|
||||
/* PacketListClass: more boilerplate GObject stuff */
|
||||
/** PacketListClass: more boilerplate GObject stuff */
|
||||
struct _PacketListClass
|
||||
{
|
||||
GObjectClass parent_class;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* column_prefs.h
|
||||
/* prefs_column.h
|
||||
* Definitions for column preferences window
|
||||
*
|
||||
* $Id$
|
||||
|
|
|
@ -35,14 +35,14 @@
|
|||
digraph prefs_pages {
|
||||
node [shape=record, fontname=Helvetica, fontsize=10];
|
||||
dialog [ label="Preferences dialog" URL="\ref prefs_dlg.h"];
|
||||
ui [ label="User Interface" URL="\ref gui_prefs.h"];
|
||||
layout [ label="UI: Layout" URL="\ref layout_prefs.h"];
|
||||
columns [ label="UI: Columns" URL="\ref column_prefs.h"];
|
||||
font [ label="UI: Font" URL="\ref gui_prefs.h"];
|
||||
colors [ label="UI: Colors" URL="\ref stream_prefs.h"];
|
||||
capture [ label="Capture" URL="\ref capture_prefs.h"];
|
||||
print [ label="Printing" URL="\ref print_prefs.h"];
|
||||
nameres [ label="Name resolution" URL="\ref nameres_prefs.h"];
|
||||
ui [ label="User Interface" URL="\ref prefs_gui.h"];
|
||||
layout [ label="UI: Layout" URL="\ref prefs_layout.h"];
|
||||
columns [ label="UI: Columns" URL="\ref prefs_column.h"];
|
||||
font [ label="UI: Font" URL="\ref prefs_gui.h"];
|
||||
colors [ label="UI: Colors" URL="\ref prefs_stream.h"];
|
||||
capture [ label="Capture" URL="\ref prefs_capture.h"];
|
||||
print [ label="Printing" URL="\ref prefs_print.h"];
|
||||
nameres [ label="Name resolution" URL="\ref prefs_nameres.h"];
|
||||
protocols [ label="Protocols" URL="\ref prefs_dlg.h"];
|
||||
dialog -> ui [ arrowhead="open", style="solid" ];
|
||||
dialog -> layout [ arrowhead="open", style="solid" ];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* gui_prefs.h
|
||||
/* prefs_gui.h
|
||||
* Definitions for GUI preferences window
|
||||
*
|
||||
* $Id$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* layout_prefs.h
|
||||
/* prefs_layout.h
|
||||
* Definitions for layout preferences window
|
||||
*
|
||||
* $Id$
|
||||
|
|
Loading…
Reference in New Issue