BonoboUIComponent

Name

BonoboUIComponent -- 

Synopsis



#define     BONOBO_UI_COMPONENT_TYPE
#define     BONOBO_UI_COMPONENT             (o)
#define     BONOBO_UI_COMPONENT_CLASS       (k)
#define     BONOBO_IS_UI_COMPONENT          (o)
#define     BONOBO_IS_UI_COMPONENT_CLASS    (k)
struct      BonoboUIComponent;
void        (*BonoboUIListenerFn)           (BonoboUIComponent *component,
                                             const char *path,
                                             Bonobo_UIComponent_EventType type,
                                             const char *state,
                                             gpointer user_data);
void        (*BonoboUIVerbFn)               (BonoboUIComponent *component,
                                             gpointer user_data,
                                             const char *cname);
typedef     BonoboUIComponentClass;
BonoboUIComponent* bonobo_ui_component_construct
                                            (BonoboUIComponent *component,
                                             Bonobo_UIComponent corba_ui,
                                             const char *name);
BonoboUIComponent* bonobo_ui_component_new  (const char *name);
BonoboUIComponent* bonobo_ui_component_new_default
                                            (void);
void        bonobo_ui_component_set_name    (BonoboUIComponent *component,
                                             const char *name);
const char* bonobo_ui_component_get_name    (BonoboUIComponent *component);
void        bonobo_ui_component_set_container
                                            (BonoboUIComponent *component,
                                             Bonobo_UIContainer container);
void        bonobo_ui_component_unset_container
                                            (BonoboUIComponent *component);
Bonobo_UIContainer bonobo_ui_component_get_container
                                            (BonoboUIComponent *component);
void        bonobo_ui_component_add_verb    (BonoboUIComponent *component,
                                             const char *cname,
                                             BonoboUIVerbFn fn,
                                             gpointer user_data);
void        bonobo_ui_component_add_verb_full
                                            (BonoboUIComponent *component,
                                             const char *cname,
                                             BonoboUIVerbFn fn,
                                             gpointer user_data,
                                             GDestroyNotify destroy_fn);
void        bonobo_ui_component_remove_verb (BonoboUIComponent *component,
                                             const char *cname);
void        bonobo_ui_component_remove_verb_by_func
                                            (BonoboUIComponent *component,
                                             BonoboUIVerbFn fn);
void        bonobo_ui_component_remove_verb_by_data
                                            (BonoboUIComponent *component,
                                             gpointer user_data);
void        bonobo_ui_component_add_listener
                                            (BonoboUIComponent *component,
                                             const char *id,
                                             BonoboUIListenerFn fn,
                                             gpointer user_data);
void        bonobo_ui_component_add_listener_full
                                            (BonoboUIComponent *component,
                                             const char *id,
                                             BonoboUIListenerFn fn,
                                             gpointer user_data,
                                             GDestroyNotify destroy_fn);
void        bonobo_ui_component_remove_listener
                                            (BonoboUIComponent *component,
                                             const char *cname);
void        bonobo_ui_component_remove_listener_by_func
                                            (BonoboUIComponent *component,
                                             BonoboUIListenerFn fn);
void        bonobo_ui_component_remove_listener_by_data
                                            (BonoboUIComponent *component,
                                             gpointer user_data);
void        bonobo_ui_component_set         (BonoboUIComponent *component,
                                             const char *path,
                                             const char *xml,
                                             CORBA_Environment *ev);
void        bonobo_ui_component_set_translate
                                            (BonoboUIComponent *component,
                                             const char *path,
                                             const char *xml,
                                             CORBA_Environment *ev);
void        bonobo_ui_component_set_tree    (BonoboUIComponent *component,
                                             const char *path,
                                             BonoboUINode *node,
                                             CORBA_Environment *ev);
void        bonobo_ui_component_rm          (BonoboUIComponent *component,
                                             const char *path,
                                             CORBA_Environment *ev);
gboolean    bonobo_ui_component_path_exists (BonoboUIComponent *component,
                                             const char *path,
                                             CORBA_Environment *ev);
CORBA_char* bonobo_ui_component_get         (BonoboUIComponent *component,
                                             const char *path,
                                             gboolean recurse,
                                             CORBA_Environment *ev);
BonoboUINode* bonobo_ui_component_get_tree  (BonoboUIComponent *component,
                                             const char *path,
                                             gboolean recurse,
                                             CORBA_Environment *ev);
void        bonobo_ui_component_object_set  (BonoboUIComponent *component,
                                             const char *path,
                                             Bonobo_Unknown control,
                                             CORBA_Environment *ev);
Bonobo_Unknown bonobo_ui_component_object_get
                                            (BonoboUIComponent *component,
                                             const char *path,
                                             CORBA_Environment *opt_ev);
