]> git.sesse.net Git - kdenlive/blob - src/clipdurationdialog.h
Fix indent
[kdenlive] / src / clipdurationdialog.h
1 /***************************************************************************
2  *   Copyright (C) 2008 by Jean-Baptiste Mardelle (jb@kdenlive.org)        *
3  *                                                                         *
4  *   This program is free software; you can redistribute it and/or modify  *
5  *   it under the terms of the GNU General Public License as published by  *
6  *   the Free Software Foundation; either version 2 of the License, or     *
7  *   (at your option) any later version.                                   *
8  *                                                                         *
9  *   This program is distributed in the hope that it will be useful,       *
10  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
11  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
12  *   GNU General Public License for more details.                          *
13  *                                                                         *
14  *   You should have received a copy of the GNU General Public License     *
15  *   along with this program; if not, write to the                         *
16  *   Free Software Foundation, Inc.,                                       *
17  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA          *
18  ***************************************************************************/
19
20
21 #ifndef CLIPDURATIONDIALOG_H
22 #define CLIPDURATIONDIALOG_H
23
24
25 #include "abstractclipitem.h"
26 #include "timecodedisplay.h"
27 #include "ui_clipdurationdialog_ui.h"
28
29 /**
30  * @class ClipDurationDialog
31  * @brief A dialog for modifying an item's (clip or transition) duration. 
32  * @author Jean-Baptiste Mardelle
33  */
34
35 class ClipDurationDialog : public QDialog, public Ui::ClipDurationDialog_UI
36 {
37     Q_OBJECT
38
39 public:
40     explicit ClipDurationDialog(AbstractClipItem *clip, const Timecode &tc, const GenTime &min, const GenTime &max, QWidget * parent = 0);
41     ~ClipDurationDialog();
42     GenTime startPos() const;
43     GenTime cropStart() const;
44     GenTime duration() const;
45
46 private slots:
47     void slotCheckDuration();
48     void slotCheckStart();
49     void slotCheckCrop();
50     void slotCheckEnd();
51
52 private:
53     AbstractClipItem *m_clip;
54     TimecodeDisplay *m_pos;
55     TimecodeDisplay *m_dur;
56     TimecodeDisplay *m_cropStart;
57     TimecodeDisplay *m_cropEnd;
58     GenTime m_min;
59     GenTime m_max;
60     GenTime m_crop;
61 };
62
63
64 #endif
65