Changeset 354 for trunk/yao


Ignore:
Timestamp:
06/20/10 23:51:43 (14 years ago)
Author:
yerima
Message:

Working on the ModulWindow? buttons'controlle. Visual Yao.

Location:
trunk/yao/src/interface/src
Files:
3 edited

Legend:

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

    r351 r354  
    495495    m_contextButton->setEnabled(true); 
    496496    m_trajButton->setEnabled(true); 
    497     m_spaceButton->setEnabled(true); 
    498     m_operaButton->setEnabled(true); 
     497    m_spaceButton->setEnabled(false); 
     498    m_operaButton->setEnabled(false); 
    499499    m_netwardButton->setEnabled(true); 
    500500    m_modulButton->setEnabled(true); 
  • trunk/yao/src/interface/src/ModulWindow.cpp

    r350 r354  
    2525        setupUi(this); 
    2626        localConstantTable      =       aConstantTable; 
    27          
    28          
    2927 
    3028        QRegExp regExp("[A-Za-z_][A-Za-z1-9_]{0,}");  
    31 //      m_lineModulName->setValidator(new QRegExpValidator(regExp, this)); 
    32          
    33 //      m_comboModulTarget->insertItem(0, " "); 
    34 //      m_comboModulTarget->insertItem(1, "uptime"); 
    35 //      m_comboModulTarget->insertItem(2, "steptime"); 
    36 //      m_comboModulTarget->insertItem(3, "alltime"); 
     29        m_lineModulName->setValidator(new QRegExpValidator(regExp, this)); 
     30        m_comboModulOpera->setDisabled(true); 
     31        /*if (m_checkBoxModulNoward->isChecked()) { 
     32                 
     33                m_checkBoxModulSpec->setDisabled(true); 
     34                m_checkBoxModulNetward->setDisabled(true); 
     35                m_labelModulAutonet->setDisabled(true); 
     36                m_comboModulAutonet->setDisabled(true); 
     37                 
     38                 
     39        }*/      
     40        m_comboModulTarget->insertItem(0, " "); 
     41        m_comboModulTarget->insertItem(1, "uptime"); 
     42        m_comboModulTarget->insertItem(2, "steptime"); 
     43        m_comboModulTarget->insertItem(3, "alltime"); 
    3744 
    3845//      for (Table<Constant>::reverse_iterator it = localConstantTable->rbegin(); it != localConstantTable->rend(); it++)  { 
     
    5158        connect(m_buttonModulHelp, SIGNAL(clicked()), this, SLOT(callModulHelp())); 
    5259         
     60        connect(m_checkBoxModulNoward, SIGNAL(toggled(bool )), m_checkBoxModulSpec, SLOT(setDisabled(bool ))); 
     61        connect(m_checkBoxModulNoward, SIGNAL(toggled(bool )), m_checkBoxModulNetward, SLOT(setDisabled(bool ))); 
     62        connect(m_checkBoxModulNoward, SIGNAL(toggled(bool )), m_labelModulAutonet, SLOT(setDisabled(bool ))); 
     63        connect(m_checkBoxModulNoward, SIGNAL(toggled(bool )), m_comboModulAutonet, SLOT(setDisabled(bool ))); 
     64 
     65        connect(m_spaceRadioButton, SIGNAL(toggled(bool )), m_comboModulOpera, SLOT(setDisabled(bool ))); 
     66        connect(m_operaRadioButton, SIGNAL(toggled(bool )), m_comboModulSpace, SLOT(setDisabled(bool ))); 
     67 
     68 
    5369         
    5470        connect(m_buttonLoperaAdd, SIGNAL(clicked()), this, SLOT(addO_EXTOBJRow())); 
     
    5672        connect(m_buttonLoperaDel, SIGNAL(clicked()), this, SLOT(deleteO_EXTOBJRow())); 
    5773 
    58         setFixedWidth(baseSize().width() + 706); 
     74        setFixedWidth(baseSize().width() + 766); 
    5975 
    6076 
  • trunk/yao/src/interface/src/ui_/modulwindow.ui

    r346 r354  
    77    <x>0</x> 
    88    <y>0</y> 
    9     <width>703</width> 
     9    <width>766</width> 
    1010    <height>520</height> 
    1111   </rect> 
     
    1919     <x>10</x> 
    2020     <y>10</y> 
    21      <width>691</width> 
     21     <width>751</width> 
    2222     <height>301</height> 
    2323    </rect> 
     
    4545       </property> 
    4646       <property name="buddy"> 
    47         <cstring>lineModulName</cstring> 
     47        <cstring>m_lineModulName</cstring> 
    4848       </property> 
    4949      </widget> 
    5050     </item> 
    5151     <item> 
    52       <widget class="QLineEdit" name="lineModulName"/> 
     52      <widget class="QLineEdit" name="m_lineModulName"/> 
    5353     </item> 
    5454    </layout> 
    5555   </widget> 
    56    <widget class="QWidget" name=""> 
    57     <property name="geometry"> 
    58      <rect> 
    59       <x>20</x> 
    60       <y>70</y> 
    61       <width>159</width> 
    62       <height>24</height> 
    63      </rect> 
    64     </property> 
    65     <layout class="QHBoxLayout" name="horizontalLayout_13"> 
    66      <item> 
    67       <widget class="QRadioButton" name="m_spaceRadioButton"> 
    68        <property name="text"> 
    69         <string>Space</string> 
    70        </property> 
    71        <property name="checked"> 
    72         <bool>true</bool> 
    73        </property> 
    74       </widget> 
    75      </item> 
    76      <item> 
    77       <widget class="QRadioButton" name="m_operaRadioButton"> 
    78        <property name="text"> 
    79         <string>Opera</string> 
    80        </property> 
    81       </widget> 
    82      </item> 
    83     </layout> 
    84    </widget> 
    8556   <widget class="QWidget" name="layoutWidget"> 
    8657    <property name="geometry"> 
    8758     <rect> 
    88       <x>20</x> 
     59      <x>10</x> 
    8960      <y>110</y> 
    90       <width>151</width> 
    91       <height>101</height> 
     61      <width>161</width> 
     62      <height>111</height> 
    9263     </rect> 
    9364    </property> 
     
    10677       </item> 
    10778       <item> 
     79        <spacer name="horizontalSpacerInput"> 
     80         <property name="orientation"> 
     81          <enum>Qt::Horizontal</enum> 
     82         </property> 
     83         <property name="sizeHint" stdset="0"> 
     84          <size> 
     85           <width>80</width> 
     86           <height>20</height> 
     87          </size> 
     88         </property> 
     89        </spacer> 
     90       </item> 
     91       <item> 
    10892        <widget class="QLineEdit" name="lineModulInput"/> 
    10993       </item> 
     
    123107       </item> 
    124108       <item> 
     109        <spacer name="horizontalSpacerOutput"> 
     110         <property name="orientation"> 
     111          <enum>Qt::Horizontal</enum> 
     112         </property> 
     113         <property name="sizeHint" stdset="0"> 
     114          <size> 
     115           <width>80</width> 
     116           <height>20</height> 
     117          </size> 
     118         </property> 
     119        </spacer> 
     120       </item> 
     121       <item> 
    125122        <widget class="QLineEdit" name="lineModulOutput"/> 
    126123       </item> 
     
    135132         </property> 
    136133         <property name="buddy"> 
    137           <cstring>comboModulTarget</cstring> 
     134          <cstring>m_comboModulTarget</cstring> 
    138135         </property> 
    139136        </widget> 
    140137       </item> 
    141138       <item> 
    142         <widget class="QComboBox" name="comboModulTarget"/> 
     139        <widget class="QComboBox" name="m_comboModulTarget"/> 
    143140       </item> 
    144141      </layout> 
     
    162159    <property name="geometry"> 
    163160     <rect> 
    164       <x>260</x> 
     161      <x>320</x> 
    165162      <y>10</y> 
    166163      <width>131</width> 
     
    179176       <x>10</x> 
    180177       <y>10</y> 
    181        <width>113</width> 
     178       <width>111</width> 
    182179       <height>261</height> 
    183180      </rect> 
     
    185182     <layout class="QVBoxLayout" name="verticalLayout_3"> 
    186183      <item> 
    187        <widget class="QCheckBox" name="checkBoxModulNoward"> 
     184       <widget class="QCheckBox" name="m_checkBoxModulNoward"> 
    188185        <property name="text"> 
    189186         <string>noward</string> 
     
    206203      </item> 
    207204      <item> 
    208        <widget class="QCheckBox" name="checkBoxSpec"> 
     205       <widget class="QCheckBox" name="m_checkBoxModulSpec"> 
    209206        <property name="text"> 
    210207         <string>spec</string> 
     
    213210      </item> 
    214211      <item> 
    215        <widget class="QCheckBox" name="checkBoxNetward"> 
     212       <widget class="QCheckBox" name="m_checkBoxModulNetward"> 
    216213        <property name="text"> 
    217214         <string>netward</string> 
     
    239236    <property name="geometry"> 
    240237     <rect> 
    241       <x>400</x> 
     238      <x>460</x> 
    242239      <y>10</y> 
    243240      <width>281</width> 
     
    301298         <layout class="QHBoxLayout" name="horizontalLayout_6"> 
    302299          <item> 
    303            <widget class="QLabel" name="label_5"> 
     300           <widget class="QLabel" name="m_labelModulAutonet"> 
    304301            <property name="text"> 
    305302             <string>autonet</string> 
    306303            </property> 
    307304            <property name="buddy"> 
    308              <cstring>comboModulAutonet</cstring> 
     305             <cstring>m_comboModulAutonet</cstring> 
    309306            </property> 
    310307           </widget> 
    311308          </item> 
    312309          <item> 
    313            <widget class="QComboBox" name="comboModulAutonet"/> 
     310           <widget class="QComboBox" name="m_comboModulAutonet"/> 
    314311          </item> 
    315312         </layout> 
     
    328325          </item> 
    329326          <item> 
    330            <spacer name="horizontalSpacer"> 
     327           <spacer name="horizontalSpacerCovt"> 
    331328            <property name="orientation"> 
    332329             <enum>Qt::Horizontal</enum> 
     
    334331            <property name="sizeHint" stdset="0"> 
    335332             <size> 
    336               <width>40</width> 
     333              <width>50</width> 
    337334              <height>20</height> 
    338335             </size> 
     
    391388    <property name="geometry"> 
    392389     <rect> 
    393       <x>400</x> 
     390      <x>460</x> 
    394391      <y>140</y> 
    395392      <width>281</width> 
     
    467464     </property> 
    468465    </widget> 
    469     <zorder>layoutWidget</zorder> 
    470     <zorder>m_loperaListView</zorder> 
    471     <zorder>m_buttonLoperaAdd</zorder> 
    472     <zorder>m_buttonLoperaDel</zorder> 
    473     <zorder>frame_5</zorder> 
     466   </widget> 
     467   <widget class="QWidget" name=""> 
     468    <property name="geometry"> 
     469     <rect> 
     470      <x>10</x> 
     471      <y>70</y> 
     472      <width>301</width> 
     473      <height>29</height> 
     474     </rect> 
     475    </property> 
     476    <layout class="QHBoxLayout" name="horizontalLayout_13"> 
     477     <item> 
     478      <widget class="QRadioButton" name="m_spaceRadioButton"> 
     479       <property name="text"> 
     480        <string>Space</string> 
     481       </property> 
     482       <property name="checked"> 
     483        <bool>true</bool> 
     484       </property> 
     485      </widget> 
     486     </item> 
     487     <item> 
     488      <widget class="QComboBox" name="m_comboModulSpace"/> 
     489     </item> 
     490     <item> 
     491      <widget class="QRadioButton" name="m_operaRadioButton"> 
     492       <property name="text"> 
     493        <string>Opera</string> 
     494       </property> 
     495      </widget> 
     496     </item> 
     497     <item> 
     498      <widget class="QComboBox" name="m_comboModulOpera"/> 
     499     </item> 
     500    </layout> 
    474501   </widget> 
    475502  </widget> 
     
    479506     <x>10</x> 
    480507     <y>320</y> 
    481      <width>691</width> 
     508     <width>751</width> 
    482509     <height>191</height> 
    483510    </rect> 
     
    494521      <x>10</x> 
    495522      <y>10</y> 
    496       <width>571</width> 
     523      <width>641</width> 
    497524      <height>171</height> 
    498525     </rect> 
     
    502529    <property name="geometry"> 
    503530     <rect> 
    504       <x>590</x> 
     531      <x>660</x> 
    505532      <y>40</y> 
    506       <width>87</width> 
     533      <width>81</width> 
    507534      <height>95</height> 
    508535     </rect> 
     
    538565    <property name="geometry"> 
    539566     <rect> 
    540       <x>590</x> 
     567      <x>660</x> 
    541568      <y>150</y> 
    542569      <width>41</width> 
     
    551578 </widget> 
    552579 <tabstops> 
    553   <tabstop>lineModulName</tabstop> 
    554   <tabstop>m_spaceRadioButton</tabstop> 
     580  <tabstop>m_lineModulName</tabstop> 
    555581  <tabstop>m_operaRadioButton</tabstop> 
    556582  <tabstop>lineModulInput</tabstop> 
    557583  <tabstop>checkBoxModulArray</tabstop> 
    558584  <tabstop>lineModulOutput</tabstop> 
    559   <tabstop>comboModulTarget</tabstop> 
    560   <tabstop>checkBoxModulNoward</tabstop> 
     585  <tabstop>m_comboModulTarget</tabstop> 
     586  <tabstop>m_checkBoxModulNoward</tabstop> 
    561587  <tabstop>checkBoxTempo</tabstop> 
    562588  <tabstop>checkBoxCout</tabstop> 
    563   <tabstop>checkBoxSpec</tabstop> 
    564   <tabstop>checkBoxNetward</tabstop> 
     589  <tabstop>m_checkBoxModulSpec</tabstop> 
     590  <tabstop>m_checkBoxModulNetward</tabstop> 
    565591  <tabstop>checkBoxModulHidjac</tabstop> 
    566592  <tabstop>checkBoxModulManage</tabstop> 
     
    568594  <tabstop>comboModulInter2</tabstop> 
    569595  <tabstop>comboModulInter3</tabstop> 
    570   <tabstop>comboModulAutonet</tabstop> 
     596  <tabstop>m_comboModulAutonet</tabstop> 
    571597  <tabstop>comboModulClonol</tabstop> 
    572598  <tabstop>comboModulCovt</tabstop> 
Note: See TracChangeset for help on using the changeset viewer.