void        bonobo_ui_component_freeze      (BonoboUIComponent *component,
                                             CORBA_Environment *opt_ev);
void        bonobo_ui_component_thaw        (BonoboUIComponent *component,
                                             CORBA_Environment *opt_ev);
void        bonobo_ui_component_set_prop    (BonoboUIComponent *component,
                                             const char *path,
                                             const char *prop,
                                             const char *value,
                                             CORBA_Environment *opt_ev);
gchar*      bonobo_ui_component_get_prop    (BonoboUIComponent *component,
                                             const char *path,
                                             const char *prop,
                                             CORBA_Environment *opt_ev);
void        bonobo_ui_component_set_status  (BonoboUIComponent *component,
                                             const char *text,
                                             CORBA_Environment *opt_ev);
POA_Bonobo_UIComponent__epv* bonobo_ui_component_get_epv
                                            (void);
Bonobo_UIComponent bonobo_ui_component_corba_object_create
                                            (BonoboObject *object);
typedef     BonoboUIVerb;
#define     BONOBO_UI_VERB                  (name,cb)
#define     BONOBO_UI_VERB_DATA             (name,cb,data)
#define     BONOBO_UI_UNSAFE_VERB           (name,cb)
#define     BONOBO_UI_UNSAFE_VERB_DATA      (name,cb,data)
#define     BONOBO_UI_VERB_END
void        bonobo_ui_component_add_verb_list
                                            (BonoboUIComponent *component,
                                             BonoboUIVerb *list);
void        bonobo_ui_component_add_verb_list_with_data
                                            (BonoboUIComponent *component,
                                             BonoboUIVerb *list,
                                             gpointer user_data);

Description

Details

BONOBO_UI_COMPONENT_TYPE

#define BONOBO_UI_COMPONENT_TYPE        (bonobo_ui_component_get_type ())


BONOBO_UI_COMPONENT()

#define BONOBO_UI_COMPONENT(o)          (GTK_CHECK_CAST ((o), BONOBO_UI_COMPONENT_TYPE, BonoboUIComponent))

o : 


BONOBO_UI_COMPONENT_CLASS()

#define BONOBO_UI_COMPONENT_CLASS(k)    (GTK_CHECK_CLASS_CAST((k), BONOBO_UI_COMPONENT_TYPE, BonoboUIComponentClass))

k : 


BONOBO_IS_UI_COMPONENT()

#define BONOBO_IS_UI_COMPONENT(o)       (GTK_CHECK_TYPE ((o), BONOBO_UI_COMPONENT_TYPE))

o : 


BONOBO_IS_UI_COMPONENT_CLASS()

#define BONOBO_IS_UI_COMPONENT_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), BONOBO_UI_COMPONENT_TYPE))

k : 


struct BonoboUIComponent

struct BonoboUIComponent;


BonoboUIListenerFn ()

void        (*BonoboUIListenerFn)           (BonoboUIComponent *component,
                                             const char *path,
                                             Bonobo_UIComponent_EventType type,
                                             const char *state,
                                             gpointer user_data);

component : 
path : 
type : 
state : 
user_data : 


BonoboUIVerbFn ()

void        (*BonoboUIVerbFn)               (BonoboUIComponent *component,
                                             gpointer user_data,
                                             const char *cname);

component : 
user_data : 
cname : 


BonoboUIComponentClass

typedef struct {
	BonoboObjectClass parent_class;

	/*
	 * Signals
	 */
	void (*exec_verb) (BonoboUIComponent *comp,
			   const char        *cname);

	void (*ui_event)  (BonoboUIComponent *comp,
			   const char        *path,
			   Bonobo_UIComponent_EventType type,
			   const char        *state);
	/*
	 * Virtual XML Methods
	 */
	void (*freeze)    (BonoboUIComponent *component,
			   CORBA_Environment *opt_ev);

	void (*thaw)      (BonoboUIComponent *component,
			   CORBA_Environment *opt_ev);

	void (*xml_set)   (BonoboUIComponent *component,
			   const char        *path,
			   const char        *xml,
			   CORBA_Environment *ev);

	CORBA_char *(*xml_get) (BonoboUIComponent *component,
				const char        *path,
				gboolean           recurse,
				CORBA_Environment *ev);

	void (*xml_rm)    (BonoboUIComponent *component,
			   const char        *path,
			   CORBA_Environment *ev);

	void (*set_prop)  (BonoboUIComponent *component,
			   const char        *path,
			   const char        *prop,
			   const char        *value,
			   CORBA_Environment *opt_ev);
	
	gchar *(*get_prop) (BonoboUIComponent *component,
			    const char        *path,
			    const char        *prop,
			    CORBA_Environment *opt_ev);

	gboolean (*exists) (BonoboUIComponent *component,
			    const char        *path,
			    CORBA_Environment *ev);
	

	gpointer            dummy;
} BonoboUIComponentClass;


