repeat play, in/out <> shortcuts, append to proj wording, cleanup
[goodguy/history.git] / cinelerra-5.1 / cinelerra / editpopup.h
1
2 /*
3  * CINELERRA
4  * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
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 2 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, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  *
20  */
21
22 #ifndef EDITPOPUP_H
23 #define EDITPOPUP_H
24
25 #include "guicast.h"
26 #include "mwindow.inc"
27 #include "mwindowgui.inc"
28 #include "edit.inc"
29 #include "plugindialog.inc"
30 #include "resizetrackthread.inc"
31
32 class EditPopupResize;
33 class EditPopupMatchSize;
34 class EditPopupTitleText;
35 class EditPopupTitleWindow;
36 class EditPopupTitleButton;
37 class EditPopupTitleButtonRes;
38
39 class EditPopup : public BC_PopupMenu
40 {
41 public:
42         EditPopup(MWindow *mwindow, MWindowGUI *gui);
43         ~EditPopup();
44
45         void create_objects();
46         int update(Track *track, Edit *edit);
47
48         MWindow *mwindow;
49         MWindowGUI *gui;
50 // Acquired through the update command as the edit currently being operated on
51         Edit *edit;
52         Track *track;
53         EditPopupResize *resize_option;
54         EditPopupMatchSize *matchsize_option;
55 };
56
57 class EditPopupMatchSize : public BC_MenuItem
58 {
59 public:
60         EditPopupMatchSize(MWindow *mwindow, EditPopup *popup);
61         ~EditPopupMatchSize();
62         int handle_event();
63         MWindow *mwindow;
64         EditPopup *popup;
65 };
66
67 class EditPopupResize : public BC_MenuItem
68 {
69 public:
70         EditPopupResize(MWindow *mwindow, EditPopup *popup);
71         ~EditPopupResize();
72         int handle_event();
73         MWindow *mwindow;
74         EditPopup *popup;
75         ResizeTrackThread *dialog_thread;
76 };
77
78 class EditPopupDeleteTrack : public BC_MenuItem
79 {
80 public:
81         EditPopupDeleteTrack(MWindow *mwindow, EditPopup *popup);
82         int handle_event();
83         MWindow *mwindow;
84         EditPopup *popup;
85 };
86
87 class EditPopupAddTrack : public BC_MenuItem
88 {
89 public:
90         EditPopupAddTrack(MWindow *mwindow, EditPopup *popup);
91         int handle_event();
92         MWindow *mwindow;
93         EditPopup *popup;
94 };
95
96
97 class EditAttachEffect : public BC_MenuItem
98 {
99 public:
100         EditAttachEffect(MWindow *mwindow, EditPopup *popup);
101         ~EditAttachEffect();
102
103         int handle_event();
104
105         MWindow *mwindow;
106         EditPopup *popup;
107         PluginDialogThread *dialog_thread;
108 };
109
110 class EditMoveTrackUp : public BC_MenuItem
111 {
112 public:
113         EditMoveTrackUp(MWindow *mwindow, EditPopup *popup);
114         ~EditMoveTrackUp();
115
116         int handle_event();
117
118         MWindow *mwindow;
119         EditPopup *popup;
120 };
121
122 class EditMoveTrackDown : public BC_MenuItem
123 {
124 public:
125         EditMoveTrackDown(MWindow *mwindow, EditPopup *popup);
126         ~EditMoveTrackDown();
127
128         int handle_event();
129
130         MWindow *mwindow;
131         EditPopup *popup;
132 };
133
134
135 class EditPopupTitle : public BC_MenuItem
136 {
137 public:
138         EditPopupTitle (MWindow *mwindow, EditPopup *popup);
139         ~EditPopupTitle();
140
141         int handle_event();
142
143         MWindow *mwindow;
144         EditPopup *popup;
145         EditPopupTitleWindow *window;
146 };
147
148 class EditPopupTitleText : public BC_TextBox
149 {
150 public:
151         EditPopupTitleText (EditPopupTitleWindow *window,
152                 MWindow *mwindow, int x, int y);
153         ~EditPopupTitleText();
154
155         int handle_event();
156
157         EditPopupTitleWindow *window;
158         MWindow *mwindow;
159 };
160
161
162 class EditPopupTitleWindow : public BC_Window
163 {
164 public:
165         EditPopupTitleWindow (MWindow *mwindow, EditPopup *popup);
166         ~EditPopupTitleWindow ();
167
168         void create_objects();
169         int close_event();
170
171         EditPopupTitleText *title_text;
172         Edit *edt;
173         MWindow *mwindow;
174         EditPopup *popup;
175         char new_text[BCTEXTLEN];
176 };
177
178 #endif