- Timestamp:
- 10/18/10 13:48:34 (14 years ago)
- Location:
- trunk/yao/src/interface/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yao/src/interface/src/ConstantWindow.cpp
r429 r457 57 57 58 58 setFixedWidth(baseSize().width() + 335); 59 59 60 // move(0, 0); 60 61 } … … 75 76 else { 76 77 if (!(m_ligneNom->text().isEmpty()) || (m_ligneValeur->text().isEmpty())) { 78 79 for (Table<Constant>::iterator it = m_localConstantTable->begin(); it != m_localConstantTable->end(); it++) 80 if (it->getName() == Nom.toStdString()) 81 { 82 QMessageBox::critical(this, "Avertissement", "Ce nom existe déjà !"); 83 eraseDataFromLineEdit(); 84 return; 85 } 77 86 m_delButton->setEnabled(true); 78 87 Constant localConstant (Nom.toStdString(), Val.toStdString()); … … 88 97 // } 89 98 90 99 m_localConstantTable->push_back(localConstant); 91 100 m_defvalModel->setItem(m_defvalModel->rowCount(), 0, new QStandardItem(m_ligneNom->text())); 92 101 m_defvalModel->setItem(m_defvalModel->rowCount()-1, 1, new QStandardItem(m_ligneValeur->text()));//Apres le 1er ajout, la ligne vaut i+1 -
trunk/yao/src/interface/src/InstructionWindow.cpp
r452 r457 166 166 //savedData.push_back(nom+" "+val); 167 167 m_localInstructionData->push_back(nom.toStdString()+" "+val.toStdString());//= (QStringList() << str1 << str2 << str3); 168 168 m_rightButton; 169 169 emit activeTheIAction(); 170 170 }
Note: See TracChangeset
for help on using the changeset viewer.