00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef UI_RESULTDIALOG_H
00011 #define UI_RESULTDIALOG_H
00012
00013 #include <QtCore/QLocale>
00014 #include <QtCore/QVariant>
00015 #include <QtGui/QAction>
00016 #include <QtGui/QApplication>
00017 #include <QtGui/QButtonGroup>
00018 #include <QtGui/QDialog>
00019 #include <QtGui/QDialogButtonBox>
00020 #include <QtGui/QFrame>
00021 #include <QtGui/QGridLayout>
00022 #include <QtGui/QHBoxLayout>
00023 #include <QtGui/QHeaderView>
00024 #include <QtGui/QLabel>
00025 #include <QtGui/QSpacerItem>
00026 #include <QtGui/QSpinBox>
00027
00028 QT_BEGIN_NAMESPACE
00029
00030 class Ui_ResultDialog
00031 {
00032 public:
00033 QGridLayout *gridLayout;
00034 QHBoxLayout *horizontalLayout;
00035 QLabel *labelLogo1;
00036 QSpacerItem *horizontalSpacer_4;
00037 QLabel *labelTeam1;
00038 QSpacerItem *horizontalSpacer;
00039 QSpinBox *spinBoxTeam1;
00040 QLabel *labelColon;
00041 QSpinBox *spinBoxTeam2;
00042 QSpacerItem *horizontalSpacer_3;
00043 QLabel *labelLogo2;
00044 QSpacerItem *horizontalSpacer_2;
00045 QLabel *labelTeam2;
00046 QFrame *line;
00047 QDialogButtonBox *buttonBox;
00048 QLabel *labelInfo;
00049
00050 void setupUi(QDialog *ResultDialog)
00051 {
00052 if (ResultDialog->objectName().isEmpty())
00053 ResultDialog->setObjectName(QString::fromUtf8("ResultDialog"));
00054 ResultDialog->setWindowModality(Qt::NonModal);
00055 ResultDialog->setEnabled(true);
00056 ResultDialog->resize(416, 98);
00057 QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::Fixed);
00058 sizePolicy.setHorizontalStretch(0);
00059 sizePolicy.setVerticalStretch(0);
00060 sizePolicy.setHeightForWidth(ResultDialog->sizePolicy().hasHeightForWidth());
00061 ResultDialog->setSizePolicy(sizePolicy);
00062 QPalette palette;
00063 QBrush brush(QColor(255, 255, 255, 255));
00064 brush.setStyle(Qt::SolidPattern);
00065 palette.setBrush(QPalette::Active, QPalette::WindowText, brush);
00066 palette.setBrush(QPalette::Active, QPalette::Base, brush);
00067 QBrush brush1(QColor(0, 0, 0, 255));
00068 brush1.setStyle(Qt::SolidPattern);
00069 palette.setBrush(QPalette::Active, QPalette::Window, brush1);
00070 palette.setBrush(QPalette::Inactive, QPalette::WindowText, brush);
00071 palette.setBrush(QPalette::Inactive, QPalette::Base, brush);
00072 palette.setBrush(QPalette::Inactive, QPalette::Window, brush1);
00073 QBrush brush2(QColor(106, 104, 100, 255));
00074 brush2.setStyle(Qt::SolidPattern);
00075 palette.setBrush(QPalette::Disabled, QPalette::WindowText, brush2);
00076 palette.setBrush(QPalette::Disabled, QPalette::Base, brush1);
00077 palette.setBrush(QPalette::Disabled, QPalette::Window, brush1);
00078 ResultDialog->setPalette(palette);
00079 QFont font;
00080 font.setKerning(true);
00081 ResultDialog->setFont(font);
00082 ResultDialog->setContextMenuPolicy(Qt::NoContextMenu);
00083 ResultDialog->setWindowTitle(QString::fromUtf8("Enter Game Result"));
00084 ResultDialog->setSizeGripEnabled(false);
00085 ResultDialog->setModal(false);
00086 gridLayout = new QGridLayout(ResultDialog);
00087 gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
00088 horizontalLayout = new QHBoxLayout();
00089 horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
00090 labelLogo1 = new QLabel(ResultDialog);
00091 labelLogo1->setObjectName(QString::fromUtf8("labelLogo1"));
00092 QSizePolicy sizePolicy1(QSizePolicy::Maximum, QSizePolicy::Preferred);
00093 sizePolicy1.setHorizontalStretch(0);
00094 sizePolicy1.setVerticalStretch(0);
00095 sizePolicy1.setHeightForWidth(labelLogo1->sizePolicy().hasHeightForWidth());
00096 labelLogo1->setSizePolicy(sizePolicy1);
00097 QFont font1;
00098 font1.setFamily(QString::fromUtf8("Consolas"));
00099 font1.setPointSize(15);
00100 labelLogo1->setFont(font1);
00101
00102 horizontalLayout->addWidget(labelLogo1);
00103
00104 horizontalSpacer_4 = new QSpacerItem(20, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
00105
00106 horizontalLayout->addItem(horizontalSpacer_4);
00107
00108 labelTeam1 = new QLabel(ResultDialog);
00109 labelTeam1->setObjectName(QString::fromUtf8("labelTeam1"));
00110 QSizePolicy sizePolicy2(QSizePolicy::Preferred, QSizePolicy::Preferred);
00111 sizePolicy2.setHorizontalStretch(0);
00112 sizePolicy2.setVerticalStretch(0);
00113 sizePolicy2.setHeightForWidth(labelTeam1->sizePolicy().hasHeightForWidth());
00114 labelTeam1->setSizePolicy(sizePolicy2);
00115 QFont font2;
00116 font2.setFamily(QString::fromUtf8("Consolas"));
00117 font2.setPointSize(24);
00118 labelTeam1->setFont(font2);
00119
00120 horizontalLayout->addWidget(labelTeam1);
00121
00122 horizontalSpacer = new QSpacerItem(20, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
00123
00124 horizontalLayout->addItem(horizontalSpacer);
00125
00126 spinBoxTeam1 = new QSpinBox(ResultDialog);
00127 spinBoxTeam1->setObjectName(QString::fromUtf8("spinBoxTeam1"));
00128 QSizePolicy sizePolicy3(QSizePolicy::Minimum, QSizePolicy::Fixed);
00129 sizePolicy3.setHorizontalStretch(0);
00130 sizePolicy3.setVerticalStretch(0);
00131 sizePolicy3.setHeightForWidth(spinBoxTeam1->sizePolicy().hasHeightForWidth());
00132 spinBoxTeam1->setSizePolicy(sizePolicy3);
00133 spinBoxTeam1->setMaximumSize(QSize(44, 16777215));
00134 QPalette palette1;
00135 QBrush brush3(QColor(255, 0, 0, 255));
00136 brush3.setStyle(Qt::SolidPattern);
00137 palette1.setBrush(QPalette::Active, QPalette::Text, brush3);
00138 palette1.setBrush(QPalette::Active, QPalette::Base, brush1);
00139 palette1.setBrush(QPalette::Inactive, QPalette::Text, brush3);
00140 palette1.setBrush(QPalette::Inactive, QPalette::Base, brush1);
00141 palette1.setBrush(QPalette::Disabled, QPalette::Text, brush2);
00142 palette1.setBrush(QPalette::Disabled, QPalette::Base, brush1);
00143 spinBoxTeam1->setPalette(palette1);
00144 QFont font3;
00145 font3.setFamily(QString::fromUtf8("Consolas"));
00146 font3.setPointSize(20);
00147 spinBoxTeam1->setFont(font3);
00148 spinBoxTeam1->setMaximum(9);
00149 spinBoxTeam1->setValue(0);
00150
00151 horizontalLayout->addWidget(spinBoxTeam1);
00152
00153 labelColon = new QLabel(ResultDialog);
00154 labelColon->setObjectName(QString::fromUtf8("labelColon"));
00155 sizePolicy1.setHeightForWidth(labelColon->sizePolicy().hasHeightForWidth());
00156 labelColon->setSizePolicy(sizePolicy1);
00157 labelColon->setFont(font3);
00158 labelColon->setAlignment(Qt::AlignCenter);
00159
00160 horizontalLayout->addWidget(labelColon);
00161
00162 spinBoxTeam2 = new QSpinBox(ResultDialog);
00163 spinBoxTeam2->setObjectName(QString::fromUtf8("spinBoxTeam2"));
00164 sizePolicy3.setHeightForWidth(spinBoxTeam2->sizePolicy().hasHeightForWidth());
00165 spinBoxTeam2->setSizePolicy(sizePolicy3);
00166 spinBoxTeam2->setMaximumSize(QSize(44, 16777215));
00167 QPalette palette2;
00168 palette2.setBrush(QPalette::Active, QPalette::Text, brush3);
00169 palette2.setBrush(QPalette::Active, QPalette::Base, brush1);
00170 palette2.setBrush(QPalette::Inactive, QPalette::Text, brush3);
00171 palette2.setBrush(QPalette::Inactive, QPalette::Base, brush1);
00172 palette2.setBrush(QPalette::Disabled, QPalette::Text, brush2);
00173 palette2.setBrush(QPalette::Disabled, QPalette::Base, brush1);
00174 spinBoxTeam2->setPalette(palette2);
00175 spinBoxTeam2->setFont(font3);
00176 spinBoxTeam2->setMaximum(9);
00177 spinBoxTeam2->setValue(0);
00178
00179 horizontalLayout->addWidget(spinBoxTeam2);
00180
00181 horizontalSpacer_3 = new QSpacerItem(20, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
00182
00183 horizontalLayout->addItem(horizontalSpacer_3);
00184
00185 labelLogo2 = new QLabel(ResultDialog);
00186 labelLogo2->setObjectName(QString::fromUtf8("labelLogo2"));
00187 sizePolicy1.setHeightForWidth(labelLogo2->sizePolicy().hasHeightForWidth());
00188 labelLogo2->setSizePolicy(sizePolicy1);
00189 labelLogo2->setFont(font1);
00190
00191 horizontalLayout->addWidget(labelLogo2);
00192
00193 horizontalSpacer_2 = new QSpacerItem(20, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
00194
00195 horizontalLayout->addItem(horizontalSpacer_2);
00196
00197 labelTeam2 = new QLabel(ResultDialog);
00198 labelTeam2->setObjectName(QString::fromUtf8("labelTeam2"));
00199 sizePolicy2.setHeightForWidth(labelTeam2->sizePolicy().hasHeightForWidth());
00200 labelTeam2->setSizePolicy(sizePolicy2);
00201 labelTeam2->setFont(font2);
00202
00203 horizontalLayout->addWidget(labelTeam2);
00204
00205
00206 gridLayout->addLayout(horizontalLayout, 0, 0, 1, 2);
00207
00208 line = new QFrame(ResultDialog);
00209 line->setObjectName(QString::fromUtf8("line"));
00210 line->setFrameShape(QFrame::HLine);
00211 line->setFrameShadow(QFrame::Sunken);
00212
00213 gridLayout->addWidget(line, 1, 0, 1, 2);
00214
00215 buttonBox = new QDialogButtonBox(ResultDialog);
00216 buttonBox->setObjectName(QString::fromUtf8("buttonBox"));
00217 sizePolicy3.setHeightForWidth(buttonBox->sizePolicy().hasHeightForWidth());
00218 buttonBox->setSizePolicy(sizePolicy3);
00219 buttonBox->setMinimumSize(QSize(0, 0));
00220 buttonBox->setContextMenuPolicy(Qt::DefaultContextMenu);
00221 buttonBox->setAcceptDrops(false);
00222 buttonBox->setAutoFillBackground(false);
00223 buttonBox->setLocale(QLocale(QLocale::German, QLocale::Austria));
00224 buttonBox->setOrientation(Qt::Horizontal);
00225 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
00226 buttonBox->setCenterButtons(false);
00227
00228 gridLayout->addWidget(buttonBox, 3, 1, 1, 1);
00229
00230 labelInfo = new QLabel(ResultDialog);
00231 labelInfo->setObjectName(QString::fromUtf8("labelInfo"));
00232 QSizePolicy sizePolicy4(QSizePolicy::Minimum, QSizePolicy::Preferred);
00233 sizePolicy4.setHorizontalStretch(1);
00234 sizePolicy4.setVerticalStretch(0);
00235 sizePolicy4.setHeightForWidth(labelInfo->sizePolicy().hasHeightForWidth());
00236 labelInfo->setSizePolicy(sizePolicy4);
00237 QFont font4;
00238 font4.setFamily(QString::fromUtf8("Consolas"));
00239 font4.setPointSize(11);
00240 labelInfo->setFont(font4);
00241 labelInfo->setAlignment(Qt::AlignCenter);
00242
00243 gridLayout->addWidget(labelInfo, 3, 0, 1, 1);
00244
00245
00246 retranslateUi(ResultDialog);
00247 QObject::connect(buttonBox, SIGNAL(rejected()), ResultDialog, SLOT(reject()));
00248 QObject::connect(buttonBox, SIGNAL(accepted()), ResultDialog, SLOT(accept()));
00249
00250 QMetaObject::connectSlotsByName(ResultDialog);
00251 }
00252
00253 void retranslateUi(QDialog *ResultDialog)
00254 {
00255 spinBoxTeam1->setSuffix(QString());
00256 labelColon->setText(QApplication::translate("ResultDialog", ":", 0, QApplication::UnicodeUTF8));
00257 labelInfo->setText(QApplication::translate("ResultDialog", "Game undecided: Enter result!", 0, QApplication::UnicodeUTF8));
00258 Q_UNUSED(ResultDialog);
00259 }
00260
00261 };
00262
00263 namespace Ui {
00264 class ResultDialog: public Ui_ResultDialog {};
00265 }
00266
00267 QT_END_NAMESPACE
00268
00269 #endif // UI_RESULTDIALOG_H