r955: Fix the Diffkey icon.
[cinelerra_cv.git] / cinelerra / gwindowgui.h
blob4f839d4dfceb2698ae7412eda611f04efe7c32ad
1 #ifndef GWINDOWGUI_H
2 #define GWINDOWGUI_H
4 #include "automation.inc"
5 #include "guicast.h"
6 #include "mwindow.inc"
8 class GWindowToggle;
10 #define ASSETS 0
11 #define TITLES 1
12 #define TRANSITIONS 2
13 #define PLUGIN_AUTOS 3
14 #define OTHER_TOGGLES 4
16 class GWindowGUI : public BC_Window
18 public:
19 GWindowGUI(MWindow *mwindow, int w, int h);
20 static void calculate_extents(BC_WindowBase *gui, int *w, int *h);
21 void create_objects();
22 int translation_event();
23 int close_event();
24 int keypress_event();
25 void update_toggles(int use_lock);
26 void update_mwindow();
28 MWindow *mwindow;
29 GWindowToggle *other[OTHER_TOGGLES];
30 GWindowToggle *auto_toggle[AUTOMATION_TOTAL];
33 class GWindowToggle : public BC_CheckBox
35 public:
36 GWindowToggle(MWindow *mwindow,
37 GWindowGUI *gui,
38 int x,
39 int y,
40 int subscript,
41 int other,
42 char *text);
43 int handle_event();
44 void update();
46 static int* get_main_value(MWindow *mwindow, int subscript, int other);
48 MWindow *mwindow;
49 GWindowGUI *gui;
50 int subscript;
51 int other;
54 #endif