3 * Copyright (C) 2010 Adam Williams <broadcast at earthling dot net>
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.
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.
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
21 #include "editlength.h"
23 #include "edlsession.h"
26 #include "menueditlength.h"
28 #include "plugindialog.inc"
30 MenuEditLength::MenuEditLength(MWindow *mwindow)
31 : BC_MenuItem(_("Edit Length..."))
33 this->mwindow = mwindow;
34 thread = new EditLengthThread(mwindow);
37 MenuEditLength::~MenuEditLength()
43 int MenuEditLength::handle_event()
51 MenuEditShuffle::MenuEditShuffle(MWindow *mwindow)
52 : BC_MenuItem(_("Shuffle Edits"))
54 this->mwindow = mwindow;
59 int MenuEditShuffle::handle_event()
61 mwindow->shuffle_edits();
66 MenuEditReverse::MenuEditReverse(MWindow *mwindow)
67 : BC_MenuItem(_("Reverse Edits"))
69 this->mwindow = mwindow;
74 int MenuEditReverse::handle_event()
76 mwindow->reverse_edits();
84 MenuEditAlign::MenuEditAlign(MWindow *mwindow)
85 : BC_MenuItem(_("Align Edits"))
87 this->mwindow = mwindow;
92 int MenuEditAlign::handle_event()
94 mwindow->align_edits();