1 /*
2  * Nautilus-Actions
3  * A Nautilus extension which offers configurable context menu actions.
4  *
5  * Copyright (C) 2005 The GNOME Foundation
6  * Copyright (C) 2006-2008 Frederic Ruaudel and others (see AUTHORS)
7  * Copyright (C) 2009-2014 Pierre Wieser and others (see AUTHORS)
8  *
9  * Nautilus-Actions is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License as
11  * published by the Free Software Foundation; either version 2 of
12  * the License, or (at your option) any later version.
13  *
14  * Nautilus-Actions is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with Nautilus-Actions; see the file COPYING. If not, see
21  * <http://www.gnu.org/licenses/>.
22  *
23  * Authors:
24  *   Frederic Ruaudel <grumz@grumz.net>
25  *   Rodrigo Moya <rodrigo@gnome-db.org>
26  *   Pierre Wieser <pwieser@trychlos.org>
27  *   ... and many others (see AUTHORS)
28  */
29 
30 #ifndef __NAUTILUS_ACTIONS_API_NA_IFACTORY_OBJECT_DATA_H__
31 #define __NAUTILUS_ACTIONS_API_NA_IFACTORY_OBJECT_DATA_H__
32 
33 /**
34  * SECTION: data-name
35  * @title: Constants
36  * @short_description: The Data Factory Constant Definitions
37  * @include: nautilus-actions/na-ifactory-object-data.h
38  *
39  * Each elementary data get its own name here.
40  *
41  * Through #NADataDef and #NADataGroup definitions, each #NAObjectItem
42  * derived object which implement the #NAIFactoryObject interface will
43  * dynamically define a property for each attached elementary data.
44  */
45 
46 #include <glib.h>
47 
48 G_BEGIN_DECLS
49 
50 /**
51  * NA_FACTORY_OBJECT_ID_GROUP:
52  *
53  * #NAObjectId common data.
54  */
55 #define NA_FACTORY_OBJECT_ID_GROUP          "na-factory-group-id"
56 #define NAFO_DATA_ID                        "na-factory-data-id"
57 #define NAFO_DATA_LABEL                     "na-factory-data-label"
58 #define NAFO_DATA_PARENT                    "na-factory-data-parent"
59 #define NAFO_DATA_CONDITIONS                "na-factory-data-conditions"
60 
61 /**
62  * NA_FACTORY_OBJECT_ITEM_GROUP:
63  *
64  * #NAObjectItem common data.
65  */
66 #define NA_FACTORY_OBJECT_ITEM_GROUP        "na-factory-group-item"
67 #define NAFO_DATA_IVERSION                  "na-factory-data-iversion"
68 #define NAFO_DATA_TYPE                      "na-factory-data-type"
69 #define NAFO_DATA_TOOLTIP                   "na-factory-data-tooltip"
70 #define NAFO_DATA_ICON                      "na-factory-data-icon"
71 #define NAFO_DATA_ICON_NOLOC                "na-factory-data-unlocalized-icon"
72 #define NAFO_DATA_DESCRIPTION               "na-factory-data-description"
73 #define NAFO_DATA_SHORTCUT                  "na-factory-data-shortcut"
74 #define NAFO_DATA_SUBITEMS                  "na-factory-data-items"
75 #define NAFO_DATA_SUBITEMS_SLIST            "na-factory-data-items-slist"
76 #define NAFO_DATA_ENABLED                   "na-factory-data-enabled"
77 #define NAFO_DATA_READONLY                  "na-factory-data-readonly"
78 #define NAFO_DATA_PROVIDER                  "na-factory-data-provider"
79 #define NAFO_DATA_PROVIDER_DATA             "na-factory-data-provider-data"
80 
81 /**
82  * NA_FACTORY_OBJECT_ACTION_GROUP:
83  *
84  * #NAObjectAction specific datas.
85  */
86 #define NA_FACTORY_OBJECT_ACTION_GROUP      "na-factory-group-action"
87 #define NAFO_DATA_VERSION                   "na-factory-data-version"
88 #define NAFO_DATA_TARGET_SELECTION          "na-factory-data-target-selection"
89 #define NAFO_DATA_TARGET_LOCATION           "na-factory-data-target-location"
90 #define NAFO_DATA_TARGET_TOOLBAR            "na-factory-data-target-toolbar"
91 #define NAFO_DATA_TOOLBAR_LABEL             "na-factory-data-toolbar-label"
92 #define NAFO_DATA_TOOLBAR_SAME_LABEL        "na-factory-data-toolbar-same-label"
93 #define NAFO_DATA_LAST_ALLOCATED            "na-factory-data-last-allocated"
94 
95 /**
96  * NA_FACTORY_ACTION_V1_GROUP:
97  *
98  * A group of datas which are specific to v 1 actions. It happens to be
99  * empty as all these datas have been alter embedded in #NAObjectItem
100  * data group.
101  */
102 #define NA_FACTORY_ACTION_V1_GROUP          "na-factory-group-action-v1"
103 
104 /**
105  * NA_FACTORY_OBJECT_MENU_GROUP:
106  *
107  * #NAObjectMenu specific datas. It happens to be empty as the definition
108  * of a menu is very close of those of an action.
109  */
110 #define NA_FACTORY_OBJECT_MENU_GROUP        "na-factory-group-menu"
111 
112 /**
113  * NA_FACTORY_OBJECT_PROFILE_GROUP:
114  *
115  * #NAObjectProfile specific datas.
116  */
117 #define NA_FACTORY_OBJECT_PROFILE_GROUP     "na-factory-group-profile"
118 #define NAFO_DATA_DESCNAME                  "na-factory-data-descname"
119 #define NAFO_DATA_DESCNAME_NOLOC            "na-factory-data-unlocalized-descname"
120 #define NAFO_DATA_PATH                      "na-factory-data-path"
121 #define NAFO_DATA_PARAMETERS                "na-factory-data-parameters"
122 #define NAFO_DATA_WORKING_DIR               "na-factory-data-working-dir"
123 #define NAFO_DATA_EXECUTION_MODE            "na-factory-data-execution-mode"
124 #define NAFO_DATA_STARTUP_NOTIFY            "na-factory-data-startup-notify"
125 #define NAFO_DATA_STARTUP_WMCLASS           "na-factory-data-startup-wm-class"
126 #define NAFO_DATA_EXECUTE_AS                "na-factory-data-execute-as"
127 
128 /**
129  * NA_FACTORY_OBJECT_CONDITIONS_GROUP:
130  *
131  * The datas which determine the display conditions of a menu or an action.
132  *
133  * @see_also: #NAIContext interface.
134  */
135 #define NA_FACTORY_OBJECT_CONDITIONS_GROUP  "na-factory-group-conditions"
136 #define NAFO_DATA_BASENAMES                 "na-factory-data-basenames"
137 #define NAFO_DATA_MATCHCASE                 "na-factory-data-matchcase"
138 #define NAFO_DATA_MIMETYPES                 "na-factory-data-mimetypes"
139 #define NAFO_DATA_MIMETYPES_IS_ALL             "na-factory-data-all-mimetypes"
140 #define NAFO_DATA_ISFILE                    "na-factory-data-isfile"
141 #define NAFO_DATA_ISDIR                     "na-factory-data-isdir"
142 #define NAFO_DATA_MULTIPLE                  "na-factory-data-multiple"
143 #define NAFO_DATA_SCHEMES                   "na-factory-data-schemes"
144 #define NAFO_DATA_FOLDERS                   "na-factory-data-folders"
145 #define NAFO_DATA_SELECTION_COUNT           "na-factory-data-selection-count"
146 #define NAFO_DATA_ONLY_SHOW                 "na-factory-data-only-show-in"
147 #define NAFO_DATA_NOT_SHOW                  "na-factory-data-not-show-in"
148 #define NAFO_DATA_TRY_EXEC                  "na-factory-data-try-exec"
149 #define NAFO_DATA_SHOW_IF_REGISTERED        "na-factory-data-show-if-registered"
150 #define NAFO_DATA_SHOW_IF_TRUE              "na-factory-data-show-if-true"
151 #define NAFO_DATA_SHOW_IF_RUNNING           "na-factory-data-show-if-running"
152 #define NAFO_DATA_CAPABILITITES             "na-factory-data-capabilitites"
153 
154 G_END_DECLS
155 
156 #endif /* __NAUTILUS_ACTIONS_API_NA_IFACTORY_OBJECT_DATA_H__ */
157