2011-04-07 22:04:09 +00:00
|
|
|
#include <QtGui>
|
|
|
|
|
|
|
|
#include "playpage.hpp"
|
|
|
|
|
|
|
|
PlayPage::PlayPage(QWidget *parent) : QWidget(parent)
|
|
|
|
{
|
2011-05-10 20:47:08 +00:00
|
|
|
QWidget *playWidget = new QWidget(this);
|
|
|
|
playWidget->setObjectName("PlayGroup");
|
|
|
|
playWidget->setFixedSize(QSize(425, 375));
|
2011-04-24 19:36:54 +00:00
|
|
|
|
2011-05-10 20:47:08 +00:00
|
|
|
mPlayButton = new QPushButton(tr("Play"), playWidget);
|
|
|
|
mPlayButton->setObjectName("PlayButton");
|
2011-05-03 01:17:01 +00:00
|
|
|
mPlayButton->setMinimumSize(QSize(200, 50));
|
2011-04-23 02:34:58 +00:00
|
|
|
|
2011-05-10 20:47:08 +00:00
|
|
|
QLabel *profileLabel = new QLabel(tr("Current Profile:"), playWidget);
|
|
|
|
profileLabel->setObjectName("ProfileLabel");
|
2011-04-23 02:34:58 +00:00
|
|
|
|
2011-05-10 20:47:08 +00:00
|
|
|
mProfilesComboBox = new QComboBox(playWidget);
|
|
|
|
mProfilesComboBox->setObjectName("ProfilesComboBox");
|
2011-04-23 02:34:58 +00:00
|
|
|
|
2011-05-10 20:47:08 +00:00
|
|
|
QGridLayout *playLayout = new QGridLayout(playWidget);
|
2011-05-02 15:46:02 +00:00
|
|
|
|
|
|
|
QSpacerItem *hSpacer1 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
|
|
|
QSpacerItem *hSpacer2 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
2011-04-23 02:34:58 +00:00
|
|
|
|
|
|
|
QSpacerItem *vSpacer1 = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
|
|
|
|
QSpacerItem *vSpacer2 = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
|
|
|
|
|
2011-05-03 01:17:01 +00:00
|
|
|
playLayout->addWidget(mPlayButton, 1, 1, 1, 1);
|
2011-05-02 15:46:02 +00:00
|
|
|
playLayout->addWidget(profileLabel, 2, 1, 1, 1);
|
|
|
|
playLayout->addWidget(mProfilesComboBox, 3, 1, 1, 1);
|
|
|
|
playLayout->addItem(hSpacer1, 2, 0, 1, 1);
|
|
|
|
playLayout->addItem(hSpacer2, 2, 2, 1, 1);
|
|
|
|
playLayout->addItem(vSpacer1, 0, 1, 1, 1);
|
|
|
|
playLayout->addItem(vSpacer2, 4, 1, 1, 1);
|
2011-04-23 02:34:58 +00:00
|
|
|
|
|
|
|
QHBoxLayout *pageLayout = new QHBoxLayout(this);
|
|
|
|
|
2011-05-10 20:47:08 +00:00
|
|
|
pageLayout->addWidget(playWidget);
|
2011-04-23 02:34:58 +00:00
|
|
|
|
2011-04-25 05:47:11 +00:00
|
|
|
}
|