Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

gui_property.h File Reference

#include "lib/prop.h"

Go to the source code of this file.

Defines

#define GUI_PROPERTY_MIN   (1000)
#define GUI_PROPERTY_MAX   (1000+GUI_PROPERTY_END-1)
#define GUI_PROPERTY_NUM   (GUI_PROPERTY_END-1000)
#define gui_prop_set_boolean_val(p, v)
#define gui_prop_get_boolean_val(p, v)
#define gui_prop_set_guint32_val(p, v)
#define gui_prop_get_guint32_val(p, v)
#define gui_prop_set_guint64_val(p, v)
#define gui_prop_get_guint64_val(p, v)
#define gui_prop_set_timestamp_val(p, v)
#define gui_prop_get_timestamp_val(p, v)

Enumerations

enum  gui_property_t {
  PROP_MONITOR_ENABLED = 1000, PROP_MONITOR_MAX_ITEMS, PROP_QUEUE_REGEX_CASE, PROP_FI_REGEX_CASE,
  PROP_SEARCH_HIDE_DOWNLOADED, PROP_NODES_COL_WIDTHS, PROP_NODES_COL_VISIBLE, PROP_DL_ACTIVE_COL_WIDTHS,
  PROP_DL_ACTIVE_COL_VISIBLE, PROP_DL_QUEUED_COL_WIDTHS, PROP_DL_QUEUED_COL_VISIBLE, PROP_FILE_INFO_COL_WIDTHS,
  PROP_SEARCH_LIST_COL_WIDTHS, PROP_SEARCH_RESULTS_COL_VISIBLE, PROP_SEARCH_RESULTS_COL_WIDTHS, PROP_SEARCH_STATS_COL_WIDTHS,
  PROP_UL_STATS_COL_WIDTHS, PROP_UL_STATS_COL_VISIBLE, PROP_UPLOADS_COL_WIDTHS, PROP_UPLOADS_COL_VISIBLE,
  PROP_FILTER_RULES_COL_WIDTHS, PROP_FILTER_FILTERS_COL_WIDTHS, PROP_GNET_STATS_MSG_COL_WIDTHS, PROP_GNET_STATS_FC_TTL_COL_WIDTHS,
  PROP_GNET_STATS_FC_HOPS_COL_WIDTHS, PROP_GNET_STATS_FC_COL_WIDTHS, PROP_GNET_STATS_HORIZON_COL_WIDTHS, PROP_GNET_STATS_DROP_REASONS_COL_WIDTHS,
  PROP_GNET_STATS_RECV_COL_WIDTHS, PROP_HCACHE_COL_WIDTHS, PROP_WINDOW_COORDS, PROP_FILTER_DLG_COORDS,
  PROP_PREFS_DLG_COORDS, PROP_FILEINFO_DIVIDER_POS, PROP_MAIN_DIVIDER_POS, PROP_GNET_STATS_DIVIDER_POS,
  PROP_SIDE_DIVIDER_POS, PROP_RESULTS_DIVIDER_POS, PROP_SEARCH_MAX_RESULTS, PROP_BROWSE_HOST_MAX_RESULTS,
  PROP_GUI_DEBUG, PROP_FILTER_MAIN_DIVIDER_POS, PROP_SEARCH_RESULTS_SHOW_TABS, PROP_SIDEBAR_VISIBLE,
  PROP_NAVTREE_VISIBLE, PROP_TOOLBAR_VISIBLE, PROP_STATUSBAR_VISIBLE, PROP_PROGRESSBAR_UPLOADS_VISIBLE,
  PROP_PROGRESSBAR_DOWNLOADS_VISIBLE, PROP_PROGRESSBAR_CONNECTIONS_VISIBLE, PROP_PROGRESSBAR_BWS_IN_VISIBLE, PROP_PROGRESSBAR_BWS_OUT_VISIBLE,
  PROP_PROGRESSBAR_BWS_GIN_VISIBLE, PROP_PROGRESSBAR_BWS_GOUT_VISIBLE, PROP_PROGRESSBAR_BWS_GLIN_VISIBLE, PROP_PROGRESSBAR_BWS_GLOUT_VISIBLE,
  PROP_AUTOHIDE_BWS_GLEAF, PROP_PROGRESSBAR_BWS_IN_AVG, PROP_PROGRESSBAR_BWS_OUT_AVG, PROP_PROGRESSBAR_BWS_GIN_AVG,
  PROP_PROGRESSBAR_BWS_GOUT_AVG, PROP_PROGRESSBAR_BWS_GLIN_AVG, PROP_PROGRESSBAR_BWS_GLOUT_AVG, PROP_SEARCH_SORT_CASESENSE,
  PROP_SEARCH_SORT_DEFAULT_ORDER, PROP_SEARCH_SORT_DEFAULT_COLUMN, PROP_SHOW_SEARCH_RESULTS_SETTINGS, PROP_SHOW_DL_SETTINGS,
  PROP_SEARCH_STATS_MODE, PROP_SEARCH_STATS_UPDATE_INTERVAL, PROP_SEARCH_STATS_DELCOEF, PROP_CONFIRM_QUIT,
  PROP_SHOW_TOOLTIPS, PROP_EXPERT_MODE, PROP_GNET_STATS_PERC, PROP_GNET_STATS_BYTES,
  PROP_GNET_STATS_HOPS, PROP_GNET_STATS_SOURCE, PROP_GNET_STATS_DROP_REASONS_TYPE, PROP_GNET_STATS_WITH_HEADERS,
  PROP_GNET_STATS_DROP_PERC, PROP_GNET_STATS_GENERAL_COL_WIDTHS, PROP_AUTOCLEAR_COMPLETED_UPLOADS, PROP_AUTOCLEAR_FAILED_UPLOADS,
  PROP_NODE_SHOW_UPTIME, PROP_NODE_SHOW_HANDSHAKE_VERSION, PROP_NODE_SHOW_DETAILED_INFO, PROP_SHOW_GNET_INFO_TXC,
  PROP_SHOW_GNET_INFO_RXC, PROP_SHOW_GNET_INFO_TX_WIRE, PROP_SHOW_GNET_INFO_RX_WIRE, PROP_SHOW_GNET_INFO_TX_SPEED,
  PROP_SHOW_GNET_INFO_RX_SPEED, PROP_SHOW_GNET_INFO_TX_QUERIES, PROP_SHOW_GNET_INFO_RX_QUERIES, PROP_SHOW_GNET_INFO_TX_HITS,
  PROP_SHOW_GNET_INFO_RX_HITS, PROP_SHOW_GNET_INFO_GEN_QUERIES, PROP_SHOW_GNET_INFO_SQ_QUERIES, PROP_SHOW_GNET_INFO_TX_DROPPED,
  PROP_SHOW_GNET_INFO_RX_DROPPED, PROP_SHOW_GNET_INFO_QRP_STATS, PROP_SHOW_GNET_INFO_DBW, PROP_SHOW_GNET_INFO_RT,
  PROP_SHOW_GNET_INFO_SHARED_SIZE, PROP_SHOW_GNET_INFO_SHARED_FILES, PROP_SEARCH_ACCUMULATION_PERIOD, PROP_TREEMENU_NODES_EXPANDED,
  PROP_GNET_STATS_PKG_COL_WIDTHS, PROP_GNET_STATS_BYTE_COL_WIDTHS, PROP_CONFIG_TOOLBAR_STYLE, PROP_SEARCH_LIFETIME,
  GUI_PROPERTY_END
}

