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"
32 class EditPopupResize;
33 class EditPopupMatchSize;
34 class EditPopupTitleText;
35 class EditPopupTitleWindow;
36 class EditPopupTitleButton;
37 class EditPopupTitleButtonRes;
39 class EditPopup : public BC_PopupMenu
42 EditPopup(MWindow *mwindow, MWindowGUI *gui);
45 void create_objects();
46 int update(Track *track, Edit *edit);
50 // Acquired through the update command as the edit currently being operated on
53 EditPopupResize *resize_option;
54 EditPopupMatchSize *matchsize_option;
57 class EditPopupMatchSize : public BC_MenuItem
60 EditPopupMatchSize(MWindow *mwindow, EditPopup *popup);
61 ~EditPopupMatchSize();
67 class EditPopupResize : public BC_MenuItem
70 EditPopupResize(MWindow *mwindow, EditPopup *popup);
75 ResizeTrackThread *dialog_thread;
78 class EditPopupDeleteTrack : public BC_MenuItem
81 EditPopupDeleteTrack(MWindow *mwindow, EditPopup *popup);
87 class EditPopupAddTrack : public BC_MenuItem
90 EditPopupAddTrack(MWindow *mwindow, EditPopup *popup);
97 class EditAttachEffect : public BC_MenuItem
100 EditAttachEffect(MWindow *mwindow, EditPopup *popup);
107 PluginDialogThread *dialog_thread;
110 class EditMoveTrackUp : public BC_MenuItem
113 EditMoveTrackUp(MWindow *mwindow, EditPopup *popup);
122 class EditMoveTrackDown : public BC_MenuItem
125 EditMoveTrackDown(MWindow *mwindow, EditPopup *popup);
126 ~EditMoveTrackDown();
135 class EditPopupTitle : public BC_MenuItem
138 EditPopupTitle (MWindow *mwindow, EditPopup *popup);
145 EditPopupTitleWindow *window;
148 class EditPopupTitleText : public BC_TextBox
151 EditPopupTitleText (EditPopupTitleWindow *window,
152 MWindow *mwindow, int x, int y);
153 ~EditPopupTitleText();
157 EditPopupTitleWindow *window;
162 class EditPopupTitleWindow : public BC_Window
165 EditPopupTitleWindow (MWindow *mwindow, EditPopup *popup);
166 ~EditPopupTitleWindow ();
168 void create_objects();
171 EditPopupTitleText *title_text;
175 char new_text[BCTEXTLEN];