#define _MAIN_INTERFACE_H_
#include <vlc/intf.h>
-#include <QWidget>
+#include "ui/main_interface.h"
+#include "util/qvlcframe.hpp"
class InputManager;
+class QCloseEvent;
+class InputSlider;
+class VideoWidget;
-class MainInterface : public QWidget
+class MainInterface : public QVLCMW
{
Q_OBJECT;
public:
MainInterface( intf_thread_t *);
virtual ~MainInterface();
- void init();
+
+ virtual QSize sizeHint() const;
+
+ int i_saved_width, i_saved_height;
+
+protected:
+ void closeEvent( QCloseEvent *);
private:
+ VideoWidget *videoWidget;
InputManager *main_input_manager;
+ InputSlider *slider;
+ /// Main input associated to the playlist
+ input_thread_t *p_input;
+ intf_thread_t *p_intf;
+ Ui::MainInterfaceUI ui;
private slots:
+ void setDisplay( float, int, int );
void updateOnTimer();
+ void play();
+ void stop();
+ void prev();
+ void next();
};
#endif