Commit f90be1a8 authored by Martin Schultz's avatar Martin Schultz
Browse files

added some helper functions to BaseSelectionPlugin to improve readability of the code

parent b4ef1038
This diff is collapsed.
......@@ -298,6 +298,9 @@ Q_INTERFACES(SelectionInterface)
/// Get a unique handle name
QString getUniqueHandleName(QString _name, int _num = 0);
/// Get a selectionEnvironment by a given name
bool getSelectionEnvironment(SelectionEnvironment*& env, const QString& _handleName);
/// Test if at least one object of type _type is in the scene graph
bool typeExists(DataType _type, int _excludeId = -1);
......@@ -310,6 +313,13 @@ Q_INTERFACES(SelectionInterface)
QString _handleName, bool _show, SelectionInterface::PrimitiveType _associatedTypes,
QString& _customIdentifier, bool _custom = false, DataType _objectTypeRestriction = DATA_ALL);
/// helper function for showSelectionMode
void selectionModeShowSwitch(bool _show, SelectionEnvironment*& env, HandleAction* toggleSelectionAction_,
SelectionInterface::PrimitiveType& _associatedTypes);
/// helper function to find a baseObjectData and selection environment given a specific id
bool findObjectType(BaseObjectData*& obj, bool& found, SelectionEnvironment*& env, int _id);
/// Create new type frame for tabs widget
SelectionTypeFrameWidget* createNewTypeFrame(SelectionEnvironment& _env);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment