no longer need ffmpeg patch0 which was for Termux
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / manualgoto.h
1
2 /*
3  * CINELERRA
4  * Copyright (C) 2004 Andraz Tori
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 MANUALGOTO_H
23 #define MANUALGOTO_H
24
25 #include "bcwindowbase.h"
26 #include "bcdialog.h"
27 #include "mwindow.inc"
28 #include "editpanel.inc"
29
30 class ManualGoto;
31 class ManualGotoKeyItem;
32 class ManualGotoDirection;
33 class ManualGotoUnitItem;
34 class ManualGotoUnits;
35 class ManualGotoText;
36 class ManualGotoWindow;
37
38 class ManualGoto : public BC_DialogThread
39 {
40 public:
41         ManualGoto(MWindow *mwindow, EditPanel *panel);
42         ~ManualGoto();
43
44         EditPanel *panel;
45         MWindow *mwindow;
46         ManualGotoWindow *window;
47
48         BC_Window *new_gui();
49         void handle_done_event(int result);
50
51 };
52
53 class ManualGotoKeyItem : public BC_MenuItem
54 {
55 public:
56         ManualGotoKeyItem(ManualGotoDirection *popup,
57                 const char *text, const char *htxt);
58         int handle_event();
59
60         ManualGotoDirection *popup;
61         const char *htxt;
62 };
63
64 class ManualGotoDirection : public BC_PopupMenu
65 {
66 public:
67         ManualGotoDirection(ManualGotoWindow *window, int x, int y, int w);
68         void create_objects();
69
70         ManualGotoWindow *window;
71 };
72
73 class ManualGotoUnitItem : public BC_MenuItem
74 {
75 public:
76         ManualGotoUnitItem(ManualGotoUnits *popup, int type);
77         int handle_event();
78
79         ManualGotoUnits *popup;
80         int type;
81 };
82
83 class ManualGotoUnits : public BC_PopupMenu
84 {
85 public:
86         ManualGotoUnits(ManualGotoWindow *window, int x, int y, int w);
87         void create_objects();
88
89         ManualGotoWindow *window;
90 };
91
92
93 class ManualGotoText : public BC_TextBox
94 {
95 public:
96         ManualGotoText(ManualGotoWindow *window, int x, int y, int w);
97         int keypress_event();
98         ManualGotoWindow *window;
99 };
100
101 class ManualGotoWindow : public BC_Window
102 {
103 public:
104         ManualGotoWindow(ManualGoto *mango, int x, int y);
105         ~ManualGotoWindow();
106
107         void create_objects();
108         void update(double position);
109         void update();
110
111         ManualGoto *mango;
112         int time_format;
113         BC_Title *format_text;
114         ManualGotoDirection *direction;
115         ManualGotoUnits *units;
116         ManualGotoText *time_text;
117 };
118
119 #endif