]> git.sur5r.net Git - minitube/blobdiff - src/videoareawidget.h
Imported Upstream version 2.1.3
[minitube] / src / videoareawidget.h
index 4d4fd658463c2903289f461aa2307812f3e4ae67..3673f6913af2a3b8e8753aab0c5ac522d5f5ec33 100644 (file)
@@ -1,3 +1,23 @@
+/* $BEGIN_LICENSE
+
+This file is part of Minitube.
+Copyright 2009, Flavio Tordini <flavio.tordini@gmail.com>
+
+Minitube is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+Minitube is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with Minitube.  If not, see <http://www.gnu.org/licenses/>.
+
+$END_LICENSE */
+
 #ifndef VIDEOAREAWIDGET_H
 #define VIDEOAREAWIDGET_H
 
@@ -21,7 +41,8 @@ public:
     void setListModel(PlaylistModel *listModel) {
         this->listModel = listModel;
     }
-    void showSnapshotPreview(QPixmap pixmap);
+    // void showSnapshotPreview(QPixmap pixmap);
+    bool isVideoShown() { return stackedLayout->currentWidget() == videoWidget; }
 
 signals:
     void doubleClicked();
@@ -30,11 +51,12 @@ signals:
 protected:
     void mouseDoubleClickEvent(QMouseEvent *event);
     void mousePressEvent(QMouseEvent *event);
+    void mouseMoveEvent(QMouseEvent *event);
     void dragEnterEvent(QDragEnterEvent *event);
     void dropEvent(QDropEvent *event);
 
 private slots:
-    void hideSnapshotPreview();
+    // void hideSnapshotPreview();
 
 private:
     QStackedLayout *stackedLayout;
@@ -42,7 +64,8 @@ private:
     LoadingWidget *loadingWidget;
     PlaylistModel *listModel;
     QLabel *messageLabel;
-    QLabel *snapshotPreview;
+    // QLabel *snapshotPreview;
+    QPoint dragPosition;
 
 };