Changeset 734 for trunk/geant4
- Timestamp:
- Mar 4, 2008, 3:54:43 PM (17 years ago)
- Location:
- trunk/geant4/visualization/OpenGL/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/visualization/OpenGL/src/G4OpenGLQtExportDialog.cc
r704 r734 312 312 #endif 313 313 314 #if QT_VERSION >= 0x040000315 imageGroupBox->setLayout(hSliderLayout);316 #endif317 318 314 globalVLayout->addWidget(imageGroupBox); 319 315 } -
trunk/geant4/visualization/OpenGL/src/G4OpenGLQtMovieDialog.cc
r733 r734 85 85 // Encoder group box 86 86 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); 91 88 92 89 // Encoder Path … … 101 98 fEncoderStatus->setText(""); 102 99 103 #ifdef GEANT4_QT_DEBUG104 printf("2222\n");105 #endif106 100 #if QT_VERSION < 0x040000 107 101 encoderHBoxLayout->add(fEncoderPath); 108 102 encoderHBoxLayout->add(encoderButton); 109 encoderVBoxLayout->add(fEncoderStatus); 103 encoderVGroupBoxLayout->add(encoderHBox); 104 encoderVGroupBoxLayout->add(fEncoderStatus); 110 105 #else 111 106 encoderHBoxLayout->addWidget(fEncoderPath); 112 107 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); 122 114 #endif 123 115 connect( encoderButton, SIGNAL( clicked( ) ), this, SLOT(selectEncoderPathAction() ) ); 124 #ifdef GEANT4_QT_DEBUG125 printf("4444\n");126 #endif127 116 128 117 #if QT_VERSION < 0x040000 … … 137 126 // temp folder group box 138 127 QGroupBox *tempFolderGroupBox = new QGroupBox(tr("Temporary folder path")); 139 QVBoxLayout *tempFolderV BoxLayout = new QVBoxLayout(tempFolderGroupBox);128 QVBoxLayout *tempFolderVGroupBoxLayout = new QVBoxLayout(tempFolderGroupBox); 140 129 141 130 // temp folder Path 142 131 QWidget *tempFolderHBox = new QWidget(tempFolderGroupBox); 143 QHBoxLayout *tempFolderHBoxLayout = new QHBoxLayout(tempFolder GroupBox);132 QHBoxLayout *tempFolderHBoxLayout = new QHBoxLayout(tempFolderHBox); 144 133 145 134 fTempFolderPath = new QLineEdit("",tempFolderHBox); … … 151 140 fTempFolderStatus->setText(""); 152 141 153 #ifdef GEANT4_QT_DEBUG154 printf("5555\n");155 #endif156 142 #if QT_VERSION < 0x040000 157 143 tempFolderHBoxLayout->add(fTempFolderPath); 158 144 tempFolderHBoxLayout->add(tempButton); 159 tempFolderVBoxLayout->add(fTempFolderStatus); 145 tempFolderVGroupBoxLayout->add(tempFolderHBox); 146 tempFolderVGroupBoxLayout->add(fTempFolderStatus); 160 147 #else 161 148 tempFolderHBoxLayout->addWidget(fTempFolderPath); 162 149 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); 172 156 #endif 173 157 connect( tempButton, SIGNAL( clicked( ) ), this, SLOT(selectTempPathAction() ) ); 174 158 175 #ifdef GEANT4_QT_DEBUG176 printf("77777\n");177 #endif178 159 #if QT_VERSION < 0x040000 179 160 globalVLayout->add(tempFolderGroupBox); … … 183 164 184 165 fTempFolderPath->setText(fParentViewer->getTempFolderPath()); 166 167 185 168 186 169 // save file group box 187 170 QGroupBox *saveFileGroupBox = new QGroupBox(tr("Save as")); 188 QVBoxLayout *saveFileV BoxLayout = new QVBoxLayout(saveFileGroupBox);171 QVBoxLayout *saveFileVGroupBoxLayout = new QVBoxLayout(saveFileGroupBox); 189 172 190 173 // save file … … 200 183 fSaveFileStatus->setText(""); 201 184 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); 207 187 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); 211 192 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); 221 199 #endif 222 200 connect( saveButton, SIGNAL( clicked( ) ), this, SLOT(selectSaveFileNameAction() ) ); 223 201 224 #ifdef GEANT4_QT_DEBUG225 printf("11110000\n");226 #endif227 202 #if QT_VERSION < 0x040000 228 203 globalVLayout->add(saveFileGroupBox); … … 231 206 #endif 232 207 233 #ifdef GEANT4_QT_DEBUG234 printf("11111111111&\n");235 #endif236 208 237 209 // label … … 248 220 globalVLayout->addWidget(infoLabel); 249 221 globalVLayout->addWidget(fGlobalStatus); 250 #endif251 #ifdef GEANT4_QT_DEBUG252 printf("11112222222222é\n");253 222 #endif 254 223 … … 271 240 buttonBoxLayout->addWidget(buttonEncode); 272 241 273 #ifdef GEANT4_QT_DEBUG274 printf("1111333333333333\n");275 #endif276 242 #if QT_VERSION >= 0x040000 277 243 buttonBox->setLayout(buttonBoxLayout); … … 280 246 281 247 282 #ifdef GEANT4_QT_DEBUG283 printf("1111444444444\n");284 #endif285 248 286 249 #if QT_VERSION >= 0x040000 … … 292 255 connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); 293 256 connect( buttonEncode, SIGNAL( clicked() ), this, SLOT( encode() ) ); 294 #ifdef GEANT4_QT_DEBUG295 printf("111155555555\n");296 #endif297 257 } 298 258
Note: See TracChangeset
for help on using the changeset viewer.