gnome-res.c File Reference

#include <gnome.h>
#include <libgnome/libgnome.h>
#include <gconf/gconf-client.h>
#include <gdk/gdk.h>
#include "config.h"
#include "gnome-res.h"

Go to the source code of this file.

Defines

#define BE_VERBOSE   (debug_level > 3)
#define DEBUG_VERBOSE(format, args...)   do { if (BE_VERBOSE) g_print ("** (" __FILE__ ": %s) Gnome-Res-DEBUG **: \n - " format, __FUNCTION__, ##args); } while(0)
#define PREF_CONFDLG_XSIZE   500
#define PREF_CONFDLG_YSIZE   400
#define PREF_VAR_PADDING   4
#define PREF_VAR_USIZE   150
#define PREF_OPT_USIZE   150
#define PREF_IN_VBOX_PACK_MODE   FALSE, TRUE, 1
#define PREF_IN_HBOX_PACK_MODE   TRUE, TRUE, PREF_VAR_PADDING
#define GCONF_APP_PREFIX   "/apps/gxsm2/preferences/default"
#define NO_SELECT_PAGES

Functions

static void gnome_res_show_info_callback (GtkWidget *widget, gpointer message)
static void gnome_res_apply_info_callback (GtkDialog *dialog, gint button_number, gpointer gnome_res_pref)
static void gnome_res_get_option_callback (GtkWidget *menuitem, gpointer res)
static void gnome_res_new_user_druid_next (GtkWidget *w, gpointer druid, gpointer gp_self)
static void gnome_res_new_user_druid_back (GtkWidget *w, gpointer druid, gpointer gp_self)
static void gnome_res_new_user_druid_finished (GtkWidget *w, gpointer druid, gpointer gp_self)
static void gnome_res_new_user_druid_cancel (GtkWidget *w, gpointer druid, gpointer gp_self)
gchar * gnome_res_get_resource_string_from_variable (GnomeResEntryInfoType *res)
void gnome_res_make_resource_variable_edit_field (GnomeResEntryInfoType *res, GtkWidget *hbox)
void gnome_res_new_user_druid_construct (GnomeResNewUserDruid *self)
gint gnome_res_new_user_druid_construct_page (GnomeResNewUserDruid *self)
void gnome_res_new_user_druid_destroy_druidpages (GnomeResNewUserDruid *self)
GnomeResPreferencesgnome_res_preferences_new (GnomeResEntryInfoType *res_def)
void gnome_res_destroy (GnomeResPreferences *self)
void gnome_res_set_ok_message (GnomeResPreferences *self, const gchar *ok_msg)
void gnome_res_set_apply_message (GnomeResPreferences *self, const gchar *apply_msg)
void gnome_res_set_apply_callback (GnomeResPreferences *self, void(*cb)(gpointer), gpointer data)
void gnome_res_set_destroy_on_close (GnomeResPreferences *self, int flg)
gchar * gnome_res_keytranslate (const gchar *name)
void gnome_res_read_user_config (GnomeResPreferences *self)
void gnome_res_write_user_config (GnomeResPreferences *self)
void gnome_res_adjustment_callback (GtkAdjustment *adj, GnomeResEntryInfoType *res)
void gnome_res_colorchange_callback (GnomeColorPicker *colorsel, guint r, guint g, guint b, guint a, GnomeResEntryInfoType *res)
void gnome_res_fontchange_callback (GnomeFontPicker *gfp, gchar *arg1, GnomeResEntryInfoType *res)
void gnome_res_run_change_user_config (GnomeResPreferences *self, const gchar *dialog_title)
GnomeResNewUserDruidgnome_res_new_user_druid_new (GnomeResEntryInfoType *res_def, const gchar *title)
GnomeResNewUserDruidgnome_res_new_user_druid_new_with_vals (GnomeResEntryInfoType *res_def, const gchar *title, GdkPixbuf *logo, GdkPixbuf *watermark, const gchar *welcome, const gchar *intro_text, const gchar *finish, const gchar *final_text)
void gnome_res_new_user_druid_destroy (GnomeResNewUserDruid *self)
GnomeResDruidFinishType gnome_res_new_user_druid_run_druids (GnomeResNewUserDruid *self)

Variables

int debug_level
int force_gconf_defaults


Define Documentation

#define BE_VERBOSE   (debug_level > 3)
 

