e8fd0cd587ce9d47eeb634eb90e4b9aae5a02c29
[hildon] / hildon-widgets / hildon-wizard-dialog.h
1 /*
2  * This file is part of hildon-libs
3  *
4  * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
5  *
6  * Contact: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
7  *   Fixes: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public License
11  * as published by the Free Software Foundation; version 2.1 of
12  * the License or any later version.
13  *
14  * This library is distributed in the hope that it will be useful, but
15  * WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
22  * 02110-1301 USA
23  *
24  */
25  
26 #ifndef __HILDON_WIZARD_DIALOG_H__
27 #define __HILDON_WIZARD_DIALOG_H__
28
29 #include <gtk/gtkwidget.h>
30 #include <gtk/gtkwindow.h>
31 #include <gtk/gtknotebook.h>
32 #include <gtk/gtkdialog.h>
33
34 G_BEGIN_DECLS
35
36 #define HILDON_TYPE_WIZARD_DIALOG (hildon_wizard_dialog_get_type())
37
38 #define HILDON_WIZARD_DIALOG(obj) (GTK_CHECK_CAST ((obj), \
39             HILDON_TYPE_WIZARD_DIALOG, HildonWizardDialog))
40
41 #define HILDON_WIZARD_DIALOG_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), \
42             HILDON_TYPE_WIZARD_DIALOG, HildonWizardDialogClass))
43
44 #define HILDON_IS_WIZARD_DIALOG(obj) (GTK_CHECK_TYPE ((obj), \
45             HILDON_TYPE_WIZARD_DIALOG))
46
47 #define HILDON_IS_WIZARD_DIALOG_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), \
48             HILDON_TYPE_WIZARD_DIALOG))
49
50 typedef struct _HildonWizardDialog HildonWizardDialog;
51
52 typedef struct _HildonWizardDialogClass HildonWizardDialogClass;
53
54 typedef struct _HildonWizardDialogPrivate HildonWizardDialogPrivate;
55
56 /* button response IDs */
57 enum {
58     HILDON_WIZARD_DIALOG_CANCEL,
59     HILDON_WIZARD_DIALOG_PREVIOUS,
60     HILDON_WIZARD_DIALOG_NEXT,
61     HILDON_WIZARD_DIALOG_FINISH
62 };
63
64 struct _HildonWizardDialog {
65     GtkDialog                   parent;
66     HildonWizardDialogPrivate   *priv;
67 };
68
69 struct _HildonWizardDialogClass {
70     GtkDialogClass          parent_class;
71     void (*_gtk_reserved1)  (void);
72     void (*_gtk_reserved2)  (void);
73     void (*_gtk_reserved3)  (void);
74     void (*_gtk_reserved4)  (void);
75 };
76
77
78 GType hildon_wizard_dialog_get_type   (void) G_GNUC_CONST;
79
80 GtkWidget* hildon_wizard_dialog_new   (GtkWindow        *parent,
81                                        const char       *wizard_name,
82                                        GtkNotebook      *notebook);
83
84 G_END_DECLS
85
86 #endif /* __HILDON_WIZARD_DIALOG_H__ */