bonobo_ui_component_construct ()

BonoboUIComponent* bonobo_ui_component_construct
                                            (BonoboUIComponent *component,
                                             Bonobo_UIComponent corba_ui,
                                             const char *name);

component : 
corba_ui : 
name : 
Returns : 


bonobo_ui_component_new ()

BonoboUIComponent* bonobo_ui_component_new  (const char *name);

name : 
Returns : 


bonobo_ui_component_new_default ()

BonoboUIComponent* bonobo_ui_component_new_default
                                            (void);

Returns : 


bonobo_ui_component_set_name ()

void        bonobo_ui_component_set_name    (BonoboUIComponent *component,
                                             const char *name);

component : 
name : 


bonobo_ui_component_get_name ()

const char* bonobo_ui_component_get_name    (BonoboUIComponent *component);

component : 
Returns : 


bonobo_ui_component_set_container ()

void        bonobo_ui_component_set_container
                                            (BonoboUIComponent *component,
                                             Bonobo_UIContainer container);

component : 
container : 


bonobo_ui_component_unset_container ()

void        bonobo_ui_component_unset_container
                                            (BonoboUIComponent *component);

component : 


bonobo_ui_component_get_container ()

Bonobo_UIContainer bonobo_ui_component_get_container
                                            (BonoboUIComponent *component);

component : 
Returns : 


bonobo_ui_component_add_verb ()

void        bonobo_ui_component_add_verb    (BonoboUIComponent *component,
                                             const char *cname,
                                             BonoboUIVerbFn fn,
                                             gpointer user_data);

component : 
cname : 
fn : 
user_data : 


bonobo_ui_component_add_verb_full ()

void        bonobo_ui_component_add_verb_full
                                            (BonoboUIComponent *component,
                                             const char *cname,
                                             BonoboUIVerbFn fn,
                                             gpointer user_data,
                                             GDestroyNotify destroy_fn);

component : 
cname : 
fn : 
user_data : 
destroy_fn : 


bonobo_ui_component_remove_verb ()

void        bonobo_ui_component_remove_verb (BonoboUIComponent *component,
                                             const char *cname);

component : 
cname : 


bonobo_ui_component_remove_verb_by_func ()

void        bonobo_ui_component_remove_verb_by_func
                                            (BonoboUIComponent *component,
                                             BonoboUIVerbFn fn);

component : 
fn : 


bonobo_ui_component_remove_verb_by_data ()

void        bonobo_ui_component_remove_verb_by_data
                                            (BonoboUIComponent *component,
                                             gpointer user_data);

component : 
user_data : 


bonobo_ui_component_add_listener ()

void        bonobo_ui_component_add_listener
                                            (BonoboUIComponent *component,
                                             const char *id,
                                             BonoboUIListenerFn fn,
                                             gpointer user_data);

component : 
id : 
fn : 
user_data : 


bonobo_ui_component_add_listener_full ()

void        bonobo_ui_component_add_listener_full
                                            (BonoboUIComponent *component,
                                             const char *id,
                                             BonoboUIListenerFn fn,
                                             gpointer user_data,
                                             GDestroyNotify destroy_fn);

component : 
id : 
fn : 
user_data : 
destroy_fn : 


bonobo_ui_component_remove_listener ()

void        bonobo_ui_component_remove_listener
                                            (BonoboUIComponent *component,
                                             const char *cname);

component : 
cname : 


bonobo_ui_component_remove_listener_by_func ()

void        bonobo_ui_component_remove_listener_by_func
                                            (BonoboUIComponent *component,
                                             BonoboUIListenerFn fn);

component : 
fn : 


bonobo_ui_component_remove_listener_by_data ()

void        bonobo_ui_component_remove_listener_by_data
                                            (BonoboUIComponent *component,
                                             gpointer user_data);

component : 
user_data : 


bonobo_ui_component_set ()

void        bonobo_ui_component_set         (BonoboUIComponent *component,
                                             const char *path,
                                             const char *xml,
                                             CORBA_Environment *ev);

component : 
path : 
xml : 
ev : 


bonobo_ui_component_set_translate ()

void        bonobo_ui_component_set_translate
                                            (BonoboUIComponent *component,
                                             const char *path,
                                             const char *xml,
                                             CORBA_Environment *ev);

component : 
path : 
xml : 
ev : 


bonobo_ui_component_set_tree ()

void        bonobo_ui_component_set_tree    (BonoboUIComponent *component,
                                             const char *path,
                                             BonoboUINode *node,
                                             CORBA_Environment *ev);

