2 * This file is a part of hildon
4 * Copyright (C) 2005, 2008 Nokia Corporation.
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.
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.
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.
21 #ifndef __HILDON_PICKER_DIALOG_H__
22 #define __HILDON_PICKER_DIALOG_H__
24 #ifdef HILDON_DISABLE_DEPRECATED
25 #define __SHOULD_REENABLE_DISABLE_DEPRECATED
28 #undef HILDON_DISABLE_DEPRECATED
29 #include "hildon-dialog.h"
31 #ifdef __SHOULD_REENABLE_DISABLE_DEPRECATED
32 #define HILDON_DISABLE_DEPRECATED
35 #include "hildon-touch-selector.h"
39 #define HILDON_TYPE_PICKER_DIALOG \
40 (hildon_picker_dialog_get_type ())
42 #define HILDON_PICKER_DIALOG(obj) \
43 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
44 HILDON_TYPE_PICKER_DIALOG, HildonPickerDialog))
46 #define HILDON_PICKER_DIALOG_CLASS(vtable) \
47 (G_TYPE_CHECK_CLASS_CAST ((vtable), \
48 HILDON_TYPE_PICKER_DIALOG, HildonPickerDialogClass))
50 #define HILDON_IS_PICKER_DIALOG(obj) \
51 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), HILDON_TYPE_PICKER_DIALOG))
53 #define HILDON_IS_PICKER_DIALOG_CLASS(vtable) \
54 (G_TYPE_CHECK_CLASS_TYPE ((vtable), HILDON_TYPE_PICKER_DIALOG))
56 #define HILDON_PICKER_DIALOG_GET_CLASS(inst) \
57 (G_TYPE_INSTANCE_GET_CLASS ((inst), \
58 HILDON_TYPE_PICKER_DIALOG, HildonPickerDialogClass))
60 typedef struct _HildonPickerDialog HildonPickerDialog;
61 typedef struct _HildonPickerDialogClass HildonPickerDialogClass;
62 typedef struct _HildonPickerDialogPrivate HildonPickerDialogPrivate;
64 struct _HildonPickerDialog
66 HildonDialog parent_instance;
69 HildonPickerDialogPrivate *priv;
72 struct _HildonPickerDialogClass
74 HildonDialogClass parent_class;
76 gboolean (* set_selector) (HildonPickerDialog *dialog,
77 HildonTouchSelector *selector);
82 hildon_picker_dialog_get_type (void) G_GNUC_CONST;
85 hildon_picker_dialog_new (GtkWindow * parent);
88 hildon_picker_dialog_set_selector (HildonPickerDialog *dialog,
89 HildonTouchSelector *selector);
92 hildon_picker_dialog_set_done_label (HildonPickerDialog *dialog,
96 hildon_picker_dialog_get_done_label (HildonPickerDialog *dialog);
99 hildon_picker_dialog_get_selector (HildonPickerDialog *dialog);
103 #endif /* __HILDON_PICKER_SELECTOR_H__ */