2 * This file is part of hildon-libs
4 * Copyright (C) 2005, 2006 Nokia Corporation.
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
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>
31 #define HILDON_TYPE_NOTE ( hildon_note_get_type() )
32 #define HILDON_NOTE(obj) \
33 (GTK_CHECK_CAST (obj, HILDON_TYPE_NOTE, HildonNote))
34 #define HILDON_NOTE_CLASS(klass) \
35 (GTK_CHECK_CLASS_CAST ((klass), HILDON_TYPE_NOTE, HildonNoteClass))
36 #define HILDON_IS_NOTE(obj) (GTK_CHECK_TYPE (obj, HILDON_TYPE_NOTE))
37 #define HILDON_IS_NOTE_CLASS(klass) \
38 (GTK_CHECK_CLASS_TYPE ((klass), HILDON_TYPE_NOTE))
40 typedef struct _HildonNote HildonNote;
41 typedef struct _HildonNoteClass HildonNoteClass;
43 typedef enum /*< skip >*/
45 HILDON_NOTE_CONFIRMATION_TYPE = 0,
46 HILDON_NOTE_CONFIRMATION_BUTTON_TYPE,
47 HILDON_NOTE_INFORMATION_TYPE,
48 HILDON_NOTE_INFORMATION_THEME_TYPE,
49 HILDON_NOTE_PROGRESSBAR_TYPE
56 struct _HildonNoteClass {
57 GtkDialogClass parent_class;
60 GtkWidget *hildon_note_new_confirmation(GtkWindow * parent,
61 const gchar * description);
63 GtkWidget *hildon_note_new_confirmation_add_buttons(GtkWindow * parent,
66 #ifndef HILDON_DISABLE_DEPRECATED
67 GtkWidget *hildon_note_new_confirmation_with_icon_stock(GtkWindow * parent,
72 #endif /* HILDON_DISABLE_DEPRECATED */
74 GtkWidget *hildon_note_new_confirmation_with_icon_name(GtkWindow * parent,
81 GtkWidget *hildon_note_new_cancel_with_progress_bar(GtkWindow * parent,
87 GtkWidget *hildon_note_new_information(GtkWindow * parent,
88 const gchar * description);
90 GtkWidget *hildon_note_new_information_with_icon_name(GtkWindow * parent,
95 #ifndef HILDON_DISABLE_DEPRECATED
96 GtkWidget *hildon_note_new_information_with_icon_stock(GtkWindow * parent,
102 GtkWidget *hildon_note_new_information_with_icon_theme(GtkWindow * parent,
107 #endif /* HILDON_DISABLE_DEPRECATED */
109 void hildon_note_set_button_text(HildonNote * note, const gchar * text);
111 void hildon_note_set_button_texts(HildonNote * note, const gchar * textOk,
112 const gchar * textCancel);
114 GType hildon_note_get_type(void) G_GNUC_CONST;
115 GType hildon_note_type_get_type(void) G_GNUC_CONST;
118 #endif /* __HILDON_NOTE_H__ */