Commit ffee5d0f authored by Jan Möbius's avatar Jan Möbius

Changed selection interface

The qicons have been replaced by QString. The path to the icon has to be given now
This avoids the problem of qpixmap creation in the selection plugins, when no gui is present
Added deprecation warning, to informa about deprecated plugin interface usage

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@15791 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 57a122a8
......@@ -96,13 +96,13 @@ void SplatCloudObjectSelectionPlugin::pluginsInitialized()
QString iconPath = OpenFlipper::Options::iconDirStr() + OpenFlipper::Options::dirSeparator();
emit addSelectionEnvironment( "SplatCloud Object Selections", "Select SplatCloud object primitives (vertices/points).", QIcon( iconPath + "selections.png" ), environmentHandle_ );
emit addSelectionEnvironment( "SplatCloud Object Selections", "Select SplatCloud object primitives (vertices/points).", iconPath + "selections.png" , environmentHandle_ );
// Register SplatCloud object type
emit registerType( environmentHandle_, DATA_SPLATCLOUD );
// Register SplatCloud primitive types
emit addPrimitiveType( environmentHandle_, "Select Splats", QIcon( iconPath + VERTEX_TYPE ), vertexType_ );
emit addPrimitiveType( environmentHandle_, "Select Splats", iconPath + VERTEX_TYPE , vertexType_ );
// Combine all supported types
allSupportedTypes_ = vertexType_;
......
......@@ -109,9 +109,9 @@ signals:
void log( Logtype _type, QString _message );
//-- Selection Interface --
void addSelectionEnvironment( QString _modeName, QString _description, QIcon _icon, QString &_handleName );
void addSelectionEnvironment( QString _modeName, QString _description, QString _icon, QString &_handleName );
void registerType( QString _handleName, DataType _type );
void addPrimitiveType( QString _handleName, QString _name, QIcon _icon, SelectionInterface::PrimitiveType &_typeHandle );
void addPrimitiveType( QString _handleName, QString _name, QString _icon, SelectionInterface::PrimitiveType &_typeHandle );
void addSelectionOperations( QString _handleName, QStringList _operationsList, QString _category, SelectionInterface::PrimitiveType _type = 0u );
void showToggleSelectionMode ( QString _handleName, bool _show, SelectionInterface::PrimitiveType _associatedTypes );
......
Markdown is supported
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