author | alwin <alwin> | 2005-04-10 22:18:50 (UTC) |
---|---|---|
committer | alwin <alwin> | 2005-04-10 22:18:50 (UTC) |
commit | 840e44417402bbc6048ca5e8ff3dd6be966e753f (patch) (unidiff) | |
tree | 61ca099945cff3c995ddf348149cd2690ee17c97 /noncore/multimedia/opieplayer3/audiowidget.h | |
parent | ad2f1bd57cbfb0fdaf4d348ee3a70d3ea370d5d1 (diff) | |
download | opie-840e44417402bbc6048ca5e8ff3dd6be966e753f.zip opie-840e44417402bbc6048ca5e8ff3dd6be966e753f.tar.gz opie-840e44417402bbc6048ca5e8ff3dd6be966e753f.tar.bz2 |
added opieplayer3
this moment not just more than another container around xine like opieplayer2
(and uses a lot of code direct from there)
difference: first it was a testcontainer to find the bugs in player2
now it is a player looks more like kino2 (eg, no stylesheets) so it
has a real resizeable video-display. early stage (saving playlists and so on
doesn't work) - but it can display videos on my C860 in bigger box than this
small stamp like player2 ;)
Diffstat (limited to 'noncore/multimedia/opieplayer3/audiowidget.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer3/audiowidget.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer3/audiowidget.h b/noncore/multimedia/opieplayer3/audiowidget.h new file mode 100644 index 0000000..07b51b6 --- a/dev/null +++ b/noncore/multimedia/opieplayer3/audiowidget.h | |||
@@ -0,0 +1,46 @@ | |||
1 | #ifndef _audiowidget_h | ||
2 | #define _audiowidget_h | ||
3 | |||
4 | #include <qwidget.h> | ||
5 | |||
6 | #include <qpe/applnk.h> | ||
7 | |||
8 | namespace XINE { | ||
9 | class Lib; | ||
10 | } | ||
11 | |||
12 | class QVBoxLayout; | ||
13 | class QTextView; | ||
14 | class QSlider; | ||
15 | class QLabel; | ||
16 | |||
17 | class AudioWidget:public QWidget | ||
18 | { | ||
19 | Q_OBJECT | ||
20 | public: | ||
21 | AudioWidget( QWidget * parent=0, const char * name=0, WFlags f=0 ); | ||
22 | virtual ~AudioWidget(); | ||
23 | |||
24 | void playFile(const DocLnk&,XINE::Lib*); | ||
25 | |||
26 | public slots: | ||
27 | virtual void stopPlaying(); | ||
28 | virtual void updatePos(int); | ||
29 | |||
30 | protected: | ||
31 | XINE::Lib*m_xineLib; | ||
32 | DocLnk m_current; | ||
33 | QVBoxLayout*m_MainLayout; | ||
34 | QTextView*m_InfoBox; | ||
35 | QSlider*m_PosSlider; | ||
36 | bool m_pressed; | ||
37 | int m_uppos; | ||
38 | |||
39 | protected slots: | ||
40 | virtual void closeEvent(QCloseEvent*e); | ||
41 | virtual void slotNewPos(int pos); | ||
42 | virtual void sliderPressed(); | ||
43 | virtual void sliderReleased(); | ||
44 | }; | ||
45 | |||
46 | #endif | ||