Changeset 734 for trunk


Ignore:
Timestamp:
Mar 4, 2008, 3:54:43 PM (16 years ago)
Author:
garnier
Message:

layout oks

Location:
trunk/geant4/visualization/OpenGL/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/geant4/visualization/OpenGL/src/G4OpenGLQtExportDialog.cc

    r704 r734  
    312312#endif
    313313
    314 #if QT_VERSION >= 0x040000
    315     imageGroupBox->setLayout(hSliderLayout);
    316 #endif
    317 
    318314    globalVLayout->addWidget(imageGroupBox);
    319315  }
  • trunk/geant4/visualization/OpenGL/src/G4OpenGLQtMovieDialog.cc

    r733 r734  
    8585  // Encoder group box
    8686  QGroupBox *encoderGroupBox = new QGroupBox(tr("Encoder path"));               
    87   QVBoxLayout *encoderVBoxLayout = new QVBoxLayout(encoderGroupBox);
    88 #ifdef GEANT4_QT_DEBUG
    89   printf("1111\n");
    90 #endif
     87  QVBoxLayout *encoderVGroupBoxLayout = new QVBoxLayout(encoderGroupBox);
    9188
    9289  // Encoder Path
     
    10198  fEncoderStatus->setText("");
    10299
    103 #ifdef GEANT4_QT_DEBUG
    104   printf("2222\n");
    105 #endif
    106100#if QT_VERSION < 0x040000
    107101  encoderHBoxLayout->add(fEncoderPath);
    108102  encoderHBoxLayout->add(encoderButton);
    109   encoderVBoxLayout->add(fEncoderStatus);
     103  encoderVGroupBoxLayout->add(encoderHBox);
     104  encoderVGroupBoxLayout->add(fEncoderStatus);
    110105#else
    111106  encoderHBoxLayout->addWidget(fEncoderPath);
    112107  encoderHBoxLayout->addWidget(encoderButton);
    113   encoderVBoxLayout->addWidget(fEncoderStatus);
    114 #endif
    115 
    116 #ifdef GEANT4_QT_DEBUG
    117   printf("33333\n");
    118 #endif
    119 #if QT_VERSION >= 0x040000
    120 //  encoderHBox->setLayout(encoderHBoxLayout);
    121   encoderGroupBox->setLayout(encoderVBoxLayout);
     108  encoderVGroupBoxLayout->addWidget(encoderHBox);
     109  encoderVGroupBoxLayout->addWidget(fEncoderStatus);
     110#endif
     111
     112#if QT_VERSION >= 0x040000
     113  encoderGroupBox->setLayout(encoderVGroupBoxLayout);
    122114#endif
    123115  connect( encoderButton, SIGNAL( clicked( ) ), this, SLOT(selectEncoderPathAction() ) );
    124 #ifdef GEANT4_QT_DEBUG
    125   printf("4444\n");
    126 #endif
    127116
    128117#if QT_VERSION < 0x040000
     
    137126  // temp folder group box
    138127  QGroupBox *tempFolderGroupBox = new QGroupBox(tr("Temporary folder path"));           
    139   QVBoxLayout *tempFolderVBoxLayout = new QVBoxLayout(tempFolderGroupBox);
     128  QVBoxLayout *tempFolderVGroupBoxLayout = new QVBoxLayout(tempFolderGroupBox);
    140129
    141130  // temp folder Path
    142131  QWidget *tempFolderHBox = new QWidget(tempFolderGroupBox);
    143   QHBoxLayout *tempFolderHBoxLayout = new QHBoxLayout(tempFolderGroupBox);
     132  QHBoxLayout *tempFolderHBoxLayout = new QHBoxLayout(tempFolderHBox);
    144133
    145134  fTempFolderPath = new QLineEdit("",tempFolderHBox);
     
    151140  fTempFolderStatus->setText("");
    152141
    153 #ifdef GEANT4_QT_DEBUG
    154   printf("5555\n");
    155 #endif
    156142#if QT_VERSION < 0x040000
    157143  tempFolderHBoxLayout->add(fTempFolderPath);
    158144  tempFolderHBoxLayout->add(tempButton);
    159   tempFolderVBoxLayout->add(fTempFolderStatus);
     145  tempFolderVGroupBoxLayout->add(tempFolderHBox);
     146  tempFolderVGroupBoxLayout->add(fTempFolderStatus);
    160147#else
    161148  tempFolderHBoxLayout->addWidget(fTempFolderPath);
    162149  tempFolderHBoxLayout->addWidget(tempButton);
    163   tempFolderVBoxLayout->addWidget(fTempFolderStatus);
    164 #endif
    165 
    166 #ifdef GEANT4_QT_DEBUG
    167   printf("6666\n");
    168 #endif
    169 #if QT_VERSION >= 0x040000
    170 //  tempFolderHBox->setLayout(tempFolderHBoxLayout);
    171   tempFolderGroupBox->setLayout(tempFolderVBoxLayout);
     150  tempFolderVGroupBoxLayout->addWidget(tempFolderHBox);
     151  tempFolderVGroupBoxLayout->addWidget(fTempFolderStatus);
     152#endif
     153
     154#if QT_VERSION >= 0x040000
     155  tempFolderGroupBox->setLayout(tempFolderVGroupBoxLayout);
    172156#endif
    173157  connect( tempButton, SIGNAL( clicked( ) ), this, SLOT(selectTempPathAction() ) );
    174158
    175 #ifdef GEANT4_QT_DEBUG
    176   printf("77777\n");
    177 #endif
    178159#if QT_VERSION < 0x040000
    179160  globalVLayout->add(tempFolderGroupBox);
     
    183164
    184165  fTempFolderPath->setText(fParentViewer->getTempFolderPath());
     166
     167
    185168
    186169  // save file group box
    187170  QGroupBox *saveFileGroupBox = new QGroupBox(tr("Save as"));           
    188   QVBoxLayout *saveFileVBoxLayout = new QVBoxLayout(saveFileGroupBox);
     171  QVBoxLayout *saveFileVGroupBoxLayout = new QVBoxLayout(saveFileGroupBox);
    189172
    190173  // save file
     
    200183  fSaveFileStatus->setText("");
    201184
    202 #ifdef GEANT4_QT_DEBUG
    203   printf("8888\n");
    204 #endif
    205 #if QT_VERSION < 0x040000
    206   saveFileHBoxLayout->add(fTempFolderPath);
     185#if QT_VERSION < 0x040000
     186  saveFileHBoxLayout->add(fSaveFileName);
    207187  saveFileHBoxLayout->add(saveButton);
    208   saveFileVBoxLayout->add(fSaveFileStatus);
    209 #else
    210   saveFileHBoxLayout->addWidget(fTempFolderPath);
     188  saveFileVGroupBoxLayout->add(saveFileHBox);
     189  saveFileVGroupBoxLayout->add(fSaveFileStatus);
     190#else
     191  saveFileHBoxLayout->addWidget(fSaveFileName);
    211192  saveFileHBoxLayout->addWidget(saveButton);
    212   saveFileVBoxLayout->addWidget(fSaveFileStatus);
    213 #endif
    214 
    215 #ifdef GEANT4_QT_DEBUG
    216   printf("99999\n");
    217 #endif
    218 #if QT_VERSION >= 0x040000
    219 //  saveFileHBox->setLayout(saveFileHBoxLayout);
    220   saveFileGroupBox->setLayout(saveFileVBoxLayout);
     193  saveFileVGroupBoxLayout->addWidget(saveFileHBox);
     194  saveFileVGroupBoxLayout->addWidget(fSaveFileStatus);
     195#endif
     196
     197#if QT_VERSION >= 0x040000
     198  saveFileGroupBox->setLayout(saveFileVGroupBoxLayout);
    221199#endif
    222200  connect( saveButton, SIGNAL( clicked( ) ), this, SLOT(selectSaveFileNameAction() ) );
    223201
    224 #ifdef GEANT4_QT_DEBUG
    225   printf("11110000\n");
    226 #endif
    227202#if QT_VERSION < 0x040000
    228203  globalVLayout->add(saveFileGroupBox);
     
    231206#endif
    232207
    233 #ifdef GEANT4_QT_DEBUG
    234   printf("11111111111&\n");
    235 #endif
    236208
    237209  // label
     
    248220  globalVLayout->addWidget(infoLabel);
    249221  globalVLayout->addWidget(fGlobalStatus);
    250 #endif
    251 #ifdef GEANT4_QT_DEBUG
    252   printf("11112222222222é\n");
    253222#endif
    254223
     
    271240  buttonBoxLayout->addWidget(buttonEncode);
    272241
    273 #ifdef GEANT4_QT_DEBUG
    274   printf("1111333333333333\n");
    275 #endif
    276242#if QT_VERSION >= 0x040000
    277243  buttonBox->setLayout(buttonBoxLayout);
     
    280246
    281247
    282 #ifdef GEANT4_QT_DEBUG
    283   printf("1111444444444\n");
    284 #endif
    285248
    286249#if QT_VERSION >= 0x040000
     
    292255  connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
    293256  connect( buttonEncode, SIGNAL( clicked() ), this, SLOT( encode() ) );
    294 #ifdef GEANT4_QT_DEBUG
    295   printf("111155555555\n");
    296 #endif
    297257}
    298258
Note: See TracChangeset for help on using the changeset viewer.