r668: Configure.in and autogen.sh cleanup based on ideas by giskard.
[cinelerra_cv.git] / cinelerra / manualgoto.h
blob0415db3709d74a2a0c2857bc74e0b7d24eb38f59
1 #ifndef MANUALGOTO_H
2 #define MANUALGOTO_H
4 #include "awindow.inc"
5 #include "edl.inc"
6 #include "guicast.h"
7 #include "mwindow.inc"
8 #include "thread.h"
9 #include "vwindow.inc"
10 #include "editpanel.inc"
12 class ManualGotoWindow;
13 class ManualGotoNumber;
15 class ManualGoto : public Thread
17 public:
18 ManualGoto(MWindow *mwindow, BC_WindowBase *masterwindow);
19 ~ManualGoto();
21 void run();
23 // If it is being created or edited
24 MWindow *mwindow;
25 BC_WindowBase *masterwindow;
26 void open_window();
28 ManualGotoWindow *gotowindow;
29 int done;
36 class ManualGotoWindow : public BC_Window
38 public:
39 ManualGotoWindow(MWindow *mwindow, ManualGoto *thread);
40 ~ManualGotoWindow();
42 void create_objects();
43 int activate();
44 void reset_data(double position);
45 double get_entered_position_sec();
46 void set_entered_position_sec(double position);
50 // Use this copy of the pointer in ManualGoto since multiple windows are possible
51 BC_Title *signtitle;
52 ManualGotoNumber *boxhours;
53 ManualGotoNumber *boxminutes;
54 ManualGotoNumber *boxseconds;
55 ManualGotoNumber *boxmsec;
56 MWindow *mwindow;
57 ManualGoto *thread;
62 class ManualGotoNumber : public BC_TextBox
64 public:
65 ManualGotoNumber(ManualGotoWindow *window, int x, int y, int w, int min_num, int max_num, int chars);
66 int handle_event();
67 ManualGotoWindow *window;
68 int keypress_event();
69 int activate();
70 int deactivate();
71 void reshape_update(int64_t number);
73 int min_num;
74 int max_num;
75 int chars;
84 #endif