r1005: Increase the number of displayed digits for resample audio dialog box
[cinelerra_cv/mob.git] / cinelerra / gwindowgui.h
blobc552a49ebe68f353d3f99059e93913c352e6679b
1 #ifndef GWINDOWGUI_H
2 #define GWINDOWGUI_H
4 #include "automation.inc"
5 #include "guicast.h"
6 #include "mwindow.inc"
8 class GWindowToggle;
10 enum {
11 NONAUTOTOGGLES_ASSETS,
12 NONAUTOTOGGLES_TITLES,
13 NONAUTOTOGGLES_TRANSITIONS,
14 NONAUTOTOGGLES_PLUGIN_AUTOS,
15 NONAUTOTOGGLES_COUNT
18 struct toggleinfo
20 int isauto;
21 int ref;
24 class GWindowGUI : public BC_Window
26 public:
27 GWindowGUI(MWindow *mwindow, int w, int h);
28 static void calculate_extents(BC_WindowBase *gui, int *w, int *h);
29 void create_objects();
30 int translation_event();
31 int close_event();
32 int keypress_event();
33 void update_toggles(int use_lock);
34 void update_mwindow();
36 MWindow *mwindow;
37 GWindowToggle *toggles[NONAUTOTOGGLES_COUNT + AUTOMATION_TOTAL];
40 class GWindowToggle : public BC_CheckBox
42 public:
43 GWindowToggle(MWindow *mwindow,
44 GWindowGUI *gui,
45 int x,
46 int y,
47 toggleinfo toggleinf);
48 int handle_event();
49 void update();
51 static int* get_main_value(MWindow *mwindow, toggleinfo toggleinf);
53 MWindow *mwindow;
54 GWindowGUI *gui;
55 toggleinfo toggleinf;
58 #endif