~carsten-munk/m-r/libhildon-2.1.24

« back to all changes in this revision

Viewing changes to src/hildon-note.h

  • Committer: Carsten V. Munk
  • Date: 2008-12-08 15:00:57 UTC
  • Revision ID: cvm@cs.au.dk-20081208150057-7e0a50c8zdupbzar
initial commit of 2.1.24

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * This file is a part of hildon
 
3
 *
 
4
 * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
 
5
 *
 
6
 * Contact: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
 
7
 *
 
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.
 
12
 *
 
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.
 
17
 *
 
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
 
21
 * 02110-1301 USA
 
22
 *
 
23
 */
 
24
 
 
25
#ifndef                                         __HILDON_NOTE_H__
 
26
#define                                         __HILDON_NOTE_H__
 
27
 
 
28
#include                                        <gtk/gtk.h>
 
29
 
 
30
G_BEGIN_DECLS
 
31
 
 
32
#define                                         HILDON_TYPE_NOTE \
 
33
                                                (hildon_note_get_type())
 
34
 
 
35
#define                                         HILDON_NOTE(obj) \
 
36
                                                (GTK_CHECK_CAST (obj, HILDON_TYPE_NOTE, HildonNote))
 
37
 
 
38
#define                                         HILDON_NOTE_CLASS(klass) \
 
39
                                                (GTK_CHECK_CLASS_CAST ((klass), \
 
40
                                                HILDON_TYPE_NOTE, HildonNoteClass))
 
41
 
 
42
#define                                         HILDON_IS_NOTE(obj) \
 
43
                                                (GTK_CHECK_TYPE (obj, HILDON_TYPE_NOTE))
 
44
 
 
45
#define                                         HILDON_IS_NOTE_CLASS(klass) \
 
46
                                                (GTK_CHECK_CLASS_TYPE ((klass), HILDON_TYPE_NOTE))
 
47
 
 
48
typedef struct                                  _HildonNote HildonNote;
 
49
 
 
50
typedef struct                                  _HildonNoteClass HildonNoteClass;
 
51
 
 
52
struct                                          _HildonNote 
 
53
{
 
54
    GtkDialog parent;
 
55
};
 
56
 
 
57
struct _HildonNoteClass 
 
58
{
 
59
    GtkDialogClass parent_class;
 
60
};
 
61
 
 
62
GType G_GNUC_CONST
 
63
hildon_note_get_type                            (void);
 
64
 
 
65
GtkWidget*
 
66
hildon_note_new_confirmation                    (GtkWindow *parent,
 
67
                                                 const gchar *description);
 
68
 
 
69
GtkWidget*
 
70
hildon_note_new_confirmation_add_buttons        (GtkWindow *parent,
 
71
                                                 const gchar *description, 
 
72
                                                 ...);
 
73
 
 
74
#ifndef HILDON_DISABLE_DEPRECATED
 
75
GtkWidget*
 
76
hildon_note_new_confirmation_with_icon_name     (GtkWindow *parent,
 
77
                                                 const gchar *description,
 
78
                                                 const gchar *icon_name);
 
79
#endif
 
80
 
 
81
GtkWidget*
 
82
hildon_note_new_cancel_with_progress_bar        (GtkWindow *parent,
 
83
                                                 const gchar *description,
 
84
                                                 GtkProgressBar *progressbar);
 
85
 
 
86
GtkWidget*
 
87
hildon_note_new_information                     (GtkWindow *parent,
 
88
                                                 const gchar *description);
 
89
#ifndef HILDON_DISABLE_DEPRECATED
 
90
GtkWidget*
 
91
hildon_note_new_information_with_icon_name      (GtkWindow *parent,
 
92
                                                 const gchar *description,
 
93
                                                 const gchar *icon_name);
 
94
#endif
 
95
 
 
96
void 
 
97
hildon_note_set_button_text                     (HildonNote *note, 
 
98
                                                 const gchar *text);
 
99
 
 
100
void 
 
101
hildon_note_set_button_texts                    (HildonNote *note, 
 
102
                                                 const gchar *text_ok,
 
103
                                                 const gchar *text_cancel);
 
104
 
 
105
typedef enum
 
106
{
 
107
    HILDON_NOTE_TYPE_CONFIRMATION = 0,
 
108
    HILDON_NOTE_TYPE_CONFIRMATION_BUTTON,
 
109
    HILDON_NOTE_TYPE_INFORMATION,
 
110
    HILDON_NOTE_TYPE_INFORMATION_THEME,
 
111
    HILDON_NOTE_TYPE_PROGRESSBAR
 
112
}                                               HildonNoteType;
 
113
 
 
114
G_END_DECLS
 
115
 
 
116
#endif                                          /* __HILDON_NOTE_H__ */