Debian Codegraph @

src/Gui/PreferencePages/DlgSettingsAdvanced.py

raw
1 # ***************************************************************************
2 # * Copyright (c) 2022 Zheng Lei (realthunder) <[email protected]>*
3 # * *
4 # * This program is free software; you can redistribute it and/or modify *
5 # * it under the terms of the GNU Lesser General Public License (LGPL) *
6 # * as published by the Free Software Foundation; either version 2 of *
7 # * the License, or (at your option) any later version. *
8 # * for detail see the LICENCE text file. *
9 # * *
10 # * This program is distributed in the hope that it will be useful, *
11 # * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 # * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 # * GNU Library General Public License for more details. *
14 # * *
15 # * You should have received a copy of the GNU Library General Public *
16 # * License along with this program; if not, write to the Free Software *
17 # * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
18 # * USA *
19 # * *
20 # ***************************************************************************
21 """Auto code generator for preference page of Display/UI"""
22 import cog, sys
23 from os import path
24
25 # import Tools/params_utils.py
26 sys.path.append(
27 path.join(path.dirname(path.dirname(path.dirname(path.abspath(__file__)))), "Tools")
28 )
29 import params_utils
30 from params_utils import auto_comment
31
32 sys.path.append(path.join(path.dirname(path.dirname(path.dirname(path.abspath(__file__)))), "Gui"))
33 import OverlayParams
34
35 Title = "Advanced"
36 NameSpace = "Gui"
37 ClassName = "DlgSettingsAdvanced"
38 ClassDoc = "Preference dialog for various advanced UI settings"
39 UserInit = "init();"
40
41 _OverlayParams = {param.name: param for param in OverlayParams.Params}
42
43 ParamGroup = (
44 (
45 "Overlay",
46 [
47 _OverlayParams[name]
48 for name in (
49 "DockOverlayWheelDelay",
50 "DockOverlayAlphaRadius",
51 "DockOverlayCheckNaviCube",
52 "DockOverlayHintTriggerSize",
53 "DockOverlayHintSize",
54 "DockOverlayHintLeftOffset",
55 "DockOverlayHintLeftLength",
56 "DockOverlayHintRightOffset",
57 "DockOverlayHintRightLength",
58 "DockOverlayHintTopOffset",
59 "DockOverlayHintTopLength",
60 "DockOverlayHintBottomOffset",
61 "DockOverlayHintBottomLength",
62 "DockOverlayHintDelay",
63 "DockOverlaySplitterHandleTimeout",
64 "DockOverlayActivateOnHover",
65 "DockOverlayDelay",
66 "DockOverlayAnimationDuration",
67 "DockOverlayAnimationCurve",
68 )
69 ],
70 ),
71 )
72
73
74 def declare_begin():
75 params_utils.preference_dialog_declare_begin(sys.modules[__name__])
76
77
78 def declare_end():
79 params_utils.preference_dialog_declare_end(sys.modules[__name__])
80
81
82 def define():
83 params_utils.preference_dialog_define(sys.modules[__name__])