Olive
sequence.h
1 /***
2 
3  Olive - Non-Linear Video Editor
4  Copyright (C) 2019 Olive Team
5 
6  This program is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program. If not, see <http://www.gnu.org/licenses/>.
18 
19 ***/
20 
21 #ifndef SEQUENCE_H
22 #define SEQUENCE_H
23 
24 #include <QVector>
25 
26 #include "project/marker.h"
27 #include "project/selection.h"
28 
29 class Clip;
30 class Transition;
31 class Media;
32 
33 struct Sequence {
34  Sequence();
35  ~Sequence();
36  Sequence* copy();
37  QString name;
38  void getTrackLimits(int* video_tracks, int* audio_tracks);
39  long getEndFrame();
40  void hard_delete_transition(Clip *c, int type);
41  int width;
42  int height;
43  double frame_rate;
44  int audio_frequency;
45  int audio_layout;
46 
47  QVector<Selection> selections;
48  long playhead;
49 
50  bool using_workarea;
51  long workarea_in;
52  long workarea_out;
53 
54  bool wrapper_sequence;
55 
56  int save_id;
57 
58  QVector<Marker> markers;
59  QVector<Clip*> clips;
60  QVector<Transition*> transitions;
61 };
62 
63 // static variable for the currently active sequence
64 namespace Olive {
65  extern Sequence* ActiveSequence;
66 }
67 
68 #endif // SEQUENCE_H
Definition: sequence.h:33
Definition: media.h:40
Definition: clip.h:53
Definition: transition.h:39