diff options
author | Jörg Mayer <jmayer@loplof.de> | 2012-01-15 21:59:11 +0000 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2012-01-15 21:59:11 +0000 |
commit | be706c63801fb98d42fb743b27b16cc36273651e (patch) | |
tree | 62ed0b552191eb0753d26a3edcbab73459a15f7f /gtk/recent.h | |
parent | 6d69ef093cd6868ab51f8b52477a510172033353 (diff) |
Move gtk to ui/gtk.
This looses the last checkin to gtk, will add this manually back.
svn path=/trunk/; revision=40518
Diffstat (limited to 'gtk/recent.h')
-rw-r--r-- | gtk/recent.h | 182 |
1 files changed, 0 insertions, 182 deletions
diff --git a/gtk/recent.h b/gtk/recent.h deleted file mode 100644 index d582573bbf..0000000000 --- a/gtk/recent.h +++ /dev/null @@ -1,182 +0,0 @@ -/* recent.h - * Definitions for recent "preference" handling routines - * Copyright 2004, Ulf Lamping <ulf.lamping@web.de> - * - * $Id$ - * - * Wireshark - Network traffic analyzer - * By Gerald Combs <gerald@wireshark.org> - * Copyright 1998 Gerald Combs - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - */ - -#ifndef __RECENT_H__ -#define __RECENT_H__ - -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - -#include <glib.h> - -/** @file - * Recent user interface settings. - * @ingroup main_window_group - */ - -/** ???. */ -#define RECENT_KEY_CAPTURE_FILE "recent.capture_file" - -/** ???. */ -#define RECENT_KEY_DISPLAY_FILTER "recent.display_filter" - -typedef struct _col_width_data { - gint cfmt; - gchar *cfield; - gint width; - gchar xalign; -} col_width_data; - -/** Defines used in col_width_data.xalign */ -#define COLUMN_XALIGN_DEFAULT 0 -#define COLUMN_XALIGN_LEFT 'L' -#define COLUMN_XALIGN_CENTER 'C' -#define COLUMN_XALIGN_RIGHT 'R' - -/** Recent settings. */ -typedef struct recent_settings_tag { - gboolean main_toolbar_show; - gboolean filter_toolbar_show; - gboolean airpcap_toolbar_show; - gboolean airpcap_driver_check_show; - gboolean packet_list_show; - gboolean tree_view_show; - gboolean byte_view_show; - gboolean statusbar_show; - gboolean packet_list_colorize; - gint gui_time_format; - gint gui_time_precision; - gint gui_seconds_format; - gint gui_zoom_level; - gint gui_bytes_view; - - gint gui_geometry_main_x; - gint gui_geometry_main_y; - gint gui_geometry_main_width; - gint gui_geometry_main_height; - - gboolean gui_geometry_main_maximized; - - gboolean has_gui_geometry_main_upper_pane; /* gui_geometry_main_upper_pane is valid */ - gint gui_geometry_main_upper_pane; - gboolean has_gui_geometry_main_lower_pane; /* gui_geometry_main_lower_pane is valid */ - gint gui_geometry_main_lower_pane; - gboolean has_gui_geometry_status_pane; /* gui_geometry_status_pane is valid */ - gint gui_geometry_status_pane_left; - gint gui_geometry_status_pane_right; - gint gui_geometry_wlan_stats_pane; - gboolean privs_warn_if_elevated; - gboolean privs_warn_if_no_npf; - GList *col_width_list; /* column widths */ - gchar *gui_fileopen_remembered_dir; /* folder of last capture loaded in File Open dialog */ -} recent_settings_t; - -/** Global recent settings. */ -extern recent_settings_t recent; - -/** Write recent settings file. - * - * @return TRUE if succeeded, FALSE if failed - */ -extern gboolean write_recent(void); - -/** Write profile recent settings file. - * - * @return TRUE if succeeded, FALSE if failed - */ -extern gboolean write_profile_recent(void); - -/** Read recent settings file (static part). - * - * @param rf_path_return path to recent file if function failed - * @param rf_errno_return if failed - */ -extern void recent_read_static(char **rf_path_return, int *rf_errno_return); - -/** Read profile recent settings file (static part). - * - * @param rf_path_return path to recent file if function failed - * @param rf_errno_return if failed - */ -extern void recent_read_profile_static(char **rf_path_return, int *rf_errno_return); - -/** Read recent settings file (dynamic part). - * - * @param rf_path_return path to recent file if function failed - * @param rf_errno_return if failed - */ -extern void recent_read_dynamic(char **rf_path_return, int *rf_errno_return); - -/** Write the geometry values of a single window to the recent file. - * - * @param key unused - * @param value the geometry values - * @param rf recent file handle (FILE) - */ -extern void write_recent_geom(gpointer key, gpointer value, gpointer rf); - -/** - * Given a -o command line string, parse it and set the recent value in - * question. Return an indication of whether it succeeded or failed - * in some fashion. - * - * @param prefarg a string of the form "<recent name>:<recent value>", as might appear - * as an argument to a "-o" command line option - * @return PREFS_SET_OK or PREFS_SET_SYNTAX_ERR - */ -extern int recent_set_arg(char *prefarg); - -/** Get the column width for the given column - * - * @param col column number - */ -extern gint recent_get_column_width(gint col); - -/** Set the column width for the given column - * - * @param col column number - * @param width column width - */ -extern void recent_set_column_width(gint col, gint width); - -/** Get the column xalign for the given column - * - * @param col column number - */ -extern gchar recent_get_column_xalign(gint col); - -/** Set the column xalign for the given column - * - * @param col column number - * @param xalign column alignment - */ -extern void recent_set_column_xalign(gint col, gchar xalign); - -#ifdef __cplusplus -} -#endif /* __cplusplus */ - -#endif /* recent.h */ |