Definition at line 40 of file gnome-res.c.

Referenced by gnome_res_read_user_config(), and gnome_res_write_user_config().

#define DEBUG_VERBOSE format,
args...   )     do { if (BE_VERBOSE) g_print ("** (" __FILE__ ": %s) Gnome-Res-DEBUG **: \n - " format, __FUNCTION__, ##args); } while(0)
 

Definition at line 43 of file gnome-res.c.

Referenced by gnome_res_destroy(), gnome_res_new_user_druid_back(), gnome_res_new_user_druid_cancel(), gnome_res_new_user_druid_construct(), gnome_res_new_user_druid_construct_page(), gnome_res_new_user_druid_destroy(), gnome_res_new_user_druid_destroy_druidpages(), gnome_res_new_user_druid_finished(), gnome_res_new_user_druid_new_with_vals(), gnome_res_new_user_druid_next(), gnome_res_new_user_druid_run_druids(), gnome_res_preferences_new(), gnome_res_read_user_config(), gnome_res_run_change_user_config(), and gnome_res_write_user_config().

#define GCONF_APP_PREFIX   "/apps/gxsm2/preferences/default"
 

Definition at line 85 of file gnome-res.c.

Referenced by gnome_res_keytranslate(), and gnome_res_read_user_config().

#define NO_SELECT_PAGES
 

Definition at line 786 of file gnome-res.c.

Referenced by gnome_res_new_user_druid_construct_page().

#define PREF_CONFDLG_XSIZE   500
 

Definition at line 51 of file gnome-res.c.

Referenced by gnome_res_run_change_user_config().

#define PREF_CONFDLG_YSIZE   400
 

Definition at line 52 of file gnome-res.c.

Referenced by gnome_res_run_change_user_config().

#define PREF_IN_HBOX_PACK_MODE   TRUE, TRUE, PREF_VAR_PADDING
 

Definition at line 57 of file gnome-res.c.

Referenced by gnome_res_make_resource_variable_edit_field(), and gnome_res_run_change_user_config().

#define PREF_IN_VBOX_PACK_MODE   FALSE, TRUE, 1
 

Definition at line 56 of file gnome-res.c.

Referenced by gnome_res_run_change_user_config().

#define PREF_OPT_USIZE   150
 

Definition at line 55 of file gnome-res.c.

Referenced by gnome_res_make_resource_variable_edit_field().

#define PREF_VAR_PADDING   4
 

Definition at line 53 of file gnome-res.c.

Referenced by gnome_res_make_resource_variable_edit_field().

#define PREF_VAR_USIZE   150
 

Definition at line 54 of file gnome-res.c.

Referenced by gnome_res_make_resource_variable_edit_field().


Function Documentation

void gnome_res_adjustment_callback GtkAdjustment *  adj,
GnomeResEntryInfoType res
 

Definition at line 453 of file gnome-res.c.

References GnomeResEntryInfoType::var.

Referenced by gnome_res_make_resource_variable_edit_field().

static void gnome_res_apply_info_callback GtkDialog *  dialog,
gint  button_number,
gpointer  gnome_res_pref
[static]
 

Definition at line 377 of file gnome-res.c.

References FALSE, gnome_res_destroy(), and gnome_res_write_user_config().

void gnome_res_colorchange_callback GnomeColorPicker *  colorsel,
guint  r,
guint  g,
guint  b,
guint  a,
GnomeResEntryInfoType res
 

Definition at line 465 of file gnome-res.c.

References GnomeResEntryInfoType::var.

Referenced by gnome_res_make_resource_variable_edit_field().

void gnome_res_destroy GnomeResPreferences self  ) 
 

Definition at line 101 of file gnome-res.c.

Referenced by App::build_gxsm(), gnome_res_apply_info_callback(), gnome_res_new_user_druid_destroy(), and Surf3d::~Surf3d().

void gnome_res_fontchange_callback GnomeFontPicker *  gfp,
gchar *  arg1,
GnomeResEntryInfoType res
 

Definition at line 486 of file gnome-res.c.

Referenced by gnome_res_make_resource_variable_edit_field().

static void gnome_res_get_option_callback GtkWidget *  menuitem,
gpointer  res
[static]
 

Definition at line 625 of file gnome-res.c.

Referenced by gnome_res_make_resource_variable_edit_field().

gchar * gnome_res_get_resource_string_from_variable GnomeResEntryInfoType res  ) 
 

