simpleplayer.h Example File
simpleplayer/simpleplayer.h
#ifndef SIMPLEPLAYER_H
#define SIMPLEPLAYER_H
#include <QDialog>
#include <QPixmap>
#include <QTimer>
#include <QKeyEvent>
#include "ui_simpleplayerbase.h"
#include "basicmedia.h"
class QTimer;
class QPixmap;
class QDocumentSelectorDialog;
class SimplePlayer : public QWidget, public Ui_SimplePlayerBase
{
Q_OBJECT
public:
SimplePlayer(QWidget* p, Qt::WFlags f);
~SimplePlayer();
void showEvent( QShowEvent *e );
public slots:
void newFile();
void fileSelector();
void play();
void pause();
void stop();
protected:
void keyReleaseEvent( QKeyEvent * );
private:
BasicMedia* picture;
QDocumentSelectorDialog* docs;
};
#endif
Copyright © 2009 Trolltech |
Trademarks |
Qt Extended 4.4.3 |