X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FADAPTGUI%2FMonCreateCase.cxx;h=65e3f4adf63aec5939269aa86f8eddcc65185193;hb=5e46af59684e7cdf480e523e46c5e1b5dfc9ee12;hp=5a980d4b38ce29efc4ca937470c48d6b84d9c91e;hpb=13388277ebba8a901824f649fd9165e2eedbb0ff;p=modules%2Fsmesh.git diff --git a/src/ADAPTGUI/MonCreateCase.cxx b/src/ADAPTGUI/MonCreateCase.cxx index 5a980d4b3..65e3f4adf 100644 --- a/src/ADAPTGUI/MonCreateCase.cxx +++ b/src/ADAPTGUI/MonCreateCase.cxx @@ -54,7 +54,7 @@ MonCreateCase::MonCreateCase( bool modal, ADAPT::ADAPT_Gen_var myAdaptGen0 ) _ExtType(0), _Pyram(0) { - INFOS("Debut du constructeur de MonCreateCase"); + MESSAGE("Debut du constructeur de MonCreateCase"); myAdaptGen=ADAPT::ADAPT_Gen::_duplicate(myAdaptGen0); setupUi(this); setModal(modal); @@ -75,7 +75,7 @@ MonCreateCase::MonCreateCase( bool modal, ADAPT::ADAPT_Gen_var myAdaptGen0 ) // adjustSize(); - INFOS("Fin du constructeur de MonCreateCase"); +// MESSAGE("Fin du constructeur de MonCreateCase"); } // ------------------------------------------------------------------------ MonCreateCase::~MonCreateCase() @@ -87,7 +87,6 @@ MonCreateCase::~MonCreateCase() void MonCreateCase::InitConnect() // ------------------------------------------------------------------------ { - INFOS("Debut de InitConnect"); connect( LEName, SIGNAL(textChanged(QString)), this, SLOT(CaseNameChanged())); connect( PushDir, SIGNAL(pressed()), this, SLOT(SetDirName())); connect( PushFichier, SIGNAL(pressed()), this, SLOT(SetFileName())); @@ -125,14 +124,13 @@ void MonCreateCase::InitConnect() connect( buttonApply, SIGNAL(pressed()), this, SLOT(PushOnApply(0))); connect( buttonCancel, SIGNAL(pressed()), this, SLOT(close())); connect( buttonHelp, SIGNAL(pressed()), this, SLOT(PushOnHelp())); - INFOS("Fin de InitConnect"); } // ------------------------------------------------------------------------ void MonCreateCase::InitBoundarys() // ------------------------------------------------------------------------ // Initialisation des menus avec les frontieres deja enregistrees { - INFOS("InitBoundarys"); + MESSAGE("InitBoundarys"); // Pour les frontieres analytiques : la colonne des groupes ADAPT::ListGroupType_var _listeGroupesCas = aCase->GetGroups(); QTableWidgetItem *__colItem = new QTableWidgetItem(); @@ -149,7 +147,7 @@ void MonCreateCase::InitBoundarys() // Pour les frontieres analytiques : les colonnes de chaque frontiere ADAPT::HOMARD_Boundary_var myBoundary ; ADAPT::listeBoundarys_var mesBoundarys = myAdaptGen->GetAllBoundarysName(); -// INFOS("Nombre de frontieres enregistrees : "<length()); +// MESSAGE("Nombre de frontieres enregistrees : "<length()); for (int i=0; ilength(); i++) { myBoundary = myAdaptGen->GetBoundary(mesBoundarys[i]); @@ -167,7 +165,7 @@ void MonCreateCase::InitBoundarys() bool MonCreateCase::PushOnApply(int option) // -------------------------------- { - INFOS("PushOnApply"); + MESSAGE("PushOnApply"); QString aCaseName=LEName->text().trimmed(); if ( aCaseName == "" ) { @@ -233,10 +231,10 @@ bool MonCreateCase::PushOnApply(int option) { // Nom du groupe NomGroup = QString(TWBoundary->item(row, 0)->text()) ; -// INFOS("NomGroup "<GetAllCasesName(); - INFOS("MyCases construit"); int num = 0; QString aCaseName=""; while (aCaseName=="" ) { aCaseName.setNum(num+1) ; aCaseName.insert(0, QString("Case_")) ; - std::cout << "aCaseName : --" << aCaseName.toStdString().c_str() << "--" << std::endl; for ( int i=0; ilength(); i++) { if ( aCaseName == QString((MyCases)[i])) @@ -373,10 +368,8 @@ void MonCreateCase::SetNewName() } } } - INFOS("aCaseName construit"); LEName->clear() ; LEName->insert(aCaseName); - INFOS("Fin de SetNewName"); } // ------------------------------------------------------------------------ @@ -537,7 +530,7 @@ void MonCreateCase::PushBoundaryCAOHelp() void MonCreateCase::SetBoundaryD() // ------------------------------------------------------------------------ { - INFOS("Debut de SetBoundaryD "); + MESSAGE("Debut de SetBoundaryD "); if (CBBoundaryD->isChecked()) { bool bOK = PushOnApply(0); @@ -585,7 +578,7 @@ void MonCreateCase::PushBoundaryDiHelp() void MonCreateCase::SetBoundaryA() // ------------------------------------------------------------------------ { - INFOS("Debut de SetBoundaryA "); + MESSAGE("Debut de SetBoundaryA "); if (CBBoundaryA->isChecked()) { bool bOK = PushOnApply(0); @@ -602,10 +595,10 @@ void MonCreateCase::SetBoundaryA() void MonCreateCase::AddBoundaryAn(QString newBoundary) // ------------------------------------------------------------------------ { - INFOS("Debut de AddBoundaryAn "); + MESSAGE("Debut de AddBoundaryAn "); // Ajout d'une nouvelle colonne int nbcol = TWBoundary->columnCount(); -// INFOS("nbcol " << nbcol); +// MESSAGE("nbcol " << nbcol); nbcol += 1 ; TWBoundary->setColumnCount ( nbcol ) ; QTableWidgetItem *__colItem = new QTableWidgetItem(); @@ -614,7 +607,7 @@ void MonCreateCase::AddBoundaryAn(QString newBoundary) /* TWBoundary->horizontalHeaderItem(nbcol-1)->setFlags( Qt::ItemIsSelectable|Qt::ItemIsEnabled );*/ // Chaque case est a cocher int nbrow = TWBoundary->rowCount(); -// INFOS("nbrow " << nbrow); +// MESSAGE("nbrow " << nbrow); for ( int i = 0; i < nbrow; i++ ) { TWBoundary->setItem( i, nbcol-1, new QTableWidgetItem( QString ("") ) ); @@ -624,7 +617,7 @@ void MonCreateCase::AddBoundaryAn(QString newBoundary) } TWBoundary->resizeColumnToContents(nbcol-1); // TWBoundary->resizeRowsToContents(); -// INFOS("Fin de AddBoundaryAn "); +// MESSAGE("Fin de AddBoundaryAn "); } // ------------------------------------------------------------------------ void MonCreateCase::PushBoundaryAnNew() @@ -645,7 +638,7 @@ void MonCreateCase::PushBoundaryAnEdit() QTableWidgetItem *__colItem = new QTableWidgetItem(); __colItem = TWBoundary->horizontalHeaderItem(i); nom = QString(__colItem->text()) ; - INFOS("nom "<isChecked()) { GBAdvancedOptions->setVisible(1); GBConforme->setVisible(1); @@ -695,7 +688,6 @@ void MonCreateCase::SetAdvanced() _Pyram = 0 ; SetStandard() ; SetMED() ; - INFOS("Fin de SetAdvanced "); } // adjustSize();