Updated Spanish translation
[evolution.git] / e-util / e-selection-model-simple.h
blob81b0063910765a344d431e631d935ba6be694f95
1 /*
3 * This program is free software; you can redistribute it and/or modify it
4 * under the terms of the GNU Lesser General Public License as published by
5 * the Free Software Foundation.
7 * This program is distributed in the hope that it will be useful, but
8 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
9 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
10 * for more details.
12 * You should have received a copy of the GNU Lesser General Public License
13 * along with this program; if not, see <http://www.gnu.org/licenses/>.
16 * Authors:
17 * Chris Lahey <clahey@ximian.com>
19 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
23 #if !defined (__E_UTIL_H_INSIDE__) && !defined (LIBEUTIL_COMPILATION)
24 #error "Only <e-util/e-util.h> should be included directly."
25 #endif
27 #ifndef E_SELECTION_MODEL_SIMPLE_H
28 #define E_SELECTION_MODEL_SIMPLE_H
30 #include <e-util/e-selection-model-array.h>
32 /* Standard GObject macros */
33 #define E_TYPE_SELECTION_MODEL_SIMPLE \
34 (e_selection_model_simple_get_type ())
35 #define E_SELECTION_MODEL_SIMPLE(obj) \
36 (G_TYPE_CHECK_INSTANCE_CAST \
37 ((obj), E_TYPE_SELECTION_MODEL_SIMPLE, ESelectionModelSimple))
38 #define E_SELECTION_MODEL_SIMPLE_CLASS(cls) \
39 (G_TYPE_CHECK_CLASS_CAST \
40 ((cls), E_TYPE_SELECTION_MODEL_SIMPLE, ESelectionModelSimpleClass))
41 #define E_IS_SELECTION_MODEL_SIMPLE(obj) \
42 (G_TYPE_CHECK_INSTANCE_TYPE \
43 ((obj), E_TYPE_SELECTION_MODEL_SIMPLE))
44 #define E_IS_SELECTION_MODEL_SIMPLE_CLASS(cls) \
45 (G_TYPE_CHECK_CLASS_TYPE \
46 ((cls), E_TYPE_SELECTION_MODEL_SIMPLE))
47 #define E_SELECTION_MODEL_SIMPLE_GET_CLASS(obj) \
48 (G_TYPE_INSTANCE_GET_CLASS \
49 ((obj), E_TYPE_SELECTION_MODEL_SIMPLE, ESelectionModelSimpleClass))
51 G_BEGIN_DECLS
53 typedef struct _ESelectionModelSimple ESelectionModelSimple;
54 typedef struct _ESelectionModelSimpleClass ESelectionModelSimpleClass;
56 struct _ESelectionModelSimple {
57 ESelectionModelArray parent;
59 gint row_count;
62 struct _ESelectionModelSimpleClass {
63 ESelectionModelArrayClass parent_class;
66 GType e_selection_model_simple_get_type
67 (void) G_GNUC_CONST;
68 ESelectionModelSimple *
69 e_selection_model_simple_new
70 (void);
71 void e_selection_model_simple_insert_rows
72 (ESelectionModelSimple *selection,
73 gint row,
74 gint count);
75 void e_selection_model_simple_delete_rows
76 (ESelectionModelSimple *selection,
77 gint row,
78 gint count);
79 void e_selection_model_simple_move_row
80 (ESelectionModelSimple *selection,
81 gint old_row,
82 gint new_row);
83 void e_selection_model_simple_set_row_count
84 (ESelectionModelSimple *selection,
85 gint row_count);
87 G_END_DECLS
89 #endif /* E_SELECTION_MODEL_SIMPLE_H */