Diffstat (limited to 'noncore/multimedia/opieplayer2/mediawidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/mediawidget.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/mediawidget.h b/noncore/multimedia/opieplayer2/mediawidget.h index caae0a7..3f4c45d 100644 --- a/noncore/multimedia/opieplayer2/mediawidget.h +++ b/noncore/multimedia/opieplayer2/mediawidget.h | |||
@@ -62,48 +62,50 @@ public: | |||
62 | }; | 62 | }; |
63 | 63 | ||
64 | typedef std::vector<QBitmap> MaskVector; | 64 | typedef std::vector<QBitmap> MaskVector; |
65 | typedef std::vector<QPixmap> PixmapVector; | 65 | typedef std::vector<QPixmap> PixmapVector; |
66 | 66 | ||
67 | MediaWidget( PlayListWidget &_playList, MediaPlayerState &_mediaPlayerState, QWidget *parent = 0, const char *name = 0 ); | 67 | MediaWidget( PlayListWidget &_playList, MediaPlayerState &_mediaPlayerState, QWidget *parent = 0, const char *name = 0 ); |
68 | virtual ~MediaWidget(); | 68 | virtual ~MediaWidget(); |
69 | 69 | ||
70 | public slots: | 70 | public slots: |
71 | virtual void setDisplayType( MediaPlayerState::DisplayType displayType ) = 0; | 71 | virtual void setDisplayType( MediaPlayerState::DisplayType displayType ) = 0; |
72 | virtual void setLength( long length ) = 0; | 72 | virtual void setLength( long length ) = 0; |
73 | virtual void setPlaying( bool playing ) = 0; | 73 | virtual void setPlaying( bool playing ) = 0; |
74 | 74 | ||
75 | signals: | 75 | signals: |
76 | void moreReleased(); | 76 | void moreReleased(); |
77 | void lessReleased(); | 77 | void lessReleased(); |
78 | void forwardReleased(); | 78 | void forwardReleased(); |
79 | void backReleased(); | 79 | void backReleased(); |
80 | 80 | ||
81 | protected: | 81 | protected: |
82 | virtual void closeEvent( QCloseEvent * ); | 82 | virtual void closeEvent( QCloseEvent * ); |
83 | 83 | ||
84 | virtual void paintEvent( QPaintEvent *pe ); | 84 | virtual void paintEvent( QPaintEvent *pe ); |
85 | 85 | ||
86 | virtual void makeVisible(); | ||
87 | |||
86 | void handleCommand( Command command, bool buttonDown ); | 88 | void handleCommand( Command command, bool buttonDown ); |
87 | 89 | ||
88 | bool isOverButton( const QPoint &position, int buttonId ) const; | 90 | bool isOverButton( const QPoint &position, int buttonId ) const; |
89 | 91 | ||
90 | void paintAllButtons( QPainter &p ); | 92 | void paintAllButtons( QPainter &p ); |
91 | void paintButton( const Button &button ); | 93 | void paintButton( const Button &button ); |
92 | void paintButton( QPainter &p, const Button &button ); | 94 | void paintButton( QPainter &p, const Button &button ); |
93 | 95 | ||
94 | void setToggleButton( Button &button, bool down ); | 96 | void setToggleButton( Button &button, bool down ); |
95 | void setToggleButton( Command command, bool down ); | 97 | void setToggleButton( Command command, bool down ); |
96 | void toggleButton( Button &button ); | 98 | void toggleButton( Button &button ); |
97 | 99 | ||
98 | MediaPlayerState &mediaPlayerState; | 100 | MediaPlayerState &mediaPlayerState; |
99 | PlayListWidget &playList; | 101 | PlayListWidget &playList; |
100 | 102 | ||
101 | ButtonVector buttons; | 103 | ButtonVector buttons; |
102 | 104 | ||
103 | QImage buttonMask; | 105 | QImage buttonMask; |
104 | 106 | ||
105 | QPoint upperLeftOfButtonMask; | 107 | QPoint upperLeftOfButtonMask; |
106 | 108 | ||
107 | QPixmap backgroundPixmap; | 109 | QPixmap backgroundPixmap; |
108 | }; | 110 | }; |
109 | 111 | ||