Convenient class to obtain App::Link related parameters. More...
#include <Link.h>
Static Public Member Functions | |
static const bool & | defaultCopyOnChangeApplyToAll () |
static const char * | docCopyOnChangeApplyToAll () |
static const bool & | getCopyOnChangeApplyToAll () |
Accessor for parameter CopyOnChangeApplyToAll. More... | |
static ParameterGrp::handle | getHandle () |
static void | removeCopyOnChangeApplyToAll () |
static void | setCopyOnChangeApplyToAll (const bool &v) |
Convenient class to obtain App::Link related parameters.
The parameters are under group "User parameter:BaseApp/Preferences/Link"
This class is auto generated by LinkParams.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:
Once modified, you can regenerate the header and the source file,
You can add a new parameter by adding lines in LinkParams.py. Available parameter types are 'Int, UInt, String, Bool, Float'. For example, to add a new Int type parameter,
If there is special handling on parameter change, pass in on_change=True. And you need to provide a function implementation in Link.cpp with the following signature.
|
static |
|
static |
|
static |
Accessor for parameter CopyOnChangeApplyToAll.
Stores the last user choice of whether to apply CopyOnChange setup to all link that links to the same configurable object
Referenced by Gui::ViewProviderLink::setupContextMenu().
|
static |
|
static |
|
static |
Referenced by Gui::ViewProviderLink::setupContextMenu().