Commit 0845daab 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 72278970
......@@ -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){
......
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