_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);
//
adjustSize();
- INFOS("Fin du constructeur de MonCreateCase");
+// MESSAGE("Fin du constructeur de MonCreateCase");
}
// ------------------------------------------------------------------------
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()));
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();
// 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 : "<<mesBoundarys->length());
+// MESSAGE("Nombre de frontieres enregistrees : "<<mesBoundarys->length());
for (int i=0; i<mesBoundarys->length(); i++)
{
myBoundary = myAdaptGen->GetBoundary(mesBoundarys[i]);
bool MonCreateCase::PushOnApply(int option)
// --------------------------------
{
- INFOS("PushOnApply");
+ MESSAGE("PushOnApply");
QString aCaseName=LEName->text().trimmed();
if ( aCaseName == "" )
{
{
// Nom du groupe
NomGroup = QString(TWBoundary->item(row, 0)->text()) ;
-// INFOS("NomGroup "<<NomGroup.toStdString().c_str());
+// MESSAGE("NomGroup "<<NomGroup.toStdString().c_str());
for ( int nugr = 0 ; nugr<ListeGroup.size(); nugr++)
{
-// INFOS("....... "<<ListeGroup[nugr].toStdString().c_str());
+// MESSAGE("....... "<<ListeGroup[nugr].toStdString().c_str());
if ( NomGroup == ListeGroup[nugr] )
{
QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
void MonCreateCase::SetNewName()
// ------------------------------
{
- INFOS("Debut de SetNewName");
ADAPT::listeCases_var MyCases = myAdaptGen->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;
+// std::cout << "aCaseName : --" << aCaseName.toStdString().c_str() << "--" << std::endl;
for ( int i=0; i<MyCases->length(); i++)
{
if ( aCaseName == QString((MyCases)[i]))
}
}
}
- INFOS("aCaseName construit");
LEName->clear() ;
LEName->insert(aCaseName);
- INFOS("Fin de SetNewName");
}
// ------------------------------------------------------------------------
void MonCreateCase::SetBoundaryD()
// ------------------------------------------------------------------------
{
- INFOS("Debut de SetBoundaryD ");
+ MESSAGE("Debut de SetBoundaryD ");
if (CBBoundaryD->isChecked())
{
bool bOK = PushOnApply(0);
void MonCreateCase::SetBoundaryA()
// ------------------------------------------------------------------------
{
- INFOS("Debut de SetBoundaryA ");
+ MESSAGE("Debut de SetBoundaryA ");
if (CBBoundaryA->isChecked())
{
bool bOK = PushOnApply(0);
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();
/* 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 ("") ) );
}
TWBoundary->resizeColumnToContents(nbcol-1);
// TWBoundary->resizeRowsToContents();
-// INFOS("Fin de AddBoundaryAn ");
+// MESSAGE("Fin de AddBoundaryAn ");
}
// ------------------------------------------------------------------------
void MonCreateCase::PushBoundaryAnNew()
QTableWidgetItem *__colItem = new QTableWidgetItem();
__colItem = TWBoundary->horizontalHeaderItem(i);
nom = QString(__colItem->text()) ;
- INFOS("nom "<<nom.toStdString().c_str());
+ MESSAGE("nom "<<nom.toStdString().c_str());
if (nom != QString(""))
{ MonEditBoundaryAn *BoundaryDlg = new MonEditBoundaryAn(this, true,
ADAPT::ADAPT_Gen::_duplicate(myAdaptGen), _aCaseName, nom ) ;
void MonCreateCase::SetAdvanced()
// ------------------------------------------------------------------------
{
- INFOS("Debut de SetAdvanced ");
+ MESSAGE("Debut de SetAdvanced ");
if (CBAdvanced->isChecked())
{ GBAdvancedOptions->setVisible(1);
GBConforme->setVisible(1);
_Pyram = 0 ;
SetStandard() ;
SetMED() ;
- INFOS("Fin de SetAdvanced ");
}
//
adjustSize();