예제 #1
0
void CIMainWindow::on_actionConfiguration_triggered()
{
    SettingDialog * dialog = new SettingDialog(this);
    dialog->setFixedSize(850, 500);
    dialog->exec();
    readSettings();
}
예제 #2
0
void CustomDialog::openSubDialog( QTableWidgetItem* itm )
{
	int rprow = tw->row(itm);
	RichParameter *defPar = defParSet.findParameter(vrp[rprow]->name);
	SettingDialog* setdial = new SettingDialog(vrp[rprow],defPar,this);
	connect(setdial,SIGNAL(applySettingSignal()),this,SIGNAL(applyCustomSetting()));
	connect(setdial,SIGNAL(applySettingSignal()),this,SLOT(updateSettings()));
	setdial->exec();
	delete setdial;
}
예제 #3
0
void MainWindow::on_actionSetting_triggered()
{
    SettingDialog dialog;
    dialog.SetMargin(img_margin_);
    dialog.SetSpacing(img_spacing_);
    int dialogResult = dialog.exec();



    if(dialogResult == QDialog::Accepted) {
        img_spacing_ = dialog.GetSpacing();
        img_margin_ = dialog.GetMargin();
    }



}
void SettingMenuController::showSettingDialog()
{
    MainWindow::getInstance()->show();
    SettingDialog* settingDialog = new SettingDialog;
    settingDialog->exec();
}
예제 #5
0
void MainWindow::showSettingDlg()
{
    SettingDialog* settingDlg = new SettingDialog(this);

    settingDlg->exec();
}