2 * This file is a part of hildon
4 * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
6 * Contact: Michael Dominic Kostrzewa <michael.kostrzewa@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; 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
25 #ifndef __HILDON_NOTE_H__
26 #define __HILDON_NOTE_H__
32 #define HILDON_TYPE_NOTE \
33 (hildon_note_get_type())
35 #define HILDON_NOTE(obj) \
36 (GTK_CHECK_CAST (obj, HILDON_TYPE_NOTE, HildonNote))
38 #define HILDON_NOTE_CLASS(klass) \
39 (GTK_CHECK_CLASS_CAST ((klass), \
40 HILDON_TYPE_NOTE, HildonNoteClass))
42 #define HILDON_IS_NOTE(obj) \
43 (GTK_CHECK_TYPE (obj, HILDON_TYPE_NOTE))
45 #define HILDON_IS_NOTE_CLASS(klass) \
46 (GTK_CHECK_CLASS_TYPE ((klass), HILDON_TYPE_NOTE))
48 typedef struct _HildonNote HildonNote;
50 typedef struct _HildonNoteClass HildonNoteClass;
57 struct _HildonNoteClass
59 GtkDialogClass parent_class;
63 hildon_note_get_type (void);
66 hildon_note_new_confirmation (GtkWindow *parent,
67 const gchar *description);
70 hildon_note_new_confirmation_add_buttons (GtkWindow *parent,
71 const gchar *description,
75 hildon_note_new_confirmation_with_icon_name (GtkWindow *parent,
76 const gchar *description,
77 const gchar *icon_name);
80 hildon_note_new_cancel_with_progress_bar (GtkWindow *parent,
81 const gchar *description,
82 GtkProgressBar *progressbar);
85 hildon_note_new_information (GtkWindow *parent,
86 const gchar *description);
89 hildon_note_new_information_with_icon_name (GtkWindow *parent,
90 const gchar *description,
91 const gchar *icon_name);
94 hildon_note_set_button_text (HildonNote *note,
98 hildon_note_set_button_texts (HildonNote *note,
100 const gchar *text_cancel);
104 HILDON_NOTE_TYPE_CONFIRMATION = 0,
105 HILDON_NOTE_TYPE_CONFIRMATION_BUTTON,
106 HILDON_NOTE_TYPE_INFORMATION,
107 HILDON_NOTE_TYPE_INFORMATION_THEME,
108 HILDON_NOTE_TYPE_PROGRESSBAR
113 #endif /* __HILDON_NOTE_H__ */