Functions

prop_set_stub_tgui_prop_get_stub (void)
 Returns a new stub struct for this property set.

prop_def_tgui_prop_get_def (property_t)
property_t gui_prop_get_by_name (const gchar *)
GSList * gui_prop_get_by_regex (const gchar *, gint *)
const gchar * gui_prop_name (property_t)
const gchar * gui_prop_type_to_string (property_t)
const gchar * gui_prop_to_string (property_t prop)
const gchar * gui_prop_default_to_string (property_t)
const gchar * gui_prop_description (property_t)
gboolean gui_prop_is_saved (property_t)
void gui_prop_set_from_string (property_t, const gchar *)
void gui_prop_add_prop_changed_listener (property_t, prop_changed_listener_t, gboolean)
 Add a change listener to a given property.

void gui_prop_remove_prop_changed_listener (property_t, prop_changed_listener_t)
void gui_prop_set_boolean (property_t, const gboolean *, size_t, size_t)
gboolean * gui_prop_get_boolean (property_t, gboolean *, size_t, size_t)
void gui_prop_set_string (property_t, const gchar *)
gchar * gui_prop_get_string (property_t, gchar *, size_t)
void gui_prop_set_guint32 (property_t, const guint32 *, size_t, size_t)
guint32 * gui_prop_get_guint32 (property_t, guint32 *, size_t, size_t)
void gui_prop_set_guint64 (property_t, const guint64 *, size_t, size_t)
guint64 * gui_prop_get_guint64 (property_t, guint64 *, size_t, size_t)
void gui_prop_set_timestamp (property_t, const time_t *, size_t, size_t)
time_t * gui_prop_get_timestamp (property_t, time_t *, size_t, size_t)
void gui_prop_set_storage (property_t, const gchar *, size_t)
gchar * gui_prop_get_storage (property_t, gchar *, size_t)