Definition at line 423 of file gnome-res.c.

References GNOME_RES_BOOL, GNOME_RES_FLOAT, GNOME_RES_FLOAT_VEC3, GNOME_RES_FLOAT_VEC4, GNOME_RES_FLOAT_W_UNIT, GNOME_RES_INT, GNOME_RES_STRING, GnomeResEntryInfoType::options, GnomeResEntryInfoType::type, and GnomeResEntryInfoType::var.

Referenced by gnome_res_make_resource_variable_edit_field().

gchar* gnome_res_keytranslate const gchar *  name  ) 
 

Definition at line 134 of file gnome-res.c.

References GCONF_APP_PREFIX.

Referenced by gnome_res_read_user_config(), and gnome_res_write_user_config().

void gnome_res_make_resource_variable_edit_field GnomeResEntryInfoType res,
GtkWidget *  hbox
 

Definition at line 498 of file gnome-res.c.

References GnomeResEntryInfoType::edit_type, GnomeResEntryInfoType::entry, gnome_res_adjustment_callback(), gnome_res_colorchange_callback(), GNOME_RES_EDIT_COLORSEL, GNOME_RES_EDIT_ENTRY, GNOME_RES_EDIT_FONTSEL, GNOME_RES_EDIT_NO, GNOME_RES_EDIT_OPTIONS, GNOME_RES_EDIT_VALSLIDER, GNOME_RES_FLOAT_W_UNIT, gnome_res_fontchange_callback(), gnome_res_get_option_callback(), gnome_res_get_resource_string_from_variable(), GnomeResEntryInfoType::name, GnomeResEntryInfoType::option_data, GnomeResEntryInfoType::option_text_format, GnomeResEntryInfoType::options, GnomeResEntryInfoType::path, PREF_IN_HBOX_PACK_MODE, PREF_OPT_USIZE, PREF_VAR_PADDING, PREF_VAR_USIZE, GnomeResEntryInfoType::tmp, TRUE, GnomeResEntryInfoType::type, and GnomeResEntryInfoType::var.

Referenced by gnome_res_run_change_user_config().

static void gnome_res_new_user_druid_back GtkWidget *  w,
gpointer  druid,
gpointer  gp_self
[static]
 

Definition at line 1019 of file gnome-res.c.

References DEBUG_VERBOSE.

Referenced by gnome_res_new_user_druid_construct(), and gnome_res_new_user_druid_next().

void gnome_res_new_user_druid_cancel GtkWidget *  w,
gpointer  druid,
gpointer  gp_self
[static]
 

Definition at line 1036 of file gnome-res.c.

References DEBUG_VERBOSE, GNOME_RES_DRUID_CANCEL, and gnome_res_new_user_druid_destroy_druidpages().

Referenced by gnome_res_new_user_druid_construct(), and gnome_res_new_user_druid_next().

void gnome_res_new_user_druid_construct GnomeResNewUserDruid self  ) 
 

Definition at line 787 of file gnome-res.c.

References DEBUG_VERBOSE, GnomeResNewUserDruid::druid, gnome_res_new_user_druid_back(), gnome_res_new_user_druid_cancel(), gnome_res_new_user_druid_construct_page(), gnome_res_new_user_druid_finished(), gnome_res_new_user_druid_next(), GnomeResNewUserDruid::intro_text, GnomeResNewUserDruid::logo, GnomeResNewUserDruid::startpage, TRUE, GnomeResNewUserDruid::watermark, and GnomeResNewUserDruid::welcome.

Referenced by gnome_res_new_user_druid_new_with_vals().

gint gnome_res_new_user_druid_construct_page GnomeResNewUserDruid self  ) 
 

Definition at line 845 of file gnome-res.c.

References DEBUG_VERBOSE, GnomeResEntryInfoType::depend_func, FALSE, GNOME_RES_FIRST, GNOME_RES_LAST, GnomeResEntryInfoType::group, NO_SELECT_PAGES, GnomeResEntryInfoType::path, and GnomeResEntryInfoType::type.

Referenced by gnome_res_new_user_druid_construct(), and gnome_res_new_user_druid_next().

void gnome_res_new_user_druid_destroy GnomeResNewUserDruid self  ) 
 

Definition at line 771 of file gnome-res.c.

