2 * This file is part of hildon-libs
4 * Copyright (C) 2005 Nokia Corporation.
6 * Contact: Luc Pionchon <luc.pionchon@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; either 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_TIME_EDITOR_H__
26 #define __HILDON_TIME_EDITOR_H__
28 #include <gtk/gtkcontainer.h>
32 #define HILDON_TYPE_TIME_EDITOR (hildon_time_editor_get_type())
34 #define HILDON_TIME_EDITOR(obj) (GTK_CHECK_CAST (obj, HILDON_TYPE_TIME_EDITOR, HildonTimeEditor))
35 #define HILDON_TIME_EDITOR_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), HILDON_TYPE_TIME_EDITOR, HildonTimeEditorClass))
37 #define HILDON_IS_TIME_EDITOR(obj) (GTK_CHECK_TYPE (obj, HILDON_TYPE_TIME_EDITOR))
38 #define HILDON_IS_TIME_EDITOR_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), HILDON_TYPE_TIME_EDITOR))
41 typedef struct _HildonTimeEditor HildonTimeEditor;
42 typedef struct _HildonTimeEditorClass HildonTimeEditorClass;
44 struct _HildonTimeEditor {
48 struct _HildonTimeEditorClass {
49 GtkContainerClass parent_class;
53 GType hildon_time_editor_get_type(void) G_GNUC_CONST;
54 GtkWidget *hildon_time_editor_new(void);
57 void hildon_time_editor_set_time (HildonTimeEditor * editor,
62 void hildon_time_editor_get_time (HildonTimeEditor * editor,
67 #ifndef HILDON_DISABLE_DEPRECATED
68 void hildon_time_editor_show_seconds (HildonTimeEditor * editor, gboolean enable);
69 void hildon_time_editor_enable_duration_mode (HildonTimeEditor * editor, gboolean enable);
70 #endif /* HILDON_DISABLE_DEPRECATED */
73 void hildon_time_editor_set_duration_range (HildonTimeEditor * editor,
77 void hildon_time_editor_get_duration_range (HildonTimeEditor * editor,
81 void hildon_time_editor_set_ticks (HildonTimeEditor * editor, guint ticks);
82 guint hildon_time_editor_get_ticks (HildonTimeEditor * editor);
84 void hildon_time_editor_set_show_seconds (HildonTimeEditor * editor, gboolean show_seconds);
85 gboolean hildon_time_editor_get_show_seconds (HildonTimeEditor * editor);
87 void hildon_time_editor_set_show_hours (HildonTimeEditor * editor, gboolean show_hours);
88 gboolean hildon_time_editor_get_show_hours (HildonTimeEditor * editor);
90 void hildon_time_editor_set_duration_mode (HildonTimeEditor * editor, gboolean duration_mode);
91 gboolean hildon_time_editor_get_duration_mode (HildonTimeEditor * editor);
93 void hildon_time_editor_set_duration_min (HildonTimeEditor * editor, guint duration_min);
94 guint hildon_time_editor_get_duration_min (HildonTimeEditor * editor);
96 void hildon_time_editor_set_duration_max (HildonTimeEditor * editor, guint duration_max);
97 guint hildon_time_editor_get_duration_max (HildonTimeEditor * editor);
101 #endif /* __HILDON_TIME_EDITOR_H__ */