Define Documentation

#define gui_prop_get_boolean_val p,
v   ) 
 

Value:

do { \
    gui_prop_get_boolean(p, v, 0, 1); \
} while (0)

#define gui_prop_get_guint32_val p,
v   ) 
 

Value:

do { \
    gui_prop_get_guint32(p, v, 0, 1); \
} while (0)

#define gui_prop_get_guint64_val p,
v   ) 
 

Value:

do { \
    gui_prop_get_guint64(p, v, 0, 1); \
} while (0)

#define gui_prop_get_timestamp_val p,
v   ) 
 

Value:

do { \
    gui_prop_get_timestamp(p, v, 0, 1); \
} while (0)

#define gui_prop_set_boolean_val p,
v   ) 
 

Value:

do { \
    gboolean value = v; \
    gui_prop_set_boolean(p, &value, 0, 1); \
} while (0)

#define gui_prop_set_guint32_val p,
v   ) 
 

Value:

do { \
    guint32 value = v; \
    gui_prop_set_guint32(p, &value, 0, 1); \
} while (0)

#define gui_prop_set_guint64_val p,
v   ) 
 

Value:

do { \
    guint64 value = v; \
    gui_prop_set_guint64(p, &value, 0, 1); \
} while (0)

#define gui_prop_set_timestamp_val p,
v   ) 
 

Value:

do { \
    time_t value = v; \
    gui_prop_set_timestamp(p, &value, 0, 1); \
} while (0)

#define GUI_PROPERTY_MAX   (1000+GUI_PROPERTY_END-1)
 

#define GUI_PROPERTY_MIN   (1000)
 

#define GUI_PROPERTY_NUM   (GUI_PROPERTY_END-1000)
 


Enumeration Type Documentation

enum gui_property_t
 