void gnome_res_new_user_druid_destroy_druidpages GnomeResNewUserDruid self  ) 
 

Definition at line 948 of file gnome-res.c.

References DEBUG_VERBOSE, GnomeResNewUserDruid::druid, and GnomeResNewUserDruid::window.

Referenced by gnome_res_new_user_druid_cancel(), and gnome_res_new_user_druid_finished().

static void gnome_res_new_user_druid_finished GtkWidget *  w,
gpointer  druid,
gpointer  gp_self
[static]
 

Definition at line 1027 of file gnome-res.c.

References DEBUG_VERBOSE, GNOME_RES_DRUID_FINISH, gnome_res_new_user_druid_destroy_druidpages(), and gnome_res_write_user_config().

Referenced by gnome_res_new_user_druid_construct().

GnomeResNewUserDruid* gnome_res_new_user_druid_new GnomeResEntryInfoType res_def,
const gchar *  title
 

Definition at line 728 of file gnome-res.c.

GnomeResNewUserDruid* gnome_res_new_user_druid_new_with_vals GnomeResEntryInfoType res_def,
const gchar *  title,
GdkPixbuf *  logo,
GdkPixbuf *  watermark,
const gchar *  welcome,
const gchar *  intro_text,
const gchar *  finish,
const gchar *  final_text
 

Definition at line 733 of file gnome-res.c.

Referenced by gnome_res_new_user_druid_new().

static void gnome_res_new_user_druid_next GtkWidget *  w,
gpointer  druid,
gpointer  gp_self
[static]
 

Definition at line 968 of file gnome-res.c.

References DEBUG_VERBOSE, gnome_res_new_user_druid_back(), gnome_res_new_user_druid_cancel(), gnome_res_new_user_druid_construct_page(), and gnome_res_write_user_config().

Referenced by gnome_res_new_user_druid_construct(), and gnome_res_new_user_druid_next().

GnomeResDruidFinishType gnome_res_new_user_druid_run_druids GnomeResNewUserDruid self  ) 
 

Definition at line 937 of file gnome-res.c.

GnomeResPreferences* gnome_res_preferences_new GnomeResEntryInfoType res_def  ) 
 

Definition at line 87 of file gnome-res.c.

Referenced by App::build_gxsm(), gnome_res_new_user_druid_new_with_vals(), and App::options_preferences_callback().

void gnome_res_read_user_config GnomeResPreferences self  ) 
 

Definition at line 146 of file gnome-res.c.

Referenced by App::build_gxsm(), gnome_res_new_user_druid_new_with_vals(), and App::options_preferences_callback().

void gnome_res_run_change_user_config GnomeResPreferences self,
const gchar *  dialog_title
 

Definition at line 637 of file gnome-res.c.

Referenced by App::options_preferences_callback(), and Surf3d::preferences().

void gnome_res_set_apply_callback GnomeResPreferences self,
void(*)(gpointer)  cb,
gpointer  data
 

Definition at line 125 of file gnome-res.c.

void gnome_res_set_apply_message GnomeResPreferences self,
const gchar *  apply_msg
 

Definition at line 119 of file gnome-res.c.

void gnome_res_set_destroy_on_close GnomeResPreferences self,
int  flg
 

Definition at line 130 of file gnome-res.c.

void gnome_res_set_ok_message GnomeResPreferences self,
const gchar *  ok_msg
 

Definition at line 113 of file gnome-res.c.

static void gnome_res_show_info_callback GtkWidget *  widget,
gpointer  message
[static]
 

Definition at line 365 of file gnome-res.c.

Referenced by gnome_res_run_change_user_config().

void gnome_res_write_user_config GnomeResPreferences self  ) 
 

Definition at line 282 of file gnome-res.c.

Referenced by gnome_res_apply_info_callback(), gnome_res_new_user_druid_finished(), and gnome_res_new_user_druid_next().


Variable Documentation

int debug_level
 

Definition at line 51 of file gxsm_main.C.

Referenced by App::help_about_callback(), and main().

int force_gconf_defaults
 

Definition at line 53 of file gxsm_main.C.

Referenced by XsmRescourceManager::Get(), XsmRescourceManager::GetBool(), XsmRescourceManager::GetStr(), and main().


Generated on Sat Apr 1 09:04:32 2006 for GXSM by  doxygen 1.4.6