1
/*
2
 * This file is a part of hildon
3
 *
4
 * Copyright (C) 2005, 2008 Nokia Corporation.
5
 *
6
 * This library is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU Lesser General Public
8
 * License as published by the Free Software Foundation; either
9
 * version 2 of the License, or (at your option) any later version. or (at your option) any later version.
10
 *
11
 * This library is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14
 * Lesser General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU Lesser General Public
17
 * License along with this library; if not, write to the Free
18
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19
 */
20
21
#ifndef                                         __HILDON_PICKER_DIALOG_H__
22
#define                                         __HILDON_PICKER_DIALOG_H__
23
24
#ifdef HILDON_DISABLE_DEPRECATED
25
  #define __SHOULD_REENABLE_DISABLE_DEPRECATED
26
#endif
27
28
#undef HILDON_DISABLE_DEPRECATED
29
#include                                        "hildon-dialog.h"
30
31
#ifdef __SHOULD_REENABLE_DISABLE_DEPRECATED
32
  #define HILDON_DISABLE_DEPRECATED
33
#endif
34
35
#include                                        "hildon-touch-selector.h"
36
37
G_BEGIN_DECLS
38
39
#define                                         HILDON_TYPE_PICKER_DIALOG \
40
                                                (hildon_picker_dialog_get_type ())
41
42
#define                                         HILDON_PICKER_DIALOG(obj) \
43
                                                (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
44
                                                HILDON_TYPE_PICKER_DIALOG, HildonPickerDialog))
45
46
#define                                         HILDON_PICKER_DIALOG_CLASS(vtable) \
47
                                                (G_TYPE_CHECK_CLASS_CAST ((vtable), \
48
                                                HILDON_TYPE_PICKER_DIALOG, HildonPickerDialogClass))
49
50
#define                                         HILDON_IS_PICKER_DIALOG(obj) \
51
                                                (G_TYPE_CHECK_INSTANCE_TYPE ((obj), HILDON_TYPE_PICKER_DIALOG))
52
53
#define                                         HILDON_IS_PICKER_DIALOG_CLASS(vtable) \
54
                                                (G_TYPE_CHECK_CLASS_TYPE ((vtable), HILDON_TYPE_PICKER_DIALOG))
55
56
#define                                         HILDON_PICKER_DIALOG_GET_CLASS(inst) \
57
                                                (G_TYPE_INSTANCE_GET_CLASS ((inst), \
58
                                                HILDON_TYPE_PICKER_DIALOG, HildonPickerDialogClass))
59
60
typedef struct                                  _HildonPickerDialog HildonPickerDialog;
61
typedef struct                                  _HildonPickerDialogClass HildonPickerDialogClass;
62
typedef struct                                  _HildonPickerDialogPrivate HildonPickerDialogPrivate;
63
64
struct                                          _HildonPickerDialog
65
{
66
  HildonDialog parent_instance;
67
68
  /*< private > */
69
  HildonPickerDialogPrivate *priv;
70
};
71
72
struct                                          _HildonPickerDialogClass
73
{
74
  HildonDialogClass parent_class;
75
76
  gboolean (* set_selector)                     (HildonPickerDialog  *dialog,
77
                                                 HildonTouchSelector *selector);
78
};
79
80
/* construction */
81
GType
82
hildon_picker_dialog_get_type                   (void) G_GNUC_CONST;
83
84
GtkWidget*
85
hildon_picker_dialog_new                        (GtkWindow * parent);
86
87
gboolean
88
hildon_picker_dialog_set_selector               (HildonPickerDialog  *dialog,
89
                                                 HildonTouchSelector *selector);
90
91
void
92
hildon_picker_dialog_set_done_label             (HildonPickerDialog *dialog,
93
                                                 const gchar        *label);
94
95
const gchar*
96
hildon_picker_dialog_get_done_label             (HildonPickerDialog *dialog);
97
98
HildonTouchSelector*
99
hildon_picker_dialog_get_selector               (HildonPickerDialog *dialog);
100
101
G_END_DECLS
102
103
#endif /* __HILDON_PICKER_SELECTOR_H__ */