Enumeration values:
PROP_MONITOR_ENABLED 
PROP_MONITOR_MAX_ITEMS 
PROP_QUEUE_REGEX_CASE 
PROP_FI_REGEX_CASE 
PROP_SEARCH_HIDE_DOWNLOADED 
PROP_NODES_COL_WIDTHS 
PROP_NODES_COL_VISIBLE 
PROP_DL_ACTIVE_COL_WIDTHS 
PROP_DL_ACTIVE_COL_VISIBLE 
PROP_DL_QUEUED_COL_WIDTHS 
PROP_DL_QUEUED_COL_VISIBLE 
PROP_FILE_INFO_COL_WIDTHS 
PROP_SEARCH_LIST_COL_WIDTHS 
PROP_SEARCH_RESULTS_COL_VISIBLE 
PROP_SEARCH_RESULTS_COL_WIDTHS 
PROP_SEARCH_STATS_COL_WIDTHS 
PROP_UL_STATS_COL_WIDTHS 
PROP_UL_STATS_COL_VISIBLE 
PROP_UPLOADS_COL_WIDTHS 
PROP_UPLOADS_COL_VISIBLE 
PROP_FILTER_RULES_COL_WIDTHS 
PROP_FILTER_FILTERS_COL_WIDTHS 
PROP_GNET_STATS_MSG_COL_WIDTHS 
PROP_GNET_STATS_FC_TTL_COL_WIDTHS 
PROP_GNET_STATS_FC_HOPS_COL_WIDTHS 
PROP_GNET_STATS_FC_COL_WIDTHS 
PROP_GNET_STATS_HORIZON_COL_WIDTHS 
PROP_GNET_STATS_DROP_REASONS_COL_WIDTHS 
PROP_GNET_STATS_RECV_COL_WIDTHS 
PROP_HCACHE_COL_WIDTHS 
PROP_WINDOW_COORDS 
PROP_FILTER_DLG_COORDS 
PROP_PREFS_DLG_COORDS 
PROP_FILEINFO_DIVIDER_POS 
PROP_MAIN_DIVIDER_POS 
PROP_GNET_STATS_DIVIDER_POS 
PROP_SIDE_DIVIDER_POS 
PROP_RESULTS_DIVIDER_POS 
PROP_SEARCH_MAX_RESULTS 
PROP_BROWSE_HOST_MAX_RESULTS 
PROP_GUI_DEBUG 
PROP_FILTER_MAIN_DIVIDER_POS 
PROP_SEARCH_RESULTS_SHOW_TABS 
PROP_SIDEBAR_VISIBLE 
PROP_NAVTREE_VISIBLE 
PROP_TOOLBAR_VISIBLE 
PROP_STATUSBAR_VISIBLE 
PROP_PROGRESSBAR_UPLOADS_VISIBLE 
PROP_PROGRESSBAR_DOWNLOADS_VISIBLE 
PROP_PROGRESSBAR_CONNECTIONS_VISIBLE 
PROP_PROGRESSBAR_BWS_IN_VISIBLE 
PROP_PROGRESSBAR_BWS_OUT_VISIBLE 
PROP_PROGRESSBAR_BWS_GIN_VISIBLE 
PROP_PROGRESSBAR_BWS_GOUT_VISIBLE 
PROP_PROGRESSBAR_BWS_GLIN_VISIBLE 
PROP_PROGRESSBAR_BWS_GLOUT_VISIBLE 
PROP_AUTOHIDE_BWS_GLEAF 
PROP_PROGRESSBAR_BWS_IN_AVG 
PROP_PROGRESSBAR_BWS_OUT_AVG 
PROP_PROGRESSBAR_BWS_GIN_AVG 
PROP_PROGRESSBAR_BWS_GOUT_AVG 
PROP_PROGRESSBAR_BWS_GLIN_AVG 
PROP_PROGRESSBAR_BWS_GLOUT_AVG 
PROP_SEARCH_SORT_CASESENSE 
PROP_SEARCH_SORT_DEFAULT_ORDER 
PROP_SEARCH_SORT_DEFAULT_COLUMN 
PROP_SHOW_SEARCH_RESULTS_SETTINGS 
PROP_SHOW_DL_SETTINGS 
PROP_SEARCH_STATS_MODE 
PROP_SEARCH_STATS_UPDATE_INTERVAL 
PROP_SEARCH_STATS_DELCOEF 
PROP_CONFIRM_QUIT 
PROP_SHOW_TOOLTIPS 
PROP_EXPERT_MODE 
PROP_GNET_STATS_PERC 
PROP_GNET_STATS_BYTES 
PROP_GNET_STATS_HOPS 
PROP_GNET_STATS_SOURCE 
PROP_GNET_STATS_DROP_REASONS_TYPE 
PROP_GNET_STATS_WITH_HEADERS 
PROP_GNET_STATS_DROP_PERC 
PROP_GNET_STATS_GENERAL_COL_WIDTHS 
PROP_AUTOCLEAR_COMPLETED_UPLOADS 
PROP_AUTOCLEAR_FAILED_UPLOADS 
PROP_NODE_SHOW_UPTIME 
PROP_NODE_SHOW_HANDSHAKE_VERSION 
PROP_NODE_SHOW_DETAILED_INFO 
PROP_SHOW_GNET_INFO_TXC 
PROP_SHOW_GNET_INFO_RXC 
PROP_SHOW_GNET_INFO_TX_WIRE 
PROP_SHOW_GNET_INFO_RX_WIRE 
PROP_SHOW_GNET_INFO_TX_SPEED 
PROP_SHOW_GNET_INFO_RX_SPEED 
PROP_SHOW_GNET_INFO_TX_QUERIES 
PROP_SHOW_GNET_INFO_RX_QUERIES 
PROP_SHOW_GNET_INFO_TX_HITS 
PROP_SHOW_GNET_INFO_RX_HITS 
PROP_SHOW_GNET_INFO_GEN_QUERIES 
PROP_SHOW_GNET_INFO_SQ_QUERIES 
PROP_SHOW_GNET_INFO_TX_DROPPED 
PROP_SHOW_GNET_INFO_RX_DROPPED 
PROP_SHOW_GNET_INFO_QRP_STATS 
PROP_SHOW_GNET_INFO_DBW 
PROP_SHOW_GNET_INFO_RT 
PROP_SHOW_GNET_INFO_SHARED_SIZE 
PROP_SHOW_GNET_INFO_SHARED_FILES 
PROP_SEARCH_ACCUMULATION_PERIOD 
PROP_TREEMENU_NODES_EXPANDED 
PROP_GNET_STATS_PKG_COL_WIDTHS 
PROP_GNET_STATS_BYTE_COL_WIDTHS 
PROP_CONFIG_TOOLBAR_STYLE 
PROP_SEARCH_LIFETIME 
GUI_PROPERTY_END 


