12 #include <QtCore/QVariant> 14 #include <QApplication> 15 #include <QButtonGroup> 17 #include <QDialogButtonBox> 18 #include <QHeaderView> 21 #include <QToolButton> 42 if (Config->objectName().isEmpty())
43 Config->setObjectName(QString::fromUtf8(
"Config"));
44 Config->resize(400, 300);
45 buttonBox =
new QDialogButtonBox(Config);
46 buttonBox->setObjectName(QString::fromUtf8(
"buttonBox"));
47 buttonBox->setGeometry(QRect(30, 240, 341, 32));
48 buttonBox->setOrientation(Qt::Horizontal);
49 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
50 shaderButton =
new QToolButton(Config);
51 shaderButton->setObjectName(QString::fromUtf8(
"shaderButton"));
52 shaderButton->setGeometry(QRect(240, 20, 150, 30));
53 shaderButton->setAcceptDrops(
false);
54 shaderButton->setAutoRepeatDelay(300);
55 shaderButton->setAutoRepeatInterval(100);
56 shaderButton->setPopupMode(QToolButton::InstantPopup);
57 shaderLabel =
new QLabel(Config);
58 shaderLabel->setObjectName(QString::fromUtf8(
"shaderLabel"));
59 shaderLabel->setGeometry(QRect(40, 30, 61, 21));
60 acceleratorLabel =
new QLabel(Config);
61 acceleratorLabel->setObjectName(QString::fromUtf8(
"acceleratorLabel"));
62 acceleratorLabel->setGeometry(QRect(10, 70, 191, 21));
63 acceleratorButton =
new QToolButton(Config);
64 acceleratorButton->setObjectName(QString::fromUtf8(
"acceleratorButton"));
65 acceleratorButton->setGeometry(QRect(240, 70, 151, 28));
66 acceleratorButton->setPopupMode(QToolButton::InstantPopup);
67 sceneLabel =
new QLabel(Config);
68 sceneLabel->setObjectName(QString::fromUtf8(
"sceneLabel"));
69 sceneLabel->setGeometry(QRect(50, 120, 61, 21));
70 sceneButton =
new QToolButton(Config);
71 sceneButton->setObjectName(QString::fromUtf8(
"sceneButton"));
72 sceneButton->setGeometry(QRect(240, 120, 151, 28));
73 sceneButton->setPopupMode(QToolButton::InstantPopup);
74 sppSpinBox =
new QSpinBox(Config);
75 sppSpinBox->setObjectName(QString::fromUtf8(
"sppSpinBox"));
76 sppSpinBox->setGeometry(QRect(240, 160, 151, 30));
77 sppLabel =
new QLabel(Config);
78 sppLabel->setObjectName(QString::fromUtf8(
"sppLabel"));
79 sppLabel->setGeometry(QRect(30, 160, 161, 21));
80 splLabel =
new QLabel(Config);
81 splLabel->setObjectName(QString::fromUtf8(
"splLabel"));
82 splLabel->setGeometry(QRect(30, 200, 161, 21));
83 splSpinBox =
new QSpinBox(Config);
84 splSpinBox->setObjectName(QString::fromUtf8(
"splSpinBox"));
85 splSpinBox->setGeometry(QRect(240, 200, 151, 30));
88 QObject::connect(buttonBox, SIGNAL(accepted()), Config, SLOT(accept()));
89 QObject::connect(buttonBox, SIGNAL(rejected()), Config, SLOT(reject()));
90 QObject::connect(shaderButton, SIGNAL(triggered(QAction*)), Config, SLOT(selected_shader(QAction*)));
91 QObject::connect(acceleratorButton, SIGNAL(triggered(QAction*)), Config, SLOT(selected_accelerator(QAction*)));
92 QObject::connect(sceneButton, SIGNAL(triggered(QAction*)), Config, SLOT(selected_scene(QAction*)));
93 QObject::connect(sppSpinBox, SIGNAL(valueChanged(
int)), Config, SLOT(selected_spp(
int)));
94 QObject::connect(splSpinBox, SIGNAL(valueChanged(
int)), Config, SLOT(selected_spl(
int)));
96 QMetaObject::connectSlotsByName(Config);
101 Config->setWindowTitle(QApplication::translate(
"Config",
"Dialog", 0));
102 shaderButton->setText(QApplication::translate(
"Config",
"Shader", 0));
103 shaderLabel->setText(QApplication::translate(
"Config",
"Shader", 0));
104 acceleratorLabel->setText(QApplication::translate(
"Config",
"Acceleration Structure", 0));
105 acceleratorButton->setText(QApplication::translate(
"Config",
"Accelerator", 0));
106 sceneLabel->setText(QApplication::translate(
"Config",
"Scene", 0));
107 sceneButton->setText(QApplication::translate(
"Config",
"Scene", 0));
108 sppLabel->setText(QApplication::translate(
"Config",
"Samples per pixel", 0));
109 splLabel->setText(QApplication::translate(
"Config",
"Samples per light", 0));
120 #endif // UI_CONFIG_H QLabel * splLabel
Definition: ui_config.h:37
QLabel * sppLabel
Definition: ui_config.h:36
QToolButton * acceleratorButton
Definition: ui_config.h:32
void setupUi(QDialog *Config)
Definition: ui_config.h:40
Definition: ui_about.h:63
QToolButton * shaderButton
Definition: ui_config.h:29
QToolButton * sceneButton
Definition: ui_config.h:34
QLabel * sceneLabel
Definition: ui_config.h:33
QLabel * shaderLabel
Definition: ui_config.h:30
Definition: ui_config.h:115
QSpinBox * splSpinBox
Definition: ui_config.h:38
Definition: ui_config.h:25
QSpinBox * sppSpinBox
Definition: ui_config.h:35
void retranslateUi(QDialog *Config)
Definition: ui_config.h:99
QLabel * acceleratorLabel
Definition: ui_config.h:31
QDialogButtonBox * buttonBox
Definition: ui_config.h:28