4 * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
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.
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.
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
25 #include "automation.inc"
27 #include "mwindow.inc"
34 #define PLUGIN_AUTOS 3
35 #define OTHER_TOGGLES 4
37 class GWindowGUI : public BC_Window
40 GWindowGUI(MWindow *mwindow, int w, int h);
41 static void calculate_extents(BC_WindowBase *gui, int *w, int *h);
42 void create_objects();
43 int translation_event();
46 void update_toggles(int use_lock);
47 void update_mwindow();
48 int cursor_motion_event();
54 GWindowToggle *other[OTHER_TOGGLES];
55 GWindowToggle *auto_toggle[AUTOMATION_TOTAL];
58 class GWindowToggle : public BC_CheckBox
61 GWindowToggle(MWindow *mwindow,
71 static int* get_main_value(MWindow *mwindow, int subscript, int other);
73 int button_press_event();
74 int button_release_event();