1 /*
2  * Copyright (C) 2009 - 2011 Vivien Malerba <malerba@gnome-db.org>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library 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  * Lesser 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 St, Fifth Floor,
17  * Boston, MA  02110-1301, USA.
18  */
19 
20 #ifndef __GDAUI_ENUMS__
21 #define __GDAUI_ENUMS__
22 
23 /* enum for the different modes of action */
24 typedef enum {
25 	/* navigation modes */
26 	GDAUI_ACTION_NAVIGATION_ARROWS       = 1 << 0,
27 	GDAUI_ACTION_NAVIGATION_SCROLL       = 1 << 1,
28 
29 	/* modifications */
30 	GDAUI_ACTION_MODIF_AUTO_COMMIT       = 1 << 2,
31 	GDAUI_ACTION_MODIF_COMMIT_IMMEDIATE  = 1 << 3,
32 	GDAUI_ACTION_ASK_CONFIRM_UPDATE      = 1 << 4,
33 	GDAUI_ACTION_ASK_CONFIRM_DELETE      = 1 << 5,
34 	GDAUI_ACTION_ASK_CONFIRM_INSERT      = 1 << 6,
35 
36 	/* Error reporting */
37 	GDAUI_ACTION_REPORT_ERROR            = 1 << 7
38 } GdauiActionMode;
39 
40 /* enum for the different possible actions */
41 typedef enum {
42 	/* actions in GdauiDataWidget widgets */
43 	GDAUI_ACTION_NEW_DATA,
44 	GDAUI_ACTION_WRITE_MODIFIED_DATA,
45 	GDAUI_ACTION_DELETE_SELECTED_DATA,
46 	GDAUI_ACTION_UNDELETE_SELECTED_DATA,
47 	GDAUI_ACTION_RESET_DATA,
48 	GDAUI_ACTION_MOVE_FIRST_RECORD,
49 	GDAUI_ACTION_MOVE_PREV_RECORD,
50 	GDAUI_ACTION_MOVE_NEXT_RECORD,
51 	GDAUI_ACTION_MOVE_LAST_RECORD,
52 	GDAUI_ACTION_MOVE_FIRST_CHUNCK,
53         GDAUI_ACTION_MOVE_PREV_CHUNCK,
54         GDAUI_ACTION_MOVE_NEXT_CHUNCK,
55         GDAUI_ACTION_MOVE_LAST_CHUNCK
56 } GdauiAction;
57 
58 /* possible predefined attribute names for gda_holder_get_attribute() or gda_column_get_attribute() */
59 #define GDAUI_ATTRIBUTE_PLUGIN "__gdaui_attr_plugin" /* G_TYPE_STRING expected */
60 
61 #endif
62 
63 
64 
65