equal
deleted
inserted
replaced
46 #include <qmediaimageviewer.h> |
46 #include <qmediaimageviewer.h> |
47 |
47 |
48 QT_BEGIN_NAMESPACE |
48 QT_BEGIN_NAMESPACE |
49 class QAbstractButton; |
49 class QAbstractButton; |
50 class QLabel; |
50 class QLabel; |
|
51 class QStackedLayout; |
51 QT_END_NAMESPACE |
52 QT_END_NAMESPACE |
52 |
53 |
53 QTM_BEGIN_NAMESPACE |
54 QTM_BEGIN_NAMESPACE |
54 class QMediaPlaylist; |
55 class QMediaPlaylist; |
55 QTM_END_NAMESPACE |
56 QTM_END_NAMESPACE |
60 { |
61 { |
61 Q_OBJECT |
62 Q_OBJECT |
62 public: |
63 public: |
63 SlideShow(QWidget *parent = 0); |
64 SlideShow(QWidget *parent = 0); |
64 |
65 |
|
66 signals: |
|
67 void enableButtons(bool enable); |
|
68 |
65 private slots: |
69 private slots: |
66 void openPlaylist(); |
70 void openPlaylist(); |
67 void openDirectory(); |
71 void openDirectory(); |
68 void openLocation(); |
|
69 |
72 |
70 void play(); |
73 void play(); |
71 |
74 |
72 void stateChanged(QMediaImageViewer::State state); |
75 void stateChanged(QMediaImageViewer::State state); |
|
76 void statusChanged(QMediaImageViewer::MediaStatus status); |
|
77 |
|
78 void playlistLoaded(); |
|
79 void playlistLoadFailed(); |
|
80 |
|
81 void elapsedTimeChanged(int time); |
73 |
82 |
74 private: |
83 private: |
75 QMediaImageViewer *imageViewer; |
84 QMediaImageViewer *imageViewer; |
76 QMediaPlaylist *playlist; |
85 QMediaPlaylist *playlist; |
77 QLabel *imageLabel; |
86 QLabel *statusLabel; |
|
87 QLabel *countdownLabel; |
78 QAbstractButton *playButton; |
88 QAbstractButton *playButton; |
79 QAbstractButton *stopButton; |
89 QAbstractButton *stopButton; |
|
90 QStackedLayout *viewerLayout; |
80 }; |
91 }; |
81 |
92 |
82 #endif |
93 #endif |