class-gen: Use a simple hash table instead of NPWValue
[anjuta.git] / plugins / class-gen / window.h
blob945de860b88ba3caa34f658eeaa950b5e8f747c8
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /* window.h
3 * Copyright (C) 2006 Armin Burgmeier
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Library General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 #ifndef __CLASSGEN_WINDOW_H__
21 #define __CLASSGEN_WINDOW_H__
23 #include <gtk/gtk.h>
25 #include <glib-object.h>
27 #include <libanjuta/interfaces/ianjuta-project-manager.h>
30 G_BEGIN_DECLS
32 #define CG_TYPE_WINDOW (cg_window_get_type ())
33 #define CG_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CG_TYPE_WINDOW, CgWindow))
34 #define CG_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CG_TYPE_WINDOW, CgWindowClass))
35 #define CG_IS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CG_TYPE_WINDOW))
36 #define CG_IS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CG_TYPE_WINDOW))
37 #define CG_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CG_TYPE_WINDOW, CgWindowClass))
39 typedef struct _CgWindowClass CgWindowClass;
40 typedef struct _CgWindow CgWindow;
42 /* I would like to subclass GtkWindow or GtkDialog directly, but its
43 * glade that creates the window and not me. */
45 struct _CgWindowClass
47 GObjectClass parent_class;
50 struct _CgWindow
52 GObject parent_instance;
55 GType cg_window_get_type (void) G_GNUC_CONST;
57 CgWindow *cg_window_new (void);
58 GtkDialog *cg_window_get_dialog (CgWindow *window);
59 GHashTable *cg_window_create_value_heap (CgWindow *window);
61 const gchar *cg_window_get_header_template (CgWindow *window);
62 const gchar *cg_window_get_header_file (CgWindow *window);
63 const gchar *cg_window_get_source_template (CgWindow *window);
64 const gchar *cg_window_get_source_file (CgWindow *window);
65 GFile *cg_window_get_selected_target (CgWindow *window);
67 void cg_window_set_add_to_project (CgWindow *window,
68 gboolean enable);
69 void cg_window_set_add_to_repository (CgWindow *window,
70 gboolean enable);
71 gboolean cg_window_get_add_to_project (CgWindow *window);
72 gboolean cg_window_get_add_to_repository(CgWindow *window);
74 void cg_window_enable_add_to_project (CgWindow *window,
75 gboolean enable);
76 void cg_window_set_project_model (CgWindow *window,
77 IAnjutaProjectManager *manager);
78 void cg_window_enable_add_to_repository (CgWindow *window,
79 gboolean enable);
81 void cg_window_set_author (CgWindow *window,
82 const gchar *author);
84 void cg_window_set_email (CgWindow *window,
85 const gchar *email);
87 G_END_DECLS
89 #endif /* __CLASSGEN_WINDOW_H__ */