Commit 6a5c6014 authored by Mike Kremer's avatar Mike Kremer

Notifiy plugins each time the state of an object (target, source) has changed....

Notifiy plugins each time the state of an object (target, source) has changed. Introduced UPDATE_STATE flag for UpdateType.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@12094 383ad7c9-94d9-4d36-a494-682f7c89f535
parent fcad0d0b
......@@ -58,6 +58,7 @@ void DataControlPlugin::slotContextMenuTarget( ) {
return;
object->target( targetAction_->isChecked() );
emit updatedObject(objectId, UPDATE_STATE);
}
void DataControlPlugin::slotContextMenuHide( ) {
......@@ -87,6 +88,7 @@ void DataControlPlugin::slotContextMenuSource( ) {
return;
object->source( sourceAction_->isChecked() );
emit updatedObject(objectId, UPDATE_STATE);
}
void DataControlPlugin::slotContextMenuRemove( ) {
......
......@@ -415,11 +415,13 @@ void DataControlPlugin::slotDataChanged ( int _id, int _column, const QVariant&
// source
case 2:
obj->source( _value.toBool() );
emit updatedObject(_id, UPDATE_STATE);
break;
// target
case 3:
obj->target( _value.toBool() );
emit updatedObject(_id, UPDATE_STATE);
break;
default:
......@@ -681,11 +683,13 @@ void DataControlPlugin::propagateUpwards(BaseObject* _obj, int _column ){
if (_obj->source() != value){
_obj->source( value );
emit updatedObject(_obj->id(), UPDATE_STATE);
changed = true;
}
if (_obj->target() != value2){
_obj->target( value2 );
emit updatedObject(_obj->id(), UPDATE_STATE);
changed = true;
}
......@@ -729,11 +733,13 @@ void DataControlPlugin::propagateDownwards(BaseObject* _obj, int _column ){
if ( current->source() != _obj->source() ){
current->source( _obj->source() );
emit updatedObject(_obj->id(), UPDATE_STATE);
changed = true;
}
if ( current->target() != _obj->target() ){
current->target( _obj->target() );
emit updatedObject(_obj->id(), UPDATE_STATE);
changed = true;
}
......
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