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