summaryrefslogtreecommitdiff
path: root/gladeui/glade-inspector.h
blob: 7d3d9666285fc08e2b8f27b33d694332d83a3786 (plain)
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
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
 * glade-inspector.h
 *
 * Copyright (C) 2001 Ximian, Inc.
 * Copyright (C) 2007 Vincent Geddes
 *
 * Authors:
 *   Chema Celorio
 *   Tristan Van Berkom <tvb@gnome.org>
 *   Vincent Geddes <vincent.geddes@gmail.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 */
 
#ifndef __GLADE_INSPECTOR_H__
#define __GLADE_INSPECTOR_H__

#include <gtk/gtkvbox.h>

/* forward declaration */
/* btw, this makes gtkdoc list GladeProject twice in gladeui-sections.txt wich gives a warning. */
struct GladeProject;

G_BEGIN_DECLS

#define GLADE_TYPE_INSPECTOR            (glade_inspector_get_type ())
#define GLADE_INSPECTOR(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GLADE_TYPE_INSPECTOR, GladeInspector))
#define GLADE_INSPECTOR_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GLADE_TYPE_INSPECTOR, GladeInspectorClass))
#define GLADE_IS_INSPECTOR(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GLADE_TYPE_INSPECTOR))
#define GLADE_IS_INSPECTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GLADE_TYPE_INSPECTOR))
#define GLADE_INSPECTOR_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GLADE_TYPE_INSPECTOR, GladeInspectorClass))

typedef struct _GladeInspector         GladeInspector;
typedef struct _GladeInspectorClass    GladeInspectorClass;
typedef struct _GladeInspectorPrivate  GladeInspectorPrivate;

/**
 * GladeInspector:
 *
 * The #GladeInspector struct contains private data only, and should be manipulated using the functions below.
 *
 */
struct _GladeInspector
{
	GtkVBox parent_instance;

	GladeInspectorPrivate *priv;
};

struct _GladeInspectorClass
{
	GtkVBoxClass parent_class;

	void   (* selection_changed) (GladeInspector *inspector);
			       
	void   (* item_activated)    (GladeInspector *inspector);
};

 
GType          glade_inspector_get_type           (void) G_GNUC_CONST;

GtkWidget     *glade_inspector_new                (void);

GtkWidget     *glade_inspector_new_with_project   (GladeProject   *project);

void           glade_inspector_set_project        (GladeInspector *inspector,
					           GladeProject   *project);

GladeProject  *glade_inspector_get_project        (GladeInspector *inspector);

GList         *glade_inspector_get_selected_items (GladeInspector *inspector);

G_END_DECLS

#endif /* __GLADE_INSPECTOR_H__ */