| 1 |
/**************************************************************************** |
| 2 |
* Copyright (c) 2022 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 |
|
| 24 |
#include "Tree.h" |
| 25 |
|
| 26 |
/*[[[cog |
| 27 |
import TreeParams |
| 28 |
TreeParams.define() |
| 29 |
]]]*/ |
| 30 |
|
| 31 |
// Auto generated code (Tools/params_utils.py:196) |
| 32 |
#include <unordered_map> |
| 33 |
#include <App/Application.h> |
| 34 |
#include <App/DynamicProperty.h> |
| 35 |
#include "TreeParams.h" |
| 36 |
using namespace Gui; |
| 37 |
|
| 38 |
// Auto generated code (Tools/params_utils.py:207) |
| 39 |
namespace |
| 40 |
{ |
| 41 |
class TreeParamsP: public ParameterGrp::ObserverType |
| 42 |
{ |
| 43 |
public: |
| 44 |
ParameterGrp::handle handle; |
| 45 |
std::unordered_map<const char*, void (*)(TreeParamsP*), App::CStringHasher, App::CStringHasher> funcs; |
| 46 |
|
| 47 |
bool SyncSelection; |
| 48 |
bool CheckBoxesSelection; |
| 49 |
bool SyncView; |
| 50 |
bool PreSelection; |
| 51 |
bool SyncPlacement; |
| 52 |
bool RecordSelection; |
| 53 |
long DocumentMode; |
| 54 |
long StatusTimeout; |
| 55 |
long SelectionTimeout; |
| 56 |
long PreSelectionTimeout; |
| 57 |
long PreSelectionDelay; |
| 58 |
long PreSelectionMinDelay; |
| 59 |
bool RecomputeOnDrop; |
| 60 |
bool KeepRootOrder; |
| 61 |
bool TreeActiveAutoExpand; |
| 62 |
unsigned long TreeActiveColor; |
| 63 |
unsigned long TreeEditColor; |
| 64 |
unsigned long SelectingGroupColor; |
| 65 |
bool TreeActiveBold; |
| 66 |
bool TreeActiveItalic; |
| 67 |
bool TreeActiveUnderlined; |
| 68 |
bool TreeActiveOverlined; |
| 69 |
long Indentation; |
| 70 |
bool LabelExpression; |
| 71 |
long IconSize; |
| 72 |
long FontSize; |
| 73 |
long ItemSpacing; |
| 74 |
unsigned long ItemBackground; |
| 75 |
long ItemBackgroundPadding; |
| 76 |
bool HideColumn; |
| 77 |
bool HideInternalNames; |
| 78 |
bool HideScrollBar; |
| 79 |
bool HideHeaderView; |
| 80 |
bool ResizableColumn; |
| 81 |
long ColumnSize1; |
| 82 |
long ColumnSize2; |
| 83 |
long ColumnSize3; |
| 84 |
bool TreeToolTipIcon; |
| 85 |
bool VisibilityIcon; |
| 86 |
|
| 87 |
// Auto generated code (Tools/params_utils.py:245) |
| 88 |
TreeParamsP() |
| 89 |
{ |
| 90 |
handle = App::GetApplication().GetParameterGroupByPath( |
| 91 |
"User parameter:BaseApp/Preferences/TreeView" |
| 92 |
); |
| 93 |
handle->Attach(this); |
| 94 |
|
| 95 |
SyncSelection = handle->GetBool("SyncSelection", true); |
| 96 |
funcs["SyncSelection"] = &TreeParamsP::updateSyncSelection; |
| 97 |
CheckBoxesSelection = handle->GetBool("CheckBoxesSelection", false); |
| 98 |
funcs["CheckBoxesSelection"] = &TreeParamsP::updateCheckBoxesSelection; |
| 99 |
SyncView = handle->GetBool("SyncView", true); |
| 100 |
funcs["SyncView"] = &TreeParamsP::updateSyncView; |
| 101 |
PreSelection = handle->GetBool("PreSelection", true); |
| 102 |
funcs["PreSelection"] = &TreeParamsP::updatePreSelection; |
| 103 |
SyncPlacement = handle->GetBool("SyncPlacement", false); |
| 104 |
funcs["SyncPlacement"] = &TreeParamsP::updateSyncPlacement; |
| 105 |
RecordSelection = handle->GetBool("RecordSelection", true); |
| 106 |
funcs["RecordSelection"] = &TreeParamsP::updateRecordSelection; |
| 107 |
DocumentMode = handle->GetInt("DocumentMode", 2); |
| 108 |
funcs["DocumentMode"] = &TreeParamsP::updateDocumentMode; |
| 109 |
StatusTimeout = handle->GetInt("StatusTimeout", 100); |
| 110 |
funcs["StatusTimeout"] = &TreeParamsP::updateStatusTimeout; |
| 111 |
SelectionTimeout = handle->GetInt("SelectionTimeout", 100); |
| 112 |
funcs["SelectionTimeout"] = &TreeParamsP::updateSelectionTimeout; |
| 113 |
PreSelectionTimeout = handle->GetInt("PreSelectionTimeout", 500); |
| 114 |
funcs["PreSelectionTimeout"] = &TreeParamsP::updatePreSelectionTimeout; |
| 115 |
PreSelectionDelay = handle->GetInt("PreSelectionDelay", 700); |
| 116 |
funcs["PreSelectionDelay"] = &TreeParamsP::updatePreSelectionDelay; |
| 117 |
PreSelectionMinDelay = handle->GetInt("PreSelectionMinDelay", 200); |
| 118 |
funcs["PreSelectionMinDelay"] = &TreeParamsP::updatePreSelectionMinDelay; |
| 119 |
RecomputeOnDrop = handle->GetBool("RecomputeOnDrop", true); |
| 120 |
funcs["RecomputeOnDrop"] = &TreeParamsP::updateRecomputeOnDrop; |
| 121 |
KeepRootOrder = handle->GetBool("KeepRootOrder", true); |
| 122 |
funcs["KeepRootOrder"] = &TreeParamsP::updateKeepRootOrder; |
| 123 |
TreeActiveAutoExpand = handle->GetBool("TreeActiveAutoExpand", true); |
| 124 |
funcs["TreeActiveAutoExpand"] = &TreeParamsP::updateTreeActiveAutoExpand; |
| 125 |
TreeActiveColor = handle->GetUnsigned("TreeActiveColor", 1538528255); |
| 126 |
funcs["TreeActiveColor"] = &TreeParamsP::updateTreeActiveColor; |
| 127 |
TreeEditColor = handle->GetUnsigned("TreeEditColor", 563609599); |
| 128 |
funcs["TreeEditColor"] = &TreeParamsP::updateTreeEditColor; |
| 129 |
SelectingGroupColor = handle->GetUnsigned("SelectingGroupColor", 1082163711); |
| 130 |
funcs["SelectingGroupColor"] = &TreeParamsP::updateSelectingGroupColor; |
| 131 |
TreeActiveBold = handle->GetBool("TreeActiveBold", true); |
| 132 |
funcs["TreeActiveBold"] = &TreeParamsP::updateTreeActiveBold; |
| 133 |
TreeActiveItalic = handle->GetBool("TreeActiveItalic", false); |
| 134 |
funcs["TreeActiveItalic"] = &TreeParamsP::updateTreeActiveItalic; |
| 135 |
TreeActiveUnderlined = handle->GetBool("TreeActiveUnderlined", false); |
| 136 |
funcs["TreeActiveUnderlined"] = &TreeParamsP::updateTreeActiveUnderlined; |
| 137 |
TreeActiveOverlined = handle->GetBool("TreeActiveOverlined", false); |
| 138 |
funcs["TreeActiveOverlined"] = &TreeParamsP::updateTreeActiveOverlined; |
| 139 |
Indentation = handle->GetInt("Indentation", 0); |
| 140 |
funcs["Indentation"] = &TreeParamsP::updateIndentation; |
| 141 |
LabelExpression = handle->GetBool("LabelExpression", false); |
| 142 |
funcs["LabelExpression"] = &TreeParamsP::updateLabelExpression; |
| 143 |
IconSize = handle->GetInt("IconSize", 0); |
| 144 |
funcs["IconSize"] = &TreeParamsP::updateIconSize; |
| 145 |
FontSize = handle->GetInt("FontSize", 0); |
| 146 |
funcs["FontSize"] = &TreeParamsP::updateFontSize; |
| 147 |
ItemSpacing = handle->GetInt("ItemSpacing", 0); |
| 148 |
funcs["ItemSpacing"] = &TreeParamsP::updateItemSpacing; |
| 149 |
ItemBackground = handle->GetUnsigned("ItemBackground", 0x00000000); |
| 150 |
funcs["ItemBackground"] = &TreeParamsP::updateItemBackground; |
| 151 |
ItemBackgroundPadding = handle->GetInt("ItemBackgroundPadding", 0); |
| 152 |
funcs["ItemBackgroundPadding"] = &TreeParamsP::updateItemBackgroundPadding; |
| 153 |
HideColumn = handle->GetBool("HideColumn", true); |
| 154 |
funcs["HideColumn"] = &TreeParamsP::updateHideColumn; |
| 155 |
HideInternalNames = handle->GetBool("HideInternalNames", true); |
| 156 |
funcs["HideInternalNames"] = &TreeParamsP::updateHideInternalNames; |
| 157 |
HideScrollBar = handle->GetBool("HideScrollBar", true); |
| 158 |
funcs["HideScrollBar"] = &TreeParamsP::updateHideScrollBar; |
| 159 |
HideHeaderView = handle->GetBool("HideHeaderView", true); |
| 160 |
funcs["HideHeaderView"] = &TreeParamsP::updateHideHeaderView; |
| 161 |
ResizableColumn = handle->GetBool("ResizableColumn", false); |
| 162 |
funcs["ResizableColumn"] = &TreeParamsP::updateResizableColumn; |
| 163 |
ColumnSize1 = handle->GetInt("ColumnSize1", 0); |
| 164 |
funcs["ColumnSize1"] = &TreeParamsP::updateColumnSize1; |
| 165 |
ColumnSize2 = handle->GetInt("ColumnSize2", 0); |
| 166 |
funcs["ColumnSize2"] = &TreeParamsP::updateColumnSize2; |
| 167 |
ColumnSize3 = handle->GetInt("ColumnSize3", 0); |
| 168 |
funcs["ColumnSize3"] = &TreeParamsP::updateColumnSize3; |
| 169 |
TreeToolTipIcon = handle->GetBool("TreeToolTipIcon", false); |
| 170 |
funcs["TreeToolTipIcon"] = &TreeParamsP::updateTreeToolTipIcon; |
| 171 |
VisibilityIcon = handle->GetBool("VisibilityIcon", true); |
| 172 |
funcs["VisibilityIcon"] = &TreeParamsP::updateVisibilityIcon; |
| 173 |
} |
| 174 |
|
| 175 |
// Auto generated code (Tools/params_utils.py:263) |
| 176 |
~TreeParamsP() |
| 177 |
{} |
| 178 |
|
| 179 |
// Auto generated code (Tools/params_utils.py:270) |
| 180 |
void OnChange(Base::Subject<const char*>&, const char* sReason) |
| 181 |
{ |
| 182 |
if (!sReason) { |
| 183 |
return; |
| 184 |
} |
| 185 |
auto it = funcs.find(sReason); |
| 186 |
if (it == funcs.end()) { |
| 187 |
return; |
| 188 |
} |
| 189 |
it->second(this); |
| 190 |
} |
| 191 |
|
| 192 |
|
| 193 |
// Auto generated code (Tools/params_utils.py:296) |
| 194 |
static void updateSyncSelection(TreeParamsP* self) |
| 195 |
{ |
| 196 |
auto v = self->handle->GetBool("SyncSelection", true); |
| 197 |
if (self->SyncSelection != v) { |
| 198 |
self->SyncSelection = v; |
| 199 |
TreeParams::onSyncSelectionChanged(); |
| 200 |
} |
| 201 |
} |
| 202 |
// Auto generated code (Tools/params_utils.py:296) |
| 203 |
static void updateCheckBoxesSelection(TreeParamsP* self) |
| 204 |
{ |
| 205 |
auto v = self->handle->GetBool("CheckBoxesSelection", false); |
| 206 |
if (self->CheckBoxesSelection != v) { |
| 207 |
self->CheckBoxesSelection = v; |
| 208 |
TreeParams::onCheckBoxesSelectionChanged(); |
| 209 |
} |
| 210 |
} |
| 211 |
// Auto generated code (Tools/params_utils.py:288) |
| 212 |
static void updateSyncView(TreeParamsP* self) |
| 213 |
{ |
| 214 |
self->SyncView = self->handle->GetBool("SyncView", true); |
| 215 |
} |
| 216 |
// Auto generated code (Tools/params_utils.py:288) |
| 217 |
static void updatePreSelection(TreeParamsP* self) |
| 218 |
{ |
| 219 |
self->PreSelection = self->handle->GetBool("PreSelection", true); |
| 220 |
} |
| 221 |
// Auto generated code (Tools/params_utils.py:288) |
| 222 |
static void updateSyncPlacement(TreeParamsP* self) |
| 223 |
{ |
| 224 |
self->SyncPlacement = self->handle->GetBool("SyncPlacement", false); |
| 225 |
} |
| 226 |
// Auto generated code (Tools/params_utils.py:288) |
| 227 |
static void updateRecordSelection(TreeParamsP* self) |
| 228 |
{ |
| 229 |
self->RecordSelection = self->handle->GetBool("RecordSelection", true); |
| 230 |
} |
| 231 |
// Auto generated code (Tools/params_utils.py:296) |
| 232 |
static void updateDocumentMode(TreeParamsP* self) |
| 233 |
{ |
| 234 |
auto v = self->handle->GetInt("DocumentMode", 2); |
| 235 |
if (self->DocumentMode != v) { |
| 236 |
self->DocumentMode = v; |
| 237 |
TreeParams::onDocumentModeChanged(); |
| 238 |
} |
| 239 |
} |
| 240 |
// Auto generated code (Tools/params_utils.py:288) |
| 241 |
static void updateStatusTimeout(TreeParamsP* self) |
| 242 |
{ |
| 243 |
self->StatusTimeout = self->handle->GetInt("StatusTimeout", 100); |
| 244 |
} |
| 245 |
// Auto generated code (Tools/params_utils.py:288) |
| 246 |
static void updateSelectionTimeout(TreeParamsP* self) |
| 247 |
{ |
| 248 |
self->SelectionTimeout = self->handle->GetInt("SelectionTimeout", 100); |
| 249 |
} |
| 250 |
// Auto generated code (Tools/params_utils.py:288) |
| 251 |
static void updatePreSelectionTimeout(TreeParamsP* self) |
| 252 |
{ |
| 253 |
self->PreSelectionTimeout = self->handle->GetInt("PreSelectionTimeout", 500); |
| 254 |
} |
| 255 |
// Auto generated code (Tools/params_utils.py:288) |
| 256 |
static void updatePreSelectionDelay(TreeParamsP* self) |
| 257 |
{ |
| 258 |
self->PreSelectionDelay = self->handle->GetInt("PreSelectionDelay", 700); |
| 259 |
} |
| 260 |
// Auto generated code (Tools/params_utils.py:288) |
| 261 |
static void updatePreSelectionMinDelay(TreeParamsP* self) |
| 262 |
{ |
| 263 |
self->PreSelectionMinDelay = self->handle->GetInt("PreSelectionMinDelay", 200); |
| 264 |
} |
| 265 |
// Auto generated code (Tools/params_utils.py:288) |
| 266 |
static void updateRecomputeOnDrop(TreeParamsP* self) |
| 267 |
{ |
| 268 |
self->RecomputeOnDrop = self->handle->GetBool("RecomputeOnDrop", true); |
| 269 |
} |
| 270 |
// Auto generated code (Tools/params_utils.py:288) |
| 271 |
static void updateKeepRootOrder(TreeParamsP* self) |
| 272 |
{ |
| 273 |
self->KeepRootOrder = self->handle->GetBool("KeepRootOrder", true); |
| 274 |
} |
| 275 |
// Auto generated code (Tools/params_utils.py:288) |
| 276 |
static void updateTreeActiveAutoExpand(TreeParamsP* self) |
| 277 |
{ |
| 278 |
self->TreeActiveAutoExpand = self->handle->GetBool("TreeActiveAutoExpand", true); |
| 279 |
} |
| 280 |
// Auto generated code (Tools/params_utils.py:296) |
| 281 |
static void updateTreeActiveColor(TreeParamsP* self) |
| 282 |
{ |
| 283 |
auto v = self->handle->GetUnsigned("TreeActiveColor", 3873898495); |
| 284 |
if (self->TreeActiveColor != v) { |
| 285 |
self->TreeActiveColor = v; |
| 286 |
TreeParams::onTreeActiveColorChanged(); |
| 287 |
} |
| 288 |
} |
| 289 |
// Auto generated code (Tools/params_utils.py:296) |
| 290 |
static void updateTreeEditColor(TreeParamsP* self) |
| 291 |
{ |
| 292 |
auto v = self->handle->GetUnsigned("TreeEditColor", 2459042047); |
| 293 |
if (self->TreeEditColor != v) { |
| 294 |
self->TreeEditColor = v; |
| 295 |
TreeParams::onTreeEditColorChanged(); |
| 296 |
} |
| 297 |
} |
| 298 |
// Auto generated code (Tools/params_utils.py:296) |
| 299 |
static void updateSelectingGroupColor(TreeParamsP* self) |
| 300 |
{ |
| 301 |
auto v = self->handle->GetUnsigned("SelectingGroupColor", 1082163711); |
| 302 |
if (self->SelectingGroupColor != v) { |
| 303 |
self->SelectingGroupColor = v; |
| 304 |
TreeParams::onSelectingGroupColorChanged(); |
| 305 |
} |
| 306 |
} |
| 307 |
// Auto generated code (Tools/params_utils.py:296) |
| 308 |
static void updateTreeActiveBold(TreeParamsP* self) |
| 309 |
{ |
| 310 |
auto v = self->handle->GetBool("TreeActiveBold", true); |
| 311 |
if (self->TreeActiveBold != v) { |
| 312 |
self->TreeActiveBold = v; |
| 313 |
TreeParams::onTreeActiveBoldChanged(); |
| 314 |
} |
| 315 |
} |
| 316 |
// Auto generated code (Tools/params_utils.py:296) |
| 317 |
static void updateTreeActiveItalic(TreeParamsP* self) |
| 318 |
{ |
| 319 |
auto v = self->handle->GetBool("TreeActiveItalic", false); |
| 320 |
if (self->TreeActiveItalic != v) { |
| 321 |
self->TreeActiveItalic = v; |
| 322 |
TreeParams::onTreeActiveItalicChanged(); |
| 323 |
} |
| 324 |
} |
| 325 |
// Auto generated code (Tools/params_utils.py:296) |
| 326 |
static void updateTreeActiveUnderlined(TreeParamsP* self) |
| 327 |
{ |
| 328 |
auto v = self->handle->GetBool("TreeActiveUnderlined", false); |
| 329 |
if (self->TreeActiveUnderlined != v) { |
| 330 |
self->TreeActiveUnderlined = v; |
| 331 |
TreeParams::onTreeActiveUnderlinedChanged(); |
| 332 |
} |
| 333 |
} |
| 334 |
// Auto generated code (Tools/params_utils.py:296) |
| 335 |
static void updateTreeActiveOverlined(TreeParamsP* self) |
| 336 |
{ |
| 337 |
auto v = self->handle->GetBool("TreeActiveOverlined", false); |
| 338 |
if (self->TreeActiveOverlined != v) { |
| 339 |
self->TreeActiveOverlined = v; |
| 340 |
TreeParams::onTreeActiveOverlinedChanged(); |
| 341 |
} |
| 342 |
} |
| 343 |
// Auto generated code (Tools/params_utils.py:296) |
| 344 |
static void updateIndentation(TreeParamsP* self) |
| 345 |
{ |
| 346 |
auto v = self->handle->GetInt("Indentation", 0); |
| 347 |
if (self->Indentation != v) { |
| 348 |
self->Indentation = v; |
| 349 |
TreeParams::onIndentationChanged(); |
| 350 |
} |
| 351 |
} |
| 352 |
// Auto generated code (Tools/params_utils.py:288) |
| 353 |
static void updateLabelExpression(TreeParamsP* self) |
| 354 |
{ |
| 355 |
self->LabelExpression = self->handle->GetBool("LabelExpression", false); |
| 356 |
} |
| 357 |
// Auto generated code (Tools/params_utils.py:296) |
| 358 |
static void updateIconSize(TreeParamsP* self) |
| 359 |
{ |
| 360 |
auto v = self->handle->GetInt("IconSize", 0); |
| 361 |
if (self->IconSize != v) { |
| 362 |
self->IconSize = v; |
| 363 |
TreeParams::onIconSizeChanged(); |
| 364 |
} |
| 365 |
} |
| 366 |
// Auto generated code (Tools/params_utils.py:296) |
| 367 |
static void updateFontSize(TreeParamsP* self) |
| 368 |
{ |
| 369 |
auto v = self->handle->GetInt("FontSize", 0); |
| 370 |
if (self->FontSize != v) { |
| 371 |
self->FontSize = v; |
| 372 |
TreeParams::onFontSizeChanged(); |
| 373 |
} |
| 374 |
} |
| 375 |
// Auto generated code (Tools/params_utils.py:296) |
| 376 |
static void updateItemSpacing(TreeParamsP* self) |
| 377 |
{ |
| 378 |
auto v = self->handle->GetInt("ItemSpacing", 0); |
| 379 |
if (self->ItemSpacing != v) { |
| 380 |
self->ItemSpacing = v; |
| 381 |
TreeParams::onItemSpacingChanged(); |
| 382 |
} |
| 383 |
} |
| 384 |
// Auto generated code (Tools/params_utils.py:296) |
| 385 |
static void updateItemBackground(TreeParamsP* self) |
| 386 |
{ |
| 387 |
auto v = self->handle->GetUnsigned("ItemBackground", 0x00000000); |
| 388 |
if (self->ItemBackground != v) { |
| 389 |
self->ItemBackground = v; |
| 390 |
TreeParams::onItemBackgroundChanged(); |
| 391 |
} |
| 392 |
} |
| 393 |
// Auto generated code (Tools/params_utils.py:296) |
| 394 |
static void updateItemBackgroundPadding(TreeParamsP* self) |
| 395 |
{ |
| 396 |
auto v = self->handle->GetInt("ItemBackgroundPadding", 0); |
| 397 |
if (self->ItemBackgroundPadding != v) { |
| 398 |
self->ItemBackgroundPadding = v; |
| 399 |
TreeParams::onItemBackgroundPaddingChanged(); |
| 400 |
} |
| 401 |
} |
| 402 |
// Auto generated code (Tools/params_utils.py:296) |
| 403 |
static void updateHideColumn(TreeParamsP* self) |
| 404 |
{ |
| 405 |
auto v = self->handle->GetBool("HideColumn", true); |
| 406 |
if (self->HideColumn != v) { |
| 407 |
self->HideColumn = v; |
| 408 |
TreeParams::onHideColumnChanged(); |
| 409 |
} |
| 410 |
} |
| 411 |
// Auto generated code (Tools/params_utils.py:296) |
| 412 |
static void updateHideInternalNames(TreeParamsP* self) |
| 413 |
{ |
| 414 |
auto v = self->handle->GetBool("HideInternalNames", true); |
| 415 |
if (self->HideInternalNames != v) { |
| 416 |
self->HideInternalNames = v; |
| 417 |
TreeParams::onHideInternalNamesChanged(); |
| 418 |
} |
| 419 |
} |
| 420 |
// Auto generated code (Tools/params_utils.py:288) |
| 421 |
static void updateHideScrollBar(TreeParamsP* self) |
| 422 |
{ |
| 423 |
self->HideScrollBar = self->handle->GetBool("HideScrollBar", true); |
| 424 |
} |
| 425 |
// Auto generated code (Tools/params_utils.py:288) |
| 426 |
static void updateHideHeaderView(TreeParamsP* self) |
| 427 |
{ |
| 428 |
self->HideHeaderView = self->handle->GetBool("HideHeaderView", true); |
| 429 |
} |
| 430 |
// Auto generated code (Tools/params_utils.py:296) |
| 431 |
static void updateResizableColumn(TreeParamsP* self) |
| 432 |
{ |
| 433 |
auto v = self->handle->GetBool("ResizableColumn", false); |
| 434 |
if (self->ResizableColumn != v) { |
| 435 |
self->ResizableColumn = v; |
| 436 |
TreeParams::onResizableColumnChanged(); |
| 437 |
} |
| 438 |
} |
| 439 |
// Auto generated code (Tools/params_utils.py:288) |
| 440 |
static void updateColumnSize1(TreeParamsP* self) |
| 441 |
{ |
| 442 |
self->ColumnSize1 = self->handle->GetInt("ColumnSize1", 0); |
| 443 |
} |
| 444 |
// Auto generated code (Tools/params_utils.py:288) |
| 445 |
static void updateColumnSize2(TreeParamsP* self) |
| 446 |
{ |
| 447 |
self->ColumnSize2 = self->handle->GetInt("ColumnSize2", 0); |
| 448 |
} |
| 449 |
// Auto generated code (Tools/params_utils.py:288) |
| 450 |
static void updateColumnSize3(TreeParamsP* self) |
| 451 |
{ |
| 452 |
self->ColumnSize3 = self->handle->GetInt("ColumnSize3", 0); |
| 453 |
} |
| 454 |
// Auto generated code (Tools/params_utils.py:288) |
| 455 |
static void updateTreeToolTipIcon(TreeParamsP* self) |
| 456 |
{ |
| 457 |
self->TreeToolTipIcon = self->handle->GetBool("TreeToolTipIcon", false); |
| 458 |
} |
| 459 |
// Auto generated code (Tools/params_utils.py:296) |
| 460 |
static void updateVisibilityIcon(TreeParamsP* self) |
| 461 |
{ |
| 462 |
auto v = self->handle->GetBool("VisibilityIcon", true); |
| 463 |
if (self->VisibilityIcon != v) { |
| 464 |
self->VisibilityIcon = v; |
| 465 |
TreeParams::onVisibilityIconChanged(); |
| 466 |
} |
| 467 |
} |
| 468 |
}; |
| 469 |
|
| 470 |
// Auto generated code (Tools/params_utils.py:310) |
| 471 |
TreeParamsP* instance() |
| 472 |
{ |
| 473 |
static TreeParamsP* inst = new TreeParamsP; |
| 474 |
return inst; |
| 475 |
} |
| 476 |
|
| 477 |
} // Anonymous namespace |
| 478 |
|
| 479 |
// Auto generated code (Tools/params_utils.py:321) |
| 480 |
ParameterGrp::handle TreeParams::getHandle() |
| 481 |
{ |
| 482 |
return instance()->handle; |
| 483 |
} |
| 484 |
|
| 485 |
// Auto generated code (Tools/params_utils.py:350) |
| 486 |
const char* TreeParams::docSyncSelection() |
| 487 |
{ |
| 488 |
return ""; |
| 489 |
} |
| 490 |
|
| 491 |
// Auto generated code (Tools/params_utils.py:358) |
| 492 |
const bool& TreeParams::getSyncSelection() |
| 493 |
{ |
| 494 |
return instance()->SyncSelection; |
| 495 |
} |
| 496 |
|
| 497 |
// Auto generated code (Tools/params_utils.py:366) |
| 498 |
const bool& TreeParams::defaultSyncSelection() |
| 499 |
{ |
| 500 |
const static bool def = true; |
| 501 |
return def; |
| 502 |
} |
| 503 |
|
| 504 |
// Auto generated code (Tools/params_utils.py:375) |
| 505 |
void TreeParams::setSyncSelection(const bool& v) |
| 506 |
{ |
| 507 |
instance()->handle->SetBool("SyncSelection", v); |
| 508 |
instance()->SyncSelection = v; |
| 509 |
} |
| 510 |
|
| 511 |
// Auto generated code (Tools/params_utils.py:384) |
| 512 |
void TreeParams::removeSyncSelection() |
| 513 |
{ |
| 514 |
instance()->handle->RemoveBool("SyncSelection"); |
| 515 |
} |
| 516 |
|
| 517 |
// Auto generated code (Tools/params_utils.py:350) |
| 518 |
const char* TreeParams::docCheckBoxesSelection() |
| 519 |
{ |
| 520 |
return ""; |
| 521 |
} |
| 522 |
|
| 523 |
// Auto generated code (Tools/params_utils.py:358) |
| 524 |
const bool& TreeParams::getCheckBoxesSelection() |
| 525 |
{ |
| 526 |
return instance()->CheckBoxesSelection; |
| 527 |
} |
| 528 |
|
| 529 |
// Auto generated code (Tools/params_utils.py:366) |
| 530 |
const bool& TreeParams::defaultCheckBoxesSelection() |
| 531 |
{ |
| 532 |
const static bool def = false; |
| 533 |
return def; |
| 534 |
} |
| 535 |
|
| 536 |
// Auto generated code (Tools/params_utils.py:375) |
| 537 |
void TreeParams::setCheckBoxesSelection(const bool& v) |
| 538 |
{ |
| 539 |
instance()->handle->SetBool("CheckBoxesSelection", v); |
| 540 |
instance()->CheckBoxesSelection = v; |
| 541 |
} |
| 542 |
|
| 543 |
// Auto generated code (Tools/params_utils.py:384) |
| 544 |
void TreeParams::removeCheckBoxesSelection() |
| 545 |
{ |
| 546 |
instance()->handle->RemoveBool("CheckBoxesSelection"); |
| 547 |
} |
| 548 |
|
| 549 |
// Auto generated code (Tools/params_utils.py:350) |
| 550 |
const char* TreeParams::docSyncView() |
| 551 |
{ |
| 552 |
return ""; |
| 553 |
} |
| 554 |
|
| 555 |
// Auto generated code (Tools/params_utils.py:358) |
| 556 |
const bool& TreeParams::getSyncView() |
| 557 |
{ |
| 558 |
return instance()->SyncView; |
| 559 |
} |
| 560 |
|
| 561 |
// Auto generated code (Tools/params_utils.py:366) |
| 562 |
const bool& TreeParams::defaultSyncView() |
| 563 |
{ |
| 564 |
const static bool def = true; |
| 565 |
return def; |
| 566 |
} |
| 567 |
|
| 568 |
// Auto generated code (Tools/params_utils.py:375) |
| 569 |
void TreeParams::setSyncView(const bool& v) |
| 570 |
{ |
| 571 |
instance()->handle->SetBool("SyncView", v); |
| 572 |
instance()->SyncView = v; |
| 573 |
} |
| 574 |
|
| 575 |
// Auto generated code (Tools/params_utils.py:384) |
| 576 |
void TreeParams::removeSyncView() |
| 577 |
{ |
| 578 |
instance()->handle->RemoveBool("SyncView"); |
| 579 |
} |
| 580 |
|
| 581 |
// Auto generated code (Tools/params_utils.py:350) |
| 582 |
const char* TreeParams::docPreSelection() |
| 583 |
{ |
| 584 |
return ""; |
| 585 |
} |
| 586 |
|
| 587 |
// Auto generated code (Tools/params_utils.py:358) |
| 588 |
const bool& TreeParams::getPreSelection() |
| 589 |
{ |
| 590 |
return instance()->PreSelection; |
| 591 |
} |
| 592 |
|
| 593 |
// Auto generated code (Tools/params_utils.py:366) |
| 594 |
const bool& TreeParams::defaultPreSelection() |
| 595 |
{ |
| 596 |
const static bool def = true; |
| 597 |
return def; |
| 598 |
} |
| 599 |
|
| 600 |
// Auto generated code (Tools/params_utils.py:375) |
| 601 |
void TreeParams::setPreSelection(const bool& v) |
| 602 |
{ |
| 603 |
instance()->handle->SetBool("PreSelection", v); |
| 604 |
instance()->PreSelection = v; |
| 605 |
} |
| 606 |
|
| 607 |
// Auto generated code (Tools/params_utils.py:384) |
| 608 |
void TreeParams::removePreSelection() |
| 609 |
{ |
| 610 |
instance()->handle->RemoveBool("PreSelection"); |
| 611 |
} |
| 612 |
|
| 613 |
// Auto generated code (Tools/params_utils.py:350) |
| 614 |
const char* TreeParams::docSyncPlacement() |
| 615 |
{ |
| 616 |
return ""; |
| 617 |
} |
| 618 |
|
| 619 |
// Auto generated code (Tools/params_utils.py:358) |
| 620 |
const bool& TreeParams::getSyncPlacement() |
| 621 |
{ |
| 622 |
return instance()->SyncPlacement; |
| 623 |
} |
| 624 |
|
| 625 |
// Auto generated code (Tools/params_utils.py:366) |
| 626 |
const bool& TreeParams::defaultSyncPlacement() |
| 627 |
{ |
| 628 |
const static bool def = false; |
| 629 |
return def; |
| 630 |
} |
| 631 |
|
| 632 |
// Auto generated code (Tools/params_utils.py:375) |
| 633 |
void TreeParams::setSyncPlacement(const bool& v) |
| 634 |
{ |
| 635 |
instance()->handle->SetBool("SyncPlacement", v); |
| 636 |
instance()->SyncPlacement = v; |
| 637 |
} |
| 638 |
|
| 639 |
// Auto generated code (Tools/params_utils.py:384) |
| 640 |
void TreeParams::removeSyncPlacement() |
| 641 |
{ |
| 642 |
instance()->handle->RemoveBool("SyncPlacement"); |
| 643 |
} |
| 644 |
|
| 645 |
// Auto generated code (Tools/params_utils.py:350) |
| 646 |
const char* TreeParams::docRecordSelection() |
| 647 |
{ |
| 648 |
return ""; |
| 649 |
} |
| 650 |
|
| 651 |
// Auto generated code (Tools/params_utils.py:358) |
| 652 |
const bool& TreeParams::getRecordSelection() |
| 653 |
{ |
| 654 |
return instance()->RecordSelection; |
| 655 |
} |
| 656 |
|
| 657 |
// Auto generated code (Tools/params_utils.py:366) |
| 658 |
const bool& TreeParams::defaultRecordSelection() |
| 659 |
{ |
| 660 |
const static bool def = true; |
| 661 |
return def; |
| 662 |
} |
| 663 |
|
| 664 |
// Auto generated code (Tools/params_utils.py:375) |
| 665 |
void TreeParams::setRecordSelection(const bool& v) |
| 666 |
{ |
| 667 |
instance()->handle->SetBool("RecordSelection", v); |
| 668 |
instance()->RecordSelection = v; |
| 669 |
} |
| 670 |
|
| 671 |
// Auto generated code (Tools/params_utils.py:384) |
| 672 |
void TreeParams::removeRecordSelection() |
| 673 |
{ |
| 674 |
instance()->handle->RemoveBool("RecordSelection"); |
| 675 |
} |
| 676 |
|
| 677 |
// Auto generated code (Tools/params_utils.py:350) |
| 678 |
const char* TreeParams::docDocumentMode() |
| 679 |
{ |
| 680 |
return ""; |
| 681 |
} |
| 682 |
|
| 683 |
// Auto generated code (Tools/params_utils.py:358) |
| 684 |
const long& TreeParams::getDocumentMode() |
| 685 |
{ |
| 686 |
return instance()->DocumentMode; |
| 687 |
} |
| 688 |
|
| 689 |
// Auto generated code (Tools/params_utils.py:366) |
| 690 |
const long& TreeParams::defaultDocumentMode() |
| 691 |
{ |
| 692 |
const static long def = 2; |
| 693 |
return def; |
| 694 |
} |
| 695 |
|
| 696 |
// Auto generated code (Tools/params_utils.py:375) |
| 697 |
void TreeParams::setDocumentMode(const long& v) |
| 698 |
{ |
| 699 |
instance()->handle->SetInt("DocumentMode", v); |
| 700 |
instance()->DocumentMode = v; |
| 701 |
} |
| 702 |
|
| 703 |
// Auto generated code (Tools/params_utils.py:384) |
| 704 |
void TreeParams::removeDocumentMode() |
| 705 |
{ |
| 706 |
instance()->handle->RemoveInt("DocumentMode"); |
| 707 |
} |
| 708 |
|
| 709 |
// Auto generated code (Tools/params_utils.py:350) |
| 710 |
const char* TreeParams::docStatusTimeout() |
| 711 |
{ |
| 712 |
return ""; |
| 713 |
} |
| 714 |
|
| 715 |
// Auto generated code (Tools/params_utils.py:358) |
| 716 |
const long& TreeParams::getStatusTimeout() |
| 717 |
{ |
| 718 |
return instance()->StatusTimeout; |
| 719 |
} |
| 720 |
|
| 721 |
// Auto generated code (Tools/params_utils.py:366) |
| 722 |
const long& TreeParams::defaultStatusTimeout() |
| 723 |
{ |
| 724 |
const static long def = 100; |
| 725 |
return def; |
| 726 |
} |
| 727 |
|
| 728 |
// Auto generated code (Tools/params_utils.py:375) |
| 729 |
void TreeParams::setStatusTimeout(const long& v) |
| 730 |
{ |
| 731 |
instance()->handle->SetInt("StatusTimeout", v); |
| 732 |
instance()->StatusTimeout = v; |
| 733 |
} |
| 734 |
|
| 735 |
// Auto generated code (Tools/params_utils.py:384) |
| 736 |
void TreeParams::removeStatusTimeout() |
| 737 |
{ |
| 738 |
instance()->handle->RemoveInt("StatusTimeout"); |
| 739 |
} |
| 740 |
|
| 741 |
// Auto generated code (Tools/params_utils.py:350) |
| 742 |
const char* TreeParams::docSelectionTimeout() |
| 743 |
{ |
| 744 |
return ""; |
| 745 |
} |
| 746 |
|
| 747 |
// Auto generated code (Tools/params_utils.py:358) |
| 748 |
const long& TreeParams::getSelectionTimeout() |
| 749 |
{ |
| 750 |
return instance()->SelectionTimeout; |
| 751 |
} |
| 752 |
|
| 753 |
// Auto generated code (Tools/params_utils.py:366) |
| 754 |
const long& TreeParams::defaultSelectionTimeout() |
| 755 |
{ |
| 756 |
const static long def = 100; |
| 757 |
return def; |
| 758 |
} |
| 759 |
|
| 760 |
// Auto generated code (Tools/params_utils.py:375) |
| 761 |
void TreeParams::setSelectionTimeout(const long& v) |
| 762 |
{ |
| 763 |
instance()->handle->SetInt("SelectionTimeout", v); |
| 764 |
instance()->SelectionTimeout = v; |
| 765 |
} |
| 766 |
|
| 767 |
// Auto generated code (Tools/params_utils.py:384) |
| 768 |
void TreeParams::removeSelectionTimeout() |
| 769 |
{ |
| 770 |
instance()->handle->RemoveInt("SelectionTimeout"); |
| 771 |
} |
| 772 |
|
| 773 |
// Auto generated code (Tools/params_utils.py:350) |
| 774 |
const char* TreeParams::docPreSelectionTimeout() |
| 775 |
{ |
| 776 |
return ""; |
| 777 |
} |
| 778 |
|
| 779 |
// Auto generated code (Tools/params_utils.py:358) |
| 780 |
const long& TreeParams::getPreSelectionTimeout() |
| 781 |
{ |
| 782 |
return instance()->PreSelectionTimeout; |
| 783 |
} |
| 784 |
|
| 785 |
// Auto generated code (Tools/params_utils.py:366) |
| 786 |
const long& TreeParams::defaultPreSelectionTimeout() |
| 787 |
{ |
| 788 |
const static long def = 500; |
| 789 |
return def; |
| 790 |
} |
| 791 |
|
| 792 |
// Auto generated code (Tools/params_utils.py:375) |
| 793 |
void TreeParams::setPreSelectionTimeout(const long& v) |
| 794 |
{ |
| 795 |
instance()->handle->SetInt("PreSelectionTimeout", v); |
| 796 |
instance()->PreSelectionTimeout = v; |
| 797 |
} |
| 798 |
|
| 799 |
// Auto generated code (Tools/params_utils.py:384) |
| 800 |
void TreeParams::removePreSelectionTimeout() |
| 801 |
{ |
| 802 |
instance()->handle->RemoveInt("PreSelectionTimeout"); |
| 803 |
} |
| 804 |
|
| 805 |
// Auto generated code (Tools/params_utils.py:350) |
| 806 |
const char* TreeParams::docPreSelectionDelay() |
| 807 |
{ |
| 808 |
return ""; |
| 809 |
} |
| 810 |
|
| 811 |
// Auto generated code (Tools/params_utils.py:358) |
| 812 |
const long& TreeParams::getPreSelectionDelay() |
| 813 |
{ |
| 814 |
return instance()->PreSelectionDelay; |
| 815 |
} |
| 816 |
|
| 817 |
// Auto generated code (Tools/params_utils.py:366) |
| 818 |
const long& TreeParams::defaultPreSelectionDelay() |
| 819 |
{ |
| 820 |
const static long def = 700; |
| 821 |
return def; |
| 822 |
} |
| 823 |
|
| 824 |
// Auto generated code (Tools/params_utils.py:375) |
| 825 |
void TreeParams::setPreSelectionDelay(const long& v) |
| 826 |
{ |
| 827 |
instance()->handle->SetInt("PreSelectionDelay", v); |
| 828 |
instance()->PreSelectionDelay = v; |
| 829 |
} |
| 830 |
|
| 831 |
// Auto generated code (Tools/params_utils.py:384) |
| 832 |
void TreeParams::removePreSelectionDelay() |
| 833 |
{ |
| 834 |
instance()->handle->RemoveInt("PreSelectionDelay"); |
| 835 |
} |
| 836 |
|
| 837 |
// Auto generated code (Tools/params_utils.py:350) |
| 838 |
const char* TreeParams::docPreSelectionMinDelay() |
| 839 |
{ |
| 840 |
return ""; |
| 841 |
} |
| 842 |
|
| 843 |
// Auto generated code (Tools/params_utils.py:358) |
| 844 |
const long& TreeParams::getPreSelectionMinDelay() |
| 845 |
{ |
| 846 |
return instance()->PreSelectionMinDelay; |
| 847 |
} |
| 848 |
|
| 849 |
// Auto generated code (Tools/params_utils.py:366) |
| 850 |
const long& TreeParams::defaultPreSelectionMinDelay() |
| 851 |
{ |
| 852 |
const static long def = 200; |
| 853 |
return def; |
| 854 |
} |
| 855 |
|
| 856 |
// Auto generated code (Tools/params_utils.py:375) |
| 857 |
void TreeParams::setPreSelectionMinDelay(const long& v) |
| 858 |
{ |
| 859 |
instance()->handle->SetInt("PreSelectionMinDelay", v); |
| 860 |
instance()->PreSelectionMinDelay = v; |
| 861 |
} |
| 862 |
|
| 863 |
// Auto generated code (Tools/params_utils.py:384) |
| 864 |
void TreeParams::removePreSelectionMinDelay() |
| 865 |
{ |
| 866 |
instance()->handle->RemoveInt("PreSelectionMinDelay"); |
| 867 |
} |
| 868 |
|
| 869 |
// Auto generated code (Tools/params_utils.py:350) |
| 870 |
const char* TreeParams::docRecomputeOnDrop() |
| 871 |
{ |
| 872 |
return ""; |
| 873 |
} |
| 874 |
|
| 875 |
// Auto generated code (Tools/params_utils.py:358) |
| 876 |
const bool& TreeParams::getRecomputeOnDrop() |
| 877 |
{ |
| 878 |
return instance()->RecomputeOnDrop; |
| 879 |
} |
| 880 |
|
| 881 |
// Auto generated code (Tools/params_utils.py:366) |
| 882 |
const bool& TreeParams::defaultRecomputeOnDrop() |
| 883 |
{ |
| 884 |
const static bool def = true; |
| 885 |
return def; |
| 886 |
} |
| 887 |
|
| 888 |
// Auto generated code (Tools/params_utils.py:375) |
| 889 |
void TreeParams::setRecomputeOnDrop(const bool& v) |
| 890 |
{ |
| 891 |
instance()->handle->SetBool("RecomputeOnDrop", v); |
| 892 |
instance()->RecomputeOnDrop = v; |
| 893 |
} |
| 894 |
|
| 895 |
// Auto generated code (Tools/params_utils.py:384) |
| 896 |
void TreeParams::removeRecomputeOnDrop() |
| 897 |
{ |
| 898 |
instance()->handle->RemoveBool("RecomputeOnDrop"); |
| 899 |
} |
| 900 |
|
| 901 |
// Auto generated code (Tools/params_utils.py:350) |
| 902 |
const char* TreeParams::docKeepRootOrder() |
| 903 |
{ |
| 904 |
return ""; |
| 905 |
} |
| 906 |
|
| 907 |
// Auto generated code (Tools/params_utils.py:358) |
| 908 |
const bool& TreeParams::getKeepRootOrder() |
| 909 |
{ |
| 910 |
return instance()->KeepRootOrder; |
| 911 |
} |
| 912 |
|
| 913 |
// Auto generated code (Tools/params_utils.py:366) |
| 914 |
const bool& TreeParams::defaultKeepRootOrder() |
| 915 |
{ |
| 916 |
const static bool def = true; |
| 917 |
return def; |
| 918 |
} |
| 919 |
|
| 920 |
// Auto generated code (Tools/params_utils.py:375) |
| 921 |
void TreeParams::setKeepRootOrder(const bool& v) |
| 922 |
{ |
| 923 |
instance()->handle->SetBool("KeepRootOrder", v); |
| 924 |
instance()->KeepRootOrder = v; |
| 925 |
} |
| 926 |
|
| 927 |
// Auto generated code (Tools/params_utils.py:384) |
| 928 |
void TreeParams::removeKeepRootOrder() |
| 929 |
{ |
| 930 |
instance()->handle->RemoveBool("KeepRootOrder"); |
| 931 |
} |
| 932 |
|
| 933 |
// Auto generated code (Tools/params_utils.py:350) |
| 934 |
const char* TreeParams::docTreeActiveAutoExpand() |
| 935 |
{ |
| 936 |
return ""; |
| 937 |
} |
| 938 |
|
| 939 |
// Auto generated code (Tools/params_utils.py:358) |
| 940 |
const bool& TreeParams::getTreeActiveAutoExpand() |
| 941 |
{ |
| 942 |
return instance()->TreeActiveAutoExpand; |
| 943 |
} |
| 944 |
|
| 945 |
// Auto generated code (Tools/params_utils.py:366) |
| 946 |
const bool& TreeParams::defaultTreeActiveAutoExpand() |
| 947 |
{ |
| 948 |
const static bool def = true; |
| 949 |
return def; |
| 950 |
} |
| 951 |
|
| 952 |
// Auto generated code (Tools/params_utils.py:375) |
| 953 |
void TreeParams::setTreeActiveAutoExpand(const bool& v) |
| 954 |
{ |
| 955 |
instance()->handle->SetBool("TreeActiveAutoExpand", v); |
| 956 |
instance()->TreeActiveAutoExpand = v; |
| 957 |
} |
| 958 |
|
| 959 |
// Auto generated code (Tools/params_utils.py:384) |
| 960 |
void TreeParams::removeTreeActiveAutoExpand() |
| 961 |
{ |
| 962 |
instance()->handle->RemoveBool("TreeActiveAutoExpand"); |
| 963 |
} |
| 964 |
|
| 965 |
// Auto generated code (Tools/params_utils.py:350) |
| 966 |
const char* TreeParams::docTreeActiveColor() |
| 967 |
{ |
| 968 |
return ""; |
| 969 |
} |
| 970 |
|
| 971 |
// Auto generated code (Tools/params_utils.py:358) |
| 972 |
const unsigned long& TreeParams::getTreeActiveColor() |
| 973 |
{ |
| 974 |
return instance()->TreeActiveColor; |
| 975 |
} |
| 976 |
|
| 977 |
// Auto generated code (Tools/params_utils.py:366) |
| 978 |
const unsigned long& TreeParams::defaultTreeActiveColor() |
| 979 |
{ |
| 980 |
const static unsigned long def = 3873898495; |
| 981 |
return def; |
| 982 |
} |
| 983 |
|
| 984 |
// Auto generated code (Tools/params_utils.py:375) |
| 985 |
void TreeParams::setTreeActiveColor(const unsigned long& v) |
| 986 |
{ |
| 987 |
instance()->handle->SetUnsigned("TreeActiveColor", v); |
| 988 |
instance()->TreeActiveColor = v; |
| 989 |
} |
| 990 |
|
| 991 |
// Auto generated code (Tools/params_utils.py:384) |
| 992 |
void TreeParams::removeTreeActiveColor() |
| 993 |
{ |
| 994 |
instance()->handle->RemoveUnsigned("TreeActiveColor"); |
| 995 |
} |
| 996 |
|
| 997 |
// Auto generated code (Tools/params_utils.py:350) |
| 998 |
const char* TreeParams::docTreeEditColor() |
| 999 |
{ |
| 1000 |
return ""; |
| 1001 |
} |
| 1002 |
|
| 1003 |
// Auto generated code (Tools/params_utils.py:358) |
| 1004 |
const unsigned long& TreeParams::getTreeEditColor() |
| 1005 |
{ |
| 1006 |
return instance()->TreeEditColor; |
| 1007 |
} |
| 1008 |
|
| 1009 |
// Auto generated code (Tools/params_utils.py:366) |
| 1010 |
const unsigned long& TreeParams::defaultTreeEditColor() |
| 1011 |
{ |
| 1012 |
const static unsigned long def = 2459042047; |
| 1013 |
return def; |
| 1014 |
} |
| 1015 |
|
| 1016 |
// Auto generated code (Tools/params_utils.py:375) |
| 1017 |
void TreeParams::setTreeEditColor(const unsigned long& v) |
| 1018 |
{ |
| 1019 |
instance()->handle->SetUnsigned("TreeEditColor", v); |
| 1020 |
instance()->TreeEditColor = v; |
| 1021 |
} |
| 1022 |
|
| 1023 |
// Auto generated code (Tools/params_utils.py:384) |
| 1024 |
void TreeParams::removeTreeEditColor() |
| 1025 |
{ |
| 1026 |
instance()->handle->RemoveUnsigned("TreeEditColor"); |
| 1027 |
} |
| 1028 |
|
| 1029 |
// Auto generated code (Tools/params_utils.py:350) |
| 1030 |
const char* TreeParams::docSelectingGroupColor() |
| 1031 |
{ |
| 1032 |
return ""; |
| 1033 |
} |
| 1034 |
|
| 1035 |
// Auto generated code (Tools/params_utils.py:358) |
| 1036 |
const unsigned long& TreeParams::getSelectingGroupColor() |
| 1037 |
{ |
| 1038 |
return instance()->SelectingGroupColor; |
| 1039 |
} |
| 1040 |
|
| 1041 |
// Auto generated code (Tools/params_utils.py:366) |
| 1042 |
const unsigned long& TreeParams::defaultSelectingGroupColor() |
| 1043 |
{ |
| 1044 |
const static unsigned long def = 1082163711; |
| 1045 |
return def; |
| 1046 |
} |
| 1047 |
|
| 1048 |
// Auto generated code (Tools/params_utils.py:375) |
| 1049 |
void TreeParams::setSelectingGroupColor(const unsigned long& v) |
| 1050 |
{ |
| 1051 |
instance()->handle->SetUnsigned("SelectingGroupColor", v); |
| 1052 |
instance()->SelectingGroupColor = v; |
| 1053 |
} |
| 1054 |
|
| 1055 |
// Auto generated code (Tools/params_utils.py:384) |
| 1056 |
void TreeParams::removeSelectingGroupColor() |
| 1057 |
{ |
| 1058 |
instance()->handle->RemoveUnsigned("SelectingGroupColor"); |
| 1059 |
} |
| 1060 |
|
| 1061 |
// Auto generated code (Tools/params_utils.py:350) |
| 1062 |
const char* TreeParams::docTreeActiveBold() |
| 1063 |
{ |
| 1064 |
return ""; |
| 1065 |
} |
| 1066 |
|
| 1067 |
// Auto generated code (Tools/params_utils.py:358) |
| 1068 |
const bool& TreeParams::getTreeActiveBold() |
| 1069 |
{ |
| 1070 |
return instance()->TreeActiveBold; |
| 1071 |
} |
| 1072 |
|
| 1073 |
// Auto generated code (Tools/params_utils.py:366) |
| 1074 |
const bool& TreeParams::defaultTreeActiveBold() |
| 1075 |
{ |
| 1076 |
const static bool def = true; |
| 1077 |
return def; |
| 1078 |
} |
| 1079 |
|
| 1080 |
// Auto generated code (Tools/params_utils.py:375) |
| 1081 |
void TreeParams::setTreeActiveBold(const bool& v) |
| 1082 |
{ |
| 1083 |
instance()->handle->SetBool("TreeActiveBold", v); |
| 1084 |
instance()->TreeActiveBold = v; |
| 1085 |
} |
| 1086 |
|
| 1087 |
// Auto generated code (Tools/params_utils.py:384) |
| 1088 |
void TreeParams::removeTreeActiveBold() |
| 1089 |
{ |
| 1090 |
instance()->handle->RemoveBool("TreeActiveBold"); |
| 1091 |
} |
| 1092 |
|
| 1093 |
// Auto generated code (Tools/params_utils.py:350) |
| 1094 |
const char* TreeParams::docTreeActiveItalic() |
| 1095 |
{ |
| 1096 |
return ""; |
| 1097 |
} |
| 1098 |
|
| 1099 |
// Auto generated code (Tools/params_utils.py:358) |
| 1100 |
const bool& TreeParams::getTreeActiveItalic() |
| 1101 |
{ |
| 1102 |
return instance()->TreeActiveItalic; |
| 1103 |
} |
| 1104 |
|
| 1105 |
// Auto generated code (Tools/params_utils.py:366) |
| 1106 |
const bool& TreeParams::defaultTreeActiveItalic() |
| 1107 |
{ |
| 1108 |
const static bool def = false; |
| 1109 |
return def; |
| 1110 |
} |
| 1111 |
|
| 1112 |
// Auto generated code (Tools/params_utils.py:375) |
| 1113 |
void TreeParams::setTreeActiveItalic(const bool& v) |
| 1114 |
{ |
| 1115 |
instance()->handle->SetBool("TreeActiveItalic", v); |
| 1116 |
instance()->TreeActiveItalic = v; |
| 1117 |
} |
| 1118 |
|
| 1119 |
// Auto generated code (Tools/params_utils.py:384) |
| 1120 |
void TreeParams::removeTreeActiveItalic() |
| 1121 |
{ |
| 1122 |
instance()->handle->RemoveBool("TreeActiveItalic"); |
| 1123 |
} |
| 1124 |
|
| 1125 |
// Auto generated code (Tools/params_utils.py:350) |
| 1126 |
const char* TreeParams::docTreeActiveUnderlined() |
| 1127 |
{ |
| 1128 |
return ""; |
| 1129 |
} |
| 1130 |
|
| 1131 |
// Auto generated code (Tools/params_utils.py:358) |
| 1132 |
const bool& TreeParams::getTreeActiveUnderlined() |
| 1133 |
{ |
| 1134 |
return instance()->TreeActiveUnderlined; |
| 1135 |
} |
| 1136 |
|
| 1137 |
// Auto generated code (Tools/params_utils.py:366) |
| 1138 |
const bool& TreeParams::defaultTreeActiveUnderlined() |
| 1139 |
{ |
| 1140 |
const static bool def = false; |
| 1141 |
return def; |
| 1142 |
} |
| 1143 |
|
| 1144 |
// Auto generated code (Tools/params_utils.py:375) |
| 1145 |
void TreeParams::setTreeActiveUnderlined(const bool& v) |
| 1146 |
{ |
| 1147 |
instance()->handle->SetBool("TreeActiveUnderlined", v); |
| 1148 |
instance()->TreeActiveUnderlined = v; |
| 1149 |
} |
| 1150 |
|
| 1151 |
// Auto generated code (Tools/params_utils.py:384) |
| 1152 |
void TreeParams::removeTreeActiveUnderlined() |
| 1153 |
{ |
| 1154 |
instance()->handle->RemoveBool("TreeActiveUnderlined"); |
| 1155 |
} |
| 1156 |
|
| 1157 |
// Auto generated code (Tools/params_utils.py:350) |
| 1158 |
const char* TreeParams::docTreeActiveOverlined() |
| 1159 |
{ |
| 1160 |
return ""; |
| 1161 |
} |
| 1162 |
|
| 1163 |
// Auto generated code (Tools/params_utils.py:358) |
| 1164 |
const bool& TreeParams::getTreeActiveOverlined() |
| 1165 |
{ |
| 1166 |
return instance()->TreeActiveOverlined; |
| 1167 |
} |
| 1168 |
|
| 1169 |
// Auto generated code (Tools/params_utils.py:366) |
| 1170 |
const bool& TreeParams::defaultTreeActiveOverlined() |
| 1171 |
{ |
| 1172 |
const static bool def = false; |
| 1173 |
return def; |
| 1174 |
} |
| 1175 |
|
| 1176 |
// Auto generated code (Tools/params_utils.py:375) |
| 1177 |
void TreeParams::setTreeActiveOverlined(const bool& v) |
| 1178 |
{ |
| 1179 |
instance()->handle->SetBool("TreeActiveOverlined", v); |
| 1180 |
instance()->TreeActiveOverlined = v; |
| 1181 |
} |
| 1182 |
|
| 1183 |
// Auto generated code (Tools/params_utils.py:384) |
| 1184 |
void TreeParams::removeTreeActiveOverlined() |
| 1185 |
{ |
| 1186 |
instance()->handle->RemoveBool("TreeActiveOverlined"); |
| 1187 |
} |
| 1188 |
|
| 1189 |
// Auto generated code (Tools/params_utils.py:350) |
| 1190 |
const char* TreeParams::docIndentation() |
| 1191 |
{ |
| 1192 |
return ""; |
| 1193 |
} |
| 1194 |
|
| 1195 |
// Auto generated code (Tools/params_utils.py:358) |
| 1196 |
const long& TreeParams::getIndentation() |
| 1197 |
{ |
| 1198 |
return instance()->Indentation; |
| 1199 |
} |
| 1200 |
|
| 1201 |
// Auto generated code (Tools/params_utils.py:366) |
| 1202 |
const long& TreeParams::defaultIndentation() |
| 1203 |
{ |
| 1204 |
const static long def = 0; |
| 1205 |
return def; |
| 1206 |
} |
| 1207 |
|
| 1208 |
// Auto generated code (Tools/params_utils.py:375) |
| 1209 |
void TreeParams::setIndentation(const long& v) |
| 1210 |
{ |
| 1211 |
instance()->handle->SetInt("Indentation", v); |
| 1212 |
instance()->Indentation = v; |
| 1213 |
} |
| 1214 |
|
| 1215 |
// Auto generated code (Tools/params_utils.py:384) |
| 1216 |
void TreeParams::removeIndentation() |
| 1217 |
{ |
| 1218 |
instance()->handle->RemoveInt("Indentation"); |
| 1219 |
} |
| 1220 |
|
| 1221 |
// Auto generated code (Tools/params_utils.py:350) |
| 1222 |
const char* TreeParams::docLabelExpression() |
| 1223 |
{ |
| 1224 |
return ""; |
| 1225 |
} |
| 1226 |
|
| 1227 |
// Auto generated code (Tools/params_utils.py:358) |
| 1228 |
const bool& TreeParams::getLabelExpression() |
| 1229 |
{ |
| 1230 |
return instance()->LabelExpression; |
| 1231 |
} |
| 1232 |
|
| 1233 |
// Auto generated code (Tools/params_utils.py:366) |
| 1234 |
const bool& TreeParams::defaultLabelExpression() |
| 1235 |
{ |
| 1236 |
const static bool def = false; |
| 1237 |
return def; |
| 1238 |
} |
| 1239 |
|
| 1240 |
// Auto generated code (Tools/params_utils.py:375) |
| 1241 |
void TreeParams::setLabelExpression(const bool& v) |
| 1242 |
{ |
| 1243 |
instance()->handle->SetBool("LabelExpression", v); |
| 1244 |
instance()->LabelExpression = v; |
| 1245 |
} |
| 1246 |
|
| 1247 |
// Auto generated code (Tools/params_utils.py:384) |
| 1248 |
void TreeParams::removeLabelExpression() |
| 1249 |
{ |
| 1250 |
instance()->handle->RemoveBool("LabelExpression"); |
| 1251 |
} |
| 1252 |
|
| 1253 |
// Auto generated code (Tools/params_utils.py:350) |
| 1254 |
const char* TreeParams::docIconSize() |
| 1255 |
{ |
| 1256 |
return ""; |
| 1257 |
} |
| 1258 |
|
| 1259 |
// Auto generated code (Tools/params_utils.py:358) |
| 1260 |
const long& TreeParams::getIconSize() |
| 1261 |
{ |
| 1262 |
return instance()->IconSize; |
| 1263 |
} |
| 1264 |
|
| 1265 |
// Auto generated code (Tools/params_utils.py:366) |
| 1266 |
const long& TreeParams::defaultIconSize() |
| 1267 |
{ |
| 1268 |
const static long def = 0; |
| 1269 |
return def; |
| 1270 |
} |
| 1271 |
|
| 1272 |
// Auto generated code (Tools/params_utils.py:375) |
| 1273 |
void TreeParams::setIconSize(const long& v) |
| 1274 |
{ |
| 1275 |
instance()->handle->SetInt("IconSize", v); |
| 1276 |
instance()->IconSize = v; |
| 1277 |
} |
| 1278 |
|
| 1279 |
// Auto generated code (Tools/params_utils.py:384) |
| 1280 |
void TreeParams::removeIconSize() |
| 1281 |
{ |
| 1282 |
instance()->handle->RemoveInt("IconSize"); |
| 1283 |
} |
| 1284 |
|
| 1285 |
// Auto generated code (Tools/params_utils.py:350) |
| 1286 |
const char* TreeParams::docFontSize() |
| 1287 |
{ |
| 1288 |
return ""; |
| 1289 |
} |
| 1290 |
|
| 1291 |
// Auto generated code (Tools/params_utils.py:358) |
| 1292 |
const long& TreeParams::getFontSize() |
| 1293 |
{ |
| 1294 |
return instance()->FontSize; |
| 1295 |
} |
| 1296 |
|
| 1297 |
// Auto generated code (Tools/params_utils.py:366) |
| 1298 |
const long& TreeParams::defaultFontSize() |
| 1299 |
{ |
| 1300 |
const static long def = 0; |
| 1301 |
return def; |
| 1302 |
} |
| 1303 |
|
| 1304 |
// Auto generated code (Tools/params_utils.py:375) |
| 1305 |
void TreeParams::setFontSize(const long& v) |
| 1306 |
{ |
| 1307 |
instance()->handle->SetInt("FontSize", v); |
| 1308 |
instance()->FontSize = v; |
| 1309 |
} |
| 1310 |
|
| 1311 |
// Auto generated code (Tools/params_utils.py:384) |
| 1312 |
void TreeParams::removeFontSize() |
| 1313 |
{ |
| 1314 |
instance()->handle->RemoveInt("FontSize"); |
| 1315 |
} |
| 1316 |
|
| 1317 |
// Auto generated code (Tools/params_utils.py:350) |
| 1318 |
const char* TreeParams::docItemSpacing() |
| 1319 |
{ |
| 1320 |
return ""; |
| 1321 |
} |
| 1322 |
|
| 1323 |
// Auto generated code (Tools/params_utils.py:358) |
| 1324 |
const long& TreeParams::getItemSpacing() |
| 1325 |
{ |
| 1326 |
return instance()->ItemSpacing; |
| 1327 |
} |
| 1328 |
|
| 1329 |
// Auto generated code (Tools/params_utils.py:366) |
| 1330 |
const long& TreeParams::defaultItemSpacing() |
| 1331 |
{ |
| 1332 |
const static long def = 0; |
| 1333 |
return def; |
| 1334 |
} |
| 1335 |
|
| 1336 |
// Auto generated code (Tools/params_utils.py:375) |
| 1337 |
void TreeParams::setItemSpacing(const long& v) |
| 1338 |
{ |
| 1339 |
instance()->handle->SetInt("ItemSpacing", v); |
| 1340 |
instance()->ItemSpacing = v; |
| 1341 |
} |
| 1342 |
|
| 1343 |
// Auto generated code (Tools/params_utils.py:384) |
| 1344 |
void TreeParams::removeItemSpacing() |
| 1345 |
{ |
| 1346 |
instance()->handle->RemoveInt("ItemSpacing"); |
| 1347 |
} |
| 1348 |
|
| 1349 |
// Auto generated code (Tools/params_utils.py:350) |
| 1350 |
const char* TreeParams::docItemBackground() |
| 1351 |
{ |
| 1352 |
return QT_TRANSLATE_NOOP("TreeParams", "Tree view item background. Only effective in overlay."); |
| 1353 |
} |
| 1354 |
|
| 1355 |
// Auto generated code (Tools/params_utils.py:358) |
| 1356 |
const unsigned long& TreeParams::getItemBackground() |
| 1357 |
{ |
| 1358 |
return instance()->ItemBackground; |
| 1359 |
} |
| 1360 |
|
| 1361 |
// Auto generated code (Tools/params_utils.py:366) |
| 1362 |
const unsigned long& TreeParams::defaultItemBackground() |
| 1363 |
{ |
| 1364 |
const static unsigned long def = 0x00000000; |
| 1365 |
return def; |
| 1366 |
} |
| 1367 |
|
| 1368 |
// Auto generated code (Tools/params_utils.py:375) |
| 1369 |
void TreeParams::setItemBackground(const unsigned long& v) |
| 1370 |
{ |
| 1371 |
instance()->handle->SetUnsigned("ItemBackground", v); |
| 1372 |
instance()->ItemBackground = v; |
| 1373 |
} |
| 1374 |
|
| 1375 |
// Auto generated code (Tools/params_utils.py:384) |
| 1376 |
void TreeParams::removeItemBackground() |
| 1377 |
{ |
| 1378 |
instance()->handle->RemoveUnsigned("ItemBackground"); |
| 1379 |
} |
| 1380 |
|
| 1381 |
// Auto generated code (Tools/params_utils.py:350) |
| 1382 |
const char* TreeParams::docItemBackgroundPadding() |
| 1383 |
{ |
| 1384 |
return QT_TRANSLATE_NOOP("TreeParams", "Tree view item background padding."); |
| 1385 |
} |
| 1386 |
|
| 1387 |
// Auto generated code (Tools/params_utils.py:358) |
| 1388 |
const long& TreeParams::getItemBackgroundPadding() |
| 1389 |
{ |
| 1390 |
return instance()->ItemBackgroundPadding; |
| 1391 |
} |
| 1392 |
|
| 1393 |
// Auto generated code (Tools/params_utils.py:366) |
| 1394 |
const long& TreeParams::defaultItemBackgroundPadding() |
| 1395 |
{ |
| 1396 |
const static long def = 0; |
| 1397 |
return def; |
| 1398 |
} |
| 1399 |
|
| 1400 |
// Auto generated code (Tools/params_utils.py:375) |
| 1401 |
void TreeParams::setItemBackgroundPadding(const long& v) |
| 1402 |
{ |
| 1403 |
instance()->handle->SetInt("ItemBackgroundPadding", v); |
| 1404 |
instance()->ItemBackgroundPadding = v; |
| 1405 |
} |
| 1406 |
|
| 1407 |
// Auto generated code (Tools/params_utils.py:384) |
| 1408 |
void TreeParams::removeItemBackgroundPadding() |
| 1409 |
{ |
| 1410 |
instance()->handle->RemoveInt("ItemBackgroundPadding"); |
| 1411 |
} |
| 1412 |
|
| 1413 |
// Auto generated code (Tools/params_utils.py:350) |
| 1414 |
const char* TreeParams::docHideColumn() |
| 1415 |
{ |
| 1416 |
return QT_TRANSLATE_NOOP("TreeParams", "Hide extra tree view column for item description."); |
| 1417 |
} |
| 1418 |
|
| 1419 |
// Auto generated code (Tools/params_utils.py:358) |
| 1420 |
const bool& TreeParams::getHideColumn() |
| 1421 |
{ |
| 1422 |
return instance()->HideColumn; |
| 1423 |
} |
| 1424 |
|
| 1425 |
// Auto generated code (Tools/params_utils.py:366) |
| 1426 |
const bool& TreeParams::defaultHideColumn() |
| 1427 |
{ |
| 1428 |
const static bool def = true; |
| 1429 |
return def; |
| 1430 |
} |
| 1431 |
|
| 1432 |
// Auto generated code (Tools/params_utils.py:375) |
| 1433 |
void TreeParams::setHideColumn(const bool& v) |
| 1434 |
{ |
| 1435 |
instance()->handle->SetBool("HideColumn", v); |
| 1436 |
instance()->HideColumn = v; |
| 1437 |
} |
| 1438 |
|
| 1439 |
// Auto generated code (Tools/params_utils.py:384) |
| 1440 |
void TreeParams::removeHideColumn() |
| 1441 |
{ |
| 1442 |
instance()->handle->RemoveBool("HideColumn"); |
| 1443 |
} |
| 1444 |
|
| 1445 |
// Auto generated code (Tools/params_utils.py:350) |
| 1446 |
const char* TreeParams::docHideInternalNames() |
| 1447 |
{ |
| 1448 |
return QT_TRANSLATE_NOOP("TreeParams", "Hide extra tree view column - Internal Names."); |
| 1449 |
} |
| 1450 |
|
| 1451 |
// Auto generated code (Tools/params_utils.py:358) |
| 1452 |
const bool& TreeParams::getHideInternalNames() |
| 1453 |
{ |
| 1454 |
return instance()->HideInternalNames; |
| 1455 |
} |
| 1456 |
|
| 1457 |
// Auto generated code (Tools/params_utils.py:366) |
| 1458 |
const bool& TreeParams::defaultHideInternalNames() |
| 1459 |
{ |
| 1460 |
const static bool def = true; |
| 1461 |
return def; |
| 1462 |
} |
| 1463 |
|
| 1464 |
// Auto generated code (Tools/params_utils.py:375) |
| 1465 |
void TreeParams::setHideInternalNames(const bool& v) |
| 1466 |
{ |
| 1467 |
instance()->handle->SetBool("HideInternalNames", v); |
| 1468 |
instance()->HideInternalNames = v; |
| 1469 |
} |
| 1470 |
|
| 1471 |
// Auto generated code (Tools/params_utils.py:384) |
| 1472 |
void TreeParams::removeHideInternalNames() |
| 1473 |
{ |
| 1474 |
instance()->handle->RemoveBool("HideInternalNames"); |
| 1475 |
} |
| 1476 |
|
| 1477 |
// Auto generated code (Tools/params_utils.py:350) |
| 1478 |
const char* TreeParams::docHideScrollBar() |
| 1479 |
{ |
| 1480 |
return QT_TRANSLATE_NOOP("TreeParams", "Hide tree view scroll bar in dock overlay."); |
| 1481 |
} |
| 1482 |
|
| 1483 |
// Auto generated code (Tools/params_utils.py:358) |
| 1484 |
const bool& TreeParams::getHideScrollBar() |
| 1485 |
{ |
| 1486 |
return instance()->HideScrollBar; |
| 1487 |
} |
| 1488 |
|
| 1489 |
// Auto generated code (Tools/params_utils.py:366) |
| 1490 |
const bool& TreeParams::defaultHideScrollBar() |
| 1491 |
{ |
| 1492 |
const static bool def = true; |
| 1493 |
return def; |
| 1494 |
} |
| 1495 |
|
| 1496 |
// Auto generated code (Tools/params_utils.py:375) |
| 1497 |
void TreeParams::setHideScrollBar(const bool& v) |
| 1498 |
{ |
| 1499 |
instance()->handle->SetBool("HideScrollBar", v); |
| 1500 |
instance()->HideScrollBar = v; |
| 1501 |
} |
| 1502 |
|
| 1503 |
// Auto generated code (Tools/params_utils.py:384) |
| 1504 |
void TreeParams::removeHideScrollBar() |
| 1505 |
{ |
| 1506 |
instance()->handle->RemoveBool("HideScrollBar"); |
| 1507 |
} |
| 1508 |
|
| 1509 |
// Auto generated code (Tools/params_utils.py:350) |
| 1510 |
const char* TreeParams::docHideHeaderView() |
| 1511 |
{ |
| 1512 |
return QT_TRANSLATE_NOOP("TreeParams", "Hide tree view header view in dock overlay."); |
| 1513 |
} |
| 1514 |
|
| 1515 |
// Auto generated code (Tools/params_utils.py:358) |
| 1516 |
const bool& TreeParams::getHideHeaderView() |
| 1517 |
{ |
| 1518 |
return instance()->HideHeaderView; |
| 1519 |
} |
| 1520 |
|
| 1521 |
// Auto generated code (Tools/params_utils.py:366) |
| 1522 |
const bool& TreeParams::defaultHideHeaderView() |
| 1523 |
{ |
| 1524 |
const static bool def = true; |
| 1525 |
return def; |
| 1526 |
} |
| 1527 |
|
| 1528 |
// Auto generated code (Tools/params_utils.py:375) |
| 1529 |
void TreeParams::setHideHeaderView(const bool& v) |
| 1530 |
{ |
| 1531 |
instance()->handle->SetBool("HideHeaderView", v); |
| 1532 |
instance()->HideHeaderView = v; |
| 1533 |
} |
| 1534 |
|
| 1535 |
// Auto generated code (Tools/params_utils.py:384) |
| 1536 |
void TreeParams::removeHideHeaderView() |
| 1537 |
{ |
| 1538 |
instance()->handle->RemoveBool("HideHeaderView"); |
| 1539 |
} |
| 1540 |
|
| 1541 |
// Auto generated code (Tools/params_utils.py:350) |
| 1542 |
const char* TreeParams::docResizableColumn() |
| 1543 |
{ |
| 1544 |
return QT_TRANSLATE_NOOP("TreeParams", "Allow tree view columns to be manually resized."); |
| 1545 |
} |
| 1546 |
|
| 1547 |
// Auto generated code (Tools/params_utils.py:358) |
| 1548 |
const bool& TreeParams::getResizableColumn() |
| 1549 |
{ |
| 1550 |
return instance()->ResizableColumn; |
| 1551 |
} |
| 1552 |
|
| 1553 |
// Auto generated code (Tools/params_utils.py:366) |
| 1554 |
const bool& TreeParams::defaultResizableColumn() |
| 1555 |
{ |
| 1556 |
const static bool def = false; |
| 1557 |
return def; |
| 1558 |
} |
| 1559 |
|
| 1560 |
// Auto generated code (Tools/params_utils.py:375) |
| 1561 |
void TreeParams::setResizableColumn(const bool& v) |
| 1562 |
{ |
| 1563 |
instance()->handle->SetBool("ResizableColumn", v); |
| 1564 |
instance()->ResizableColumn = v; |
| 1565 |
} |
| 1566 |
|
| 1567 |
// Auto generated code (Tools/params_utils.py:384) |
| 1568 |
void TreeParams::removeResizableColumn() |
| 1569 |
{ |
| 1570 |
instance()->handle->RemoveBool("ResizableColumn"); |
| 1571 |
} |
| 1572 |
|
| 1573 |
// Auto generated code (Tools/params_utils.py:350) |
| 1574 |
const char* TreeParams::docColumnSize1() |
| 1575 |
{ |
| 1576 |
return ""; |
| 1577 |
} |
| 1578 |
|
| 1579 |
// Auto generated code (Tools/params_utils.py:358) |
| 1580 |
const long& TreeParams::getColumnSize1() |
| 1581 |
{ |
| 1582 |
return instance()->ColumnSize1; |
| 1583 |
} |
| 1584 |
|
| 1585 |
// Auto generated code (Tools/params_utils.py:366) |
| 1586 |
const long& TreeParams::defaultColumnSize1() |
| 1587 |
{ |
| 1588 |
const static long def = 0; |
| 1589 |
return def; |
| 1590 |
} |
| 1591 |
|
| 1592 |
// Auto generated code (Tools/params_utils.py:375) |
| 1593 |
void TreeParams::setColumnSize1(const long& v) |
| 1594 |
{ |
| 1595 |
instance()->handle->SetInt("ColumnSize1", v); |
| 1596 |
instance()->ColumnSize1 = v; |
| 1597 |
} |
| 1598 |
|
| 1599 |
// Auto generated code (Tools/params_utils.py:384) |
| 1600 |
void TreeParams::removeColumnSize1() |
| 1601 |
{ |
| 1602 |
instance()->handle->RemoveInt("ColumnSize1"); |
| 1603 |
} |
| 1604 |
|
| 1605 |
// Auto generated code (Tools/params_utils.py:350) |
| 1606 |
const char* TreeParams::docColumnSize2() |
| 1607 |
{ |
| 1608 |
return ""; |
| 1609 |
} |
| 1610 |
|
| 1611 |
// Auto generated code (Tools/params_utils.py:358) |
| 1612 |
const long& TreeParams::getColumnSize2() |
| 1613 |
{ |
| 1614 |
return instance()->ColumnSize2; |
| 1615 |
} |
| 1616 |
|
| 1617 |
// Auto generated code (Tools/params_utils.py:366) |
| 1618 |
const long& TreeParams::defaultColumnSize2() |
| 1619 |
{ |
| 1620 |
const static long def = 0; |
| 1621 |
return def; |
| 1622 |
} |
| 1623 |
|
| 1624 |
// Auto generated code (Tools/params_utils.py:375) |
| 1625 |
void TreeParams::setColumnSize2(const long& v) |
| 1626 |
{ |
| 1627 |
instance()->handle->SetInt("ColumnSize2", v); |
| 1628 |
instance()->ColumnSize2 = v; |
| 1629 |
} |
| 1630 |
|
| 1631 |
// Auto generated code (Tools/params_utils.py:384) |
| 1632 |
void TreeParams::removeColumnSize2() |
| 1633 |
{ |
| 1634 |
instance()->handle->RemoveInt("ColumnSize2"); |
| 1635 |
} |
| 1636 |
|
| 1637 |
// Auto generated code (Tools/params_utils.py:350) |
| 1638 |
const char* TreeParams::docColumnSize3() |
| 1639 |
{ |
| 1640 |
return ""; |
| 1641 |
} |
| 1642 |
|
| 1643 |
// Auto generated code (Tools/params_utils.py:358) |
| 1644 |
const long& TreeParams::getColumnSize3() |
| 1645 |
{ |
| 1646 |
return instance()->ColumnSize3; |
| 1647 |
} |
| 1648 |
|
| 1649 |
// Auto generated code (Tools/params_utils.py:366) |
| 1650 |
const long& TreeParams::defaultColumnSize3() |
| 1651 |
{ |
| 1652 |
const static long def = 0; |
| 1653 |
return def; |
| 1654 |
} |
| 1655 |
|
| 1656 |
// Auto generated code (Tools/params_utils.py:375) |
| 1657 |
void TreeParams::setColumnSize3(const long& v) |
| 1658 |
{ |
| 1659 |
instance()->handle->SetInt("ColumnSize3", v); |
| 1660 |
instance()->ColumnSize3 = v; |
| 1661 |
} |
| 1662 |
|
| 1663 |
// Auto generated code (Tools/params_utils.py:384) |
| 1664 |
void TreeParams::removeColumnSize3() |
| 1665 |
{ |
| 1666 |
instance()->handle->RemoveInt("ColumnSize3"); |
| 1667 |
} |
| 1668 |
|
| 1669 |
// Auto generated code (Tools/params_utils.py:350) |
| 1670 |
const char* TreeParams::docTreeToolTipIcon() |
| 1671 |
{ |
| 1672 |
return ""; |
| 1673 |
} |
| 1674 |
|
| 1675 |
// Auto generated code (Tools/params_utils.py:358) |
| 1676 |
const bool& TreeParams::getTreeToolTipIcon() |
| 1677 |
{ |
| 1678 |
return instance()->TreeToolTipIcon; |
| 1679 |
} |
| 1680 |
|
| 1681 |
// Auto generated code (Tools/params_utils.py:366) |
| 1682 |
const bool& TreeParams::defaultTreeToolTipIcon() |
| 1683 |
{ |
| 1684 |
const static bool def = false; |
| 1685 |
return def; |
| 1686 |
} |
| 1687 |
|
| 1688 |
// Auto generated code (Tools/params_utils.py:375) |
| 1689 |
void TreeParams::setTreeToolTipIcon(const bool& v) |
| 1690 |
{ |
| 1691 |
instance()->handle->SetBool("TreeToolTipIcon", v); |
| 1692 |
instance()->TreeToolTipIcon = v; |
| 1693 |
} |
| 1694 |
|
| 1695 |
// Auto generated code (Tools/params_utils.py:384) |
| 1696 |
void TreeParams::removeTreeToolTipIcon() |
| 1697 |
{ |
| 1698 |
instance()->handle->RemoveBool("TreeToolTipIcon"); |
| 1699 |
} |
| 1700 |
|
| 1701 |
// Auto generated code (Tools/params_utils.py:350) |
| 1702 |
const char* TreeParams::docVisibilityIcon() |
| 1703 |
{ |
| 1704 |
return QT_TRANSLATE_NOOP( |
| 1705 |
"TreeParams", |
| 1706 |
"Displays an eye icon in front of the tree view items, showing the items visibility " |
| 1707 |
"status. When clicked the visibility is toggled" |
| 1708 |
); |
| 1709 |
} |
| 1710 |
|
| 1711 |
// Auto generated code (Tools/params_utils.py:358) |
| 1712 |
const bool& TreeParams::getVisibilityIcon() |
| 1713 |
{ |
| 1714 |
return instance()->VisibilityIcon; |
| 1715 |
} |
| 1716 |
|
| 1717 |
// Auto generated code (Tools/params_utils.py:366) |
| 1718 |
const bool& TreeParams::defaultVisibilityIcon() |
| 1719 |
{ |
| 1720 |
const static bool def = true; |
| 1721 |
return def; |
| 1722 |
} |
| 1723 |
|
| 1724 |
// Auto generated code (Tools/params_utils.py:375) |
| 1725 |
void TreeParams::setVisibilityIcon(const bool& v) |
| 1726 |
{ |
| 1727 |
instance()->handle->SetBool("VisibilityIcon", v); |
| 1728 |
instance()->VisibilityIcon = v; |
| 1729 |
} |
| 1730 |
|
| 1731 |
// Auto generated code (Tools/params_utils.py:384) |
| 1732 |
void TreeParams::removeVisibilityIcon() |
| 1733 |
{ |
| 1734 |
instance()->handle->RemoveBool("VisibilityIcon"); |
| 1735 |
} |
| 1736 |
//[[[end]]] |
| 1737 |
|
| 1738 |
void TreeParams::onSyncSelectionChanged() |
| 1739 |
{ |
| 1740 |
if (!TreeParams::getSyncSelection() || !Gui::Selection().hasSelection()) { |
| 1741 |
return; |
| 1742 |
} |
| 1743 |
TreeWidget::scrollItemToTop(); |
| 1744 |
} |
| 1745 |
|
| 1746 |
void TreeParams::onCheckBoxesSelectionChanged() |
| 1747 |
{ |
| 1748 |
TreeWidget::synchronizeSelectionCheckBoxes(); |
| 1749 |
} |
| 1750 |
|
| 1751 |
void TreeParams::onDocumentModeChanged() |
| 1752 |
{ |
| 1753 |
App::GetApplication().setActiveDocument(App::GetApplication().getActiveDocument()); |
| 1754 |
} |
| 1755 |
|
| 1756 |
void TreeParams::onResizableColumnChanged() |
| 1757 |
{ |
| 1758 |
TreeWidget::setupResizableColumn(); |
| 1759 |
} |
| 1760 |
|
| 1761 |
void TreeParams::onIconSizeChanged() |
| 1762 |
{ |
| 1763 |
auto tree = TreeWidget::instance(); |
| 1764 |
if (tree) { |
| 1765 |
tree->setIconHeight(TreeParams::getIconSize()); |
| 1766 |
} |
| 1767 |
} |
| 1768 |
|
| 1769 |
void TreeParams::onFontSizeChanged() |
| 1770 |
{ |
| 1771 |
int fontSize = TreeParams::getFontSize(); |
| 1772 |
if (fontSize <= 0) { |
| 1773 |
return; |
| 1774 |
} |
| 1775 |
for (auto tree : TreeWidget::Instances) { |
| 1776 |
QFont font = tree->font(); |
| 1777 |
font.setPointSize(std::max(8, fontSize)); |
| 1778 |
tree->setFont(font); |
| 1779 |
} |
| 1780 |
} |
| 1781 |
|
| 1782 |
void TreeParams::onItemSpacingChanged() |
| 1783 |
{ |
| 1784 |
refreshTreeViews(); |
| 1785 |
} |
| 1786 |
|
| 1787 |
void TreeParams::refreshTreeViews() |
| 1788 |
{ |
| 1789 |
for (auto tree : TreeWidget::Instances) { |
| 1790 |
tree->scheduleDelayedItemsLayout(); |
| 1791 |
} |
| 1792 |
} |
| 1793 |
|
| 1794 |
void TreeParams::onTreeActiveColorChanged() |
| 1795 |
{ |
| 1796 |
refreshTreeViews(); |
| 1797 |
} |
| 1798 |
|
| 1799 |
void TreeParams::onTreeEditColorChanged() |
| 1800 |
{ |
| 1801 |
refreshTreeViews(); |
| 1802 |
} |
| 1803 |
|
| 1804 |
void TreeParams::onSelectingGroupColorChanged() |
| 1805 |
{ |
| 1806 |
refreshTreeViews(); |
| 1807 |
} |
| 1808 |
|
| 1809 |
void TreeParams::onTreeActiveBoldChanged() |
| 1810 |
{ |
| 1811 |
refreshTreeViews(); |
| 1812 |
} |
| 1813 |
|
| 1814 |
void TreeParams::onTreeActiveItalicChanged() |
| 1815 |
{ |
| 1816 |
refreshTreeViews(); |
| 1817 |
} |
| 1818 |
|
| 1819 |
void TreeParams::onTreeActiveUnderlinedChanged() |
| 1820 |
{ |
| 1821 |
refreshTreeViews(); |
| 1822 |
} |
| 1823 |
|
| 1824 |
void TreeParams::onTreeActiveOverlinedChanged() |
| 1825 |
{ |
| 1826 |
refreshTreeViews(); |
| 1827 |
} |
| 1828 |
|
| 1829 |
void TreeParams::onIndentationChanged() |
| 1830 |
{ |
| 1831 |
refreshTreeViews(); |
| 1832 |
} |
| 1833 |
|
| 1834 |
void TreeParams::onItemBackgroundPaddingChanged() |
| 1835 |
{ |
| 1836 |
if (getItemBackground()) { |
| 1837 |
refreshTreeViews(); |
| 1838 |
} |
| 1839 |
} |
| 1840 |
|
| 1841 |
void TreeParams::onHideColumnChanged() |
| 1842 |
{ |
| 1843 |
for (auto tree : TreeWidget::Instances) { |
| 1844 |
tree->setColumnHidden(1, TreeParams::getHideColumn()); |
| 1845 |
} |
| 1846 |
} |
| 1847 |
|
| 1848 |
void TreeParams::onHideInternalNamesChanged() |
| 1849 |
{ |
| 1850 |
for (auto tree : TreeWidget::Instances) { |
| 1851 |
tree->setColumnHidden(2, TreeParams::getHideInternalNames()); |
| 1852 |
} |
| 1853 |
} |
| 1854 |
|
| 1855 |
void TreeParams::onVisibilityIconChanged() |
| 1856 |
{ |
| 1857 |
TreeWidget::updateVisibilityIcons(); |
| 1858 |
} |