2011-04-27 10:05:43 +00:00
|
|
|
/********************************************************************************
|
|
|
|
** Form generated from reading UI file 'tetrixwindow.ui'
|
|
|
|
**
|
|
|
|
** Created: Fri Sep 4 10:17:15 2009
|
|
|
|
** by: Qt User Interface Compiler version 4.6.0
|
|
|
|
**
|
|
|
|
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
|
|
|
********************************************************************************/
|
|
|
|
|
|
|
|
#ifndef TETRIXWINDOW_H
|
|
|
|
#define TETRIXWINDOW_H
|
|
|
|
|
|
|
|
#include <QtCore/QVariant>
|
2011-09-22 13:09:37 +00:00
|
|
|
#include <QtWidgets/QAction>
|
|
|
|
#include <QtWidgets/QApplication>
|
|
|
|
#include <QtWidgets/QButtonGroup>
|
|
|
|
#include <QtWidgets/QGridLayout>
|
|
|
|
#include <QtWidgets/QHeaderView>
|
|
|
|
#include <QtWidgets/QLCDNumber>
|
|
|
|
#include <QtWidgets/QLabel>
|
|
|
|
#include <QtWidgets/QPushButton>
|
|
|
|
#include <QtWidgets/QVBoxLayout>
|
|
|
|
#include <QtWidgets/QWidget>
|
2011-04-27 10:05:43 +00:00
|
|
|
#include "tetrixboard.h"
|
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
|
|
|
class Ui_TetrixWindow
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
QVBoxLayout *vboxLayout;
|
|
|
|
QGridLayout *gridLayout;
|
|
|
|
QPushButton *startButton;
|
|
|
|
QLCDNumber *linesLcd;
|
|
|
|
QLabel *linesRemovedLabel;
|
|
|
|
QPushButton *pauseButton;
|
|
|
|
QLCDNumber *scoreLcd;
|
|
|
|
TetrixBoard *board;
|
|
|
|
QLabel *levelLabel;
|
|
|
|
QLabel *nextLabel;
|
|
|
|
QLCDNumber *levelLcd;
|
|
|
|
QLabel *scoreLabel;
|
|
|
|
QLabel *nextPieceLabel;
|
|
|
|
QPushButton *quitButton;
|
|
|
|
|
|
|
|
void setupUi(QWidget *TetrixWindow)
|
|
|
|
{
|
|
|
|
if (TetrixWindow->objectName().isEmpty())
|
2011-12-11 15:55:01 +00:00
|
|
|
TetrixWindow->setObjectName(QStringLiteral("TetrixWindow"));
|
2011-04-27 10:05:43 +00:00
|
|
|
TetrixWindow->resize(537, 475);
|
|
|
|
vboxLayout = new QVBoxLayout(TetrixWindow);
|
|
|
|
#ifndef Q_OS_MAC
|
|
|
|
vboxLayout->setSpacing(6);
|
|
|
|
#endif
|
|
|
|
#ifndef Q_OS_MAC
|
|
|
|
vboxLayout->setContentsMargins(9, 9, 9, 9);
|
|
|
|
#endif
|
2011-12-11 15:55:01 +00:00
|
|
|
vboxLayout->setObjectName(QStringLiteral("vboxLayout"));
|
2011-04-27 10:05:43 +00:00
|
|
|
gridLayout = new QGridLayout();
|
|
|
|
#ifndef Q_OS_MAC
|
|
|
|
gridLayout->setSpacing(6);
|
|
|
|
#endif
|
|
|
|
#ifndef Q_OS_MAC
|
|
|
|
gridLayout->setContentsMargins(0, 0, 0, 0);
|
|
|
|
#endif
|
2011-12-11 15:55:01 +00:00
|
|
|
gridLayout->setObjectName(QStringLiteral("gridLayout"));
|
2011-04-27 10:05:43 +00:00
|
|
|
startButton = new QPushButton(TetrixWindow);
|
2011-12-11 15:55:01 +00:00
|
|
|
startButton->setObjectName(QStringLiteral("startButton"));
|
2011-04-27 10:05:43 +00:00
|
|
|
startButton->setFocusPolicy(Qt::NoFocus);
|
|
|
|
|
|
|
|
gridLayout->addWidget(startButton, 4, 0, 1, 1);
|
|
|
|
|
|
|
|
linesLcd = new QLCDNumber(TetrixWindow);
|
2011-12-11 15:55:01 +00:00
|
|
|
linesLcd->setObjectName(QStringLiteral("linesLcd"));
|
2011-04-27 10:05:43 +00:00
|
|
|
linesLcd->setSegmentStyle(QLCDNumber::Filled);
|
|
|
|
|
|
|
|
gridLayout->addWidget(linesLcd, 3, 2, 1, 1);
|
|
|
|
|
|
|
|
linesRemovedLabel = new QLabel(TetrixWindow);
|
2011-12-11 15:55:01 +00:00
|
|
|
linesRemovedLabel->setObjectName(QStringLiteral("linesRemovedLabel"));
|
2011-04-27 10:05:43 +00:00
|
|
|
linesRemovedLabel->setAlignment(Qt::AlignBottom|Qt::AlignHCenter);
|
|
|
|
|
|
|
|
gridLayout->addWidget(linesRemovedLabel, 2, 2, 1, 1);
|
|
|
|
|
|
|
|
pauseButton = new QPushButton(TetrixWindow);
|
2011-12-11 15:55:01 +00:00
|
|
|
pauseButton->setObjectName(QStringLiteral("pauseButton"));
|
2011-04-27 10:05:43 +00:00
|
|
|
pauseButton->setFocusPolicy(Qt::NoFocus);
|
|
|
|
|
|
|
|
gridLayout->addWidget(pauseButton, 5, 2, 1, 1);
|
|
|
|
|
|
|
|
scoreLcd = new QLCDNumber(TetrixWindow);
|
2011-12-11 15:55:01 +00:00
|
|
|
scoreLcd->setObjectName(QStringLiteral("scoreLcd"));
|
2011-04-27 10:05:43 +00:00
|
|
|
scoreLcd->setSegmentStyle(QLCDNumber::Filled);
|
|
|
|
|
|
|
|
gridLayout->addWidget(scoreLcd, 1, 2, 1, 1);
|
|
|
|
|
|
|
|
board = new TetrixBoard(TetrixWindow);
|
2011-12-11 15:55:01 +00:00
|
|
|
board->setObjectName(QStringLiteral("board"));
|
2011-04-27 10:05:43 +00:00
|
|
|
board->setFocusPolicy(Qt::StrongFocus);
|
|
|
|
board->setFrameShape(QFrame::Panel);
|
|
|
|
board->setFrameShadow(QFrame::Sunken);
|
|
|
|
|
|
|
|
gridLayout->addWidget(board, 0, 1, 6, 1);
|
|
|
|
|
|
|
|
levelLabel = new QLabel(TetrixWindow);
|
2011-12-11 15:55:01 +00:00
|
|
|
levelLabel->setObjectName(QStringLiteral("levelLabel"));
|
2011-04-27 10:05:43 +00:00
|
|
|
levelLabel->setAlignment(Qt::AlignBottom|Qt::AlignHCenter);
|
|
|
|
|
|
|
|
gridLayout->addWidget(levelLabel, 2, 0, 1, 1);
|
|
|
|
|
|
|
|
nextLabel = new QLabel(TetrixWindow);
|
2011-12-11 15:55:01 +00:00
|
|
|
nextLabel->setObjectName(QStringLiteral("nextLabel"));
|
2011-04-27 10:05:43 +00:00
|
|
|
nextLabel->setAlignment(Qt::AlignBottom|Qt::AlignHCenter);
|
|
|
|
|
|
|
|
gridLayout->addWidget(nextLabel, 0, 0, 1, 1);
|
|
|
|
|
|
|
|
levelLcd = new QLCDNumber(TetrixWindow);
|
2011-12-11 15:55:01 +00:00
|
|
|
levelLcd->setObjectName(QStringLiteral("levelLcd"));
|
2011-04-27 10:05:43 +00:00
|
|
|
levelLcd->setSegmentStyle(QLCDNumber::Filled);
|
|
|
|
|
|
|
|
gridLayout->addWidget(levelLcd, 3, 0, 1, 1);
|
|
|
|
|
|
|
|
scoreLabel = new QLabel(TetrixWindow);
|
2011-12-11 15:55:01 +00:00
|
|
|
scoreLabel->setObjectName(QStringLiteral("scoreLabel"));
|
2011-04-27 10:05:43 +00:00
|
|
|
scoreLabel->setAlignment(Qt::AlignBottom|Qt::AlignHCenter);
|
|
|
|
|
|
|
|
gridLayout->addWidget(scoreLabel, 0, 2, 1, 1);
|
|
|
|
|
|
|
|
nextPieceLabel = new QLabel(TetrixWindow);
|
2011-12-11 15:55:01 +00:00
|
|
|
nextPieceLabel->setObjectName(QStringLiteral("nextPieceLabel"));
|
2011-04-27 10:05:43 +00:00
|
|
|
nextPieceLabel->setFrameShape(QFrame::Box);
|
|
|
|
nextPieceLabel->setFrameShadow(QFrame::Raised);
|
|
|
|
nextPieceLabel->setAlignment(Qt::AlignCenter);
|
|
|
|
|
|
|
|
gridLayout->addWidget(nextPieceLabel, 1, 0, 1, 1);
|
|
|
|
|
|
|
|
quitButton = new QPushButton(TetrixWindow);
|
2011-12-11 15:55:01 +00:00
|
|
|
quitButton->setObjectName(QStringLiteral("quitButton"));
|
2011-04-27 10:05:43 +00:00
|
|
|
quitButton->setFocusPolicy(Qt::NoFocus);
|
|
|
|
|
|
|
|
gridLayout->addWidget(quitButton, 4, 2, 1, 1);
|
|
|
|
|
|
|
|
|
|
|
|
vboxLayout->addLayout(gridLayout);
|
|
|
|
|
|
|
|
|
|
|
|
retranslateUi(TetrixWindow);
|
|
|
|
|
|
|
|
QMetaObject::connectSlotsByName(TetrixWindow);
|
|
|
|
} // setupUi
|
|
|
|
|
|
|
|
void retranslateUi(QWidget *TetrixWindow)
|
|
|
|
{
|
2012-05-17 00:37:23 +00:00
|
|
|
TetrixWindow->setWindowTitle(QApplication::translate("TetrixWindow", "Tetrix", 0));
|
|
|
|
startButton->setText(QApplication::translate("TetrixWindow", "&Start", 0));
|
|
|
|
linesRemovedLabel->setText(QApplication::translate("TetrixWindow", "LINES REMOVED", 0));
|
|
|
|
pauseButton->setText(QApplication::translate("TetrixWindow", "&Pause", 0));
|
|
|
|
levelLabel->setText(QApplication::translate("TetrixWindow", "LEVEL", 0));
|
|
|
|
nextLabel->setText(QApplication::translate("TetrixWindow", "NEXT", 0));
|
|
|
|
scoreLabel->setText(QApplication::translate("TetrixWindow", "SCORE", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
nextPieceLabel->setText(QString());
|
2012-05-17 00:37:23 +00:00
|
|
|
quitButton->setText(QApplication::translate("TetrixWindow", "&Quit", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
} // retranslateUi
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class TetrixWindow: public Ui_TetrixWindow {};
|
|
|
|
} // namespace Ui
|
|
|
|
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
#endif // TETRIXWINDOW_H
|