Debian Codegraph @

src/Gui/TreeParams.h

raw
1 /****************************************************************************
2 * Copyright (c) 2020 Zheng Lei (realthunder) <[email protected]> *
3 * *
4 * This file is part of the FreeCAD CAx development system. *
5 * *
6 * This library is free software; you can redistribute it and/or *
7 * modify it under the terms of the GNU Library General Public *
8 * License as published by the Free Software Foundation; either *
9 * version 2 of the License, or (at your option) any later version. *
10 * *
11 * This library is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU Library General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU Library General Public *
17 * License along with this library; see the file COPYING.LIB. If not, *
18 * write to the Free Software Foundation, Inc., 59 Temple Place, *
19 * Suite 330, Boston, MA 02111-1307, USA *
20 * *
21 ****************************************************************************/
22
23 #ifndef GUI_TREE_PARAMS_H
24 #define GUI_TREE_PARAMS_H
25
26 /*[[[cog
27 import TreeParams
28 TreeParams.declare_begin()
29 ]]]*/
30
31 // Auto generated code (Tools/params_utils.py:82)
32 #include <Base/Parameter.h>
33
34
35 // Auto generated code (Tools/params_utils.py:90)
36 namespace Gui
37 {
38 /** Convenient class to obtain tree view related parameters
39
40 * The parameters are under group "User parameter:BaseApp/Preferences/TreeView"
41 *
42 * This class is auto generated by Gui/TreeParams.py. Modify that file
43 * instead of this one, if you want to add any parameter. You need
44 * to install Cog Python package for code generation:
45 * @code
46 * pip install cogapp
47 * @endcode
48 *
49 * Once modified, you can regenerate the header and the source file,
50 * @code
51 * python3 -m cogapp -r Gui/TreeParams.h Tree.cpp
52 * @endcode
53 *
54 * You can add a new parameter by adding lines in Gui/TreeParams.py. Available
55 * parameter types are 'Int, UInt, String, Bool, Float'. For example, to add
56 * a new Int type parameter,
57 * @code
58 * ParamInt(parameter_name, default_value, documentation, on_change=False)
59 * @endcode
60 *
61 * If there is special handling on parameter change, pass in on_change=True.
62 * And you need to provide a function implementation in Tree.cpp with
63 * the following signature.
64 * @code
65 * void TreeParams:on<parameter_name>Changed()
66 * @endcode
67 */
68 class GuiExport TreeParams
69 {
70 public:
71 static ParameterGrp::handle getHandle();
72
73 // Auto generated code (Tools/params_utils.py:138)
74 //@{
75 /// Accessor for parameter SyncSelection
76 static const bool& getSyncSelection();
77 static const bool& defaultSyncSelection();
78 static void removeSyncSelection();
79 static void setSyncSelection(const bool& v);
80 static const char* docSyncSelection();
81 static void onSyncSelectionChanged();
82 //@}
83
84 // Auto generated code (Tools/params_utils.py:138)
85 //@{
86 /// Accessor for parameter CheckBoxesSelection
87 static const bool& getCheckBoxesSelection();
88 static const bool& defaultCheckBoxesSelection();
89 static void removeCheckBoxesSelection();
90 static void setCheckBoxesSelection(const bool& v);
91 static const char* docCheckBoxesSelection();
92 static void onCheckBoxesSelectionChanged();
93 //@}
94
95 // Auto generated code (Tools/params_utils.py:138)
96 //@{
97 /// Accessor for parameter SyncView
98 static const bool& getSyncView();
99 static const bool& defaultSyncView();
100 static void removeSyncView();
101 static void setSyncView(const bool& v);
102 static const char* docSyncView();
103 //@}
104
105 // Auto generated code (Tools/params_utils.py:138)
106 //@{
107 /// Accessor for parameter PreSelection
108 static const bool& getPreSelection();
109 static const bool& defaultPreSelection();
110 static void removePreSelection();
111 static void setPreSelection(const bool& v);
112 static const char* docPreSelection();
113 //@}
114
115 // Auto generated code (Tools/params_utils.py:138)
116 //@{
117 /// Accessor for parameter SyncPlacement
118 static const bool& getSyncPlacement();
119 static const bool& defaultSyncPlacement();
120 static void removeSyncPlacement();
121 static void setSyncPlacement(const bool& v);
122 static const char* docSyncPlacement();
123 //@}
124
125 // Auto generated code (Tools/params_utils.py:138)
126 //@{
127 /// Accessor for parameter RecordSelection
128 static const bool& getRecordSelection();
129 static const bool& defaultRecordSelection();
130 static void removeRecordSelection();
131 static void setRecordSelection(const bool& v);
132 static const char* docRecordSelection();
133 //@}
134
135 // Auto generated code (Tools/params_utils.py:138)
136 //@{
137 /// Accessor for parameter DocumentMode
138 static const long& getDocumentMode();
139 static const long& defaultDocumentMode();
140 static void removeDocumentMode();
141 static void setDocumentMode(const long& v);
142 static const char* docDocumentMode();
143 static void onDocumentModeChanged();
144 //@}
145
146 // Auto generated code (Tools/params_utils.py:138)
147 //@{
148 /// Accessor for parameter StatusTimeout
149 static const long& getStatusTimeout();
150 static const long& defaultStatusTimeout();
151 static void removeStatusTimeout();
152 static void setStatusTimeout(const long& v);
153 static const char* docStatusTimeout();
154 //@}
155
156 // Auto generated code (Tools/params_utils.py:138)
157 //@{
158 /// Accessor for parameter SelectionTimeout
159 static const long& getSelectionTimeout();
160 static const long& defaultSelectionTimeout();
161 static void removeSelectionTimeout();
162 static void setSelectionTimeout(const long& v);
163 static const char* docSelectionTimeout();
164 //@}
165
166 // Auto generated code (Tools/params_utils.py:138)
167 //@{
168 /// Accessor for parameter PreSelectionTimeout
169 static const long& getPreSelectionTimeout();
170 static const long& defaultPreSelectionTimeout();
171 static void removePreSelectionTimeout();
172 static void setPreSelectionTimeout(const long& v);
173 static const char* docPreSelectionTimeout();
174 //@}
175
176 // Auto generated code (Tools/params_utils.py:138)
177 //@{
178 /// Accessor for parameter PreSelectionDelay
179 static const long& getPreSelectionDelay();
180 static const long& defaultPreSelectionDelay();
181 static void removePreSelectionDelay();
182 static void setPreSelectionDelay(const long& v);
183 static const char* docPreSelectionDelay();
184 //@}
185
186 // Auto generated code (Tools/params_utils.py:138)
187 //@{
188 /// Accessor for parameter PreSelectionMinDelay
189 static const long& getPreSelectionMinDelay();
190 static const long& defaultPreSelectionMinDelay();
191 static void removePreSelectionMinDelay();
192 static void setPreSelectionMinDelay(const long& v);
193 static const char* docPreSelectionMinDelay();
194 //@}
195
196 // Auto generated code (Tools/params_utils.py:138)
197 //@{
198 /// Accessor for parameter RecomputeOnDrop
199 static const bool& getRecomputeOnDrop();
200 static const bool& defaultRecomputeOnDrop();
201 static void removeRecomputeOnDrop();
202 static void setRecomputeOnDrop(const bool& v);
203 static const char* docRecomputeOnDrop();
204 //@}
205
206 // Auto generated code (Tools/params_utils.py:138)
207 //@{
208 /// Accessor for parameter KeepRootOrder
209 static const bool& getKeepRootOrder();
210 static const bool& defaultKeepRootOrder();
211 static void removeKeepRootOrder();
212 static void setKeepRootOrder(const bool& v);
213 static const char* docKeepRootOrder();
214 //@}
215
216 // Auto generated code (Tools/params_utils.py:138)
217 //@{
218 /// Accessor for parameter TreeActiveAutoExpand
219 static const bool& getTreeActiveAutoExpand();
220 static const bool& defaultTreeActiveAutoExpand();
221 static void removeTreeActiveAutoExpand();
222 static void setTreeActiveAutoExpand(const bool& v);
223 static const char* docTreeActiveAutoExpand();
224 //@}
225
226 // Auto generated code (Tools/params_utils.py:138)
227 //@{
228 /// Accessor for parameter TreeActiveColor
229 static const unsigned long& getTreeActiveColor();
230 static const unsigned long& defaultTreeActiveColor();
231 static void removeTreeActiveColor();
232 static void setTreeActiveColor(const unsigned long& v);
233 static const char* docTreeActiveColor();
234 static void onTreeActiveColorChanged();
235 //@}
236
237 // Auto generated code (Tools/params_utils.py:138)
238 //@{
239 /// Accessor for parameter TreeEditColor
240 static const unsigned long& getTreeEditColor();
241 static const unsigned long& defaultTreeEditColor();
242 static void removeTreeEditColor();
243 static void setTreeEditColor(const unsigned long& v);
244 static const char* docTreeEditColor();
245 static void onTreeEditColorChanged();
246 //@}
247
248 // Auto generated code (Tools/params_utils.py:138)
249 //@{
250 /// Accessor for parameter SelectingGroupColor
251 static const unsigned long& getSelectingGroupColor();
252 static const unsigned long& defaultSelectingGroupColor();
253 static void removeSelectingGroupColor();
254 static void setSelectingGroupColor(const unsigned long& v);
255 static const char* docSelectingGroupColor();
256 static void onSelectingGroupColorChanged();
257 //@}
258
259 // Auto generated code (Tools/params_utils.py:138)
260 //@{
261 /// Accessor for parameter TreeActiveBold
262 static const bool& getTreeActiveBold();
263 static const bool& defaultTreeActiveBold();
264 static void removeTreeActiveBold();
265 static void setTreeActiveBold(const bool& v);
266 static const char* docTreeActiveBold();
267 static void onTreeActiveBoldChanged();
268 //@}
269
270 // Auto generated code (Tools/params_utils.py:138)
271 //@{
272 /// Accessor for parameter TreeActiveItalic
273 static const bool& getTreeActiveItalic();
274 static const bool& defaultTreeActiveItalic();
275 static void removeTreeActiveItalic();
276 static void setTreeActiveItalic(const bool& v);
277 static const char* docTreeActiveItalic();
278 static void onTreeActiveItalicChanged();
279 //@}
280
281 // Auto generated code (Tools/params_utils.py:138)
282 //@{
283 /// Accessor for parameter TreeActiveUnderlined
284 static const bool& getTreeActiveUnderlined();
285 static const bool& defaultTreeActiveUnderlined();
286 static void removeTreeActiveUnderlined();
287 static void setTreeActiveUnderlined(const bool& v);
288 static const char* docTreeActiveUnderlined();
289 static void onTreeActiveUnderlinedChanged();
290 //@}
291
292 // Auto generated code (Tools/params_utils.py:138)
293 //@{
294 /// Accessor for parameter TreeActiveOverlined
295 static const bool& getTreeActiveOverlined();
296 static const bool& defaultTreeActiveOverlined();
297 static void removeTreeActiveOverlined();
298 static void setTreeActiveOverlined(const bool& v);
299 static const char* docTreeActiveOverlined();
300 static void onTreeActiveOverlinedChanged();
301 //@}
302
303 // Auto generated code (Tools/params_utils.py:138)
304 //@{
305 /// Accessor for parameter Indentation
306 static const long& getIndentation();
307 static const long& defaultIndentation();
308 static void removeIndentation();
309 static void setIndentation(const long& v);
310 static const char* docIndentation();
311 static void onIndentationChanged();
312 //@}
313
314 // Auto generated code (Tools/params_utils.py:138)
315 //@{
316 /// Accessor for parameter LabelExpression
317 static const bool& getLabelExpression();
318 static const bool& defaultLabelExpression();
319 static void removeLabelExpression();
320 static void setLabelExpression(const bool& v);
321 static const char* docLabelExpression();
322 //@}
323
324 // Auto generated code (Tools/params_utils.py:138)
325 //@{
326 /// Accessor for parameter IconSize
327 static const long& getIconSize();
328 static const long& defaultIconSize();
329 static void removeIconSize();
330 static void setIconSize(const long& v);
331 static const char* docIconSize();
332 static void onIconSizeChanged();
333 //@}
334
335 // Auto generated code (Tools/params_utils.py:138)
336 //@{
337 /// Accessor for parameter FontSize
338 static const long& getFontSize();
339 static const long& defaultFontSize();
340 static void removeFontSize();
341 static void setFontSize(const long& v);
342 static const char* docFontSize();
343 static void onFontSizeChanged();
344 //@}
345
346 // Auto generated code (Tools/params_utils.py:138)
347 //@{
348 /// Accessor for parameter ItemSpacing
349 static const long& getItemSpacing();
350 static const long& defaultItemSpacing();
351 static void removeItemSpacing();
352 static void setItemSpacing(const long& v);
353 static const char* docItemSpacing();
354 static void onItemSpacingChanged();
355 //@}
356
357 // Auto generated code (Tools/params_utils.py:138)
358 //@{
359 /// Accessor for parameter ItemBackground
360 ///
361 /// Tree view item background. Only effective in overlay.
362 static const unsigned long& getItemBackground();
363 static const unsigned long& defaultItemBackground();
364 static void removeItemBackground();
365 static void setItemBackground(const unsigned long& v);
366 static const char* docItemBackground();
367 static void onItemBackgroundChanged();
368 //@}
369
370 // Auto generated code (Tools/params_utils.py:138)
371 //@{
372 /// Accessor for parameter ItemBackgroundPadding
373 ///
374 /// Tree view item background padding.
375 static const long& getItemBackgroundPadding();
376 static const long& defaultItemBackgroundPadding();
377 static void removeItemBackgroundPadding();
378 static void setItemBackgroundPadding(const long& v);
379 static const char* docItemBackgroundPadding();
380 static void onItemBackgroundPaddingChanged();
381 //@}
382
383 // Auto generated code (Tools/params_utils.py:138)
384 //@{
385 /// Accessor for parameter HideColumn
386 ///
387 /// Hide extra tree view column for item description.
388 static const bool& getHideColumn();
389 static const bool& defaultHideColumn();
390 static void removeHideColumn();
391 static void setHideColumn(const bool& v);
392 static const char* docHideColumn();
393 static void onHideColumnChanged();
394 //@}
395
396 // Auto generated code (Tools/params_utils.py:138)
397 //@{
398 /// Accessor for parameter HideInternalNames
399 ///
400 /// Hide extra tree view column - Internal Names.
401 static const bool& getHideInternalNames();
402 static const bool& defaultHideInternalNames();
403 static void removeHideInternalNames();
404 static void setHideInternalNames(const bool& v);
405 static const char* docHideInternalNames();
406 static void onHideInternalNamesChanged();
407 //@}
408
409 // Auto generated code (Tools/params_utils.py:138)
410 //@{
411 /// Accessor for parameter HideScrollBar
412 ///
413 /// Hide tree view scroll bar in dock overlay.
414 static const bool& getHideScrollBar();
415 static const bool& defaultHideScrollBar();
416 static void removeHideScrollBar();
417 static void setHideScrollBar(const bool& v);
418 static const char* docHideScrollBar();
419 //@}
420
421 // Auto generated code (Tools/params_utils.py:138)
422 //@{
423 /// Accessor for parameter HideHeaderView
424 ///
425 /// Hide tree view header view in dock overlay.
426 static const bool& getHideHeaderView();
427 static const bool& defaultHideHeaderView();
428 static void removeHideHeaderView();
429 static void setHideHeaderView(const bool& v);
430 static const char* docHideHeaderView();
431 //@}
432
433 // Auto generated code (Tools/params_utils.py:138)
434 //@{
435 /// Accessor for parameter ResizableColumn
436 ///
437 /// Allow tree view columns to be manually resized.
438 static const bool& getResizableColumn();
439 static const bool& defaultResizableColumn();
440 static void removeResizableColumn();
441 static void setResizableColumn(const bool& v);
442 static const char* docResizableColumn();
443 static void onResizableColumnChanged();
444 //@}
445
446 // Auto generated code (Tools/params_utils.py:138)
447 //@{
448 /// Accessor for parameter ColumnSize1
449 static const long& getColumnSize1();
450 static const long& defaultColumnSize1();
451 static void removeColumnSize1();
452 static void setColumnSize1(const long& v);
453 static const char* docColumnSize1();
454 //@}
455
456 // Auto generated code (Tools/params_utils.py:138)
457 //@{
458 /// Accessor for parameter ColumnSize2
459 static const long& getColumnSize2();
460 static const long& defaultColumnSize2();
461 static void removeColumnSize2();
462 static void setColumnSize2(const long& v);
463 static const char* docColumnSize2();
464 //@}
465
466 // Auto generated code (Tools/params_utils.py:138)
467 //@{
468 /// Accessor for parameter ColumnSize3
469 static const long& getColumnSize3();
470 static const long& defaultColumnSize3();
471 static void removeColumnSize3();
472 static void setColumnSize3(const long& v);
473 static const char* docColumnSize3();
474 //@}
475
476 // Auto generated code (Tools/params_utils.py:138)
477 //@{
478 /// Accessor for parameter TreeToolTipIcon
479 static const bool& getTreeToolTipIcon();
480 static const bool& defaultTreeToolTipIcon();
481 static void removeTreeToolTipIcon();
482 static void setTreeToolTipIcon(const bool& v);
483 static const char* docTreeToolTipIcon();
484 //@}
485
486 // Auto generated code (Tools/params_utils.py:138)
487 //@{
488 /// Accessor for parameter VisibilityIcon
489 ///
490 /// If enabled, show an eye icon before the tree view items, showing the items visibility
491 /// status. When clicked the visibility is toggled
492 static const bool& getVisibilityIcon();
493 static const bool& defaultVisibilityIcon();
494 static void removeVisibilityIcon();
495 static void setVisibilityIcon(const bool& v);
496 static const char* docVisibilityIcon();
497 static void onVisibilityIconChanged();
498 //@}
499 //[[[end]]]
500
501 static void refreshTreeViews();
502
503 /*[[[cog
504 TreeParams.declare_end()
505 ]]]*/
506
507 // Auto generated code (Tools/params_utils.py:178)
508 }; // class TreeParams
509 } // namespace Gui
510 //[[[end]]]
511
512 #endif // GUI_TREE_PARAMS_H