Diffstat (limited to 'noncore/multimedia/opieplayer2/mediawidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/mediawidget.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/mediawidget.h b/noncore/multimedia/opieplayer2/mediawidget.h index 754228e..52b9fcb 100644 --- a/noncore/multimedia/opieplayer2/mediawidget.h +++ b/noncore/multimedia/opieplayer2/mediawidget.h | |||
@@ -83,48 +83,51 @@ public: | |||
83 | 83 | ||
84 | public slots: | 84 | public slots: |
85 | virtual void setDisplayType( MediaPlayerState::DisplayType displayType ) = 0; | 85 | virtual void setDisplayType( MediaPlayerState::DisplayType displayType ) = 0; |
86 | virtual void setLength( long length ) = 0; | 86 | virtual void setLength( long length ) = 0; |
87 | virtual void setPlaying( bool playing ) = 0; | 87 | virtual void setPlaying( bool playing ) = 0; |
88 | 88 | ||
89 | virtual void loadSkin() = 0; | 89 | virtual void loadSkin() = 0; |
90 | 90 | ||
91 | signals: | 91 | signals: |
92 | void moreReleased(); | 92 | void moreReleased(); |
93 | void lessReleased(); | 93 | void lessReleased(); |
94 | void forwardReleased(); | 94 | void forwardReleased(); |
95 | void backReleased(); | 95 | void backReleased(); |
96 | void forwardClicked(); | 96 | void forwardClicked(); |
97 | void backClicked(); | 97 | void backClicked(); |
98 | void moreClicked(); | 98 | void moreClicked(); |
99 | void lessClicked(); | 99 | void lessClicked(); |
100 | 100 | ||
101 | protected: | 101 | protected: |
102 | void setupButtons( const SkinButtonInfo *skinInfo, uint buttonCount, | 102 | void setupButtons( const SkinButtonInfo *skinInfo, uint buttonCount, |
103 | const QString &imagePrefix, const QSize &buttonAreaSize ); | 103 | const QString &imagePrefix, const QSize &buttonAreaSize ); |
104 | Button setupButton( const SkinButtonInfo &buttonInfo, const QString &imagePrefix ); | 104 | Button setupButton( const SkinButtonInfo &buttonInfo, const QString &imagePrefix ); |
105 | QBitmap setupButtonMask( const Command &command, const QString &fileName ); | 105 | QBitmap setupButtonMask( const Command &command, const QString &fileName ); |
106 | 106 | ||
107 | void loadDefaultSkin( const SkinButtonInfo *skinInfo, uint buttonCount, const QString &fileNameInfix = QString::null ); | ||
108 | void loadSkin( const SkinButtonInfo *skinInfo, uint buttonCount, const QString &name, const QString &fileNameInfix ); | ||
109 | |||
107 | virtual void closeEvent( QCloseEvent * ); | 110 | virtual void closeEvent( QCloseEvent * ); |
108 | 111 | ||
109 | virtual void paintEvent( QPaintEvent *pe ); | 112 | virtual void paintEvent( QPaintEvent *pe ); |
110 | 113 | ||
111 | Button *buttonAt( const QPoint &position ); | 114 | Button *buttonAt( const QPoint &position ); |
112 | 115 | ||
113 | virtual void mousePressEvent( QMouseEvent *event ); | 116 | virtual void mousePressEvent( QMouseEvent *event ); |
114 | virtual void mouseReleaseEvent( QMouseEvent *event ); | 117 | virtual void mouseReleaseEvent( QMouseEvent *event ); |
115 | 118 | ||
116 | virtual void makeVisible(); | 119 | virtual void makeVisible(); |
117 | 120 | ||
118 | void handleCommand( Command command, bool buttonDown ); | 121 | void handleCommand( Command command, bool buttonDown ); |
119 | 122 | ||
120 | bool isOverButton( const QPoint &position, int buttonId ) const; | 123 | bool isOverButton( const QPoint &position, int buttonId ) const; |
121 | 124 | ||
122 | void paintAllButtons( QPainter &p ); | 125 | void paintAllButtons( QPainter &p ); |
123 | void paintButton( const Button &button ); | 126 | void paintButton( const Button &button ); |
124 | void paintButton( QPainter &p, const Button &button ); | 127 | void paintButton( QPainter &p, const Button &button ); |
125 | 128 | ||
126 | void setToggleButton( Button &button, bool down ); | 129 | void setToggleButton( Button &button, bool down ); |
127 | void setToggleButton( Command command, bool down ); | 130 | void setToggleButton( Command command, bool down ); |
128 | void toggleButton( Button &button ); | 131 | void toggleButton( Button &button ); |
129 | 132 | ||
130 | MediaPlayerState &mediaPlayerState; | 133 | MediaPlayerState &mediaPlayerState; |