]> SALOME platform Git repositories - modules/shaper.git/blob - src/Config/Config_Keywords.h
Salome HOME
Get rid of compilation warnings. Part I.
[modules/shaper.git] / src / Config / Config_Keywords.h
1 // Copyright (C) 2014-2020  CEA/DEN, EDF R&D
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 #ifndef CONFIG_KEYWORDS_H_
21 #define CONFIG_KEYWORDS_H_
22
23 #if defined __GNUC__ || defined __clang__
24 #define MAYBE_UNUSED __attribute__((unused))
25 #else
26 #define MAYBE_UNUSED
27 #endif
28
29 /*
30  * Hardcoded xml entities of plugin-*.xml
31  */
32 MAYBE_UNUSED const static char* NODE_WORKBENCH = "workbench";
33 MAYBE_UNUSED const static char* NODE_GROUP = "group";
34 MAYBE_UNUSED const static char* NODE_FEATURE = "feature";
35 MAYBE_UNUSED const static char* NODE_SOURCE = "source";
36 MAYBE_UNUSED const static char* NODE_VALIDATOR = "validator";
37 MAYBE_UNUSED const static char* NODE_XMLPARENT = "libxml_parent";
38
39 // Property panels
40 MAYBE_UNUSED const static char* PROPERTY_PANEL_ID = "property_panel_id";
41
42 // Widgets
43 MAYBE_UNUSED const static char* WDG_INFO = "label";
44 MAYBE_UNUSED const static char* WDG_UNDOLABEL = "undo_label";
45 MAYBE_UNUSED const static char* WDG_DOUBLEVALUE = "doublevalue";
46 MAYBE_UNUSED const static char* WDG_DOUBLEVALUELABEL = "labelvalue";
47 MAYBE_UNUSED const static char* WDG_INTEGERVALUE = "integervalue";
48 MAYBE_UNUSED const static char* WDG_BOOLVALUE = "boolvalue";
49 MAYBE_UNUSED const static char* WDG_STRINGVALUE = "stringvalue";
50 MAYBE_UNUSED const static char* WDG_NAMEVALUE = "namevalue";
51 MAYBE_UNUSED const static char* WDG_MULTISELECTOR = "multi_selector";
52 MAYBE_UNUSED const static char* WDG_SHAPE_SELECTOR = "shape_selector";
53 MAYBE_UNUSED const static char* WDG_FEATURE_SELECTOR = "feature_selector";
54 MAYBE_UNUSED const static char* WDG_CONCEALED_OBJECTS_VIEW = "concealed_objects_view";
55 MAYBE_UNUSED const static char* WDG_CHOICE = "choice";
56 MAYBE_UNUSED const static char* WDG_DOUBLEVALUE_EDITOR = "doublevalue_editor";
57 MAYBE_UNUSED const static char* WDG_FILE_SELECTOR= "file_selector";
58 MAYBE_UNUSED const static char* WDG_EXPR_EDITOR = "expr_editor";
59 MAYBE_UNUSED const static char* WDG_PLACE_HOLDER = "placeholder";
60 MAYBE_UNUSED const static char* WDG_ACTION = "action";
61 MAYBE_UNUSED const static char* WDG_POINT_INPUT = "point_input";
62 MAYBE_UNUSED const static char* WDG_SELECTION_FILTERS = "selection_filters";
63
64 // Containers
65 MAYBE_UNUSED const static char* WDG_GROUP = "groupbox";
66 MAYBE_UNUSED const static char* WDG_OPTIONALBOX = "optionalbox";
67 MAYBE_UNUSED const static char* WDG_TOOLBOX = "toolbox";
68 MAYBE_UNUSED const static char* WDG_RADIOBOX = "radiobox";
69 MAYBE_UNUSED const static char* WDG_RADIOBOX_ITEM = "radio";
70 MAYBE_UNUSED const static char* WDG_TOOLBOX_BOX = "box";
71 MAYBE_UNUSED const static char* WDG_SWITCH = "switch";
72 MAYBE_UNUSED const static char* WDG_SWITCH_CASE = "case";
73 MAYBE_UNUSED const static char* WDG_FILTER = "filter";
74
75 // Common properties (xml attributes of nodes)
76 MAYBE_UNUSED const static char* _ID = "id";
77 // NODE_WORKBENCH properties
78 MAYBE_UNUSED const static char* WORKBENCH_DOC = "document";
79 // NODE_SOURCE properties
80 MAYBE_UNUSED const static char* SOURCE_FILE = "path";
81 // NODE_FEATURE properties
82 MAYBE_UNUSED const static char* FEATURE_TOOLTIP = "tooltip";
83 MAYBE_UNUSED const static char* GROUP_TOOLBAR = "toolbar";
84 MAYBE_UNUSED const static char* FEATURE_ICON = "icon";
85 MAYBE_UNUSED const static char* FEATURE_TEXT = "title";
86 MAYBE_UNUSED const static char* HELP_FILE = "helpfile";
87 MAYBE_UNUSED const static char* ABORT_CONFIRMATION = "abort_confirmation";
88 MAYBE_UNUSED const static char* HIDEFACES_PANEL = "hidefaces_panel";
89 MAYBE_UNUSED const static char* FEATURE_KEYSEQUENCE = "keysequence";
90 MAYBE_UNUSED const static char* FEATURE_NESTED = "nested";
91 MAYBE_UNUSED const static char* FEATURE_WHEN_NESTED = "when_nested";
92 MAYBE_UNUSED const static char* FEATURE_WHEN_NESTED_ACCEPT = "accept";
93 MAYBE_UNUSED const static char* FEATURE_WHEN_NESTED_ABORT = "abort";
94 MAYBE_UNUSED const static char* FEATURE_DOC = WORKBENCH_DOC;
95 MAYBE_UNUSED const static char* FEATURE_MODAL = "modal";
96 MAYBE_UNUSED const static char* FEATURE_APPLY_CONTINUE = "apply_continue";
97 MAYBE_UNUSED const static char* FEATURE_AUTO_PREVIEW = "auto_preview";
98 MAYBE_UNUSED const static char* FEATURE_TITLE_IN_TOOLBAR = "titleInToolbar";
99 // NODE_VALIDATOR properties
100 MAYBE_UNUSED const static char* _PARAMETERS = "parameters";
101
102 // Widget (attribute) properties
103 MAYBE_UNUSED const static char* ATTR_TOOLTIP = FEATURE_TOOLTIP;
104 MAYBE_UNUSED const static char* ATTR_ICON = FEATURE_ICON;
105 MAYBE_UNUSED const static char* ATTR_LABEL = "label";
106 MAYBE_UNUSED const static char* ATTR_STYLE_SHEET = "styleSheet";
107 MAYBE_UNUSED const static char* ATTR_HTML_STYLE = "isHTML";
108 MAYBE_UNUSED const static char* ATTR_DEFAULT = "default";
109 MAYBE_UNUSED const static char* ATTR_INTERNAL = "internal";
110 MAYBE_UNUSED const static char* ATTR_OBLIGATORY = "obligatory";
111 MAYBE_UNUSED const static char* ATTR_CONCEALMENT = "concealment";
112 MAYBE_UNUSED const static char* ATTR_USE_RESET = "use_reset";
113 MAYBE_UNUSED const static char* ATTR_GREED = "greed";
114 MAYBE_UNUSED const static char* ATTR_MODIFIED_IN_EDIT = "modified_in_edit";
115 MAYBE_UNUSED const static char* ATTR_MAIN_ARG = "main_argument";
116 MAYBE_UNUSED const static char* ATTR_GEOMETRICAL_SELECTION = "geometrical_selection";
117 MAYBE_UNUSED const static char* ATTR_VISUAL_CHANGED = "change_visual_attributes";
118
119
120 // WDG_INFO properties
121 MAYBE_UNUSED const static char* INFO_WDG_TEXT = FEATURE_TEXT;
122 MAYBE_UNUSED const static char* INFO_WDG_TOOLTIP = FEATURE_TOOLTIP;
123 // WDG_DOUBLEVALUE properties:
124 MAYBE_UNUSED const static char* DOUBLE_WDG_MIN = "min";
125 MAYBE_UNUSED const static char* DOUBLE_WDG_MAX = "max";
126 MAYBE_UNUSED const static char* DOUBLE_WDG_STEP = "step";
127 MAYBE_UNUSED const static char* DOUBLE_WDG_DEFAULT_COMPUTED = "computed";
128 MAYBE_UNUSED const static char* DOUBLE_WDG_ACCEPT_EXPRESSIONS = "accept_expressions";
129 MAYBE_UNUSED const static char* DOUBLE_WDG_ENABLE_VALUE = "enable_value";
130
131 MAYBE_UNUSED const static char* DOUBLE_WDG_ENABLE_VALUE_BY_PREFERENCES = "enable_by_preferences";
132
133 // WDG_TOOLBOX/WDG_SWITCH properties
134 MAYBE_UNUSED const static char* CONTAINER_PAGE_NAME = "title";
135 MAYBE_UNUSED const static char* CONTAINER_PAGE_ICON = "icon";
136
137 /*
138  * Hardcoded xml entities of plugins.xml
139  */
140
141 MAYBE_UNUSED const static char* PLUGIN_FILE = "plugins.xml";
142 MAYBE_UNUSED const static char* NODE_PLUGIN = "plugin";
143 MAYBE_UNUSED const static char* NODE_PLUGINS = "plugins";
144
145 MAYBE_UNUSED const static char* PLUGINS_MODULE = "module";
146 MAYBE_UNUSED const static char* PLUGIN_CONFIG = "configuration";
147 MAYBE_UNUSED const static char* PLUGIN_LIBRARY = "library";
148 MAYBE_UNUSED const static char* PLUGIN_SCRIPT = "script";
149 MAYBE_UNUSED const static char* PLUGIN_DEPENDENCY = "dependency";
150 MAYBE_UNUSED const static char* PLUGIN_USES = "uses";
151
152 /*
153  * Hardcoded xml entities of dataModel.xml
154  */
155 MAYBE_UNUSED const static char* DATAMODEL_FILE = "dataModel.xml";
156 MAYBE_UNUSED const static char* NODE_FOLDER = "folder";
157 MAYBE_UNUSED const static char* FOLDER_NAME = "name";
158 MAYBE_UNUSED const static char* GROUP_TYPE = "group_type";
159 MAYBE_UNUSED const static char* ROOT_DOCUMENT = "root_document";
160 MAYBE_UNUSED const static char* SUB_DOCUMENT = "sub_document";
161 MAYBE_UNUSED const static char* NODE_ICON = "icon";
162 MAYBE_UNUSED const static char* SHOW_EMPTY = "show_empty";
163 MAYBE_UNUSED const static char* LINK_ITEM = "from_result";
164 MAYBE_UNUSED const static char* FOLDER_FEATURES = "folder_features";
165
166 #endif /* CONFIG_KEYWORDS_H_ */