]> git.sesse.net Git - kdenlive/blob - src/definitions.h
several small fixes, introduce nice popup messages in statusbar taken from dolphin
[kdenlive] / src / definitions.h
1 /***************************************************************************
2  *   Copyright (C) 2007 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 DEFINITIONS_H
22 #define DEFINITIONS_H
23
24 #include "gentime.h"
25
26 #define FRAME_SIZE 90
27 #define MAXCLIPDURATION 15000
28
29 enum OPERATIONTYPE { NONE = 0, MOVE = 1, RESIZESTART = 2, RESIZEEND = 3, FADEIN = 4, FADEOUT = 5, TRANSITIONSTART = 6, TRANSITIONEND = 7, MOVEGUIDE = 8, KEYFRAME = 9};
30 enum CLIPTYPE { UNKNOWN = 0, AUDIO = 1, VIDEO = 2, AV = 3, COLOR = 4, IMAGE = 5, TEXT = 6, SLIDESHOW = 7, VIRTUAL = 8, PLAYLIST = 9, FOLDER = 10};
31 enum GRAPHICSRECTITEM { AVWIDGET = 70000 , LABELWIDGET , TRANSITIONWIDGET };
32
33 enum PROJECTTOOL { SELECTTOOL = 0 , RAZORTOOL = 1 };
34
35 enum TRANSITIONTYPE {
36     /** TRANSITIONTYPE: between 0-99: video trans, 100-199: video+audio trans, 200-299: audio trans */
37     LUMA_TRANSITION = 0,
38     COMPOSITE_TRANSITION = 1,
39     PIP_TRANSITION = 2,
40     LUMAFILE_TRANSITION = 3,
41     MIX_TRANSITION = 200
42 };
43
44 enum MessageType {
45     DefaultMessage,
46     OperationCompletedMessage,
47     InformationMessage,
48     ErrorMessage
49 };
50
51 enum TRACKTYPE { AUDIOTRACK = 0, VIDEOTRACK = 1 };
52
53 struct TrackInfo {
54     TRACKTYPE type;
55     bool isMute;
56     bool isBlind;
57 };
58
59 struct ItemInfo {
60     GenTime startPos;
61     GenTime endPos;
62     int track;
63 };
64
65 struct MltVideoProfile {
66     QString path;
67     QString description;
68     int frame_rate_num;
69     int frame_rate_den;
70     int width;
71     int height;
72     bool progressive;
73     int sample_aspect_num;
74     int sample_aspect_den;
75     int display_aspect_num;
76     int display_aspect_den;
77 };
78
79 #endif