component : 
path : 
node : 
ev : 


bonobo_ui_component_rm ()

void        bonobo_ui_component_rm          (BonoboUIComponent *component,
                                             const char *path,
                                             CORBA_Environment *ev);

component : 
path : 
ev : 


bonobo_ui_component_path_exists ()

gboolean    bonobo_ui_component_path_exists (BonoboUIComponent *component,
                                             const char *path,
                                             CORBA_Environment *ev);

component : 
path : 
ev : 
Returns : 


bonobo_ui_component_get ()

CORBA_char* bonobo_ui_component_get         (BonoboUIComponent *component,
                                             const char *path,
                                             gboolean recurse,
                                             CORBA_Environment *ev);

component : 
path : 
recurse : 
ev : 
Returns : 


bonobo_ui_component_get_tree ()

BonoboUINode* bonobo_ui_component_get_tree  (BonoboUIComponent *component,
                                             const char *path,
                                             gboolean recurse,
                                             CORBA_Environment *ev);

component : 
path : 
recurse : 
ev : 
Returns : 


bonobo_ui_component_object_set ()

void        bonobo_ui_component_object_set  (BonoboUIComponent *component,
                                             const char *path,
                                             Bonobo_Unknown control,
                                             CORBA_Environment *ev);

component : 
path : 
control : 
ev : 


bonobo_ui_component_object_get ()

Bonobo_Unknown bonobo_ui_component_object_get
                                            (BonoboUIComponent *component,
                                             const char *path,
                                             CORBA_Environment *opt_ev);

component : 
path : 
opt_ev : 
Returns : 


bonobo_ui_component_freeze ()

void        bonobo_ui_component_freeze      (BonoboUIComponent *component,
                                             CORBA_Environment *opt_ev);

component : 
opt_ev : 


bonobo_ui_component_thaw ()

void        bonobo_ui_component_thaw        (BonoboUIComponent *component,
                                             CORBA_Environment *opt_ev);

component : 
opt_ev : 


bonobo_ui_component_set_prop ()

void        bonobo_ui_component_set_prop    (BonoboUIComponent *component,
                                             const char *path,
                                             const char *prop,
                                             const char *value,
                                             CORBA_Environment *opt_ev);

component : 
path : 
prop : 
value : 
opt_ev : 


bonobo_ui_component_get_prop ()

gchar*      bonobo_ui_component_get_prop    (BonoboUIComponent *component,
                                             const char *path,
                                             const char *prop,
                                             CORBA_Environment *opt_ev);

component : 
path : 
prop : 
opt_ev : 
Returns : 


bonobo_ui_component_set_status ()

void        bonobo_ui_component_set_status  (BonoboUIComponent *component,
                                             const char *text,
                                             CORBA_Environment *opt_ev);

component : 
text : 
opt_ev : 


bonobo_ui_component_get_epv ()

POA_Bonobo_UIComponent__epv* bonobo_ui_component_get_epv
                                            (void);

Returns : 


bonobo_ui_component_corba_object_create ()

Bonobo_UIComponent bonobo_ui_component_corba_object_create
                                            (BonoboObject *object);

object : 
Returns : 


BonoboUIVerb

typedef struct {
	char          *cname;
	BonoboUIVerbFn cb;
	gpointer       user_data;
	gpointer       dummy;
} BonoboUIVerb;


BONOBO_UI_VERB()

#define BONOBO_UI_VERB(name,cb)                  { (name), (cb), NULL   }

name : 
cb : 


BONOBO_UI_VERB_DATA()

#define BONOBO_UI_VERB_DATA(name,cb,data)        { (name), (cb), (data) }

name : 
cb : 
data : 


BONOBO_UI_UNSAFE_VERB()

#define BONOBO_UI_UNSAFE_VERB(name,cb)           { (name), ((BonoboUIVerbFn)(cb)), NULL   }

name : 
cb : 


BONOBO_UI_UNSAFE_VERB_DATA()

#define BONOBO_UI_UNSAFE_VERB_DATA(name,cb,data) { (name), ((BonoboUIVerbFn)(cb)), (data) }

name : 
cb : 
data : 


BONOBO_UI_VERB_END

#define BONOBO_UI_VERB_END                       { NULL, NULL, NULL }


bonobo_ui_component_add_verb_list ()

void        bonobo_ui_component_add_verb_list
                                            (BonoboUIComponent *component,
                                             BonoboUIVerb *list);

component : 
list : 


bonobo_ui_component_add_verb_list_with_data ()

void        bonobo_ui_component_add_verb_list_with_data
                                            (BonoboUIComponent *component,
                                             BonoboUIVerb *list,
                                             gpointer user_data);

component : 
list : 
user_data :