fix trace locks hang, drag handle rework-again, 12 reset btns on plugins, booby on
[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 ManualGotoWindow;
32 class ManualGotoNumber;
33
34 class ManualGoto : public BC_DialogThread
35 {
36 public:
37         ManualGoto(MWindow *mwindow, EditPanel *panel);
38         ~ManualGoto();
39
40         EditPanel *panel;
41         MWindow *mwindow;
42         ManualGotoWindow *gotowindow;
43
44         BC_Window *new_gui();
45         void handle_done_event(int result);
46
47 };
48
49
50 class ManualGotoWindow : public BC_Window
51 {
52 public:
53         ManualGotoWindow(ManualGoto *mango, int x, int y);
54         ~ManualGotoWindow();
55
56         void create_objects();
57         void reset_data(double position);
58         double get_new_position();
59         void update_position(double position);
60
61         ManualGoto *mango;
62         BC_Title *signtitle;
63         ManualGotoNumber *hours;
64         ManualGotoNumber *minutes;
65         ManualGotoNumber *seconds;
66         ManualGotoNumber *msecs;
67 };
68
69
70
71 class ManualGotoNumber : public BC_TextBox
72 {
73 public:
74         ManualGotoNumber(ManualGotoWindow *window, int x, int y, int w,
75                 int max, const char *format);
76         int handle_event();
77         ManualGotoWindow *window;
78         int keypress_event();
79         void update(int64_t number);
80
81         int min, max;
82         const char *format;
83 };
84
85 #endif