1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3  * Anjuta
4  *
5  * Copyright (C) 2002 Dave Camp
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20  */
21 
22 #ifndef ANJUTA_PREFERENCES_DIALOG_H
23 #define ANJUTA_PREFERENCES_DIALOG_H
24 
25 G_BEGIN_DECLS
26 
27 #include <gtk/gtk.h>
28 
29 #define ANJUTA_TYPE_PREFERENCES_DIALOG        (anjuta_preferences_dialog_get_type ())
30 #define ANJUTA_PREFERENCES_DIALOG(o)          (G_TYPE_CHECK_INSTANCE_CAST ((o), ANJUTA_TYPE_PREFERENCES_DIALOG, AnjutaPreferencesDialog))
31 #define ANJUTA_PREFERENCES_DIALOG_CLASS(k)    (G_TYPE_CHECK_CLASS_CAST((k), ANJUTA_TYPE_PREFERENCES_DIALOG, AnjutaPreferencesDialogClass))
32 #define ANJUTA_IS_PREFERENCES_DIALOG(o)       (G_TYPE_CHECK_INSTANCE_TYPE ((o), ANJUTA_TYPE_PREFERENCES_DIALOG))
33 #define ANJUTA_IS_PREFERENCES_DIALOG_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), ANJUTA_TYPE_PREFERENCES_DIALOG))
34 
35 typedef struct _AnjutaPreferencesDialog        AnjutaPreferencesDialog;
36 typedef struct _AnjutaPreferencesDialogClass   AnjutaPreferencesDialogClass;
37 typedef struct _AnjutaPreferencesDialogPrivate AnjutaPreferencesDialogPrivate;
38 
39 struct _AnjutaPreferencesDialog {
40 	GtkDialog parent;
41 
42 	AnjutaPreferencesDialogPrivate *priv;
43 };
44 
45 struct _AnjutaPreferencesDialogClass {
46 	GtkDialogClass parent;
47 };
48 
49 GType anjuta_preferences_dialog_get_type (void);
50 
51 GtkWidget *anjuta_preferences_dialog_new (void);
52 
53 void anjuta_preferences_dialog_add_page (AnjutaPreferencesDialog *dlg,
54 										 const gchar *name,
55 										 const gchar *title,
56 										 GdkPixbuf *icon,
57 										 GtkWidget *page);
58 
59 void anjuta_preferences_dialog_remove_page (AnjutaPreferencesDialog *dlg,
60 											const char *title);
61 
62 G_END_DECLS
63 
64 #endif
65