Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Issue #6 Extended processing of nested actions.
[modules/shaper.git]
/
src
/
XGUI
/
XGUI_DocumentDataModel.cpp
diff --git
a/src/XGUI/XGUI_DocumentDataModel.cpp
b/src/XGUI/XGUI_DocumentDataModel.cpp
index 50ea7c707b4e5dde0904308e794153c3e7bcb75d..1ee46e331e9d07ca4d2c47980bf40cdea6af65a0 100644
(file)
--- a/
src/XGUI/XGUI_DocumentDataModel.cpp
+++ b/
src/XGUI/XGUI_DocumentDataModel.cpp
@@
-42,9
+42,9
@@
void XGUI_DocumentDataModel::processEvent(const Events_Message* theMessage)
{
// Created object event *******************
if (QString(theMessage->eventID().eventText()) == EVENT_FEATURE_CREATED) {
{
// Created object event *******************
if (QString(theMessage->eventID().eventText()) == EVENT_FEATURE_CREATED) {
- const ModelAPI_FeatureUpdatedMessage* aUpdMsg = dynamic_cast<const ModelAPI_FeatureUpdatedMessage*>(theMessage);
- boost::shared_ptr<ModelAPI_Document> aDoc = aUpdMsg->document();
+ const Model_FeatureUpdatedMessage* aUpdMsg = dynamic_cast<const Model_FeatureUpdatedMessage*>(theMessage);
boost::shared_ptr<ModelAPI_Feature> aFeature = aUpdMsg->feature();
boost::shared_ptr<ModelAPI_Feature> aFeature = aUpdMsg->feature();
+ boost::shared_ptr<ModelAPI_Document> aDoc = aFeature->document();
if (aDoc == myDocument) { // If root objects
if (aFeature->getGroup().compare(PARTS_GROUP) == 0) { // Updsate only Parts group
if (aDoc == myDocument) { // If root objects
if (aFeature->getGroup().compare(PARTS_GROUP) == 0) { // Updsate only Parts group
@@
-79,7
+79,7
@@
void XGUI_DocumentDataModel::processEvent(const Events_Message* theMessage)
// Deteted object event ***********************
} else if (QString(theMessage->eventID().eventText()) == EVENT_FEATURE_DELETED) {
// Deteted object event ***********************
} else if (QString(theMessage->eventID().eventText()) == EVENT_FEATURE_DELETED) {
- const Model
API_FeatureDeletedMessage* aUpdMsg = dynamic_cast<const ModelAPI
_FeatureDeletedMessage*>(theMessage);
+ const Model
_FeatureDeletedMessage* aUpdMsg = dynamic_cast<const Model
_FeatureDeletedMessage*>(theMessage);
boost::shared_ptr<ModelAPI_Document> aDoc = aUpdMsg->document();
if (aDoc == myDocument) { // If root objects
boost::shared_ptr<ModelAPI_Document> aDoc = aUpdMsg->document();
if (aDoc == myDocument) { // If root objects