Misc. changes.
[wallplayer.git] / src / controlpanel.h
blob6f13e305193054a6aa8151c4c1bb0b9d745f5b8e
2 #ifndef CONTROLPANEL_H
3 #define CONTROLPANEL_H
5 #include <QDebug>
6 #include <QFileDialog>
7 #include <QLabel>
8 #include <QPushButton>
9 #include <QVBoxLayout>
11 #include "playerpanel.h"
12 #include "player.h"
14 class PlayerPanel;
16 class ControlPanel : public QFrame
18 Q_OBJECT
20 public:
21 ControlPanel(QWidget* parent, PlayerPanel* playerPanel);
23 QSize sizeHint () const { return QSize(100,50); }
25 void setStatus(QString status) {
26 m_statusLabel.setText(status);
29 int addFiles (QStringList&);
31 void setShuffleEnabled(bool enabled) { m_shuffleButton->setEnabled(enabled); }
32 void setPlayEnabled(bool enabled) { m_playButton->setEnabled(enabled); }
34 protected slots:
35 void launchAddFileDialog();
36 void shufflePlaylist();
37 void startPlaying ();
39 protected:
40 QVBoxLayout m_layout;
42 QLabel m_statusLabel;
43 QPushButton* m_shuffleButton;
44 QPushButton* m_playButton;
45 PlayerPanel* m_playerPanel;
48 #endif