Ignore:
Timestamp:
10/29/10 12:22:13 (14 years ago)
Author:
yerima
Message:

The common object witch is the "Order" is present present both in the modinspace window than in the spaceintraj one according to the grammar. So some updates are made in those three class (OrderWindow?, ModinspaceWindow? and SpaceintrajWindow?).Visual Yao

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yao/src/interface/src/ModinspaceWindow.cpp

    r471 r472  
    2222 
    2323/*********************************************************************************************************************************/ 
    24 ModinspaceWindow::ModinspaceWindow(Table <Modul> *aModulTable, Table <Space> *aSpaceTable, Table <Operator> *anOperatorTable, Table <Order> *anOrderTable, QWidget *parent) : QWidget(parent), m_theLocalAxesTable(NULL), m_theLocalModulTable(NULL) { 
     24ModinspaceWindow::ModinspaceWindow(Table <Modul> *aModulTable, Table <Space> *aSpaceTable, Table <Operator> *anOperatorTable, Table <Order> *anOrderTable, Order *anOrder, QWidget *parent) : QWidget(parent), m_theLocalAxesTable(NULL), m_theLocalModulTable(NULL) { 
     25 
    2526 
    2627        setupUi(this); 
    2728         
    28         m_localModulTable               = aModulTable; 
    29         m_localSpaceTable            = aSpaceTable; 
    30         m_localOperaTable         = anOperatorTable; 
     29        m_localModulTable       = aModulTable; 
     30        m_localSpaceTable       = aSpaceTable; 
     31        m_localOperaTable       = anOperatorTable; 
    3132        m_localOrderTable       = anOrderTable; 
    32          
     33        m_localOrder            = anOrder;       
     34 
    3335        m_rightAxesButton->setIcon(QIcon("Images/icons/rightarrow2.png")); 
    3436        m_rightModulNameButton->setIcon(QIcon("Images/icons/rightarrow2.png")); 
     
    161163        if (!cpt) { 
    162164                 
    163                 //Order ord(&m_localModulTable) 
     165                Order ord(m_localModulTable); 
    164166                         
    165167                m_outlineModel->setItem(row0, 0, new QStandardItem("order"));  
     
    168170                m_outlineModel->setItem(row1, 1, new QStandardItem("order"));  
    169171         
    170                 if(m_localSpaceTable->find(commonName)) 
     172                if(m_localSpaceTable->find(commonName)) { 
     173                        if(m_localSpaceTable->find(commonName)->isCounterOrderHeader()==false) 
     174                                { 
     175                                        QMessageBox::critical(this, "Avis", "Ce nom d'espace a été déjà inséré."); 
     176                                        return; 
     177                                } 
    171178                        m_localSpaceTable->find(commonName)->setCounterOrderHeader(true); 
    172                 else 
     179                         
     180                } 
     181                else { 
     182                        if(m_localOperaTable->find(commonName)->isCounterOrderHeader()==false) 
     183                                { 
     184                                        QMessageBox::critical(this, "Avis", "Ce nom d'operateur a été déjà inséré."); 
     185                                        return; 
     186                                } 
     187 
    173188                        m_localOperaTable->find(commonName)->setCounterOrderHeader(true); 
    174                  
     189                } 
     190                 
     191                ord.setOrderPhase(1);    
    175192                cpt++; 
    176193 
Note: See TracChangeset for help on using the changeset viewer.