Function Documentation

void gui_prop_add_prop_changed_listener property_t  prop,
prop_changed_listener_t  l,
gboolean  init
 

Add a change listener to a given property.

If init is TRUE then the listener is immediately called.

const gchar* gui_prop_default_to_string property_t   ) 
 

const gchar* gui_prop_description property_t   ) 
 

gboolean* gui_prop_get_boolean property_t  ,
gboolean *  ,
size_t  ,
size_t 
 

property_t gui_prop_get_by_name const gchar *   ) 
 

GSList* gui_prop_get_by_regex const gchar *  ,
gint * 
 

prop_def_t* gui_prop_get_def property_t   ) 
 

guint32* gui_prop_get_guint32 property_t  ,
guint32 *  ,
size_t  ,
size_t 
 

guint64* gui_prop_get_guint64 property_t  ,
guint64 *  ,
size_t  ,
size_t 
 

gchar* gui_prop_get_storage property_t  ,
gchar *  ,
size_t 
 

gchar* gui_prop_get_string property_t  ,
gchar *  ,
size_t 
 

prop_set_stub_t* gui_prop_get_stub void   ) 
 

Returns a new stub struct for this property set.

Just g_free it when it is no longer needed. All fields are read only!

time_t* gui_prop_get_timestamp property_t  ,
time_t *  ,
size_t  ,
size_t 
 

gboolean gui_prop_is_saved property_t   ) 
 

const gchar* gui_prop_name property_t   ) 
 

void gui_prop_remove_prop_changed_listener property_t  ,
prop_changed_listener_t 
 

void gui_prop_set_boolean property_t  ,
const gboolean *  ,
size_t  ,
size_t 
 

void gui_prop_set_from_string property_t  ,
const gchar * 
 

void gui_prop_set_guint32 property_t  ,
const guint32 *  ,
size_t  ,
size_t 
 

void gui_prop_set_guint64 property_t  ,
const guint64 *  ,
size_t  ,
size_t 
 

void gui_prop_set_storage property_t  ,
const gchar *  ,
size_t 
 

void gui_prop_set_string property_t  ,
const gchar * 
 

void gui_prop_set_timestamp property_t  ,
const time_t *  ,
size_t  ,
size_t 
 

const gchar* gui_prop_to_string property_t  prop  ) 
 

const gchar* gui_prop_type_to_string property_t   ) 
 


Generated on Sun Feb 12 10:50:02 2006 for Gtk-Gnutella by doxygen 1.3.6