2
* Copyright (c) 2011 Red Hat, Inc.
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU Lesser General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or (at your
7
* option) any later version.
9
* This program is distributed in the hope that it will be useful, but
10
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
12
* License for more details.
14
* You should have received a copy of the GNU Lesser General Public License
15
* along with this program; if not, write to the Free Software Foundation,
16
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
* Author: Cosimo Cecchi <cosimoc@redhat.com>
22
#ifndef __GD_MAIN_VIEW_H__
23
#define __GD_MAIN_VIEW_H__
25
#include <glib-object.h>
31
#define GD_TYPE_MAIN_VIEW gd_main_view_get_type()
33
#define GD_MAIN_VIEW(obj) \
34
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \
35
GD_TYPE_MAIN_VIEW, GdMainView))
37
#define GD_MAIN_VIEW_CLASS(klass) \
38
(G_TYPE_CHECK_CLASS_CAST ((klass), \
39
GD_TYPE_MAIN_VIEW, GdMainViewIface))
41
#define GD_IS_MAIN_VIEW(obj) \
42
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
45
#define GD_IS_MAIN_VIEW_CLASS(klass) \
46
(G_TYPE_CHECK_CLASS_TYPE ((klass), \
49
#define GD_MAIN_VIEW_GET_IFACE(obj) \
50
(G_TYPE_INSTANCE_GET_INTERFACE ((obj), \
51
GD_TYPE_MAIN_VIEW, GdMainViewIface))
53
typedef struct _GdMainView GdMainView;
54
typedef struct _GdMainViewClass GdMainViewClass;
55
typedef struct _GdMainViewPrivate GdMainViewPrivate;
63
GtkScrolledWindow parent;
65
GdMainViewPrivate *priv;
68
struct _GdMainViewClass {
69
GtkScrolledWindowClass parent_class;
72
GType gd_main_view_get_type (void) G_GNUC_CONST;
74
GdMainView * gd_main_view_new (GdMainViewType type);
75
void gd_main_view_set_view_type (GdMainView *self,
77
GdMainViewType gd_main_view_get_view_type (GdMainView *self);
79
void gd_main_view_set_selection_mode (GdMainView *self,
80
gboolean selection_mode);
81
gboolean gd_main_view_get_selection_mode (GdMainView *self);
83
GList * gd_main_view_get_selection (GdMainView *self);
85
void gd_main_view_select_all (GdMainView *self);
86
void gd_main_view_unselect_all (GdMainView *self);
88
GtkTreeModel * gd_main_view_get_model (GdMainView *self);
89
void gd_main_view_set_model (GdMainView *self,
92
GtkWidget * gd_main_view_get_generic_view (GdMainView *self);
96
#endif /* __GD_MAIN_VIEW_H__ */