Commit db8b3467 authored by Dirk Wilden's avatar Dirk Wilden
Browse files

createBackup

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11264 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 3d945731
......@@ -1166,7 +1166,7 @@ void SelectionBasePlugin::slotToggleSelection(QMouseEvent* _event) {
if (_event->button() == Qt::RightButton) return;
emit toggleSelection(_event->pos(), currentPrimitiveType_, deselection_);
emit toggleSelection(_event, currentPrimitiveType_, deselection_);
}
}
......@@ -1333,9 +1333,11 @@ void SelectionBasePlugin::slotSphereSelection(QMouseEvent* _event) {
sphere_node_->set_position(hit_point);
sphere_node_->set_size(sphere_radius_);
if(_event->buttons() & Qt::LeftButton) {
if( (_event->buttons() & Qt::LeftButton) //left button
||( (_event->buttons() == Qt::NoButton) && (_event->type() == QEvent::MouseButtonRelease)) // or release of left button
) {
// Inform selection plugins about the performed action
emit sphereSelection(_event->pos(), sphere_radius_, currentPrimitiveType_, deselection_);
emit sphereSelection(_event, sphere_radius_, currentPrimitiveType_, deselection_);
}
}
......@@ -1354,7 +1356,7 @@ void SelectionBasePlugin::slotBoundarySelection(QMouseEvent* _event) {
if (_event->button() == Qt::RightButton) return;
emit closestBoundarySelection(_event->pos(), currentPrimitiveType_, deselection_);
emit closestBoundarySelection(_event, currentPrimitiveType_, deselection_);
}
}
......@@ -1372,7 +1374,7 @@ void SelectionBasePlugin::slotFloodFillSelection(QMouseEvent* _event) {
if(!OpenFlipper::Options::nogui())
maxAngle = tool_->maxFloodFillAngle->value();
emit floodFillSelection(_event->pos(), maxAngle, currentPrimitiveType_, deselection_);
emit floodFillSelection(_event, maxAngle, currentPrimitiveType_, deselection_);
}
}
......
......@@ -110,13 +110,13 @@ Q_INTERFACES(SelectionInterface)
void addToolbar(QToolBar* _toolbar);
// SelectionInterface
void toggleSelection(QPoint _position, SelectionInterface::PrimitiveType _currentType, bool _deselect);
void toggleSelection(QMouseEvent* _event, SelectionInterface::PrimitiveType _currentType, bool _deselect);
void lassoSelection(QMouseEvent* _event, SelectionInterface::PrimitiveType _currentType, bool _deselect);
void volumeLassoSelection(QMouseEvent* _event, SelectionInterface::PrimitiveType _currentType, bool _deselect);
void surfaceLassoSelection(QMouseEvent* _event, SelectionInterface::PrimitiveType _currentType, bool _deselect);
void sphereSelection(QPoint _position, double _radius, SelectionInterface::PrimitiveType _currentType, bool _deselect);
void closestBoundarySelection(QPoint _position, SelectionInterface::PrimitiveType _currentType, bool _deselect);
void floodFillSelection(QPoint _position, double _maxAngle, SelectionInterface::PrimitiveType _currentType, bool _deselect);
void sphereSelection(QMouseEvent* _event, double _radius, SelectionInterface::PrimitiveType _currentType, bool _deselect);
void closestBoundarySelection(QMouseEvent* _event, SelectionInterface::PrimitiveType _currentType, bool _deselect);
void floodFillSelection(QMouseEvent* _event, double _maxAngle, SelectionInterface::PrimitiveType _currentType, bool _deselect);
void customSelection(QMouseEvent* _event, SelectionInterface::PrimitiveType _currentType, QString _customIdentifier, bool _deselect);
void selectionOperation(QString _operation);
......
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