Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / libedataserverui / e-name-selector-list.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2
3 /* e-name-selector-list.h - Single-line text entry widget for EDestinations.
4  *
5  * Copyright (C) 2004 Novell, Inc.
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of version 2 of the GNU General Public
9  * License as published by the Free Software Foundation.
10  *
11  * This program 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  * General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  *
21  * Authors: Srinivasa Ragavan <sragavan@novell.com>
22  */
23
24 #ifndef E_NAME_SELECTOR_LIST_H
25 #define E_NAME_SELECTOR_LIST_H
26
27 #include <gtk/gtkentry.h>
28 #include <gtk/gtkwindow.h>
29 #include <libebook/e-contact.h>
30 #include <libedataserverui/e-contact-store.h>
31 #include <libedataserverui/e-destination-store.h>
32 #include <libedataserverui/e-tree-model-generator.h>
33 #include <libedataserverui/e-name-selector-entry.h>
34
35 G_BEGIN_DECLS
36
37 #define E_TYPE_NAME_SELECTOR_LIST            (e_name_selector_list_get_type ())
38 #define E_NAME_SELECTOR_LIST(obj)            (GTK_CHECK_CAST ((obj), e_name_selector_list_get_type (), ENameSelectorEntry))
39 #define E_NAME_SELECTOR_LIST_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), e_name_selector_list_get_type (), ENameSelectorEntryClass))
40 #define E_IS_NAME_SELECTOR_LIST(obj)         (GTK_CHECK_TYPE (obj, e_name_selector_list_get_type ()))
41 #define E_IS_NAME_SELECTOR_LIST_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), e_name_selector_list_get_type ()))
42 #define E_NAME_SELECTOR_LIST_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), E_NAME_SELECTOR_LIST_TYPE, ENameSelectorEntryClass))
43
44 typedef struct _ENameSelectorList      ENameSelectorList;
45 typedef struct _ENameSelectorListClass ENameSelectorListClass;
46
47 struct _ENameSelectorListClass {
48         ENameSelectorEntryClass parent_class;
49
50         /* Signals */
51 };
52
53 struct _ENameSelectorList {
54         ENameSelectorEntry      parent;
55
56         GtkWindow *popup;
57         GtkWidget *tree_view;
58         GtkWidget *menu;
59         EDestinationStore *store;
60         int rows;
61 };
62
63 GType                    e_name_selector_list_get_type (void);
64 ENameSelectorList       *e_name_selector_list_new (void);
65 void                    e_name_selector_list_expand_clicked (ENameSelectorList *list); 
66
67 G_END_DECLS
68 #endif