]> git.sesse.net Git - kdenlive/blobdiff - src/customruler.h
Krazy fixes: cleanup all headers
[kdenlive] / src / customruler.h
index edcf7b60713c7de756d6af80eb6cde7c0dd929af..f84fdb56b3cb81c16b4bd545bba26860c65fce25 100644 (file)
@@ -1,14 +1,33 @@
+/***************************************************************************
+ *   Copyright (C) 2007 by Jean-Baptiste Mardelle (jb@kdenlive.org)        *
+ *                                                                         *
+ *   This program 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 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ *   This program 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 this program; if not, write to the                         *
+ *   Free Software Foundation, Inc.,                                       *
+ *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA          *
+ ***************************************************************************/
+
 #ifndef CUSTOMRULER_H
 #define CUSTOMRULER_H
 
-#include <KRuler>
+#include <QWidget>
 
 #include "customtrackview.h"
 #include "timecode.h"
 
 enum RULER_MOVE { RULER_CURSOR = 0, RULER_START = 1, RULER_MIDDLE = 2, RULER_END = 3 };
 
-class CustomRuler : public KRuler {
+class CustomRuler : public QWidget {
     Q_OBJECT
 
 public:
@@ -18,6 +37,8 @@ public:
     int outPoint() const;
     int inPoint() const;
     void setDuration(int d);
+    void setZone(QPoint p);
+    int offset() const;
 
 protected:
     virtual void paintEvent(QPaintEvent * /*e*/);
@@ -34,6 +55,8 @@ private:
     int m_duration;
     double m_textSpacing;
     double m_factor;
+    double m_scale;
+    int m_offset;
     RULER_MOVE m_moveCursor;
     QMenu *m_contextMenu;