mirror of
https://github.com/QuantumLeaps/qpcpp.git
synced 2025-01-28 06:02:56 +08:00
121 lines
4.9 KiB
C++
121 lines
4.9 KiB
C++
/********************************************************************************
|
|
** Form generated from reading UI file 'gui.ui'
|
|
**
|
|
** Created by: Qt User Interface Compiler version 5.1.0
|
|
**
|
|
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
|
********************************************************************************/
|
|
|
|
#ifndef UI_GUI_H
|
|
#define UI_GUI_H
|
|
|
|
#include <QtCore/QVariant>
|
|
#include <QtWidgets/QAction>
|
|
#include <QtWidgets/QApplication>
|
|
#include <QtWidgets/QButtonGroup>
|
|
#include <QtWidgets/QDialog>
|
|
#include <QtWidgets/QHeaderView>
|
|
#include <QtWidgets/QLabel>
|
|
#include <QtWidgets/QPushButton>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
class Ui_Gui
|
|
{
|
|
public:
|
|
QPushButton *m_pauseButton;
|
|
QPushButton *m_quitButton;
|
|
QLabel *m_philoLabel_0;
|
|
QLabel *m_philoLabel_1;
|
|
QLabel *m_philoLabel_2;
|
|
QLabel *m_philoLabel_3;
|
|
QLabel *m_philoLabel_4;
|
|
QLabel *label;
|
|
QLabel *m_epoolLabel;
|
|
|
|
void setupUi(QDialog *Gui)
|
|
{
|
|
if (Gui->objectName().isEmpty())
|
|
Gui->setObjectName(QStringLiteral("Gui"));
|
|
Gui->resize(338, 360);
|
|
QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
|
sizePolicy.setHorizontalStretch(0);
|
|
sizePolicy.setVerticalStretch(0);
|
|
sizePolicy.setHeightForWidth(Gui->sizePolicy().hasHeightForWidth());
|
|
Gui->setSizePolicy(sizePolicy);
|
|
QIcon icon;
|
|
icon.addFile(QStringLiteral("res/qp.ico"), QSize(), QIcon::Normal, QIcon::Off);
|
|
Gui->setWindowIcon(icon);
|
|
m_pauseButton = new QPushButton(Gui);
|
|
m_pauseButton->setObjectName(QStringLiteral("m_pauseButton"));
|
|
m_pauseButton->setGeometry(QRect(130, 150, 81, 41));
|
|
m_pauseButton->setCursor(QCursor(Qt::PointingHandCursor));
|
|
m_pauseButton->setAutoFillBackground(false);
|
|
QIcon icon1;
|
|
icon1.addFile(QStringLiteral(":/res/EK-BTN_UP.png"), QSize(), QIcon::Normal, QIcon::Off);
|
|
m_pauseButton->setIcon(icon1);
|
|
m_pauseButton->setIconSize(QSize(43, 45));
|
|
m_quitButton = new QPushButton(Gui);
|
|
m_quitButton->setObjectName(QStringLiteral("m_quitButton"));
|
|
m_quitButton->setGeometry(QRect(230, 320, 101, 31));
|
|
m_philoLabel_0 = new QLabel(Gui);
|
|
m_philoLabel_0->setObjectName(QStringLiteral("m_philoLabel_0"));
|
|
m_philoLabel_0->setGeometry(QRect(130, 20, 80, 74));
|
|
m_philoLabel_0->setPixmap(QPixmap(QString::fromUtf8(":/res/thinking.png")));
|
|
m_philoLabel_1 = new QLabel(Gui);
|
|
m_philoLabel_1->setObjectName(QStringLiteral("m_philoLabel_1"));
|
|
m_philoLabel_1->setGeometry(QRect(240, 100, 80, 74));
|
|
m_philoLabel_1->setPixmap(QPixmap(QString::fromUtf8(":/res/thinking.png")));
|
|
m_philoLabel_2 = new QLabel(Gui);
|
|
m_philoLabel_2->setObjectName(QStringLiteral("m_philoLabel_2"));
|
|
m_philoLabel_2->setGeometry(QRect(190, 230, 80, 74));
|
|
m_philoLabel_2->setPixmap(QPixmap(QString::fromUtf8(":/res/thinking.png")));
|
|
m_philoLabel_3 = new QLabel(Gui);
|
|
m_philoLabel_3->setObjectName(QStringLiteral("m_philoLabel_3"));
|
|
m_philoLabel_3->setGeometry(QRect(60, 230, 80, 74));
|
|
m_philoLabel_3->setPixmap(QPixmap(QString::fromUtf8(":/res/thinking.png")));
|
|
m_philoLabel_4 = new QLabel(Gui);
|
|
m_philoLabel_4->setObjectName(QStringLiteral("m_philoLabel_4"));
|
|
m_philoLabel_4->setGeometry(QRect(10, 100, 80, 74));
|
|
m_philoLabel_4->setPixmap(QPixmap(QString::fromUtf8(":/res/thinking.png")));
|
|
label = new QLabel(Gui);
|
|
label->setObjectName(QStringLiteral("label"));
|
|
label->setGeometry(QRect(20, 320, 51, 16));
|
|
m_epoolLabel = new QLabel(Gui);
|
|
m_epoolLabel->setObjectName(QStringLiteral("m_epoolLabel"));
|
|
m_epoolLabel->setGeometry(QRect(70, 320, 51, 16));
|
|
QWidget::setTabOrder(m_pauseButton, m_quitButton);
|
|
|
|
retranslateUi(Gui);
|
|
QObject::connect(m_quitButton, SIGNAL(clicked()), Gui, SLOT(onQuit()));
|
|
QObject::connect(m_pauseButton, SIGNAL(pressed()), Gui, SLOT(onPausePressed()));
|
|
QObject::connect(m_pauseButton, SIGNAL(released()), Gui, SLOT(onPauseReleased()));
|
|
QObject::connect(Gui, SIGNAL(finished(int)), Gui, SLOT(onQuit()));
|
|
|
|
QMetaObject::connectSlotsByName(Gui);
|
|
} // setupUi
|
|
|
|
void retranslateUi(QDialog *Gui)
|
|
{
|
|
Gui->setWindowTitle(QApplication::translate("Gui", "Dialog", 0));
|
|
m_pauseButton->setText(QApplication::translate("Gui", "SERVING", 0));
|
|
m_quitButton->setText(QApplication::translate("Gui", "Quit", 0));
|
|
m_philoLabel_0->setText(QString());
|
|
m_philoLabel_1->setText(QString());
|
|
m_philoLabel_2->setText(QString());
|
|
m_philoLabel_3->setText(QString());
|
|
m_philoLabel_4->setText(QString());
|
|
label->setText(QApplication::translate("Gui", "MPool[0]:", 0));
|
|
m_epoolLabel->setText(QApplication::translate("Gui", "?", 0));
|
|
} // retranslateUi
|
|
|
|
};
|
|
|
|
namespace Ui {
|
|
class Gui: public Ui_Gui {};
|
|
} // namespace Ui
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
#endif // UI_GUI_H
|