1 /*
2  * glade-design-view.h
3  *
4  * Copyright (C) 2006 Vincent Geddes
5  *
6  * Authors:
7  *   Vincent Geddes <vincent.geddes@gmail.com>
8  *
9  * This library is free software; you can redistribute it and/or modify it
10  * under the terms of the GNU Lesser General Public License as
11  * published by the Free Software Foundation; either version 2.1 of
12  * the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful, but
15  * WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22  *
23  */
24 
25 #ifndef __GLADE_DESIGN_VIEW_H__
26 #define __GLADE_DESIGN_VIEW_H__
27 
28 #include <gladeui/glade.h>
29 #include <gladeui/glade-project.h>
30 
31 #include <gtk/gtk.h>
32 
33 G_BEGIN_DECLS
34 
35 #define GLADE_TYPE_DESIGN_VIEW              (glade_design_view_get_type ())
36 #define GLADE_DESIGN_VIEW(obj)              (G_TYPE_CHECK_INSTANCE_CAST ((obj), GLADE_TYPE_DESIGN_VIEW, GladeDesignView))
37 #define GLADE_DESIGN_VIEW_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), GLADE_TYPE_DESIGN_VIEW, GladeDesignViewClass))
38 #define GLADE_IS_DESIGN_VIEW(obj)           (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GLADE_TYPE_DESIGN_VIEW))
39 #define GLADE_IS_DESIGN_VIEW_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GLADE_TYPE_DESIGN_VIEW))
40 #define GLADE_DESIGN_VIEW_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), GLADE_TYPE_DESIGN_VIEW, GladeDesignViewClass))
41 
42 typedef struct _GladeDesignView         GladeDesignView;
43 typedef struct _GladeDesignViewPrivate  GladeDesignViewPrivate;
44 typedef struct _GladeDesignViewClass    GladeDesignViewClass;
45 
46 struct _GladeDesignView
47 {
48   GtkBox parent_instance;
49 
50   GladeDesignViewPrivate *priv;
51 };
52 
53 struct _GladeDesignViewClass
54 {
55   GtkBoxClass parent_class;
56 
57   void   (* glade_reserved1)   (void);
58   void   (* glade_reserved2)   (void);
59   void   (* glade_reserved3)   (void);
60   void   (* glade_reserved4)   (void);
61 };
62 
63 
64 GType              glade_design_view_get_type         (void) G_GNUC_CONST;
65 
66 GtkWidget         *glade_design_view_new              (GladeProject *project);
67 
68 GladeProject      *glade_design_view_get_project      (GladeDesignView *view);
69 
70 GladeDesignView   *glade_design_view_get_from_project (GladeProject *project);
71 
72 G_END_DECLS
73 
74 #endif /* __GLADE_DESIGN_VIEW_H__ */
75