1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ |
---|
2 | /* |
---|
3 | * bonobo-ui-engine-config.h: The Bonobo UI/XML Sync engine user config code |
---|
4 | * |
---|
5 | * Author: |
---|
6 | * Michael Meeks (michael@helixcode.com) |
---|
7 | * |
---|
8 | * Copyright 2001 Helix Code, Inc. |
---|
9 | */ |
---|
10 | |
---|
11 | #ifndef _BONOBO_UI_ENGINE_CONFIG_H_ |
---|
12 | #define _BONOBO_UI_ENGINE_CONFIG_H_ |
---|
13 | |
---|
14 | BEGIN_GNOME_DECLS |
---|
15 | |
---|
16 | #include <bonobo/bonobo-ui-xml.h> |
---|
17 | #include <bonobo/bonobo-ui-engine.h> |
---|
18 | |
---|
19 | #define BONOBO_TYPE_UI_ENGINE_CONFIG (bonobo_ui_engine_config_get_type ()) |
---|
20 | #define BONOBO_UI_ENGINE_CONFIG(obj) (GTK_CHECK_CAST ((obj), BONOBO_TYPE_UI_ENGINE_CONFIG, BonoboUIEngineConfig)) |
---|
21 | #define BONOBO_UI_ENGINE_CONFIG_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), BONOBO_TYPE_UI_ENGINE_CONFIG, BonoboUIEngineConfigClass)) |
---|
22 | #define BONOBO_IS_UI_ENGINE_CONFIG(obj) (GTK_CHECK_TYPE ((obj), BONOBO_TYPE_UI_ENGINE_CONFIG)) |
---|
23 | #define BONOBO_IS_UI_ENGINE_CONFIG_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((obj), BONOBO_TYPE_UI_ENGINE_CONFIG)) |
---|
24 | |
---|
25 | typedef struct _BonoboUIEngineConfigPrivate BonoboUIEngineConfigPrivate; |
---|
26 | |
---|
27 | typedef struct { |
---|
28 | GtkObject parent; |
---|
29 | |
---|
30 | BonoboUIEngineConfigPrivate *priv; |
---|
31 | } BonoboUIEngineConfig; |
---|
32 | |
---|
33 | typedef struct { |
---|
34 | GtkObjectClass parent_class; |
---|
35 | |
---|
36 | gpointer dummy; |
---|
37 | } BonoboUIEngineConfigClass; |
---|
38 | |
---|
39 | GtkType bonobo_ui_engine_config_get_type (void); |
---|
40 | |
---|
41 | BonoboUIEngineConfig * |
---|
42 | bonobo_ui_engine_config_construct (BonoboUIEngineConfig *config, |
---|
43 | BonoboUIEngine *engine); |
---|
44 | |
---|
45 | BonoboUIEngineConfig * |
---|
46 | bonobo_ui_engine_config_new (BonoboUIEngine *engine); |
---|
47 | |
---|
48 | typedef char*(*BonoboUIEngineConfigFn) (BonoboUIEngineConfig *config, |
---|
49 | BonoboUINode *config_node, |
---|
50 | BonoboUIEngine *popup_engine); |
---|
51 | |
---|
52 | typedef void (*BonoboUIEngineConfigVerbFn)(BonoboUIEngineConfig *config, |
---|
53 | const char *path, |
---|
54 | const char *opt_state, |
---|
55 | BonoboUIEngine *popup_engine, |
---|
56 | BonoboUINode *popup_node); |
---|
57 | |
---|
58 | void bonobo_ui_engine_config_connect (GtkWidget *widget, |
---|
59 | BonoboUIEngine *engine, |
---|
60 | const char *path, |
---|
61 | BonoboUIEngineConfigFn config_fn, |
---|
62 | BonoboUIEngineConfigVerbFn verb_fn); |
---|
63 | void bonobo_ui_engine_config_serialize (BonoboUIEngineConfig *config); |
---|
64 | void bonobo_ui_engine_config_hydrate (BonoboUIEngineConfig *config); |
---|
65 | void bonobo_ui_engine_config_add (BonoboUIEngineConfig *config, |
---|
66 | const char *path, |
---|
67 | const char *attr, |
---|
68 | const char *value); |
---|
69 | void bonobo_ui_engine_config_remove (BonoboUIEngineConfig *config, |
---|
70 | const char *path, |
---|
71 | const char *attr); |
---|
72 | |
---|
73 | void bonobo_ui_engine_config_configure (BonoboUIEngineConfig *config); |
---|
74 | |
---|
75 | BonoboUIEngine *bonobo_ui_engine_config_get_engine (BonoboUIEngineConfig *config); |
---|
76 | |
---|
77 | END_GNOME_DECLS |
---|
78 | |
---|
79 | #endif /* _BONOBO_UI_ENGINE_CONFIG_H_ */ |
---|