Loading...
Searching...
No Matches
PlayerDemo.h
Go to the documentation of this file.
// Copyright (c) 2008-2019 OpenShot Studios, LLC
//
// SPDX-License-Identifier: LGPL-3.0-or-later
#ifndef OPENSHOT_PLAYER_DEMO_H
#define OPENSHOT_PLAYER_DEMO_H
#include <QObject>
#include <QWidget>
#include <QKeyEvent>
#include <QCloseEvent>
#include <QVBoxLayout>
#include <QMenuBar>
#include "VideoRenderWidget.h"
// Define the QtPlayer without including it (due to build issues with Qt moc / Qt macros)
namespace openshot
{
class QtPlayer;
}
class PlayerDemo : public QWidget
{
Q_OBJECT
public:
PlayerDemo(QWidget *parent = 0);
~PlayerDemo();
protected:
void keyPressEvent(QKeyEvent *event) Q_DECL_OVERRIDE;
void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
private slots:
void open(bool checked);
private:
QVBoxLayout *vbox;
QMenuBar *menu;
VideoRenderWidget *video;
openshot::QtPlayer *player;
};
#endif // OPENSHOT_PLAYER_H
VideoRenderWidget.h
Header file for Video RendererWidget class.
PlayerDemo::keyPressEvent
void keyPressEvent(QKeyEvent *event) Q_DECL_OVERRIDE
Definition PlayerDemo.cpp:68
PlayerDemo::closeEvent
void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE
Definition PlayerDemo.cpp:59
PlayerDemo::~PlayerDemo
~PlayerDemo()
Definition PlayerDemo.cpp:55
PlayerDemo::PlayerDemo
PlayerDemo(QWidget *parent=0)
Definition PlayerDemo.cpp:28
VideoRenderWidget
Definition VideoRenderWidget.h:25
openshot::QtPlayer
This class is used to playback a video from a reader.
Definition QtPlayer.h:33
openshot
This namespace is the default namespace for all code in the openshot library.
Definition Compressor.h:29