diff options
-rw-r--r-- | randomtab.cpp | 19 | ||||
-rw-r--r-- | randomtab.h | 4 |
2 files changed, 23 insertions, 0 deletions
diff --git a/randomtab.cpp b/randomtab.cpp index c704110..5f0245f 100644 --- a/randomtab.cpp +++ b/randomtab.cpp @@ -102,12 +102,23 @@ void RandomTab::setupGui(){ actionL->addWidget(mSelect, 1, 0, 2, 0); actionBox->setLayout(actionL); + QGroupBox *playBox = new QGroupBox(tr("Play")); + mPlayAll = new QPushButton(QIcon(":/gaping_ass.png"), tr("Play All")); + connect(mPlayAll, SIGNAL(clicked()), this, SLOT(playAll())); + mPlaySelected = new QPushButton(QIcon(":/chastity_belt.png"), tr("Play Selected")); + connect(mPlaySelected, SIGNAL(clicked()), this, SLOT(playSelected())); + QVBoxLayout *playL = new QVBoxLayout; + playL->addWidget(mPlaySelected); + playL->addWidget(mPlayAll); + playBox->setLayout(playL); + QWidget *leftWidget = new QWidget; QVBoxLayout *lwL = new QVBoxLayout; lwL->addWidget(numBox); lwL->addWidget(genreBox); lwL->addWidget(actorBox); lwL->addWidget(actionBox); + lwL->addWidget(playBox); lwL->addStretch(); leftWidget->setLayout(lwL); @@ -380,6 +391,14 @@ void RandomTab::select(){ } } +void RandomTab::playAll(){ + +} + +void RandomTab::playSelected(){ + +} + void RandomTab::logMessage(const QString &msg){ QDateTime now = QDateTime::currentDateTime(); QString msg1 = QString("[%1] %2").arg(now.toString()).arg(msg); diff --git a/randomtab.h b/randomtab.h index a4917a0..a66ee10 100644 --- a/randomtab.h +++ b/randomtab.h @@ -33,6 +33,8 @@ class RandomTab : public QWidget { void clearAll(); void refreshComboboxes(); void select(); + void playAll(); + void playSelected(); void logMessage(const QString &msg); private: @@ -52,6 +54,8 @@ class RandomTab : public QWidget { QPushButton *mSelect; QPushButton *mClear; QPushButton *mRefresh; + QPushButton *mPlaySelected; + QPushButton *mPlayAll; QTreeView *mFileView; QTextEdit *mLog; QStandardItemModel *mFileModel; |