mirror of
https://github.com/YACReader/yacreader
synced 2025-07-19 13:34:44 -04:00
commit inicial en mercurial
This commit is contained in:
32
YACReader/translator.h
Normal file
32
YACReader/translator.h
Normal file
@ -0,0 +1,32 @@
|
||||
#ifndef __TRANSLATOR_H
|
||||
#define __TRANSLATOR_H
|
||||
|
||||
class QUrl;
|
||||
class QMouseEvent;
|
||||
class QPoint;
|
||||
#include<QWidget>
|
||||
#include<Phonon/MediaObject>
|
||||
|
||||
using namespace Phonon;
|
||||
|
||||
class YACReaderTranslator : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
YACReaderTranslator(QWidget * parent = 0);
|
||||
~YACReaderTranslator();
|
||||
|
||||
public slots:
|
||||
void play(const QUrl & url);
|
||||
|
||||
protected:
|
||||
void mousePressEvent(QMouseEvent *event);
|
||||
void mouseReleaseEvent(QMouseEvent *event);
|
||||
void mouseMoveEvent ( QMouseEvent * event );
|
||||
bool drag;
|
||||
QPoint click;
|
||||
private:
|
||||
MediaObject * music;
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user