r1014: Enable horizontal scrolling with the mouse wheel by pressing Ctrl.
[cinelerra_cv/ct.git] / cinelerra / editpopup.h
blob1d1060e8168488bc1ef9148788201d0fe58812e3
1 #ifndef EDITPOPUP_H
2 #define EDITPOPUP_H
4 #include "guicast.h"
5 #include "mwindow.inc"
6 #include "mwindowgui.inc"
7 #include "edit.inc"
8 #include "plugindialog.inc"
9 #include "resizetrackthread.inc"
12 class EditPopupResize;
13 class EditPopupMatchSize;
14 class EditPopupTitleText;
15 class EditPopupTitleWindow;
16 class EditPopupTitleButton;
17 class EditPopupTitleButtonRes;
19 class EditPopup : public BC_PopupMenu
21 public:
22 EditPopup(MWindow *mwindow, MWindowGUI *gui);
23 ~EditPopup();
25 void create_objects();
26 int update(Track *track, Edit *edit);
28 MWindow *mwindow;
29 MWindowGUI *gui;
30 // Acquired through the update command as the edit currently being operated on
31 Edit *edit;
32 Track *track;
33 EditPopupResize *resize_option;
34 EditPopupMatchSize *matchsize_option;
37 class EditPopupMatchSize : public BC_MenuItem
39 public:
40 EditPopupMatchSize(MWindow *mwindow, EditPopup *popup);
41 ~EditPopupMatchSize();
42 int handle_event();
43 MWindow *mwindow;
44 EditPopup *popup;
47 class EditPopupResize : public BC_MenuItem
49 public:
50 EditPopupResize(MWindow *mwindow, EditPopup *popup);
51 ~EditPopupResize();
52 int handle_event();
53 MWindow *mwindow;
54 EditPopup *popup;
55 ResizeTrackThread *dialog_thread;
58 class EditPopupDeleteTrack : public BC_MenuItem
60 public:
61 EditPopupDeleteTrack(MWindow *mwindow, EditPopup *popup);
62 int handle_event();
63 MWindow *mwindow;
64 EditPopup *popup;
67 class EditPopupAddTrack : public BC_MenuItem
69 public:
70 EditPopupAddTrack(MWindow *mwindow, EditPopup *popup);
71 int handle_event();
72 MWindow *mwindow;
73 EditPopup *popup;
77 class EditAttachEffect : public BC_MenuItem
79 public:
80 EditAttachEffect(MWindow *mwindow, EditPopup *popup);
81 ~EditAttachEffect();
83 int handle_event();
85 MWindow *mwindow;
86 EditPopup *popup;
87 PluginDialogThread *dialog_thread;
90 class EditMoveTrackUp : public BC_MenuItem
92 public:
93 EditMoveTrackUp(MWindow *mwindow, EditPopup *popup);
94 ~EditMoveTrackUp();
96 int handle_event();
98 MWindow *mwindow;
99 EditPopup *popup;
102 class EditMoveTrackDown : public BC_MenuItem
104 public:
105 EditMoveTrackDown(MWindow *mwindow, EditPopup *popup);
106 ~EditMoveTrackDown();
108 int handle_event();
110 MWindow *mwindow;
111 EditPopup *popup;
115 class EditPopupTitle : public BC_MenuItem
117 public:
118 EditPopupTitle (MWindow *mwindow, EditPopup *popup);
119 ~EditPopupTitle();
121 int handle_event();
123 MWindow *mwindow;
124 EditPopup *popup;
125 EditPopupTitleWindow *window;
128 class EditPopupTitleText : public BC_TextBox
130 public:
131 EditPopupTitleText (EditPopupTitleWindow *window,
132 MWindow *mwindow, int x, int y);
133 ~EditPopupTitleText();
135 int handle_event();
137 EditPopupTitleWindow *window;
138 MWindow *mwindow;
142 class EditPopupTitleWindow : public BC_Window
144 public:
145 EditPopupTitleWindow (MWindow *mwindow, EditPopup *popup);
146 ~EditPopupTitleWindow ();
148 int create_objects();
149 int close_event();
151 EditPopupTitleText *title_text;
152 Edit *edt;
153 MWindow *mwindow;
154 EditPopup *popup;
155 char new_text[BCTEXTLEN];
160 #endif