Commit 8b8fcba6 authored by Jan Möbius's avatar Jan Möbius

use new visibilityChanged handling

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@7793 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 65354eb0
......@@ -74,9 +74,6 @@ void DataControlPlugin::slotContextMenuHide( ) {
return;
object->hide();
emit visibilityChanged(objectId);
emit updateView();
}
......
......@@ -334,7 +334,6 @@ void DataControlPlugin::slotDataChanged ( int _id, int _column, const QVariant&
// show/hide
case 1:
obj->visible( _value.toBool() );
emit visibilityChanged( obj->id() );
break;
// source
......
......@@ -80,7 +80,6 @@ class DataControlPlugin : public QObject, BaseInterface, ToolboxInterface, KeyIn
// BaseInterface
void updateView();
void updatedObject(int);
void visibilityChanged(int);
void objectSelectionChanged(int);
void objectPropertiesChanged(int);
......
......@@ -174,11 +174,8 @@ void DataControlPlugin::hideObject( int objectId ) {
BaseObjectData* object;
if ( PluginFunctions::getObject(objectId,object) ){
object->hide();
emit visibilityChanged( object->id() );
}
emit updateView();
}
......@@ -267,11 +264,8 @@ void DataControlPlugin::showObject( int objectId ) {
BaseObjectData* object;
if ( PluginFunctions::getObject(objectId,object) ){
object->show();
emit visibilityChanged( object->id() );
}
emit updateView();
}
......@@ -346,7 +340,6 @@ void DataControlPlugin::groupObjects(idList _objectIDs, QString _groupName) {
groupItem->source(source);
emit objectPropertiesChanged( groupItem->id() );
emit visibilityChanged ( groupItem->id() );
emit objectSelectionChanged ( groupItem->id() );
}
......@@ -465,11 +458,8 @@ void DataControlPlugin::hideAll() {
for ( PluginFunctions::ObjectIterator o_it(PluginFunctions::ALL_OBJECTS,type) ;
o_it != PluginFunctions::objectsEnd(); ++o_it){
o_it->hide();
emit visibilityChanged( o_it->id() );
}
emit updateView();
}
......@@ -490,9 +480,6 @@ void DataControlPlugin::showAll() {
for ( PluginFunctions::ObjectIterator o_it(PluginFunctions::ALL_OBJECTS, type); o_it != PluginFunctions::objectsEnd(); ++o_it){
o_it->show();
emit visibilityChanged( o_it->id() );
}
emit updateView();
}
......@@ -247,7 +247,6 @@ void DataControlPlugin::slotGroup() {
groupItem->target(target);
groupItem->source(source);
emit visibilityChanged( groupItem->id() );
emit objectPropertiesChanged( groupItem->id() );
emit objectSelectionChanged ( groupItem->id() );
}
......@@ -558,7 +557,6 @@ void DataControlPlugin::slotZoomTo(){
if ( !child->visible() ){
child->show();
emit visibilityChanged( child->id() );
}
ACG::Vec3d cur_min;
......@@ -596,7 +594,6 @@ void DataControlPlugin::slotZoomTo(){
if ( !obj->visible() ){
obj->show();
emit visibilityChanged( obj->id() );
}
if (obj){
......
......@@ -343,7 +343,7 @@ void MovePlugin::slotMouseEvent(QMouseEvent* _event) {
PluginFunctions::traverse(action);
if (_event->buttons() == Qt::LeftButton)
emit visibilityChanged(-1);
emit nodeVisibilityChanged(-1);
}
}
......@@ -750,13 +750,13 @@ void MovePlugin::showManipulators( )
if (o_it->manipPlaced()) {
o_it->manipulatorNode()->show();
o_it->manipulatorNode()->apply_transformation( PluginFunctions::pickMode() == "Move" );
emit visibilityChanged(o_it->id());
emit nodeVisibilityChanged(o_it->id());
}
} else {
for (PluginFunctions::ObjectIterator o_it(PluginFunctions::ALL_OBJECTS); o_it != PluginFunctions::objectsEnd(); ++o_it) {
o_it->manipulatorNode()->hide();
emit visibilityChanged(o_it->id());
emit nodeVisibilityChanged(o_it->id());
}
}
......@@ -1484,7 +1484,7 @@ void MovePlugin::slotPickToolbarAction(QAction* _action)
manip_size_modifier_ = manip_size_modifier_ + 0.1;
for ( PluginFunctions::ObjectIterator o_it(PluginFunctions::ALL_OBJECTS) ; o_it != PluginFunctions::objectsEnd(); ++o_it)
o_it->manipulatorNode()->set_size(manip_size_ * manip_size_modifier_);
emit visibilityChanged (-1);
emit nodeVisibilityChanged (-1);
}
if (_action == smallerManipAction_)
......@@ -1492,7 +1492,7 @@ void MovePlugin::slotPickToolbarAction(QAction* _action)
manip_size_modifier_ = manip_size_modifier_ - 0.1;
for ( PluginFunctions::ObjectIterator o_it(PluginFunctions::ALL_OBJECTS) ; o_it != PluginFunctions::objectsEnd(); ++o_it)
o_it->manipulatorNode()->set_size(manip_size_ * manip_size_modifier_);
emit visibilityChanged (-1);
emit nodeVisibilityChanged (-1);
}
}
......
......@@ -87,7 +87,7 @@ class MovePlugin : public QObject, BaseInterface, MouseInterface, KeyInterface,
// BaseInterface
void updateView();
void updatedObject(int);
void visibilityChanged(int);
void nodeVisibilityChanged(int);
// PickingInterface
void addPickMode( const std::string _mode );
......
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