File: bonobo-property-control.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 (69 lines) | stat: -rw-r--r-- 2,696 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
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/**
 * bonobo-property-control.h: Property control implementation.
 *
 * Author:
 *      Iain Holmes  <iain@helixcode.com>
 *
 * Copyright 2000, Helix Code, Inc.
 */
#ifndef _BONOBO_PROPERTY_CONTROL_H_
#define _BONOBO_PROPERTY_CONTROL_H_

#include <bonobo/bonobo-control.h>
#include <bonobo/bonobo-event-source.h>

BEGIN_GNOME_DECLS

typedef struct _BonoboPropertyControl        BonoboPropertyControl;
typedef struct _BonoboPropertyControlPrivate BonoboPropertyControlPrivate;

#define BONOBO_PROPERTY_CONTROL_CHANGED "Bonobo::PropertyControl_changed"

#define BONOBO_PROPERTY_CONTROL_TYPE        (bonobo_property_control_get_type ())
#define BONOBO_PROPERTY_CONTROL(o)          (GTK_CHECK_CAST ((o), BONOBO_PROPERTY_CONTROL_TYPE, BonoboPropertyControl))
#define BONOBO_PROPERTY_CONTROL_CLASS(k)    (GTK_CHECK_CLASS_CAST((k), BONOBO_PROPERTY_CONTROL_TYPE, BonoboPropertyControlClass))
#define BONOBO_IS_PROPERTY_CONTROL(o)       (GTK_CHECK_TYPE ((o), BONOBO_PROPERTY_CONTROL_TYPE))
#define BONOBO_IS_PROPERTY_CONTROL_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), BONOBO_PROPERTY_CONTROL_TYPE))

typedef BonoboControl *(* BonoboPropertyControlGetControlFn) (BonoboPropertyControl *control,
							      int page_number,
							      void *closure);

struct _BonoboPropertyControl {
        BonoboXObject		object;

	BonoboPropertyControlPrivate *priv;
};

typedef struct {
	BonoboXObjectClass parent_class;

	POA_Bonobo_PropertyControl__epv epv;

	void (* action) (BonoboPropertyControl *property_control, 
			 Bonobo_PropertyControl_Action action);
} BonoboPropertyControlClass;

GtkType bonobo_property_control_get_type (void);

BonoboPropertyControl *bonobo_property_control_construct (BonoboPropertyControl *property_control,
							  BonoboEventSource     *event_source,
							  BonoboPropertyControlGetControlFn get_fn,
							  int                    num_pages,
							  void                  *closure);
BonoboPropertyControl *bonobo_property_control_new_full  (BonoboPropertyControlGetControlFn get_fn,
							  int                    num_pages,
							  BonoboEventSource     *event_source,
							  void                  *closure);
BonoboPropertyControl *bonobo_property_control_new       (BonoboPropertyControlGetControlFn get_fn,
							  int                    num_pages,
							  void                  *closure);
void                   bonobo_property_control_changed   (BonoboPropertyControl *property_control,
							  CORBA_Environment     *opt_ev);
BonoboEventSource *bonobo_property_control_get_event_source (BonoboPropertyControl *property_control);

END_GNOME_DECLS

#endif /* _BONOBO_PROPERTY_CONTROL_H_ */