File: bonobo-win.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 (129 lines) | stat: -rw-r--r-- 5,017 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
 * bonobo-win.c: The Bonobo Window implementation.
 *
 * Author:
 *	Michael Meeks (michael@helixcode.com)
 *
 * Copyright 2000 Helix Code, Inc.
 */
#ifndef _BONOBO_WINDOW_H_
#define _BONOBO_WINDOW_H_

#include <gtk/gtkmenu.h>
#include <gtk/gtkwindow.h>
#include <bonobo/bonobo-object.h>
#include <bonobo/bonobo-ui-engine.h>

#define BONOBO_TYPE_WINDOW        (bonobo_window_get_type ())
#define BONOBO_WINDOW(o)          (GTK_CHECK_CAST ((o), BONOBO_TYPE_WINDOW, BonoboWindow))
#define BONOBO_WINDOW_CLASS(k)    (GTK_CHECK_CLASS_CAST((k), BONOBO_TYPE_WINDOW, BonoboWindowClass))
#define BONOBO_IS_WINDOW(o)       (GTK_CHECK_TYPE ((o), BONOBO_TYPE_WINDOW))
#define BONOBO_IS_WINDOW_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), BONOBO_TYPE_WINDOW))

typedef struct _BonoboWindowPrivate BonoboWindowPrivate;

typedef struct {
	GtkWindow          parent;
	
	BonoboWindowPrivate  *priv;
} BonoboWindow;

typedef struct {
	GtkWindowClass    parent_class;
} BonoboWindowClass;

GtkType              bonobo_window_get_type                       (void);

GtkWidget           *bonobo_window_construct                      (BonoboWindow      *win,
								   const char        *win_name,
								   const char        *title);

GtkWidget           *bonobo_window_new                            (const char        *win_name,
								   const char        *title);

void                 bonobo_window_set_contents                   (BonoboWindow      *win,
								   GtkWidget         *contents);
GtkWidget           *bonobo_window_get_contents                   (BonoboWindow      *win);


BonoboUIEngine      *bonobo_window_get_ui_engine                  (BonoboWindow      *win);

void                 bonobo_window_set_name                       (BonoboWindow      *win,
								   const char        *win_name);

char                *bonobo_window_get_name                       (BonoboWindow      *win);

GtkAccelGroup       *bonobo_window_get_accel_group                (BonoboWindow      *win);

/* Mostly deprecated API; see bonobo-ui-engine.h */
void                 bonobo_window_freeze                         (BonoboWindow      *win);

void                 bonobo_window_thaw                           (BonoboWindow      *win);

BonoboUIError        bonobo_window_xml_merge                      (BonoboWindow      *win,
								   const char        *path,
								   const char        *xml,
								   const char        *component);

BonoboUIError        bonobo_window_xml_merge_tree                 (BonoboWindow      *win,
								   const char        *path,
								   BonoboUINode      *tree,
								   const char        *component);

char                *bonobo_window_xml_get                        (BonoboWindow      *win,
								   const char        *path,
								   gboolean           node_only);

gboolean             bonobo_window_xml_node_exists                (BonoboWindow      *win,
								   const char        *path);

BonoboUIError        bonobo_window_xml_rm                         (BonoboWindow      *win,
								   const char        *path,
								   const char        *by_component);

BonoboUIError        bonobo_window_object_set                     (BonoboWindow      *win,
								   const char        *path,
								   Bonobo_Unknown     object,
								   CORBA_Environment *ev);

BonoboUIError        bonobo_window_object_get                     (BonoboWindow      *win,
								   const char        *path,
								   Bonobo_Unknown    *object,
								   CORBA_Environment *ev);

void                 bonobo_window_dump                           (BonoboWindow      *win,
								   const char        *msg);

void                 bonobo_window_register_component             (BonoboWindow      *win,
								   const char        *name,
								   Bonobo_Unknown     component);

void                 bonobo_window_deregister_component           (BonoboWindow      *win,
								   const char        *name);

void                 bonobo_window_deregister_component_by_ref    (BonoboWindow      *win,
								   Bonobo_Unknown     component);

void                 bonobo_window_deregister_dead_components     (BonoboWindow      *win);

GList               *bonobo_window_deregister_get_component_names (BonoboWindow      *win);

Bonobo_Unknown       bonobo_window_component_get                  (BonoboWindow      *win,
								   const char        *name);

void                 bonobo_window_add_popup                      (BonoboWindow      *win,
								   GtkMenu           *popup,
								   const char        *path);

void                 bonobo_window_set_ui_container               (BonoboWindow      *win,
								   BonoboObject      *container);

/*
 * NB. popups are automaticaly removed on destroy, you probably don't
 * want to use this.
 */
void                 bonobo_window_remove_popup                   (BonoboWindow      *win,
								   const char        *path);

#endif /* _BONOBO_WINDOW_H_ */