Reported by Fedora team for gcc-13 and Andrew created patch here
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / menueditlength.C
1 /*
2  * CINELERRA
3  * Copyright (C) 2010 Adam Williams <broadcast at earthling dot net>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18  *
19  */
20
21 #include "editlength.h"
22 #include "edl.h"
23 #include "edlsession.h"
24 #include "guicast.h"
25 #include "language.h"
26 #include "menueditlength.h"
27 #include "mwindow.h"
28 #include "plugindialog.inc"
29
30 MenuEditLength::MenuEditLength(MWindow *mwindow)
31  : BC_MenuItem(_("Edit Length..."))
32 {
33         this->mwindow = mwindow;
34         thread = new EditLengthThread(mwindow);
35 }
36
37 MenuEditLength::~MenuEditLength()
38 {
39         delete thread;
40 }
41
42
43 int MenuEditLength::handle_event()
44 {
45         thread->start(0);
46         return 1;
47 }
48
49
50
51 MenuEditShuffle::MenuEditShuffle(MWindow *mwindow)
52  : BC_MenuItem(_("Shuffle Edits"))
53 {
54         this->mwindow = mwindow;
55 }
56
57
58
59 int MenuEditShuffle::handle_event()
60 {
61         mwindow->shuffle_edits();
62         return 1;
63 }
64
65
66 MenuEditReverse::MenuEditReverse(MWindow *mwindow)
67  : BC_MenuItem(_("Reverse Edits"))
68 {
69         this->mwindow = mwindow;
70 }
71
72
73
74 int MenuEditReverse::handle_event()
75 {
76         mwindow->reverse_edits();
77         return 1;
78 }
79
80
81
82
83
84 MenuEditAlign::MenuEditAlign(MWindow *mwindow)
85  : BC_MenuItem(_("Align Edits"))
86 {
87         this->mwindow = mwindow;
88 }
89
90
91
92 int MenuEditAlign::handle_event()
93 {
94         mwindow->align_edits();
95         return 1;
96 }
97
98