confirm prefs update, fix bg_pixmap sz, plugin layout tweaks
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / labelpopup.h
1 /*
2  * CINELERRA
3  * Copyright (C) 2006 Pierre Dumuid
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 LABELPOPUP_H
23 #define LABELPOPUP_H
24
25 #include "assetedit.inc"
26 #include "assets.inc"
27 #include "awindowgui.inc"
28 #include "clippopup.inc"
29 #include "edl.inc"
30 #include "guicast.h"
31 #include "labelpopup.inc"
32 #include "mwindow.inc"
33
34
35 class LabelPopup : public BC_PopupMenu
36 {
37 public:
38         LabelPopup(MWindow *mwindow, AWindowGUI *gui);
39         ~LabelPopup();
40
41         void create_objects();
42 // Set mainsession with the current selections
43         int update();
44
45         MWindow *mwindow;
46         AWindowGUI *gui;
47
48         LabelPopupEdit *editlabel;
49 };
50
51 class LabelPopupEdit : public BC_MenuItem
52 {
53 public:
54         LabelPopupEdit(MWindow *mwindow, AWindowGUI *gui);
55         ~LabelPopupEdit();
56
57         int handle_event();
58
59         MWindow *mwindow;
60         AWindowGUI *gui;
61 };
62
63 class LabelPopupDelete : public BC_MenuItem
64 {
65 public:
66         LabelPopupDelete(MWindow *mwindow, AWindowGUI *gui);
67         ~LabelPopupDelete();
68
69         int handle_event();
70
71         MWindow *mwindow;
72         AWindowGUI *gui;
73 };
74
75 class LabelPopupGoTo : public BC_MenuItem
76 {
77 public:
78         LabelPopupGoTo(MWindow *mwindow, AWindowGUI *gui);
79         ~LabelPopupGoTo();
80
81         int handle_event();
82
83         MWindow *mwindow;
84         AWindowGUI *gui;
85 };
86
87 class LabelListMenu : public BC_PopupMenu
88 {
89 public:
90         LabelListMenu(MWindow *mwindow, AWindowGUI *gui);
91         ~LabelListMenu();
92
93         void create_objects();
94         void update();
95
96         MWindow *mwindow;
97         AWindowGUI *gui;
98         AWindowListFormat *format;
99 };
100
101 #endif