2 * This file is part of hildon-libs
4 * Copyright (C) 2005 Nokia Corporation.
6 * Contact: Luc Pionchon <luc.pionchon@nokia.com>
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation; either version 2.1 of
11 * the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
24 #ifndef __HILDON_NOTE_H__
25 #define __HILDON_NOTE_H__
27 #include <gtk/gtkdialog.h>
28 #include <gtk/gtkprogressbar.h>
29 #include <gtk/gtkicontheme.h>
32 #define HILDON_TYPE_NOTE ( hildon_note_get_type() )
33 #define HILDON_NOTE(obj) \
34 (GTK_CHECK_CAST (obj, HILDON_TYPE_NOTE, HildonNote))
35 #define HILDON_NOTE_CLASS(klass) \
36 (GTK_CHECK_CLASS_CAST ((klass), HILDON_TYPE_NOTE, HildonNoteClass))
37 #define HILDON_IS_NOTE(obj) (GTK_CHECK_TYPE (obj, HILDON_TYPE_NOTE))
38 #define HILDON_IS_NOTE_CLASS(klass) \
39 (GTK_CHECK_CLASS_TYPE ((klass), HILDON_TYPE_NOTE))
40 typedef struct _HildonNote HildonNote;
41 typedef struct _HildonNoteClass HildonNoteClass;
44 HILDON_NOTE_CONFIRMATION_TYPE = 0,
45 HILDON_NOTE_CONFIRMATION_BUTTON_TYPE,
46 HILDON_NOTE_INFORMATION_TYPE,
47 HILDON_NOTE_INFORMATION_THEME_TYPE,
48 HILDON_NOTE_PROGRESSBAR_TYPE
55 struct _HildonNoteClass {
56 GtkDialogClass parent_class;
59 GtkWidget *hildon_note_new_confirmation(GtkWindow * parent,
60 const gchar * description);
62 GtkWidget *hildon_note_new_confirmation_add_buttons(GtkWindow * parent,
66 GtkWidget *hildon_note_new_confirmation_with_icon_stock(GtkWindow * parent,
72 GtkWidget *hildon_note_new_confirmation_with_icon_name(GtkWindow * parent,
79 GtkWidget *hildon_note_new_cancel_with_progress_bar(GtkWindow * parent,
85 GtkWidget *hildon_note_new_information(GtkWindow * parent,
86 const gchar * description);
88 GtkWidget *hildon_note_new_information_with_icon_name(GtkWindow * parent,
94 GtkWidget *hildon_note_new_information_with_icon_stock(GtkWindow * parent,
100 GtkWidget *hildon_note_new_information_with_icon_theme(GtkWindow * parent,
106 void hildon_note_set_button_text(HildonNote * note, const gchar * text);
108 GType hildon_note_get_type(void);
111 #endif /* __HILDON_NOTE_H__ */