void SaveMaskExporterDialog::InitDialog() { SaveMaskExporterDialog::ui->setupUi(this); connect(ui->okButton, SIGNAL(clicked()), this, SLOT(SlotOkButton())); connect(ui->cancelButton, SIGNAL(clicked()), this, SLOT(SlotCancelButton())); connect(ui->renametextureButton,SIGNAL(clicked()),this,SLOT(SlotRenameTexture())); connect(ui->listTextureName,SIGNAL(itemSelectionChanged()),this,SLOT(SlotSelectionTextureName())); connect(ui->AllButton,SIGNAL(clicked()),this,SLOT(SlotSelectionAllButton())); connect(ui->NoneButton,SIGNAL(clicked()),this,SLOT(SlotSelectionNoneButton())); ui->renametextureButton->setDisabled(true); stdParFrame = new StdParFrame(this,glar); stdParFrame->loadFrameContent(*parSet); QVBoxLayout *vbox = new QVBoxLayout(this); vbox->addWidget(stdParFrame); ui->saveParBox->setLayout(vbox); QFileInfo fi(m->fullName()); this->setWindowTitle("Choose Saving Options for: '"+ fi.baseName() +"'"); // Show the additional parameters only for formats that have some. if(parSet->isEmpty()) ui->saveParBox->hide(); else ui->saveParBox->show(); //all - none ui->AllButton->setChecked(true); //ui->NoneButton->setChecked(true); SetTextureName(); SetMaskCapability(); }
void ChangeTextureNameDialog::InitDialog() { ChangeTextureNameDialog::ui->setupUi(this); connect(ui->okButton, SIGNAL(clicked()), this, SLOT(SlotOkButton())); connect(ui->cancelButton, SIGNAL(clicked()), this, SLOT(SlotCancelButton())); connect(ui->searchButton,SIGNAL(clicked()),this,SLOT(SlotSearchTextureName())); ui->newtexturename->setWindowTitle("Rename Texture"); }