]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/main_interface.hpp
[Untested] Save interface position
[vlc] / modules / gui / qt4 / main_interface.hpp
index 3e5886c51ded87640121658a8d081c4f9604b220..99fe72b88ccf29483c5667ca259d8790e0cd6665 100644 (file)
 #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