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