00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef MATERIALSETTINGSDATA_H
00011 #define MATERIALSETTINGSDATA_H
00012
00013 #include <BALL/COMMON/global.h>
00014 #include <QtCore/QVariant>
00015 #include <QtGui/QAction>
00016 #include <QtGui/QApplication>
00017 #include <QtGui/QButtonGroup>
00018 #include <QtGui/QGridLayout>
00019 #include <QtGui/QGroupBox>
00020 #include <QtGui/QLabel>
00021 #include <QtGui/QSlider>
00022 #include <QtGui/QWidget>
00023
00024 class Ui_MaterialSettingsData
00025 {
00026 public:
00027 QGroupBox *groupBox;
00028 QGridLayout *gridLayout;
00029 QSlider *ambient_slider;
00030 QLabel *textLabel1_2;
00031 QLabel *diffuse_label;
00032 QLabel *ambient_label;
00033 QLabel *textLabel1_3;
00034 QSlider *diffuse_slider;
00035 QGroupBox *groupBox_2;
00036 QGridLayout *gridLayout1;
00037 QLabel *textLabel1;
00038 QSlider *shininess_slider;
00039 QSlider *specular_slider;
00040 QLabel *textLabel1_4;
00041 QLabel *shininess_label;
00042 QLabel *specular_label;
00043
00044 void setupUi(QWidget *MaterialSettingsData)
00045 {
00046 MaterialSettingsData->setObjectName(QString::fromUtf8("MaterialSettingsData"));
00047 MaterialSettingsData->setMaximumSize(QSize(650, 450));
00048 groupBox = new QGroupBox(MaterialSettingsData);
00049 groupBox->setObjectName(QString::fromUtf8("groupBox"));
00050 groupBox->setGeometry(QRect(10, 120, 451, 111));
00051 gridLayout = new QGridLayout(groupBox);
00052 gridLayout->setSpacing(6);
00053 gridLayout->setMargin(9);
00054 gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
00055 ambient_slider = new QSlider(groupBox);
00056 ambient_slider->setObjectName(QString::fromUtf8("ambient_slider"));
00057 QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
00058 sizePolicy.setHorizontalStretch(0);
00059 sizePolicy.setVerticalStretch(0);
00060 sizePolicy.setHeightForWidth(ambient_slider->sizePolicy().hasHeightForWidth());
00061 ambient_slider->setSizePolicy(sizePolicy);
00062 ambient_slider->setMinimumSize(QSize(120, 21));
00063 ambient_slider->setMaximumSize(QSize(120, 21));
00064 ambient_slider->setMinimum(0);
00065 ambient_slider->setMaximum(10);
00066 ambient_slider->setPageStep(1);
00067 ambient_slider->setOrientation(Qt::Horizontal);
00068 ambient_slider->setTickInterval(5);
00069
00070 gridLayout->addWidget(ambient_slider, 1, 1, 1, 1);
00071
00072 textLabel1_2 = new QLabel(groupBox);
00073 textLabel1_2->setObjectName(QString::fromUtf8("textLabel1_2"));
00074 QSizePolicy sizePolicy1(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
00075 sizePolicy1.setHorizontalStretch(0);
00076 sizePolicy1.setVerticalStretch(0);
00077 sizePolicy1.setHeightForWidth(textLabel1_2->sizePolicy().hasHeightForWidth());
00078 textLabel1_2->setSizePolicy(sizePolicy1);
00079 textLabel1_2->setMinimumSize(QSize(220, 25));
00080 textLabel1_2->setMaximumSize(QSize(220, 25));
00081
00082 gridLayout->addWidget(textLabel1_2, 1, 0, 1, 1);
00083
00084 diffuse_label = new QLabel(groupBox);
00085 diffuse_label->setObjectName(QString::fromUtf8("diffuse_label"));
00086 QSizePolicy sizePolicy2(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
00087 sizePolicy2.setHorizontalStretch(0);
00088 sizePolicy2.setVerticalStretch(0);
00089 sizePolicy2.setHeightForWidth(diffuse_label->sizePolicy().hasHeightForWidth());
00090 diffuse_label->setSizePolicy(sizePolicy2);
00091 diffuse_label->setMinimumSize(QSize(60, 25));
00092 diffuse_label->setMaximumSize(QSize(60, 25));
00093 diffuse_label->setAlignment(Qt::AlignCenter);
00094
00095 gridLayout->addWidget(diffuse_label, 0, 2, 1, 1);
00096
00097 ambient_label = new QLabel(groupBox);
00098 ambient_label->setObjectName(QString::fromUtf8("ambient_label"));
00099 QSizePolicy sizePolicy3(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
00100 sizePolicy3.setHorizontalStretch(0);
00101 sizePolicy3.setVerticalStretch(0);
00102 sizePolicy3.setHeightForWidth(ambient_label->sizePolicy().hasHeightForWidth());
00103 ambient_label->setSizePolicy(sizePolicy3);
00104 ambient_label->setMinimumSize(QSize(60, 25));
00105 ambient_label->setMaximumSize(QSize(60, 25));
00106 ambient_label->setAlignment(Qt::AlignCenter);
00107
00108 gridLayout->addWidget(ambient_label, 1, 2, 1, 1);
00109
00110 textLabel1_3 = new QLabel(groupBox);
00111 textLabel1_3->setObjectName(QString::fromUtf8("textLabel1_3"));
00112 QSizePolicy sizePolicy4(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
00113 sizePolicy4.setHorizontalStretch(0);
00114 sizePolicy4.setVerticalStretch(0);
00115 sizePolicy4.setHeightForWidth(textLabel1_3->sizePolicy().hasHeightForWidth());
00116 textLabel1_3->setSizePolicy(sizePolicy4);
00117 textLabel1_3->setMinimumSize(QSize(220, 25));
00118 textLabel1_3->setMaximumSize(QSize(220, 25));
00119
00120 gridLayout->addWidget(textLabel1_3, 0, 0, 1, 1);
00121
00122 diffuse_slider = new QSlider(groupBox);
00123 diffuse_slider->setObjectName(QString::fromUtf8("diffuse_slider"));
00124 QSizePolicy sizePolicy5(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
00125 sizePolicy5.setHorizontalStretch(0);
00126 sizePolicy5.setVerticalStretch(0);
00127 sizePolicy5.setHeightForWidth(diffuse_slider->sizePolicy().hasHeightForWidth());
00128 diffuse_slider->setSizePolicy(sizePolicy5);
00129 diffuse_slider->setMinimumSize(QSize(120, 21));
00130 diffuse_slider->setMaximumSize(QSize(120, 21));
00131 diffuse_slider->setMinimum(0);
00132 diffuse_slider->setMaximum(10);
00133 diffuse_slider->setPageStep(1);
00134 diffuse_slider->setValue(7);
00135 diffuse_slider->setOrientation(Qt::Horizontal);
00136 diffuse_slider->setTickInterval(5);
00137
00138 gridLayout->addWidget(diffuse_slider, 0, 1, 1, 1);
00139
00140 groupBox_2 = new QGroupBox(MaterialSettingsData);
00141 groupBox_2->setObjectName(QString::fromUtf8("groupBox_2"));
00142 groupBox_2->setGeometry(QRect(10, 0, 451, 111));
00143 gridLayout1 = new QGridLayout(groupBox_2);
00144 gridLayout1->setSpacing(6);
00145 gridLayout1->setMargin(9);
00146 gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
00147 textLabel1 = new QLabel(groupBox_2);
00148 textLabel1->setObjectName(QString::fromUtf8("textLabel1"));
00149 QSizePolicy sizePolicy6(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
00150 sizePolicy6.setHorizontalStretch(0);
00151 sizePolicy6.setVerticalStretch(0);
00152 sizePolicy6.setHeightForWidth(textLabel1->sizePolicy().hasHeightForWidth());
00153 textLabel1->setSizePolicy(sizePolicy6);
00154 textLabel1->setMinimumSize(QSize(220, 25));
00155 textLabel1->setMaximumSize(QSize(220, 25));
00156
00157 gridLayout1->addWidget(textLabel1, 1, 0, 1, 1);
00158
00159 shininess_slider = new QSlider(groupBox_2);
00160 shininess_slider->setObjectName(QString::fromUtf8("shininess_slider"));
00161 QSizePolicy sizePolicy7(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
00162 sizePolicy7.setHorizontalStretch(0);
00163 sizePolicy7.setVerticalStretch(0);
00164 sizePolicy7.setHeightForWidth(shininess_slider->sizePolicy().hasHeightForWidth());
00165 shininess_slider->setSizePolicy(sizePolicy7);
00166 shininess_slider->setMinimumSize(QSize(120, 21));
00167 shininess_slider->setMaximumSize(QSize(120, 21));
00168 shininess_slider->setMaximum(1280);
00169 shininess_slider->setSingleStep(10);
00170 shininess_slider->setPageStep(100);
00171 shininess_slider->setValue(1280);
00172 shininess_slider->setOrientation(Qt::Horizontal);
00173 shininess_slider->setTickInterval(400);
00174
00175 gridLayout1->addWidget(shininess_slider, 1, 1, 1, 1);
00176
00177 specular_slider = new QSlider(groupBox_2);
00178 specular_slider->setObjectName(QString::fromUtf8("specular_slider"));
00179 QSizePolicy sizePolicy8(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
00180 sizePolicy8.setHorizontalStretch(0);
00181 sizePolicy8.setVerticalStretch(0);
00182 sizePolicy8.setHeightForWidth(specular_slider->sizePolicy().hasHeightForWidth());
00183 specular_slider->setSizePolicy(sizePolicy8);
00184 specular_slider->setMinimumSize(QSize(120, 21));
00185 specular_slider->setMaximumSize(QSize(120, 21));
00186 specular_slider->setMinimum(0);
00187 specular_slider->setMaximum(10);
00188 specular_slider->setPageStep(1);
00189 specular_slider->setValue(9);
00190 specular_slider->setOrientation(Qt::Horizontal);
00191 specular_slider->setTickInterval(5);
00192
00193 gridLayout1->addWidget(specular_slider, 0, 1, 1, 1);
00194
00195 textLabel1_4 = new QLabel(groupBox_2);
00196 textLabel1_4->setObjectName(QString::fromUtf8("textLabel1_4"));
00197 QSizePolicy sizePolicy9(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
00198 sizePolicy9.setHorizontalStretch(0);
00199 sizePolicy9.setVerticalStretch(0);
00200 sizePolicy9.setHeightForWidth(textLabel1_4->sizePolicy().hasHeightForWidth());
00201 textLabel1_4->setSizePolicy(sizePolicy9);
00202 textLabel1_4->setMinimumSize(QSize(220, 25));
00203 textLabel1_4->setMaximumSize(QSize(220, 25));
00204
00205 gridLayout1->addWidget(textLabel1_4, 0, 0, 1, 1);
00206
00207 shininess_label = new QLabel(groupBox_2);
00208 shininess_label->setObjectName(QString::fromUtf8("shininess_label"));
00209 QSizePolicy sizePolicy10(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
00210 sizePolicy10.setHorizontalStretch(0);
00211 sizePolicy10.setVerticalStretch(0);
00212 sizePolicy10.setHeightForWidth(shininess_label->sizePolicy().hasHeightForWidth());
00213 shininess_label->setSizePolicy(sizePolicy10);
00214 shininess_label->setMinimumSize(QSize(60, 25));
00215 shininess_label->setMaximumSize(QSize(60, 25));
00216 shininess_label->setAlignment(Qt::AlignCenter);
00217
00218 gridLayout1->addWidget(shininess_label, 1, 2, 1, 1);
00219
00220 specular_label = new QLabel(groupBox_2);
00221 specular_label->setObjectName(QString::fromUtf8("specular_label"));
00222 QSizePolicy sizePolicy11(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
00223 sizePolicy11.setHorizontalStretch(0);
00224 sizePolicy11.setVerticalStretch(0);
00225 sizePolicy11.setHeightForWidth(specular_label->sizePolicy().hasHeightForWidth());
00226 specular_label->setSizePolicy(sizePolicy11);
00227 specular_label->setMinimumSize(QSize(60, 25));
00228 specular_label->setMaximumSize(QSize(60, 25));
00229 specular_label->setAlignment(Qt::AlignCenter);
00230
00231 gridLayout1->addWidget(specular_label, 0, 2, 1, 1);
00232
00233 QWidget::setTabOrder(specular_slider, shininess_slider);
00234 QWidget::setTabOrder(shininess_slider, diffuse_slider);
00235 QWidget::setTabOrder(diffuse_slider, ambient_slider);
00236
00237 retranslateUi(MaterialSettingsData);
00238
00239 QSize size(650, 450);
00240 size = size.expandedTo(MaterialSettingsData->minimumSizeHint());
00241 MaterialSettingsData->resize(size);
00242
00243
00244 QMetaObject::connectSlotsByName(MaterialSettingsData);
00245 }
00246
00247 void retranslateUi(QWidget *MaterialSettingsData)
00248 {
00249 MaterialSettingsData->setWindowTitle(QApplication::translate("MaterialSettingsData", "MaterialSettings", 0, QApplication::UnicodeUTF8));
00250 groupBox->setTitle(QApplication::translate("MaterialSettingsData", "POVRay", 0, QApplication::UnicodeUTF8));
00251 textLabel1_2->setText(QApplication::translate("MaterialSettingsData", "Ambient intensity", 0, QApplication::UnicodeUTF8));
00252 diffuse_label->setText(QApplication::translate("MaterialSettingsData", "0", 0, QApplication::UnicodeUTF8));
00253 ambient_label->setText(QApplication::translate("MaterialSettingsData", "0", 0, QApplication::UnicodeUTF8));
00254 textLabel1_3->setText(QApplication::translate("MaterialSettingsData", "Diffuse intensity", 0, QApplication::UnicodeUTF8));
00255 groupBox_2->setTitle(QApplication::translate("MaterialSettingsData", "OpenGL / POVRay", 0, QApplication::UnicodeUTF8));
00256 textLabel1->setText(QApplication::translate("MaterialSettingsData", "Shininess", 0, QApplication::UnicodeUTF8));
00257 textLabel1_4->setText(QApplication::translate("MaterialSettingsData", "Specular intensity", 0, QApplication::UnicodeUTF8));
00258 shininess_label->setText(QApplication::translate("MaterialSettingsData", "0", 0, QApplication::UnicodeUTF8));
00259 specular_label->setText(QApplication::translate("MaterialSettingsData", "0", 0, QApplication::UnicodeUTF8));
00260 Q_UNUSED(MaterialSettingsData);
00261 }
00262
00263 };
00264
00265 namespace Ui {
00266 class MaterialSettingsData: public Ui_MaterialSettingsData {};
00267 }
00268
00269 #endif // MATERIALSETTINGSDATA_H