Added DragBar widget to replace horizontal thumbwheels.
[epichord.git] / src / ui.h
blob6b370f99f8c0d9936a2900575afa5bb18a95ed11
1 // generated by Fast Light User Interface Designer (fluid) version 2.1000
3 #ifndef ui_h
4 #define ui_h
5 #include <fltk/Window.h>
6 #include <stdio.h>
7 #include <fltk/ask.h>
8 #include "seq.h"
9 #include "trackmodule.h"
10 #include <fltk/Group.h>
11 #include "trackinfo.h"
12 #include <fltk/Button.h>
13 #include "arranger.h"
14 #include <fltk/Scrollbar.h>
15 #include "dragbar.h"
16 #include "timeline.h"
17 #include "pianoroll.h"
18 #include "eventedit.h"
19 #include "eventmenu.h"
20 #include "trackselect.h"
21 #include "sampleview.h"
22 #include "keyboard.h"
23 #include <metronome.h>
24 #include "saveload.h"
25 #include <fltk/PopupMenu.h>
26 #include <fltk/Item.h>
27 #include <fltk/Divider.h>
28 #include <fltk/TabGroup.h>
29 #include <fltk/ValueInput.h>
30 #include <fltk/ValueOutput.h>
31 #include <fltk/ThumbWheel.h>
32 #include <fltk/CheckButton.h>
33 #include <fltk/Choice.h>
34 #include <fltk/Input.h>
35 #include <fltk/TextEditor.h>
36 #include <fltk/TextDisplay.h>
37 #include <fltk/InvisibleBox.h>
39 class UI {
40 public:
41 UI();
42 fltk::Window *main_window;
43 private:
44 inline void cb_main_window_i(fltk::Window*, void*);
45 static void cb_main_window(fltk::Window*, void*);
46 public:
47 fltk::Group *song_edit;
48 TrackInfo *track_info;
49 private:
50 inline void cb__i(fltk::Button*, void*);
51 static void cb_(fltk::Button*, void*);
52 inline void cb_1_i(fltk::Button*, void*);
53 static void cb_1(fltk::Button*, void*);
54 public:
55 Timeline *song_timeline;
56 fltk::Group *song_scrollgroup;
57 Arranger *arranger;
58 fltk::Scrollbar *song_vscroll;
59 private:
60 inline void cb_song_vscroll_i(fltk::Scrollbar*, void*);
61 static void cb_song_vscroll(fltk::Scrollbar*, void*);
62 public:
63 DragBar *song_hscroll;
64 private:
65 inline void cb_song_hscroll_i(DragBar*, void*);
66 static void cb_song_hscroll(DragBar*, void*);
67 public:
68 fltk::Group *pattern_edit;
69 Timeline *pattern_timeline;
70 fltk::Group *pattern_scrollgroup;
71 PianoRoll *piano_roll;
72 fltk::Scrollbar *pattern_vscroll;
73 private:
74 inline void cb_pattern_vscroll_i(fltk::Scrollbar*, void*);
75 static void cb_pattern_vscroll(fltk::Scrollbar*, void*);
76 public:
77 DragBar *pattern_hscroll;
78 private:
79 inline void cb_pattern_hscroll_i(DragBar*, void*);
80 static void cb_pattern_hscroll(DragBar*, void*);
81 public:
82 EventEdit *event_edit;
83 EventMenu *event_menu;
84 fltk::Button *event_menu_button;
85 private:
86 inline void cb_event_menu_button_i(fltk::Button*, void*);
87 static void cb_event_menu_button(fltk::Button*, void*);
88 inline void cb_L_i(fltk::Button*, void*);
89 static void cb_L(fltk::Button*, void*);
90 inline void cb_C_i(fltk::Button*, void*);
91 static void cb_C(fltk::Button*, void*);
92 inline void cb_X_i(fltk::Button*, void*);
93 static void cb_X(fltk::Button*, void*);
94 inline void cb_Z_i(fltk::Button*, void*);
95 static void cb_Z(fltk::Button*, void*);
96 public:
97 TrackSelect *track_select;
98 SampleView *sample_view;
99 Keyboard *keyboard;
100 private:
101 inline void cb_2_i(fltk::Button*, void*);
102 static void cb_2(fltk::Button*, void*);
103 public:
104 fltk::Button *play_button;
105 private:
106 inline void cb_play_button_i(fltk::Button*, void*);
107 static void cb_play_button(fltk::Button*, void*);
108 public:
109 fltk::Button *stop_button;
110 private:
111 inline void cb_stop_button_i(fltk::Button*, void*);
112 static void cb_stop_button(fltk::Button*, void*);
113 public:
114 fltk::Button *record_button;
115 private:
116 inline void cb_record_button_i(fltk::Button*, void*);
117 static void cb_record_button(fltk::Button*, void*);
118 public:
119 Metronome *metronome;
120 fltk::Button *loop_toggle;
121 private:
122 inline void cb_loop_toggle_i(fltk::Button*, void*);
123 static void cb_loop_toggle(fltk::Button*, void*);
124 public:
125 fltk::Group *pattern_buttons;
126 fltk::Button *quant1_button;
127 fltk::Button *quant0_button;
128 fltk::Button *tool_button;
129 private:
130 inline void cb_tool_button_i(fltk::Button*, void*);
131 static void cb_tool_button(fltk::Button*, void*);
132 public:
133 fltk::Button *qbutton4;
134 private:
135 inline void cb_qbutton4_i(fltk::Button*, void*);
136 static void cb_qbutton4(fltk::Button*, void*);
137 public:
138 fltk::Button *qbutton8;
139 private:
140 inline void cb_qbutton8_i(fltk::Button*, void*);
141 static void cb_qbutton8(fltk::Button*, void*);
142 public:
143 fltk::Button *qbutton16;
144 private:
145 inline void cb_qbutton16_i(fltk::Button*, void*);
146 static void cb_qbutton16(fltk::Button*, void*);
147 public:
148 fltk::Button *qbutton32;
149 private:
150 inline void cb_qbutton32_i(fltk::Button*, void*);
151 static void cb_qbutton32(fltk::Button*, void*);
152 public:
153 fltk::Button *qbutton64;
154 private:
155 inline void cb_qbutton64_i(fltk::Button*, void*);
156 static void cb_qbutton64(fltk::Button*, void*);
157 public:
158 fltk::Button *qbutton128;
159 private:
160 inline void cb_qbutton128_i(fltk::Button*, void*);
161 static void cb_qbutton128(fltk::Button*, void*);
162 public:
163 fltk::Button *qbutton0;
164 private:
165 inline void cb_qbutton0_i(fltk::Button*, void*);
166 static void cb_qbutton0(fltk::Button*, void*);
167 public:
168 fltk::Group *song_buttons;
169 fltk::Button *edit_button;
170 private:
171 inline void cb_edit_button_i(fltk::Button*, void*);
172 static void cb_edit_button(fltk::Button*, void*);
173 public:
174 fltk::Button *color_button;
175 private:
176 inline void cb_color_button_i(fltk::Button*, void*);
177 static void cb_color_button(fltk::Button*, void*);
178 public:
179 fltk::Button *unclone_button;
180 private:
181 inline void cb_unclone_button_i(fltk::Button*, void*);
182 static void cb_unclone_button(fltk::Button*, void*);
183 public:
184 fltk::Button *split_button;
185 private:
186 inline void cb_split_button_i(fltk::Button*, void*);
187 static void cb_split_button(fltk::Button*, void*);
188 public:
189 fltk::Button *join_button;
190 private:
191 inline void cb_join_button_i(fltk::Button*, void*);
192 static void cb_join_button(fltk::Button*, void*);
193 public:
194 fltk::Button *conf_button;
195 private:
196 inline void cb_conf_button_i(fltk::Button*, void*);
197 static void cb_conf_button(fltk::Button*, void*);
198 public:
199 fltk::Button *scope_button;
200 private:
201 inline void cb_scope_button_i(fltk::Button*, void*);
202 static void cb_scope_button(fltk::Button*, void*);
203 public:
204 fltk::Button *file_button;
205 private:
206 inline void cb_file_button_i(fltk::Button*, void*);
207 static void cb_file_button(fltk::Button*, void*);
208 public:
209 fltk::PopupMenu *file_menu;
210 private:
211 inline void cb_new_i(fltk::Item*, void*);
212 static void cb_new(fltk::Item*, void*);
213 inline void cb_load_i(fltk::Item*, void*);
214 static void cb_load(fltk::Item*, void*);
215 inline void cb_save_i(fltk::Item*, void*);
216 static void cb_save(fltk::Item*, void*);
217 inline void cb_save1_i(fltk::Item*, void*);
218 static void cb_save1(fltk::Item*, void*);
219 inline void cb_import_i(fltk::Item*, void*);
220 static void cb_import(fltk::Item*, void*);
221 inline void cb_export_i(fltk::Item*, void*);
222 static void cb_export(fltk::Item*, void*);
223 public:
224 fltk::Button *help_button;
225 private:
226 inline void cb_help_button_i(fltk::Button*, void*);
227 static void cb_help_button(fltk::Button*, void*);
228 public:
229 fltk::Window *config_window;
230 private:
231 inline void cb_config_window_i(fltk::Window*, void*);
232 static void cb_config_window(fltk::Window*, void*);
233 public:
234 fltk::ValueInput *beats_per_measure;
235 private:
236 inline void cb_beats_per_measure_i(fltk::ValueInput*, void*);
237 static void cb_beats_per_measure(fltk::ValueInput*, void*);
238 public:
239 fltk::ValueInput *measures_per_phrase;
240 private:
241 inline void cb_measures_per_phrase_i(fltk::ValueInput*, void*);
242 static void cb_measures_per_phrase(fltk::ValueInput*, void*);
243 public:
244 fltk::ValueOutput *bpm_output;
245 fltk::ThumbWheel *bpm_wheel;
246 private:
247 inline void cb_bpm_wheel_i(fltk::ThumbWheel*, void*);
248 static void cb_bpm_wheel(fltk::ThumbWheel*, void*);
249 public:
250 fltk::ValueInput *measures_until_record;
251 private:
252 inline void cb_measures_until_record_i(fltk::ValueInput*, void*);
253 static void cb_measures_until_record(fltk::ValueInput*, void*);
254 public:
255 fltk::CheckButton *check_alwayscopy;
256 private:
257 inline void cb_check_alwayscopy_i(fltk::CheckButton*, void*);
258 static void cb_check_alwayscopy(fltk::CheckButton*, void*);
259 public:
260 fltk::CheckButton *check_autotrackname;
261 private:
262 inline void cb_check_autotrackname_i(fltk::CheckButton*, void*);
263 static void cb_check_autotrackname(fltk::CheckButton*, void*);
264 public:
265 fltk::CheckButton *check_passthru;
266 private:
267 inline void cb_check_passthru_i(fltk::CheckButton*, void*);
268 static void cb_check_passthru(fltk::CheckButton*, void*);
269 public:
270 fltk::CheckButton *check_playinsert;
271 private:
272 inline void cb_check_playinsert_i(fltk::CheckButton*, void*);
273 static void cb_check_playinsert(fltk::CheckButton*, void*);
274 public:
275 fltk::CheckButton *check_recordonchan;
276 private:
277 inline void cb_check_recordonchan_i(fltk::CheckButton*, void*);
278 static void cb_check_recordonchan(fltk::CheckButton*, void*);
279 public:
280 fltk::CheckButton *check_playmove;
281 private:
282 inline void cb_check_playmove_i(fltk::CheckButton*, void*);
283 static void cb_check_playmove(fltk::CheckButton*, void*);
284 public:
285 fltk::CheckButton *check_follow;
286 private:
287 inline void cb_check_follow_i(fltk::CheckButton*, void*);
288 static void cb_check_follow(fltk::CheckButton*, void*);
289 public:
290 fltk::ValueInput *default_velocity;
291 private:
292 inline void cb_default_velocity_i(fltk::ValueInput*, void*);
293 static void cb_default_velocity(fltk::ValueInput*, void*);
294 public:
295 fltk::Choice *menu_recordmode;
296 private:
297 inline void cb_merge_i(fltk::Item*, void*);
298 static void cb_merge(fltk::Item*, void*);
299 inline void cb_overwrite_i(fltk::Item*, void*);
300 static void cb_overwrite(fltk::Item*, void*);
301 inline void cb_layer_i(fltk::Item*, void*);
302 static void cb_layer(fltk::Item*, void*);
303 public:
304 fltk::Choice *menu_rob;
305 private:
306 inline void cb_do_i(fltk::Item*, void*);
307 static void cb_do(fltk::Item*, void*);
308 inline void cb_new1_i(fltk::Item*, void*);
309 static void cb_new1(fltk::Item*, void*);
310 inline void cb_extend_i(fltk::Item*, void*);
311 static void cb_extend(fltk::Item*, void*);
312 public:
313 KeyGrabber *kg_l0;
314 KeyGrabber *kg_l1;
315 KeyGrabber *kg_l2;
316 KeyGrabber *kg_l3;
317 KeyGrabber *kg_l4;
318 KeyGrabber *kg_l5;
319 KeyGrabber *kg_l6;
320 KeyGrabber *kg_l7;
321 KeyGrabber *kg_l8;
322 KeyGrabber *kg_l9;
323 KeyGrabber *kg_l10;
324 private:
325 inline void cb_kg_l10_i(KeyGrabber*, void*);
326 static void cb_kg_l10(KeyGrabber*, void*);
327 public:
328 KeyGrabber *kg_l11;
329 KeyGrabber *kg_l12;
330 KeyGrabber *kg_l13;
331 KeyGrabber *kg_l14;
332 KeyGrabber *kg_l15;
333 KeyGrabber *kg_l16;
334 KeyGrabber *kg_u0;
335 KeyGrabber *kg_u1;
336 KeyGrabber *kg_u2;
337 KeyGrabber *kg_u3;
338 KeyGrabber *kg_u4;
339 KeyGrabber *kg_u5;
340 KeyGrabber *kg_u6;
341 KeyGrabber *kg_u7;
342 KeyGrabber *kg_u8;
343 KeyGrabber *kg_u9;
344 KeyGrabber *kg_u10;
345 KeyGrabber *kg_u11;
346 KeyGrabber *kg_u12;
347 KeyGrabber *kg_u13;
348 KeyGrabber *kg_u14;
349 KeyGrabber *kg_u15;
350 KeyGrabber *kg_u16;
351 KeyGrabber *kg_u17;
352 KeyGrabber *kg_u18;
353 KeyGrabber *kg_u19;
354 KeyGrabber *kg_u20;
355 KeyGrabber *kg_zi;
356 KeyGrabber *kg_zo;
357 KeyGrabber *kg_ou;
358 KeyGrabber *kg_od;
359 fltk::Window *help_window;
360 private:
361 inline void cb_help_window_i(fltk::Window*, void*);
362 static void cb_help_window(fltk::Window*, void*);
363 public:
364 fltk::Input *title_text;
365 fltk::Input *author_text;
366 fltk::TextEditor *info_text;
367 fltk::Window *action_window;
368 private:
369 inline void cb_action_window_i(fltk::Window*, void*);
370 static void cb_action_window(fltk::Window*, void*);
371 inline void cb_new2_i(fltk::Button*, void*);
372 static void cb_new2(fltk::Button*, void*);
373 inline void cb_save2_i(fltk::Button*, void*);
374 static void cb_save2(fltk::Button*, void*);
375 inline void cb_save3_i(fltk::Button*, void*);
376 static void cb_save3(fltk::Button*, void*);
377 inline void cb_load1_i(fltk::Button*, void*);
378 static void cb_load1(fltk::Button*, void*);
379 inline void cb_import1_i(fltk::Button*, void*);
380 static void cb_import1(fltk::Button*, void*);
381 inline void cb_export1_i(fltk::Button*, void*);
382 static void cb_export1(fltk::Button*, void*);
383 public:
384 fltk::Window *scope_window;
385 private:
386 inline void cb_scope_window_i(fltk::Window*, void*);
387 static void cb_scope_window(fltk::Window*, void*);
388 public:
389 fltk::TextDisplay *scope;
390 private:
391 inline void cb_on_i(fltk::Button*, void*);
392 static void cb_on(fltk::Button*, void*);
394 #endif