Commit 9b88e118 authored by Jan Möbius's avatar Jan Möbius
Browse files

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 81c112f8
......@@ -105,7 +105,7 @@ void VolumeMeshSelectionPlugin::pluginsInitialized() {
emit
addSelectionEnvironment("VolumeMesh Selections", "Select volume mesh primitives.",
QIcon(iconPath + "datacontrol-boundingBox.png"), environmentHandle_);
iconPath + "datacontrol-boundingBox.png", environmentHandle_);
// Register mesh object types
emit
......@@ -113,22 +113,17 @@ void VolumeMeshSelectionPlugin::pluginsInitialized() {
emit
registerType(environmentHandle_, DATA_HEXAHEDRAL_MESH);
emit
addPrimitiveType(environmentHandle_, "Select Volume Mesh Vertices", QIcon(iconPath + VERTEX_TYPE), vertexType_);
emit
addPrimitiveType(environmentHandle_, "Select Volume Mesh Edges", QIcon(iconPath + EDGE_TYPE), edgeType_);
emit
addPrimitiveType(environmentHandle_, "Select Volume Mesh Faces", QIcon(iconPath + FACE_TYPE), faceType_);
emit
addPrimitiveType(environmentHandle_, "Select Volume Mesh Cells", QIcon(iconPath + CELL_TYPE), cellType_);
emit addPrimitiveType(environmentHandle_, "Select Volume Mesh Vertices", iconPath + VERTEX_TYPE, vertexType_);
emit addPrimitiveType(environmentHandle_, "Select Volume Mesh Edges", iconPath + EDGE_TYPE, edgeType_);
emit addPrimitiveType(environmentHandle_, "Select Volume Mesh Faces", iconPath + FACE_TYPE, faceType_);
emit addPrimitiveType(environmentHandle_, "Select Volume Mesh Cells", iconPath + CELL_TYPE, cellType_);
emit
addCustomSelectionMode(environmentHandle_, "Column Selection", "Select entire column of cells",
QIcon(iconPath + COLUMN_SELECTION), cellType_, columnSelectionHandle_);
emit addCustomSelectionMode(environmentHandle_, "Column Selection", "Select entire column of cells",
iconPath + COLUMN_SELECTION, cellType_, columnSelectionHandle_);
emit
addCustomSelectionMode(environmentHandle_, "Sheet Selection", "Select entire sheet of cells",
QIcon(iconPath + SHEET_SELECTION), cellType_, sheetSelectionHandle_);
iconPath + SHEET_SELECTION, cellType_, sheetSelectionHandle_);
allSupportedTypes_ = vertexType_ | edgeType_ | faceType_ | cellType_;
......
......@@ -102,13 +102,13 @@ signals:
void scriptInfo(QString _functionName);
// SelectionInterface
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);
void showVolumeLassoSelectionMode(QString _handleName, bool _show, SelectionInterface::PrimitiveType _associatedTypes);
void addCustomSelectionMode(QString _handleName, QString _modeName, QString _description, QIcon _icon,
void addCustomSelectionMode(QString _handleName, QString _modeName, QString _description, QString _icon,
SelectionInterface::PrimitiveType _associatedTypes, QString& _customIdentifier);
void getActiveDataTypes(SelectionInterface::TypeList& _types);
......
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