2 * Copyright (C) 2015 Red Hat, Inc. (www.redhat.com)
4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by
6 * the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #ifndef E_COMP_EDITOR_PAGE_H
19 #define E_COMP_EDITOR_PAGE_H
22 #include <libecal/libecal.h>
24 #include <calendar/gui/e-comp-editor-property-part.h>
26 /* Standard GObject macros */
28 #define E_TYPE_COMP_EDITOR_PAGE \
29 (e_comp_editor_page_get_type ())
30 #define E_COMP_EDITOR_PAGE(obj) \
31 (G_TYPE_CHECK_INSTANCE_CAST \
32 ((obj), E_TYPE_COMP_EDITOR_PAGE, ECompEditorPage))
33 #define E_COMP_EDITOR_PAGE_CLASS(cls) \
34 (G_TYPE_CHECK_CLASS_CAST \
35 ((cls), E_TYPE_COMP_EDITOR_PAGE, ECompEditorPageClass))
36 #define E_IS_COMP_EDITOR_PAGE(obj) \
37 (G_TYPE_CHECK_INSTANCE_TYPE \
38 ((obj), E_TYPE_COMP_EDITOR_PAGE))
39 #define E_IS_COMP_EDITOR_PAGE_CLASS(cls) \
40 (G_TYPE_CHECK_CLASS_TYPE \
41 ((cls), E_TYPE_COMP_EDITOR_PAGE))
42 #define E_COMP_EDITOR_PAGE_GET_CLASS(obj) \
43 (G_TYPE_INSTANCE_GET_CLASS \
44 ((obj), E_TYPE_COMP_EDITOR_PAGE, ECompEditorPageClass))
50 typedef struct _ECompEditorPage ECompEditorPage
;
51 typedef struct _ECompEditorPageClass ECompEditorPageClass
;
52 typedef struct _ECompEditorPagePrivate ECompEditorPagePrivate
;
54 struct _ECompEditorPage
{
57 ECompEditorPagePrivate
*priv
;
60 struct _ECompEditorPageClass
{
61 GtkGridClass parent_class
;
63 /* Virtual functions */
64 void (* sensitize_widgets
) (ECompEditorPage
*page
,
65 gboolean force_insensitive
);
66 void (* fill_widgets
) (ECompEditorPage
*page
,
67 icalcomponent
*component
);
68 gboolean (* fill_component
) (ECompEditorPage
*page
,
69 icalcomponent
*component
);
72 void (* changed
) (ECompEditorPage
*page
);
75 GType
e_comp_editor_page_get_type (void) G_GNUC_CONST
;
78 e_comp_editor_page_ref_editor (ECompEditorPage
*page
);
79 void e_comp_editor_page_add_property_part (ECompEditorPage
*page
,
80 ECompEditorPropertyPart
*part
,
85 void e_comp_editor_page_sensitize_widgets (ECompEditorPage
*page
,
86 gboolean force_insensitive
);
87 void e_comp_editor_page_fill_widgets (ECompEditorPage
*page
,
88 icalcomponent
*component
);
89 gboolean
e_comp_editor_page_fill_component (ECompEditorPage
*page
,
90 icalcomponent
*component
);
91 void e_comp_editor_page_emit_changed (ECompEditorPage
*page
);
92 gboolean
e_comp_editor_page_get_updating (ECompEditorPage
*page
);
93 void e_comp_editor_page_set_updating (ECompEditorPage
*page
,
95 void e_comp_editor_page_select (ECompEditorPage
*page
);
99 #endif /* E_COMP_EDITOR_PAGE_H */