00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef UI_UNITTEST_H
00011 #define UI_UNITTEST_H
00012
00013 #include <QtCore/QVariant>
00014 #include <QtGui/QAction>
00015 #include <QtGui/QApplication>
00016 #include <QtGui/QButtonGroup>
00017 #include <QtGui/QComboBox>
00018 #include <QtGui/QDialog>
00019 #include <QtGui/QGridLayout>
00020 #include <QtGui/QGroupBox>
00021 #include <QtGui/QHBoxLayout>
00022 #include <QtGui/QHeaderView>
00023 #include <QtGui/QLabel>
00024 #include <QtGui/QProgressBar>
00025 #include <QtGui/QPushButton>
00026 #include <QtGui/QSpacerItem>
00027 #include <QtGui/QTreeWidget>
00028 #include <QtGui/QVBoxLayout>
00029
00030 namespace TestGui {
00031
00032 class Ui_UnitTest
00033 {
00034 public:
00035 QGridLayout *gridLayout;
00036 QGroupBox *groupBox2;
00037 QGridLayout *gridLayout1;
00038 QTreeWidget *treeViewFailure;
00039 QVBoxLayout *vboxLayout;
00040 QSpacerItem *spacerItem;
00041 QPushButton *startButton;
00042 QSpacerItem *spacerItem1;
00043 QPushButton *helpButton;
00044 QPushButton *aboutButton;
00045 QPushButton *closeButton;
00046 QLabel *textLabelStatus;
00047 QGroupBox *groupBox1;
00048 QGridLayout *gridLayout2;
00049 QProgressBar *progressBar;
00050 QLabel *textLabelRemCt;
00051 QLabel *textLabelRem;
00052 QLabel *textLabelErrCt;
00053 QLabel *textLabelErr;
00054 QLabel *textLabelFailCt;
00055 QLabel *textLabelFail;
00056 QLabel *textLabelRunCt;
00057 QLabel *textLabelRun;
00058 QGroupBox *buttonGroup1;
00059 QHBoxLayout *hboxLayout;
00060 QLabel *textLabelTest;
00061 QComboBox *comboTests;
00062
00063 void setupUi(QDialog *TestGui__UnitTest)
00064 {
00065 if (TestGui__UnitTest->objectName().isEmpty())
00066 TestGui__UnitTest->setObjectName(QString::fromUtf8("TestGui__UnitTest"));
00067 TestGui__UnitTest->resize(421, 434);
00068 TestGui__UnitTest->setSizeGripEnabled(true);
00069 gridLayout = new QGridLayout(TestGui__UnitTest);
00070 gridLayout->setSpacing(6);
00071 gridLayout->setMargin(9);
00072 gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
00073 groupBox2 = new QGroupBox(TestGui__UnitTest);
00074 groupBox2->setObjectName(QString::fromUtf8("groupBox2"));
00075 gridLayout1 = new QGridLayout(groupBox2);
00076 gridLayout1->setSpacing(6);
00077 gridLayout1->setMargin(9);
00078 gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
00079 treeViewFailure = new QTreeWidget(groupBox2);
00080 treeViewFailure->setObjectName(QString::fromUtf8("treeViewFailure"));
00081 treeViewFailure->setRootIsDecorated(false);
00082
00083 gridLayout1->addWidget(treeViewFailure, 0, 0, 1, 1);
00084
00085
00086 gridLayout->addWidget(groupBox2, 2, 0, 1, 1);
00087
00088 vboxLayout = new QVBoxLayout();
00089 vboxLayout->setSpacing(6);
00090 vboxLayout->setMargin(0);
00091 vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
00092 spacerItem = new QSpacerItem(20, 16, QSizePolicy::Minimum, QSizePolicy::Fixed);
00093
00094 vboxLayout->addItem(spacerItem);
00095
00096 startButton = new QPushButton(TestGui__UnitTest);
00097 startButton->setObjectName(QString::fromUtf8("startButton"));
00098 startButton->setAutoDefault(true);
00099 startButton->setDefault(true);
00100
00101 vboxLayout->addWidget(startButton);
00102
00103 spacerItem1 = new QSpacerItem(77, 141, QSizePolicy::Minimum, QSizePolicy::Expanding);
00104
00105 vboxLayout->addItem(spacerItem1);
00106
00107 helpButton = new QPushButton(TestGui__UnitTest);
00108 helpButton->setObjectName(QString::fromUtf8("helpButton"));
00109 helpButton->setAutoDefault(true);
00110
00111 vboxLayout->addWidget(helpButton);
00112
00113 aboutButton = new QPushButton(TestGui__UnitTest);
00114 aboutButton->setObjectName(QString::fromUtf8("aboutButton"));
00115 aboutButton->setAutoDefault(true);
00116
00117 vboxLayout->addWidget(aboutButton);
00118
00119 closeButton = new QPushButton(TestGui__UnitTest);
00120 closeButton->setObjectName(QString::fromUtf8("closeButton"));
00121 closeButton->setAutoDefault(true);
00122
00123 vboxLayout->addWidget(closeButton);
00124
00125
00126 gridLayout->addLayout(vboxLayout, 0, 1, 3, 1);
00127
00128 textLabelStatus = new QLabel(TestGui__UnitTest);
00129 textLabelStatus->setObjectName(QString::fromUtf8("textLabelStatus"));
00130 textLabelStatus->setFrameShape(QFrame::Panel);
00131 textLabelStatus->setFrameShadow(QFrame::Sunken);
00132
00133 gridLayout->addWidget(textLabelStatus, 3, 0, 1, 2);
00134
00135 groupBox1 = new QGroupBox(TestGui__UnitTest);
00136 groupBox1->setObjectName(QString::fromUtf8("groupBox1"));
00137 gridLayout2 = new QGridLayout(groupBox1);
00138 gridLayout2->setSpacing(6);
00139 gridLayout2->setMargin(6);
00140 gridLayout2->setObjectName(QString::fromUtf8("gridLayout2"));
00141 progressBar = new QProgressBar(groupBox1);
00142 progressBar->setObjectName(QString::fromUtf8("progressBar"));
00143 progressBar->setOrientation(Qt::Horizontal);
00144
00145 gridLayout2->addWidget(progressBar, 0, 0, 1, 8);
00146
00147 textLabelRemCt = new QLabel(groupBox1);
00148 textLabelRemCt->setObjectName(QString::fromUtf8("textLabelRemCt"));
00149 textLabelRemCt->setAlignment(Qt::AlignVCenter);
00150
00151 gridLayout2->addWidget(textLabelRemCt, 1, 7, 1, 1);
00152
00153 textLabelRem = new QLabel(groupBox1);
00154 textLabelRem->setObjectName(QString::fromUtf8("textLabelRem"));
00155
00156 gridLayout2->addWidget(textLabelRem, 1, 6, 1, 1);
00157
00158 textLabelErrCt = new QLabel(groupBox1);
00159 textLabelErrCt->setObjectName(QString::fromUtf8("textLabelErrCt"));
00160 textLabelErrCt->setAlignment(Qt::AlignVCenter);
00161
00162 gridLayout2->addWidget(textLabelErrCt, 1, 5, 1, 1);
00163
00164 textLabelErr = new QLabel(groupBox1);
00165 textLabelErr->setObjectName(QString::fromUtf8("textLabelErr"));
00166
00167 gridLayout2->addWidget(textLabelErr, 1, 4, 1, 1);
00168
00169 textLabelFailCt = new QLabel(groupBox1);
00170 textLabelFailCt->setObjectName(QString::fromUtf8("textLabelFailCt"));
00171 textLabelFailCt->setAlignment(Qt::AlignVCenter);
00172
00173 gridLayout2->addWidget(textLabelFailCt, 1, 3, 1, 1);
00174
00175 textLabelFail = new QLabel(groupBox1);
00176 textLabelFail->setObjectName(QString::fromUtf8("textLabelFail"));
00177
00178 gridLayout2->addWidget(textLabelFail, 1, 2, 1, 1);
00179
00180 textLabelRunCt = new QLabel(groupBox1);
00181 textLabelRunCt->setObjectName(QString::fromUtf8("textLabelRunCt"));
00182 textLabelRunCt->setAlignment(Qt::AlignVCenter);
00183
00184 gridLayout2->addWidget(textLabelRunCt, 1, 1, 1, 1);
00185
00186 textLabelRun = new QLabel(groupBox1);
00187 textLabelRun->setObjectName(QString::fromUtf8("textLabelRun"));
00188
00189 gridLayout2->addWidget(textLabelRun, 1, 0, 1, 1);
00190
00191
00192 gridLayout->addWidget(groupBox1, 1, 0, 1, 1);
00193
00194 buttonGroup1 = new QGroupBox(TestGui__UnitTest);
00195 buttonGroup1->setObjectName(QString::fromUtf8("buttonGroup1"));
00196 hboxLayout = new QHBoxLayout(buttonGroup1);
00197 hboxLayout->setSpacing(6);
00198 hboxLayout->setMargin(5);
00199 hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
00200 textLabelTest = new QLabel(buttonGroup1);
00201 textLabelTest->setObjectName(QString::fromUtf8("textLabelTest"));
00202
00203 hboxLayout->addWidget(textLabelTest);
00204
00205 comboTests = new QComboBox(buttonGroup1);
00206 comboTests->setObjectName(QString::fromUtf8("comboTests"));
00207 QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(3), static_cast<QSizePolicy::Policy>(0));
00208 sizePolicy.setHorizontalStretch(0);
00209 sizePolicy.setVerticalStretch(0);
00210 sizePolicy.setHeightForWidth(comboTests->sizePolicy().hasHeightForWidth());
00211 comboTests->setSizePolicy(sizePolicy);
00212 comboTests->setEditable(true);
00213 comboTests->setDuplicatesEnabled(false);
00214
00215 hboxLayout->addWidget(comboTests);
00216
00217
00218 gridLayout->addWidget(buttonGroup1, 0, 0, 1, 1);
00219
00220 QWidget::setTabOrder(comboTests, startButton);
00221 QWidget::setTabOrder(startButton, treeViewFailure);
00222 QWidget::setTabOrder(treeViewFailure, helpButton);
00223 QWidget::setTabOrder(helpButton, aboutButton);
00224 QWidget::setTabOrder(aboutButton, closeButton);
00225
00226 retranslateUi(TestGui__UnitTest);
00227 QObject::connect(closeButton, SIGNAL(clicked()), TestGui__UnitTest, SLOT(close()));
00228
00229 QMetaObject::connectSlotsByName(TestGui__UnitTest);
00230 }
00231
00232 void retranslateUi(QDialog *TestGui__UnitTest)
00233 {
00234 TestGui__UnitTest->setWindowTitle(QApplication::translate("TestGui::UnitTest", "FreeCAD UnitTest", 0, QApplication::UnicodeUTF8));
00235 groupBox2->setTitle(QApplication::translate("TestGui::UnitTest", "Failures and errors", 0, QApplication::UnicodeUTF8));
00236 QTreeWidgetItem *___qtreewidgetitem = treeViewFailure->headerItem();
00237 ___qtreewidgetitem->setText(0, QApplication::translate("TestGui::UnitTest", "Description", 0, QApplication::UnicodeUTF8));
00238 startButton->setText(QApplication::translate("TestGui::UnitTest", "&Start", 0, QApplication::UnicodeUTF8));
00239 startButton->setShortcut(QApplication::translate("TestGui::UnitTest", "Alt+S", 0, QApplication::UnicodeUTF8));
00240 helpButton->setText(QApplication::translate("TestGui::UnitTest", "&Help", 0, QApplication::UnicodeUTF8));
00241 helpButton->setShortcut(QApplication::translate("TestGui::UnitTest", "F1", 0, QApplication::UnicodeUTF8));
00242 aboutButton->setText(QApplication::translate("TestGui::UnitTest", "&About", 0, QApplication::UnicodeUTF8));
00243 aboutButton->setShortcut(QApplication::translate("TestGui::UnitTest", "Alt+A", 0, QApplication::UnicodeUTF8));
00244 closeButton->setText(QApplication::translate("TestGui::UnitTest", "&Close", 0, QApplication::UnicodeUTF8));
00245 closeButton->setShortcut(QApplication::translate("TestGui::UnitTest", "Alt+C", 0, QApplication::UnicodeUTF8));
00246 textLabelStatus->setText(QApplication::translate("TestGui::UnitTest", "Idle", 0, QApplication::UnicodeUTF8));
00247 groupBox1->setTitle(QApplication::translate("TestGui::UnitTest", "Progress", 0, QApplication::UnicodeUTF8));
00248 textLabelRemCt->setText(QApplication::translate("TestGui::UnitTest", "<font color=\"#0000ff\">0</font>", 0, QApplication::UnicodeUTF8));
00249 textLabelRem->setText(QApplication::translate("TestGui::UnitTest", "Remaining:", 0, QApplication::UnicodeUTF8));
00250 textLabelErrCt->setText(QApplication::translate("TestGui::UnitTest", "<font color=\"#0000ff\">0</font>", 0, QApplication::UnicodeUTF8));
00251 textLabelErr->setText(QApplication::translate("TestGui::UnitTest", "Errors:", 0, QApplication::UnicodeUTF8));
00252 textLabelFailCt->setText(QApplication::translate("TestGui::UnitTest", "<font color=\"#0000ff\">0</font>", 0, QApplication::UnicodeUTF8));
00253 textLabelFail->setText(QApplication::translate("TestGui::UnitTest", "Failures:", 0, QApplication::UnicodeUTF8));
00254 textLabelRunCt->setText(QApplication::translate("TestGui::UnitTest", "<font color=\"#0000ff\">0</font>", 0, QApplication::UnicodeUTF8));
00255 textLabelRun->setText(QApplication::translate("TestGui::UnitTest", "Run:", 0, QApplication::UnicodeUTF8));
00256 buttonGroup1->setTitle(QApplication::translate("TestGui::UnitTest", "Test", 0, QApplication::UnicodeUTF8));
00257 textLabelTest->setText(QApplication::translate("TestGui::UnitTest", "Select test name:", 0, QApplication::UnicodeUTF8));
00258 Q_UNUSED(TestGui__UnitTest);
00259 }
00260
00261 };
00262
00263 }
00264
00265 namespace TestGui {
00266 namespace Ui {
00267 class UnitTest: public Ui_UnitTest {};
00268 }
00269 }
00270
00271 #endif // UI_UNITTEST_H