From: ouv Date: Tue, 22 Sep 2009 09:01:04 +0000 (+0000) Subject: Remove tabs X-Git-Tag: V5_1_main_20090928~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=37fc459b64a6bab65a92a9df9cea304216b37c47;p=modules%2Fvisu.git Remove tabs --- diff --git a/src/VISUGUI/VisuGUI_StreamLinesDlg.cxx b/src/VISUGUI/VisuGUI_StreamLinesDlg.cxx index 169f7e12..c8dd07a6 100644 --- a/src/VISUGUI/VisuGUI_StreamLinesDlg.cxx +++ b/src/VISUGUI/VisuGUI_StreamLinesDlg.cxx @@ -129,28 +129,28 @@ VisuGUI_StreamLinesDlg::VisuGUI_StreamLinesDlg (SalomeApp_Module* theModule) VISU::VISUType aType = VISU::Storable::SObject2Type(aSObject); switch (aType) { case VISU::TTIMESTAMP: { - aSObject = aSObject->GetFather(); - aSObject = aSObject->GetFather(); - break; + aSObject = aSObject->GetFather(); + aSObject = aSObject->GetFather(); + break; } case VISU::TFIELD: { - _PTR(SObject) newSObject; - if(aSObject->ReferencedObject(newSObject)) aSObject = newSObject; - aSObject = aSObject->GetFather(); - break; + _PTR(SObject) newSObject; + if(aSObject->ReferencedObject(newSObject)) aSObject = newSObject; + aSObject = aSObject->GetFather(); + break; } case VISU::TANIMATION: { - _PTR(ChildIterator) aTmpIter = aActiveStudy->NewChildIterator(aSObject); - for (aTmpIter->InitEx(true); aTmpIter->More(); aTmpIter->Next()) { - _PTR(SObject) aTmpChildSObj = aTmpIter->Value(); - _PTR(SObject) newSObject; - if(aTmpChildSObj->ReferencedObject(newSObject)){ - aSObject = newSObject; - aSObject->GetFather(); - break; - } - } - break; + _PTR(ChildIterator) aTmpIter = aActiveStudy->NewChildIterator(aSObject); + for (aTmpIter->InitEx(true); aTmpIter->More(); aTmpIter->Next()) { + _PTR(SObject) aTmpChildSObj = aTmpIter->Value(); + _PTR(SObject) newSObject; + if(aTmpChildSObj->ReferencedObject(newSObject)){ + aSObject = newSObject; + aSObject->GetFather(); + break; + } + } + break; }} aSObject = aSObject->GetFather(); @@ -159,7 +159,7 @@ VisuGUI_StreamLinesDlg::VisuGUI_StreamLinesDlg (SalomeApp_Module* theModule) mySelectionObj = aSObject; CORBA::Object_var anObject = VISU::ClientSObjectToObject(mySelectionObj); if (CORBA::is_nil(anObject)) { - mySelectionObj = mySelectionObj->GetFather(); + mySelectionObj = mySelectionObj->GetFather(); } } } @@ -189,23 +189,23 @@ VisuGUI_StreamLinesDlg::VisuGUI_StreamLinesDlg (SalomeApp_Module* theModule) VISU::VISUType aType = VISU::Storable::SObject2Type(aChildSObj); if ((aType == VISU::TFAMILY) || (aType == VISU::TGROUP) || (aType == VISU::TENTITY)) { - _PTR(GenericAttribute) aNameAttr; - if (aChildSObj->FindAttribute(aNameAttr, "AttributeName")) { - _PTR(AttributeName) aName (aNameAttr); - VISU::Prs3d_var aPrsObj = VISU::Prs3d::_narrow(aChildObject); - switch (aType) { - case VISU::TFAMILY: - myFamilisLst += QString(aName->Value().c_str()); - myFamilyList.append(aPrsObj); - break; - case VISU::TGROUP: - myGroupsLst += QString(aName->Value().c_str()); - myGroupList.append(aPrsObj); - break; - case VISU::TENTITY: - myEntitiesLst += QString(aName->Value().c_str()); - myEntityList.append(aPrsObj); - break; + _PTR(GenericAttribute) aNameAttr; + if (aChildSObj->FindAttribute(aNameAttr, "AttributeName")) { + _PTR(AttributeName) aName (aNameAttr); + VISU::Prs3d_var aPrsObj = VISU::Prs3d::_narrow(aChildObject); + switch (aType) { + case VISU::TFAMILY: + myFamilisLst += QString(aName->Value().c_str()); + myFamilyList.append(aPrsObj); + break; + case VISU::TGROUP: + myGroupsLst += QString(aName->Value().c_str()); + myGroupList.append(aPrsObj); + break; + case VISU::TENTITY: + myEntitiesLst += QString(aName->Value().c_str()); + myEntityList.append(aPrsObj); + break; } } } @@ -364,10 +364,10 @@ void VisuGUI_StreamLinesDlg::initFromPrsObject ( VISU::ColoredPrs3d_i* thePrs, if (aPrs == NULL) continue; \ if (aSrcEntry == aPrs->GetEntry().c_str()) { \ onSourceTypeChange(PRSNUM); \ - myUseSrcCombo->setCurrentIndex(PRSNUM); \ - mySrcCombo->setEnabled(true); \ - mySrcCombo->setCurrentIndex(i); \ - return; \ + myUseSrcCombo->setCurrentIndex(PRSNUM); \ + mySrcCombo->setEnabled(true); \ + mySrcCombo->setCurrentIndex(i); \ + return; \ } \ } @@ -425,26 +425,26 @@ int VisuGUI_StreamLinesDlg::storeToPrsObject (VISU::ColoredPrs3d_i* thePrs) QString aName; switch (aSrcSelection) { case 1: // Entity - aPrs = myEntityList[aSrcItem]; - aType = VISU::TENTITY; - aName = myEntitiesLst[aSrcItem]; - break; + aPrs = myEntityList[aSrcItem]; + aType = VISU::TENTITY; + aName = myEntitiesLst[aSrcItem]; + break; case 2: // Family - aPrs = myFamilyList[aSrcItem]; - aType = VISU::TFAMILY; - aName = myFamilisLst[aSrcItem]; - break; + aPrs = myFamilyList[aSrcItem]; + aType = VISU::TFAMILY; + aName = myFamilisLst[aSrcItem]; + break; case 3: // Group - aPrs = myGroupList[aSrcItem]; - aType = VISU::TGROUP; - aName = myGroupsLst[aSrcItem]; - break; + aPrs = myGroupList[aSrcItem]; + aType = VISU::TGROUP; + aName = myGroupsLst[aSrcItem]; + break; case 4: // Presentation - aPrs = myPrsList[aSrcItem]; - break; + aPrs = myPrsList[aSrcItem]; + break; } if (CORBA::is_nil(aPrs) && aSrcSelection != 4) { - aPrs = createMesh(aType, aName); + aPrs = createMesh(aType, aName); } } anIsOk &= myPrsCopy->SetParams(myIntegStepLen->value(),