]> git.sesse.net Git - kdenlive/blob - src/keyframeedit.h
Finished effect keyframe editor
[kdenlive] / src / keyframeedit.h
1 /***************************************************************************
2                           keyframeedit.h  -  description
3                              -------------------
4     begin                : 22 Jun 2009
5     copyright            : (C) 2008 by Jean-Baptiste Mardelle
6     email                : jb@kdenlive.org
7  ***************************************************************************/
8
9 /***************************************************************************
10  *                                                                         *
11  *   This program is free software; you can redistribute it and/or modify  *
12  *   it under the terms of the GNU General Public License as published by  *
13  *   the Free Software Foundation; either version 2 of the License, or     *
14  *   (at your option) any later version.                                   *
15  *                                                                         *
16  ***************************************************************************/
17
18 #ifndef KEYFRAMEEDIT_H
19 #define KEYFRAMEEDIT_H
20
21
22 #include <QWidget>
23 #include <QDomElement>
24
25
26 #include "ui_keyframeeditor_ui.h"
27 #include "definitions.h"
28 #include "keyframehelper.h"
29
30 //class QGraphicsScene;
31
32 class KeyframeEdit : public QWidget
33 {
34     Q_OBJECT
35 public:
36     explicit KeyframeEdit(QDomElement e, int max, Timecode tc, QWidget* parent = 0);
37     void setupParam(QDomElement e = QDomElement());
38
39 private:
40     Ui::KeyframeEditor_UI m_ui;
41     QDomElement m_param;
42     int m_max;
43     Timecode m_timecode;
44     int m_previousPos;
45
46 public slots:
47
48
49 private slots:
50     void slotDeleteKeyframe();
51     void slotAddKeyframe();
52     void slotGenerateParams(QTreeWidgetItem *item = NULL, int column = -1);
53     void slotAdjustKeyframeInfo();
54     void slotAdjustKeyframeValue(int value);
55     void slotSaveCurrentParam(QTreeWidgetItem *item, int column);
56
57 signals:
58     void parameterChanged();
59     void seekToPos(int);
60 };
61
62 #endif