Support individual files and folders in log output.
[anjuta-git-plugin.git] / plugins / class-gen / window.h
blobbe05599046668b5bf5f16c89a2da3942a1378dbd
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 <plugins/project-wizard/values.h>
25 #include <gtk/gtkdialog.h>
27 #include <glib-object.h>
29 G_BEGIN_DECLS
31 #define CG_TYPE_WINDOW (cg_window_get_type ())
32 #define CG_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CG_TYPE_WINDOW, CgWindow))
33 #define CG_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CG_TYPE_WINDOW, CgWindowClass))
34 #define CG_IS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CG_TYPE_WINDOW))
35 #define CG_IS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CG_TYPE_WINDOW))
36 #define CG_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CG_TYPE_WINDOW, CgWindowClass))
38 typedef struct _CgWindowClass CgWindowClass;
39 typedef struct _CgWindow CgWindow;
41 /* I would like to subclass GtkWindow or GtkDialog directly, but its
42 * glade that creates the window and not me. */
44 struct _CgWindowClass
46 GObjectClass parent_class;
49 struct _CgWindow
51 GObject parent_instance;
54 GType cg_window_get_type (void) G_GNUC_CONST;
56 CgWindow *cg_window_new (void);
57 GtkDialog *cg_window_get_dialog (CgWindow *window);
58 NPWValueHeap *cg_window_create_value_heap (CgWindow *window);
60 const gchar *cg_window_get_header_template (CgWindow *window);
61 const gchar *cg_window_get_header_file (CgWindow *window);
62 const gchar *cg_window_get_source_template (CgWindow *window);
63 const gchar *cg_window_get_source_file (CgWindow *window);
65 void cg_window_set_add_to_project (CgWindow *window,
66 gboolean enable);
67 void cg_window_set_add_to_repository (CgWindow *window,
68 gboolean enable);
69 gboolean cg_window_get_add_to_project (CgWindow *window);
70 gboolean cg_window_get_add_to_repository(CgWindow *window);
72 void cg_window_enable_add_to_project (CgWindow *window,
73 gboolean enable);
74 void cg_window_enable_add_to_repository (CgWindow *window,
75 gboolean enable);
77 void cg_window_set_author (CgWindow *window,
78 const gchar *author);
80 void cg_window_set_email (CgWindow *window,
81 const gchar *email);
83 G_END_DECLS
85 #endif /* __CLASSGEN_WINDOW_H__ */