Assamese translation updated
[platform/upstream/evolution-data-server.git] / libedataserverui / e-categories-editor.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of version 2 of the GNU Lesser General Public
7  * License as published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  * Boston, MA 02110-1301, USA.
18  */
19
20 #if !defined (__LIBEDATASERVERUI_H_INSIDE__) && !defined (LIBEDATASERVERUI_COMPILATION)
21 #error "Only <libedataserverui/libedataserverui.h> should be included directly."
22 #endif
23
24 #ifndef E_CATEGORIES_EDITOR_H
25 #define E_CATEGORIES_EDITOR_H
26
27 #include <gtk/gtk.h>
28
29 /* Standard GObject macros */
30 #define E_TYPE_CATEGORIES_EDITOR \
31         (e_categories_editor_get_type ())
32 #define E_CATEGORIES_EDITOR(obj) \
33         (G_TYPE_CHECK_INSTANCE_CAST \
34         ((obj), E_TYPE_CATEGORIES_EDITOR, ECategoriesEditor))
35 #define E_CATEGORIES_EDITOR_CLASS(cls) \
36         (G_TYPE_CHECK_CLASS_CAST \
37         ((cls), E_TYPE_CATEGORIES_EDITOR, ECategoriesEditorClass))
38 #define E_IS_CATEGORIES_EDITOR(obj) \
39         (G_TYPE_CHECK_INSTANCE_TYPE \
40         ((obj), E_TYPE_CATEGORIES_EDITOR))
41 #define E_IS_CATEGORIES_EDITOR_CLASS(cls) \
42         (G_TYPE_CHECK_CLASS_TYPE \
43         ((cls), E_TYPE_CATEGORIES_EDITOR))
44 #define E_CATEGORIES_EDITOR_GET_CLASS(obj) \
45         (G_TYPE_INSTANCE_GET_CLASS \
46         ((obj), E_TYPE_CATEGORIES_EDITOR, ECategoriesEditorClass))
47
48 G_BEGIN_DECLS
49
50 typedef struct _ECategoriesEditor ECategoriesEditor;
51 typedef struct _ECategoriesEditorClass ECategoriesEditorClass;
52 typedef struct _ECategoriesEditorPrivate ECategoriesEditorPrivate;
53
54 /**
55  * ECategoriesEditor:
56  *
57  * Contains only private data that should be read and manipulated using the
58  * functions below.
59  *
60  * Since: 3.2
61  **/
62 struct _ECategoriesEditor {
63         GtkGrid parent;
64         ECategoriesEditorPrivate *priv;
65 };
66
67 struct _ECategoriesEditorClass {
68         GtkGridClass parent_class;
69
70         void            (*entry_changed)        (GtkEntry *entry);
71 };
72
73 GType           e_categories_editor_get_type    (void);
74 GtkWidget *     e_categories_editor_new         (void);
75 gchar *         e_categories_editor_get_categories
76                                                 (ECategoriesEditor *editor);
77 void            e_categories_editor_set_categories
78                                                 (ECategoriesEditor *editor,
79                                                  const gchar *categories);
80 gboolean        e_categories_editor_get_entry_visible
81                                                 (ECategoriesEditor *editor);
82 void            e_categories_editor_set_entry_visible
83                                                 (ECategoriesEditor *editor,
84                                                  gboolean entry_visible);
85
86 G_END_DECLS
87
88 #endif /* E_CATEGORIES_EDITOR_H */