2008-04-12 Johannes Schmid <jhs@gnome.org>
[anjuta-git-plugin.git] / plugins / macro / macro-dialog.h
blob9088dd9be1e22b8bd136172b1bb372cf4980fbf3
1 /*
2 * macro_dialog.h (c) 2005 Johannes Schmid
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Library General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 #include "plugin.h"
19 #include "macro-db.h"
21 #ifndef MACRO_DIALOG_H
22 #define MACRO_DIALOG_H
24 #define MACRO_DIALOG_TYPE (macro_dialog_get_type ())
25 #define MACRO_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MACRO_DIALOG_TYPE, MacroDialog))
26 #define MACRO_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MACRO_DIALOG_TYPE, MacroDialogClass))
27 #define IS_MACRO_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MACRO_DIALOG_TYPE))
28 #define IS_MACRO_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MACRO_DIALOG_TYPE))
31 typedef struct _MacroDialog MacroDialog;
32 typedef struct _MacroDialogClass MacroDialogClass;
34 struct _MacroDialog
36 GtkDialog dialog;
38 GtkWidget *details_label;
39 GtkWidget *preview_text;
40 GtkWidget *macro_tree;
42 MacroDB *macro_db;
43 MacroPlugin *plugin;
44 GladeXML *gxml;
47 struct _MacroDialogClass
49 GtkDialogClass klass;
53 GType macro_dialog_get_type (void);
54 GtkWidget *macro_dialog_new (MacroPlugin * plugin);
56 #endif