4 * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
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 2 of the License, or
9 * (at your option) any later version.
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.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 #include "mwindow.inc"
27 #include "mwindowgui.inc"
29 #include "plugindialog.inc"
30 #include "resizetrackthread.inc"
33 class EditPopupResize;
34 class EditPopupMatchSize;
35 class EditPopupTitleText;
36 class EditPopupTitleWindow;
37 class EditPopupTitleButton;
38 class EditPopupTitleButtonRes;
40 class EditPopup : public BC_PopupMenu
43 EditPopup(MWindow *mwindow, MWindowGUI *gui);
46 void create_objects();
47 int update(Track *track, Edit *edit);
51 // Acquired through the update command as the edit currently being operated on
54 EditPopupResize *resize_option;
55 EditPopupMatchSize *matchsize_option;
58 class EditPopupMatchSize : public BC_MenuItem
61 EditPopupMatchSize(MWindow *mwindow, EditPopup *popup);
62 ~EditPopupMatchSize();
68 class EditPopupResize : public BC_MenuItem
71 EditPopupResize(MWindow *mwindow, EditPopup *popup);
76 ResizeTrackThread *dialog_thread;
79 class EditPopupDeleteTrack : public BC_MenuItem
82 EditPopupDeleteTrack(MWindow *mwindow, EditPopup *popup);
88 class EditPopupAddTrack : public BC_MenuItem
91 EditPopupAddTrack(MWindow *mwindow, EditPopup *popup);
98 class EditAttachEffect : public BC_MenuItem
101 EditAttachEffect(MWindow *mwindow, EditPopup *popup);
108 PluginDialogThread *dialog_thread;
111 class EditMoveTrackUp : public BC_MenuItem
114 EditMoveTrackUp(MWindow *mwindow, EditPopup *popup);
123 class EditMoveTrackDown : public BC_MenuItem
126 EditMoveTrackDown(MWindow *mwindow, EditPopup *popup);
127 ~EditMoveTrackDown();
136 class EditPopupTitle : public BC_MenuItem
139 EditPopupTitle (MWindow *mwindow, EditPopup *popup);
146 EditPopupTitleWindow *window;
149 class EditPopupTitleText : public BC_TextBox
152 EditPopupTitleText (EditPopupTitleWindow *window,
153 MWindow *mwindow, int x, int y);
154 ~EditPopupTitleText();
158 EditPopupTitleWindow *window;
163 class EditPopupTitleWindow : public BC_Window
166 EditPopupTitleWindow (MWindow *mwindow, EditPopup *popup);
167 ~EditPopupTitleWindow ();
169 void create_objects();
172 EditPopupTitleText *title_text;
176 char new_text[BCTEXTLEN];