Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef PHONONVIDEOPLAYER_H
- #define PHONONVIDEOPLAYER_H
- #include <QWidget>
- #include <QMouseEvent>
- #include <QResizeEvent>
- #include <QSystemTrayIcon>
- #include <QMenu>
- #include <phonon>
- #include <QAction>
- #include <QSlider>
- namespace Ui {
- class phononVideoPlayer;
- }
- class phononVideoPlayer : public QWidget
- {
- Q_OBJECT
- public:
- explicit phononVideoPlayer(QWidget *parent = 0);
- ~phononVideoPlayer();
- int playVideo(QString filename);
- private:
- Ui::phononVideoPlayer *ui;
- QPoint globalPos;
- bool bool_allreadyclicked;
- QMenu *men_playlistMenu;
- QAction *act_selectPlaylist;
- QAction *act_addToPlaylist;
- QAction *act_removeFromPlaylist;
- QAction *act_configurePlaylists;
- QMenu *men_videoMenu;
- QAction *act_Quit;
- QAction *act_Pause;
- QAction *act_Play;
- QAction *act_Stop;
- QAction *act_VolumeSetting;
- Phonon::MediaObject *obj_MediaObject;
- Phonon::VideoWidget *wid_videoWidget;
- Phonon::AudioOutput *aio_audioOutput;
- QSlider *volumeSlider;
- //Functions
- void setupLook();
- void setupWidgets();
- void setupConnections();
- void setupMenus();
- protected:
- //Variables
- //Functions
- void mousePressEvent(QMouseEvent *event);
- // void mouseMoveEvent(QMouseEvent *event);
- void mouseDoubleClickEvent(QMouseEvent *event);
- void resizeEvent( QResizeEvent * event );
- private slots:
- void showVolumeSlider();
- void changeVolume();
- };
- #endif // PHONONVIDEOPLAYER_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement