| 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 |
#ifndef GUI_OVERLAY_PARAMS_H |
| 24 |
#define GUI_OVERLAY_PARAMS_H |
| 25 |
|
| 26 |
/*[[[cog |
| 27 |
import OverlayParams |
| 28 |
OverlayParams.declare() |
| 29 |
]]]*/ |
| 30 |
|
| 31 |
// Auto generated code (Gui/OverlayParams.py:157) |
| 32 |
#include <QString> |
| 33 |
|
| 34 |
// Auto generated code (Tools/params_utils.py:82) |
| 35 |
#include <Base/Parameter.h> |
| 36 |
|
| 37 |
|
| 38 |
// Auto generated code (Tools/params_utils.py:90) |
| 39 |
namespace Gui |
| 40 |
{ |
| 41 |
/** Convenient class to obtain overlay widgets related parameters |
| 42 |
|
| 43 |
* The parameters are under group "User parameter:BaseApp/Preferences/View" |
| 44 |
* |
| 45 |
* This class is auto generated by Gui/OverlayParams.py. Modify that file |
| 46 |
* instead of this one, if you want to add any parameter. You need |
| 47 |
* to install Cog Python package for code generation: |
| 48 |
* @code |
| 49 |
* pip install cogapp |
| 50 |
* @endcode |
| 51 |
* |
| 52 |
* Once modified, you can regenerate the header and the source file, |
| 53 |
* @code |
| 54 |
* python3 -m cogapp -r Gui/OverlayParams.h Gui/OverlayParams.cpp |
| 55 |
* @endcode |
| 56 |
* |
| 57 |
* You can add a new parameter by adding lines in Gui/OverlayParams.py. Available |
| 58 |
* parameter types are 'Int, UInt, String, Bool, Float'. For example, to add |
| 59 |
* a new Int type parameter, |
| 60 |
* @code |
| 61 |
* ParamInt(parameter_name, default_value, documentation, on_change=False) |
| 62 |
* @endcode |
| 63 |
* |
| 64 |
* If there is special handling on parameter change, pass in on_change=True. |
| 65 |
* And you need to provide a function implementation in Gui/OverlayParams.cpp with |
| 66 |
* the following signature. |
| 67 |
* @code |
| 68 |
* void OverlayParams:on<parameter_name>Changed() |
| 69 |
* @endcode |
| 70 |
*/ |
| 71 |
class GuiExport OverlayParams |
| 72 |
{ |
| 73 |
public: |
| 74 |
static ParameterGrp::handle getHandle(); |
| 75 |
|
| 76 |
// Auto generated code (Tools/params_utils.py:138) |
| 77 |
//@{ |
| 78 |
/// Accessor for parameter DockOverlayAutoView |
| 79 |
static const bool& getDockOverlayAutoView(); |
| 80 |
static const bool& defaultDockOverlayAutoView(); |
| 81 |
static void removeDockOverlayAutoView(); |
| 82 |
static void setDockOverlayAutoView(const bool& v); |
| 83 |
static const char* docDockOverlayAutoView(); |
| 84 |
static void onDockOverlayAutoViewChanged(); |
| 85 |
//@} |
| 86 |
|
| 87 |
// Auto generated code (Tools/params_utils.py:138) |
| 88 |
//@{ |
| 89 |
/// Accessor for parameter DockOverlayDelay |
| 90 |
/// |
| 91 |
/// Overlay dock (re),layout delay. |
| 92 |
static const long& getDockOverlayDelay(); |
| 93 |
static const long& defaultDockOverlayDelay(); |
| 94 |
static void removeDockOverlayDelay(); |
| 95 |
static void setDockOverlayDelay(const long& v); |
| 96 |
static const char* docDockOverlayDelay(); |
| 97 |
//@} |
| 98 |
|
| 99 |
// Auto generated code (Tools/params_utils.py:138) |
| 100 |
//@{ |
| 101 |
/// Accessor for parameter DockOverlayRevealDelay |
| 102 |
static const long& getDockOverlayRevealDelay(); |
| 103 |
static const long& defaultDockOverlayRevealDelay(); |
| 104 |
static void removeDockOverlayRevealDelay(); |
| 105 |
static void setDockOverlayRevealDelay(const long& v); |
| 106 |
static const char* docDockOverlayRevealDelay(); |
| 107 |
//@} |
| 108 |
|
| 109 |
// Auto generated code (Tools/params_utils.py:138) |
| 110 |
//@{ |
| 111 |
/// Accessor for parameter DockOverlaySplitterHandleTimeout |
| 112 |
/// |
| 113 |
/// Overlay splitter handle auto hide delay. Set zero to disable auto hiding. |
| 114 |
static const long& getDockOverlaySplitterHandleTimeout(); |
| 115 |
static const long& defaultDockOverlaySplitterHandleTimeout(); |
| 116 |
static void removeDockOverlaySplitterHandleTimeout(); |
| 117 |
static void setDockOverlaySplitterHandleTimeout(const long& v); |
| 118 |
static const char* docDockOverlaySplitterHandleTimeout(); |
| 119 |
//@} |
| 120 |
|
| 121 |
// Auto generated code (Tools/params_utils.py:138) |
| 122 |
//@{ |
| 123 |
/// Accessor for parameter DockOverlayActivateOnHover |
| 124 |
/// |
| 125 |
/// Show auto hidden dock overlay on mouse over. |
| 126 |
/// If disabled, then show on mouse click. |
| 127 |
static const bool& getDockOverlayActivateOnHover(); |
| 128 |
static const bool& defaultDockOverlayActivateOnHover(); |
| 129 |
static void removeDockOverlayActivateOnHover(); |
| 130 |
static void setDockOverlayActivateOnHover(const bool& v); |
| 131 |
static const char* docDockOverlayActivateOnHover(); |
| 132 |
//@} |
| 133 |
|
| 134 |
// Auto generated code (Tools/params_utils.py:138) |
| 135 |
//@{ |
| 136 |
/// Accessor for parameter DockOverlayAutoMouseThrough |
| 137 |
/// |
| 138 |
/// Auto mouse click through transparent part of dock overlay. |
| 139 |
static const bool& getDockOverlayAutoMouseThrough(); |
| 140 |
static const bool& defaultDockOverlayAutoMouseThrough(); |
| 141 |
static void removeDockOverlayAutoMouseThrough(); |
| 142 |
static void setDockOverlayAutoMouseThrough(const bool& v); |
| 143 |
static const char* docDockOverlayAutoMouseThrough(); |
| 144 |
//@} |
| 145 |
|
| 146 |
// Auto generated code (Tools/params_utils.py:138) |
| 147 |
//@{ |
| 148 |
/// Accessor for parameter DockOverlayWheelPassThrough |
| 149 |
/// |
| 150 |
/// Auto pass through mouse wheel event on transparent dock overlay. |
| 151 |
static const bool& getDockOverlayWheelPassThrough(); |
| 152 |
static const bool& defaultDockOverlayWheelPassThrough(); |
| 153 |
static void removeDockOverlayWheelPassThrough(); |
| 154 |
static void setDockOverlayWheelPassThrough(const bool& v); |
| 155 |
static const char* docDockOverlayWheelPassThrough(); |
| 156 |
//@} |
| 157 |
|
| 158 |
// Auto generated code (Tools/params_utils.py:138) |
| 159 |
//@{ |
| 160 |
/// Accessor for parameter DockOverlayWheelDelay |
| 161 |
/// |
| 162 |
/// Delay capturing mouse wheel event for passing through if it is |
| 163 |
/// previously handled by other widget. |
| 164 |
static const long& getDockOverlayWheelDelay(); |
| 165 |
static const long& defaultDockOverlayWheelDelay(); |
| 166 |
static void removeDockOverlayWheelDelay(); |
| 167 |
static void setDockOverlayWheelDelay(const long& v); |
| 168 |
static const char* docDockOverlayWheelDelay(); |
| 169 |
//@} |
| 170 |
|
| 171 |
// Auto generated code (Tools/params_utils.py:138) |
| 172 |
//@{ |
| 173 |
/// Accessor for parameter DockOverlayAlphaRadius |
| 174 |
/// |
| 175 |
/// If auto mouse click through is enabled, then this radius |
| 176 |
/// defines a region of alpha test under the mouse cursor. |
| 177 |
/// Auto click through is only activated if all pixels within |
| 178 |
/// the region are non-opaque. |
| 179 |
static const long& getDockOverlayAlphaRadius(); |
| 180 |
static const long& defaultDockOverlayAlphaRadius(); |
| 181 |
static void removeDockOverlayAlphaRadius(); |
| 182 |
static void setDockOverlayAlphaRadius(const long& v); |
| 183 |
static const char* docDockOverlayAlphaRadius(); |
| 184 |
//@} |
| 185 |
|
| 186 |
// Auto generated code (Tools/params_utils.py:138) |
| 187 |
//@{ |
| 188 |
/// Accessor for parameter DockOverlayCheckNaviCube |
| 189 |
/// |
| 190 |
/// Leave space for Navigation Cube in dock overlay |
| 191 |
static const bool& getDockOverlayCheckNaviCube(); |
| 192 |
static const bool& defaultDockOverlayCheckNaviCube(); |
| 193 |
static void removeDockOverlayCheckNaviCube(); |
| 194 |
static void setDockOverlayCheckNaviCube(const bool& v); |
| 195 |
static const char* docDockOverlayCheckNaviCube(); |
| 196 |
static void onDockOverlayCheckNaviCubeChanged(); |
| 197 |
//@} |
| 198 |
|
| 199 |
// Auto generated code (Tools/params_utils.py:138) |
| 200 |
//@{ |
| 201 |
/// Accessor for parameter DockOverlayHintTriggerSize |
| 202 |
/// |
| 203 |
/// Auto hide hint visual display triggering width |
| 204 |
static const long& getDockOverlayHintTriggerSize(); |
| 205 |
static const long& defaultDockOverlayHintTriggerSize(); |
| 206 |
static void removeDockOverlayHintTriggerSize(); |
| 207 |
static void setDockOverlayHintTriggerSize(const long& v); |
| 208 |
static const char* docDockOverlayHintTriggerSize(); |
| 209 |
//@} |
| 210 |
|
| 211 |
// Auto generated code (Tools/params_utils.py:138) |
| 212 |
//@{ |
| 213 |
/// Accessor for parameter DockOverlayHintSize |
| 214 |
/// |
| 215 |
/// Auto hide hint visual display width |
| 216 |
static const long& getDockOverlayHintSize(); |
| 217 |
static const long& defaultDockOverlayHintSize(); |
| 218 |
static void removeDockOverlayHintSize(); |
| 219 |
static void setDockOverlayHintSize(const long& v); |
| 220 |
static const char* docDockOverlayHintSize(); |
| 221 |
//@} |
| 222 |
|
| 223 |
// Auto generated code (Tools/params_utils.py:138) |
| 224 |
//@{ |
| 225 |
/// Accessor for parameter DockOverlayHintLeftLength |
| 226 |
/// |
| 227 |
/// Auto hide hint visual display length for left panel. Set to zero to fill the space. |
| 228 |
static const long& getDockOverlayHintLeftLength(); |
| 229 |
static const long& defaultDockOverlayHintLeftLength(); |
| 230 |
static void removeDockOverlayHintLeftLength(); |
| 231 |
static void setDockOverlayHintLeftLength(const long& v); |
| 232 |
static const char* docDockOverlayHintLeftLength(); |
| 233 |
//@} |
| 234 |
|
| 235 |
// Auto generated code (Tools/params_utils.py:138) |
| 236 |
//@{ |
| 237 |
/// Accessor for parameter DockOverlayHintRightLength |
| 238 |
/// |
| 239 |
/// Auto hide hint visual display length for right panel. Set to zero to fill the space. |
| 240 |
static const long& getDockOverlayHintRightLength(); |
| 241 |
static const long& defaultDockOverlayHintRightLength(); |
| 242 |
static void removeDockOverlayHintRightLength(); |
| 243 |
static void setDockOverlayHintRightLength(const long& v); |
| 244 |
static const char* docDockOverlayHintRightLength(); |
| 245 |
//@} |
| 246 |
|
| 247 |
// Auto generated code (Tools/params_utils.py:138) |
| 248 |
//@{ |
| 249 |
/// Accessor for parameter DockOverlayHintTopLength |
| 250 |
/// |
| 251 |
/// Auto hide hint visual display length for top panel. Set to zero to fill the space. |
| 252 |
static const long& getDockOverlayHintTopLength(); |
| 253 |
static const long& defaultDockOverlayHintTopLength(); |
| 254 |
static void removeDockOverlayHintTopLength(); |
| 255 |
static void setDockOverlayHintTopLength(const long& v); |
| 256 |
static const char* docDockOverlayHintTopLength(); |
| 257 |
//@} |
| 258 |
|
| 259 |
// Auto generated code (Tools/params_utils.py:138) |
| 260 |
//@{ |
| 261 |
/// Accessor for parameter DockOverlayHintBottomLength |
| 262 |
/// |
| 263 |
/// Auto hide hint visual display length for bottom panel. Set to zero to fill the space. |
| 264 |
static const long& getDockOverlayHintBottomLength(); |
| 265 |
static const long& defaultDockOverlayHintBottomLength(); |
| 266 |
static void removeDockOverlayHintBottomLength(); |
| 267 |
static void setDockOverlayHintBottomLength(const long& v); |
| 268 |
static const char* docDockOverlayHintBottomLength(); |
| 269 |
//@} |
| 270 |
|
| 271 |
// Auto generated code (Tools/params_utils.py:138) |
| 272 |
//@{ |
| 273 |
/// Accessor for parameter DockOverlayHintLeftOffset |
| 274 |
/// |
| 275 |
/// Auto hide hint visual display offset for left panel |
| 276 |
static const long& getDockOverlayHintLeftOffset(); |
| 277 |
static const long& defaultDockOverlayHintLeftOffset(); |
| 278 |
static void removeDockOverlayHintLeftOffset(); |
| 279 |
static void setDockOverlayHintLeftOffset(const long& v); |
| 280 |
static const char* docDockOverlayHintLeftOffset(); |
| 281 |
//@} |
| 282 |
|
| 283 |
// Auto generated code (Tools/params_utils.py:138) |
| 284 |
//@{ |
| 285 |
/// Accessor for parameter DockOverlayHintRightOffset |
| 286 |
/// |
| 287 |
/// Auto hide hint visual display offset for right panel |
| 288 |
static const long& getDockOverlayHintRightOffset(); |
| 289 |
static const long& defaultDockOverlayHintRightOffset(); |
| 290 |
static void removeDockOverlayHintRightOffset(); |
| 291 |
static void setDockOverlayHintRightOffset(const long& v); |
| 292 |
static const char* docDockOverlayHintRightOffset(); |
| 293 |
//@} |
| 294 |
|
| 295 |
// Auto generated code (Tools/params_utils.py:138) |
| 296 |
//@{ |
| 297 |
/// Accessor for parameter DockOverlayHintTopOffset |
| 298 |
/// |
| 299 |
/// Auto hide hint visual display offset for top panel |
| 300 |
static const long& getDockOverlayHintTopOffset(); |
| 301 |
static const long& defaultDockOverlayHintTopOffset(); |
| 302 |
static void removeDockOverlayHintTopOffset(); |
| 303 |
static void setDockOverlayHintTopOffset(const long& v); |
| 304 |
static const char* docDockOverlayHintTopOffset(); |
| 305 |
//@} |
| 306 |
|
| 307 |
// Auto generated code (Tools/params_utils.py:138) |
| 308 |
//@{ |
| 309 |
/// Accessor for parameter DockOverlayHintBottomOffset |
| 310 |
/// |
| 311 |
/// Auto hide hint visual display offset for bottom panel |
| 312 |
static const long& getDockOverlayHintBottomOffset(); |
| 313 |
static const long& defaultDockOverlayHintBottomOffset(); |
| 314 |
static void removeDockOverlayHintBottomOffset(); |
| 315 |
static void setDockOverlayHintBottomOffset(const long& v); |
| 316 |
static const char* docDockOverlayHintBottomOffset(); |
| 317 |
//@} |
| 318 |
|
| 319 |
// Auto generated code (Tools/params_utils.py:138) |
| 320 |
//@{ |
| 321 |
/// Accessor for parameter DockOverlayHintTabBar |
| 322 |
/// |
| 323 |
/// Show tab bar on mouse over when auto hide |
| 324 |
static const bool& getDockOverlayHintTabBar(); |
| 325 |
static const bool& defaultDockOverlayHintTabBar(); |
| 326 |
static void removeDockOverlayHintTabBar(); |
| 327 |
static void setDockOverlayHintTabBar(const bool& v); |
| 328 |
static const char* docDockOverlayHintTabBar(); |
| 329 |
//@} |
| 330 |
|
| 331 |
// Auto generated code (Tools/params_utils.py:138) |
| 332 |
//@{ |
| 333 |
/// Accessor for parameter DockOverlayHideTabBar |
| 334 |
/// |
| 335 |
/// Hide tab bar in dock overlay |
| 336 |
static const bool& getDockOverlayHideTabBar(); |
| 337 |
static const bool& defaultDockOverlayHideTabBar(); |
| 338 |
static void removeDockOverlayHideTabBar(); |
| 339 |
static void setDockOverlayHideTabBar(const bool& v); |
| 340 |
static const char* docDockOverlayHideTabBar(); |
| 341 |
static void onDockOverlayHideTabBarChanged(); |
| 342 |
//@} |
| 343 |
|
| 344 |
// Auto generated code (Tools/params_utils.py:138) |
| 345 |
//@{ |
| 346 |
/// Accessor for parameter DockOverlayHintDelay |
| 347 |
/// |
| 348 |
/// Delay before show hint visual |
| 349 |
static const long& getDockOverlayHintDelay(); |
| 350 |
static const long& defaultDockOverlayHintDelay(); |
| 351 |
static void removeDockOverlayHintDelay(); |
| 352 |
static void setDockOverlayHintDelay(const long& v); |
| 353 |
static const char* docDockOverlayHintDelay(); |
| 354 |
//@} |
| 355 |
|
| 356 |
// Auto generated code (Tools/params_utils.py:138) |
| 357 |
//@{ |
| 358 |
/// Accessor for parameter DockOverlayAnimationDuration |
| 359 |
/// |
| 360 |
/// Auto hide animation duration, 0 to disable |
| 361 |
static const long& getDockOverlayAnimationDuration(); |
| 362 |
static const long& defaultDockOverlayAnimationDuration(); |
| 363 |
static void removeDockOverlayAnimationDuration(); |
| 364 |
static void setDockOverlayAnimationDuration(const long& v); |
| 365 |
static const char* docDockOverlayAnimationDuration(); |
| 366 |
//@} |
| 367 |
|
| 368 |
// Auto generated code (Tools/params_utils.py:138) |
| 369 |
//@{ |
| 370 |
/// Accessor for parameter DockOverlayAnimationCurve |
| 371 |
/// |
| 372 |
/// Auto hide animation curve type |
| 373 |
static const long& getDockOverlayAnimationCurve(); |
| 374 |
static const long& defaultDockOverlayAnimationCurve(); |
| 375 |
static void removeDockOverlayAnimationCurve(); |
| 376 |
static void setDockOverlayAnimationCurve(const long& v); |
| 377 |
static const char* docDockOverlayAnimationCurve(); |
| 378 |
//@} |
| 379 |
|
| 380 |
// Auto generated code (Tools/params_utils.py:138) |
| 381 |
//@{ |
| 382 |
/// Accessor for parameter DockOverlayHidePropertyViewScrollBar |
| 383 |
/// |
| 384 |
/// Hide property view scroll bar in dock overlay |
| 385 |
static const bool& getDockOverlayHidePropertyViewScrollBar(); |
| 386 |
static const bool& defaultDockOverlayHidePropertyViewScrollBar(); |
| 387 |
static void removeDockOverlayHidePropertyViewScrollBar(); |
| 388 |
static void setDockOverlayHidePropertyViewScrollBar(const bool& v); |
| 389 |
static const char* docDockOverlayHidePropertyViewScrollBar(); |
| 390 |
//@} |
| 391 |
|
| 392 |
// Auto generated code (Tools/params_utils.py:138) |
| 393 |
//@{ |
| 394 |
/// Accessor for parameter DockOverlayMinimumSize |
| 395 |
/// |
| 396 |
/// Minimum overlay dock widget width/height |
| 397 |
static const long& getDockOverlayMinimumSize(); |
| 398 |
static const long& defaultDockOverlayMinimumSize(); |
| 399 |
static void removeDockOverlayMinimumSize(); |
| 400 |
static void setDockOverlayMinimumSize(const long& v); |
| 401 |
static const char* docDockOverlayMinimumSize(); |
| 402 |
static void onDockOverlayMinimumSizeChanged(); |
| 403 |
//@} |
| 404 |
|
| 405 |
// Auto generated code (Gui/OverlayParams.py:163) |
| 406 |
static const std::vector<QString> AnimationCurveTypes; |
| 407 |
|
| 408 |
// Auto generated code (Tools/params_utils.py:178) |
| 409 |
}; // class OverlayParams |
| 410 |
} // namespace Gui |
| 411 |
//[[[end]]] |
| 412 |
|
| 413 |
#endif // GUI_OVERLAY_PARAMS_H |