File: bonobo-ui-engine-config.h

package info (click to toggle)
bonobo 1.0.22-2.2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 13,412 kB
  • ctags: 5,445
  • sloc: ansic: 51,714; sh: 7,733; makefile: 1,425; yacc: 318; xml: 266; sed: 16
file content (79 lines) | stat: -rw-r--r-- 2,933 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
 * bonobo-ui-engine-config.h: The Bonobo UI/XML Sync engine user config code
 *
 * Author:
 *	Michael Meeks (michael@helixcode.com)
 *
 * Copyright 2001 Helix Code, Inc.
 */

#ifndef _BONOBO_UI_ENGINE_CONFIG_H_
#define _BONOBO_UI_ENGINE_CONFIG_H_

BEGIN_GNOME_DECLS

#include <bonobo/bonobo-ui-xml.h>
#include <bonobo/bonobo-ui-engine.h>

#define BONOBO_TYPE_UI_ENGINE_CONFIG            (bonobo_ui_engine_config_get_type ())
#define BONOBO_UI_ENGINE_CONFIG(obj)            (GTK_CHECK_CAST ((obj), BONOBO_TYPE_UI_ENGINE_CONFIG, BonoboUIEngineConfig))
#define BONOBO_UI_ENGINE_CONFIG_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), BONOBO_TYPE_UI_ENGINE_CONFIG, BonoboUIEngineConfigClass))
#define BONOBO_IS_UI_ENGINE_CONFIG(obj)         (GTK_CHECK_TYPE ((obj), BONOBO_TYPE_UI_ENGINE_CONFIG))
#define BONOBO_IS_UI_ENGINE_CONFIG_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((obj), BONOBO_TYPE_UI_ENGINE_CONFIG))

typedef struct _BonoboUIEngineConfigPrivate BonoboUIEngineConfigPrivate;

typedef struct {
	GtkObject parent;

	BonoboUIEngineConfigPrivate *priv;
} BonoboUIEngineConfig;

typedef struct {
	GtkObjectClass parent_class;

	gpointer       dummy;
} BonoboUIEngineConfigClass;

GtkType bonobo_ui_engine_config_get_type  (void);

BonoboUIEngineConfig *
        bonobo_ui_engine_config_construct (BonoboUIEngineConfig   *config,
					   BonoboUIEngine         *engine);

BonoboUIEngineConfig *
        bonobo_ui_engine_config_new       (BonoboUIEngine         *engine);

typedef char*(*BonoboUIEngineConfigFn)    (BonoboUIEngineConfig   *config,
					   BonoboUINode           *config_node,
					   BonoboUIEngine         *popup_engine);

typedef void (*BonoboUIEngineConfigVerbFn)(BonoboUIEngineConfig   *config,
					   const char             *path,
					   const char             *opt_state,
					   BonoboUIEngine         *popup_engine,
					   BonoboUINode           *popup_node);

void    bonobo_ui_engine_config_connect   (GtkWidget                  *widget,
					   BonoboUIEngine             *engine,
					   const char                 *path,
					   BonoboUIEngineConfigFn      config_fn,
					   BonoboUIEngineConfigVerbFn  verb_fn);
void    bonobo_ui_engine_config_serialize (BonoboUIEngineConfig   *config);
void    bonobo_ui_engine_config_hydrate   (BonoboUIEngineConfig   *config);
void    bonobo_ui_engine_config_add       (BonoboUIEngineConfig   *config,
					   const char             *path,
					   const char             *attr,
					   const char             *value);
void    bonobo_ui_engine_config_remove    (BonoboUIEngineConfig   *config,
					   const char             *path,
					   const char             *attr);

void    bonobo_ui_engine_config_configure (BonoboUIEngineConfig   *config);

BonoboUIEngine *bonobo_ui_engine_config_get_engine (BonoboUIEngineConfig *config);

END_GNOME_DECLS

#endif /* _BONOBO_UI_ENGINE_CONFIG_H_ */