1 /******************************************************************************** 2 ** Form generated from reading UI file 'tetrixwindow.ui' 3 ** 4 ** Created by: Qt User Interface Compiler version 4.8.5 5 ** 6 ** WARNING! All changes made in this file will be lost when recompiling UI file! 7 ********************************************************************************/ 8 9 #ifndef TETRIXWINDOW_H 10 #define TETRIXWINDOW_H 11 12 #include <QtCore/QVariant> 13 #include <QtGui/QAction> 14 #include <QtGui/QApplication> 15 #include <QtGui/QButtonGroup> 16 #include <QtGui/QGridLayout> 17 #include <QtGui/QHeaderView> 18 #include <QtGui/QLCDNumber> 19 #include <QtGui/QLabel> 20 #include <QtGui/QPushButton> 21 #include <QtGui/QVBoxLayout> 22 #include <QtGui/QWidget> 23 #include "tetrixboard.h" 24 25 QT_BEGIN_NAMESPACE 26 27 class Ui_TetrixWindow 28 { 29 public: 30 QVBoxLayout *vboxLayout; 31 QGridLayout *gridLayout; 32 QPushButton *startButton; 33 QLCDNumber *linesLcd; 34 QLabel *linesRemovedLabel; 35 QPushButton *pauseButton; 36 QLCDNumber *scoreLcd; 37 TetrixBoard *board; 38 QLabel *levelLabel; 39 QLabel *nextLabel; 40 QLCDNumber *levelLcd; 41 QLabel *scoreLabel; 42 QLabel *nextPieceLabel; 43 QPushButton *quitButton; 44 setupUi(QWidget * TetrixWindow)45 void setupUi(QWidget *TetrixWindow) 46 { 47 if (TetrixWindow->objectName().isEmpty()) 48 TetrixWindow->setObjectName(QString::fromUtf8("TetrixWindow")); 49 TetrixWindow->resize(537, 475); 50 vboxLayout = new QVBoxLayout(TetrixWindow); 51 #ifndef Q_OS_MAC 52 vboxLayout->setSpacing(6); 53 #endif 54 #ifndef Q_OS_MAC 55 vboxLayout->setContentsMargins(9, 9, 9, 9); 56 #endif 57 vboxLayout->setObjectName(QString::fromUtf8("vboxLayout")); 58 gridLayout = new QGridLayout(); 59 #ifndef Q_OS_MAC 60 gridLayout->setSpacing(6); 61 #endif 62 #ifndef Q_OS_MAC 63 gridLayout->setContentsMargins(0, 0, 0, 0); 64 #endif 65 gridLayout->setObjectName(QString::fromUtf8("gridLayout")); 66 startButton = new QPushButton(TetrixWindow); 67 startButton->setObjectName(QString::fromUtf8("startButton")); 68 startButton->setFocusPolicy(Qt::NoFocus); 69 70 gridLayout->addWidget(startButton, 4, 0, 1, 1); 71 72 linesLcd = new QLCDNumber(TetrixWindow); 73 linesLcd->setObjectName(QString::fromUtf8("linesLcd")); 74 linesLcd->setSegmentStyle(QLCDNumber::Filled); 75 76 gridLayout->addWidget(linesLcd, 3, 2, 1, 1); 77 78 linesRemovedLabel = new QLabel(TetrixWindow); 79 linesRemovedLabel->setObjectName(QString::fromUtf8("linesRemovedLabel")); 80 linesRemovedLabel->setAlignment(Qt::AlignBottom|Qt::AlignHCenter); 81 82 gridLayout->addWidget(linesRemovedLabel, 2, 2, 1, 1); 83 84 pauseButton = new QPushButton(TetrixWindow); 85 pauseButton->setObjectName(QString::fromUtf8("pauseButton")); 86 pauseButton->setFocusPolicy(Qt::NoFocus); 87 88 gridLayout->addWidget(pauseButton, 5, 2, 1, 1); 89 90 scoreLcd = new QLCDNumber(TetrixWindow); 91 scoreLcd->setObjectName(QString::fromUtf8("scoreLcd")); 92 scoreLcd->setSegmentStyle(QLCDNumber::Filled); 93 94 gridLayout->addWidget(scoreLcd, 1, 2, 1, 1); 95 96 board = new TetrixBoard(TetrixWindow); 97 board->setObjectName(QString::fromUtf8("board")); 98 board->setFocusPolicy(Qt::StrongFocus); 99 board->setFrameShape(QFrame::Panel); 100 board->setFrameShadow(QFrame::Sunken); 101 102 gridLayout->addWidget(board, 0, 1, 6, 1); 103 104 levelLabel = new QLabel(TetrixWindow); 105 levelLabel->setObjectName(QString::fromUtf8("levelLabel")); 106 levelLabel->setAlignment(Qt::AlignBottom|Qt::AlignHCenter); 107 108 gridLayout->addWidget(levelLabel, 2, 0, 1, 1); 109 110 nextLabel = new QLabel(TetrixWindow); 111 nextLabel->setObjectName(QString::fromUtf8("nextLabel")); 112 nextLabel->setAlignment(Qt::AlignBottom|Qt::AlignHCenter); 113 114 gridLayout->addWidget(nextLabel, 0, 0, 1, 1); 115 116 levelLcd = new QLCDNumber(TetrixWindow); 117 levelLcd->setObjectName(QString::fromUtf8("levelLcd")); 118 levelLcd->setSegmentStyle(QLCDNumber::Filled); 119 120 gridLayout->addWidget(levelLcd, 3, 0, 1, 1); 121 122 scoreLabel = new QLabel(TetrixWindow); 123 scoreLabel->setObjectName(QString::fromUtf8("scoreLabel")); 124 scoreLabel->setAlignment(Qt::AlignBottom|Qt::AlignHCenter); 125 126 gridLayout->addWidget(scoreLabel, 0, 2, 1, 1); 127 128 nextPieceLabel = new QLabel(TetrixWindow); 129 nextPieceLabel->setObjectName(QString::fromUtf8("nextPieceLabel")); 130 nextPieceLabel->setFrameShape(QFrame::Box); 131 nextPieceLabel->setFrameShadow(QFrame::Raised); 132 nextPieceLabel->setAlignment(Qt::AlignCenter); 133 134 gridLayout->addWidget(nextPieceLabel, 1, 0, 1, 1); 135 136 quitButton = new QPushButton(TetrixWindow); 137 quitButton->setObjectName(QString::fromUtf8("quitButton")); 138 quitButton->setFocusPolicy(Qt::NoFocus); 139 140 gridLayout->addWidget(quitButton, 4, 2, 1, 1); 141 142 143 vboxLayout->addLayout(gridLayout); 144 145 146 retranslateUi(TetrixWindow); 147 148 QMetaObject::connectSlotsByName(TetrixWindow); 149 } // setupUi 150 retranslateUi(QWidget * TetrixWindow)151 void retranslateUi(QWidget *TetrixWindow) 152 { 153 TetrixWindow->setWindowTitle(QApplication::translate("TetrixWindow", "Tetrix", 0, QApplication::UnicodeUTF8)); 154 startButton->setText(QApplication::translate("TetrixWindow", "&Start", 0, QApplication::UnicodeUTF8)); 155 linesRemovedLabel->setText(QApplication::translate("TetrixWindow", "LINES REMOVED", 0, QApplication::UnicodeUTF8)); 156 pauseButton->setText(QApplication::translate("TetrixWindow", "&Pause", 0, QApplication::UnicodeUTF8)); 157 levelLabel->setText(QApplication::translate("TetrixWindow", "LEVEL", 0, QApplication::UnicodeUTF8)); 158 nextLabel->setText(QApplication::translate("TetrixWindow", "NEXT", 0, QApplication::UnicodeUTF8)); 159 scoreLabel->setText(QApplication::translate("TetrixWindow", "SCORE", 0, QApplication::UnicodeUTF8)); 160 nextPieceLabel->setText(QString()); 161 quitButton->setText(QApplication::translate("TetrixWindow", "&Quit", 0, QApplication::UnicodeUTF8)); 162 } // retranslateUi 163 164 }; 165 166 namespace Ui { 167 class TetrixWindow: public Ui_TetrixWindow {}; 168 } // namespace Ui 169 170 QT_END_NAMESPACE 171 172 #endif // TETRIXWINDOW_H 173