| 1 |
import sys |
| 2 |
from os import path |
| 3 |
|
| 4 |
# Actual code generation is done in Base/param_utils.py. |
| 5 |
|
| 6 |
# The following code is to import param_util.py without needing __init__.py in Base directory |
| 7 |
sys.path.append(path.join(path.dirname(path.dirname(path.abspath(__file__))), "Base")) |
| 8 |
import params_utils |
| 9 |
|
| 10 |
from params_utils import ParamBool, ParamInt, ParamString, ParamUInt, ParamFloat |
| 11 |
|
| 12 |
NameSpace = "App" |
| 13 |
ClassName = "LinkParams" |
| 14 |
ParamPath = "User parameter:BaseApp/Preferences/Link" |
| 15 |
ClassDoc = "Convenient class to obtain App::Link related parameters" |
| 16 |
HeaderFile = "Link.h" |
| 17 |
SourceFile = "Link.cpp" |
| 18 |
|
| 19 |
Params = [ |
| 20 |
ParamBool( |
| 21 |
"CopyOnChangeApplyToAll", |
| 22 |
True, |
| 23 |
"""\ |
| 24 |
Stores the last user choice of whether to apply CopyOnChange setup to all link |
| 25 |
that links to the same configurable object""", |
| 26 |
), |
| 27 |
] |
| 28 |
|
| 29 |
|
| 30 |
def declare(): |
| 31 |
params_utils.declare_begin(sys.modules[__name__], header=False) |
| 32 |
params_utils.declare_end(sys.modules[__name__]) |
| 33 |
|
| 34 |
|
| 35 |
def define(): |
| 36 |
params_utils.define(sys.modules[__name__], header=False) |