4 #include <App/Properties/PropertySetInfo.h> 5 #include <Gui/CA_Command_5.h> 41 CmdSetPropertySetDefinition(
const std::string& propertySetName,
const std::string& propertyName, std::shared_ptr<OpenLxApp::Element> aElement);
42 CmdSetPropertySetDefinition(
const std::string& propertySetName,
const std::string& propertyName,
const std::vector<std::shared_ptr<OpenLxApp::Element>>& aElements);
48 CmdSetPropertySetDefinition(
const std::string& propertySetName,
const std::string& propertyName,
const bool& propertyValue, std::shared_ptr<OpenLxApp::Element> aElement);
49 CmdSetPropertySetDefinition(
const std::string& propertySetName,
const std::string& propertyName,
const bool& propertyValue,
const std::vector<std::shared_ptr<OpenLxApp::Element>>& aElements);
55 CmdSetPropertySetDefinition(
const std::string& propertySetName,
const std::string& propertyName,
const double& propertyValue, std::shared_ptr<OpenLxApp::Element> aElement);
56 CmdSetPropertySetDefinition(
const std::string& propertySetName,
const std::string& propertyName,
const double& propertyValue,
const std::vector<std::shared_ptr<OpenLxApp::Element>>& aElements);
62 CmdSetPropertySetDefinition(
const std::string& propertySetName,
const std::string& propertyName,
const std::string& propertyValue, std::shared_ptr<OpenLxApp::Element> aElement);
63 CmdSetPropertySetDefinition(
const std::string& propertySetName,
const std::string& propertyName,
const std::string& propertyValue,
const std::vector<std::shared_ptr<OpenLxApp::Element>>& aElements);
68 CmdSetPropertySetDefinition(
const std::string& propertySetName,
const std::string& propertyName,
const std::vector<std::string>& propertyValue,
const int& index);
69 CmdSetPropertySetDefinition(
const std::string& propertySetName,
const std::string& propertyName,
const std::vector<std::string>& propertyValue,
const int& index, std::shared_ptr<OpenLxApp::Element> aElement);
70 CmdSetPropertySetDefinition(
const std::string& propertySetName,
const std::string& propertyName,
const std::vector<std::string>& propertyValue,
const int& index,
const std::vector<std::shared_ptr<OpenLxApp::Element>>& aElements);
76 App::Document* _document =
nullptr;
77 App::PropertySetInfo* _propertySetInfo =
nullptr;
79 std::map<App::Element*, App::PropertySet*> _propertySets = {};
80 std::pair<Core::PropertyGroupDescriptor*, Core::PropertyDescriptor*> _propertyGroupDescriptor;
81 std::unique_ptr<CmdRunCommands> _docCommands;
83 void execute(
const std::string& propertySetName,
const std::string& propertyName,
const Core::Variant& propertyValue,
const std::vector<std::shared_ptr<OpenLxApp::Element>>& aElements = {},
const int& index = 0);
84 bool handleDeletedProperties(
const std::string& propertySetName,
const std::string& propertyName,
const Core::Variant& propertyValue,
const std::vector<App::Element*>& elements)
const;
85 bool handlePredefinedPropertySets(
const std::string& propertySetName,
const std::string& propertyName,
const Core::Variant& propertyValue,
const std::vector<App::Element*>& elements);
87 App::PropertySetDefinition* getPropertySetDefinition(
const Base::String& propertySetName, App::Element* element)
const;
A Utf-16 (windows) or ucs4 (unix) encoded string class.
Definition: String.h:23
Generic command to add/delete/modify the value of a "Property" inside a "PropertySet" of an Element....
Definition: CmdSetPropertySetDefinition.h:31
Definition: PropertyDescriptor.h:15
bool undo(int id=0)
Will UNDO one step, returns False if no undo was done (Undos == 0).
bool redo(int id=0)
Will REDO one step, returns False if no redo was done (Redos == 0).
Definition: CmdAddBolt.h:7