1 # data file for the FLTK User Interface Designer (FLUID)
4 do_not_include_H_from_C
11 Epichord - a midi sequencer
12 Copyright (C) 2008 Evan Rinehart
14 This program is free software; you can redistribute it and/or
15 modify it under the terms of the GNU General Public License
16 as published by the Free Software Foundation; either version 2
17 of the License, or (at your option) any later version.
19 This program is distributed in the hope that it will be useful,
20 but WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 GNU General Public License for more details.
24 You should have received a copy of the GNU General Public License
25 along with this program; if not, write to
27 The Free Software Foundation, Inc.
28 51 Franklin Street, Fifth Floor
29 Boston, MA 02110-1301, USA
32 decl {\#include <stdlib.h>} {}
34 decl {\#include <fltk/events.h>} {}
36 decl {\#include <fltk/file_chooser.h>} {}
38 decl {\#include "backend.h"} {}
40 decl {\#include "util.h"} {}
42 decl {\#include "uihelper.h"} {}
44 decl {\#include "config.h"} {}
46 decl {extern UI* ui;} {}
52 {fltk::Window} main_window {
54 callback {config_window->hide();
56 action_window->hide();
61 xywh {31 41 640 480} resizable
62 extra_code {\#include <unistd.h>
65 \#include "trackmodule.h"
66 o->size_range(640,455);
67 o->resize(640,455);} visible
69 {fltk::Group} {} {open
70 xywh {0 0 640 445} resizable
72 {fltk::Group} song_edit {
76 xywh {0 0 255 445} box FLAT_BOX
78 {fltk::Widget} track_info {
80 xywh {0 15 255 415} resizable
81 extra_code {\#include "trackinfo.h"}
86 callback {ui->track_info->toggle_controls();}
90 {fltk::Group} {} {open
93 {fltk::Widget} song_timeline {
95 xywh {0 0 370 15} resizable
96 extra_code {o->scale=16;
101 {fltk::Group} song_scrollgroup {
102 xywh {255 15 385 430} resizable
104 {fltk::Widget} arranger {
106 xywh {0 0 370 415} resizable box FLAT_BOX
107 extra_code {\#include "seq.h"
108 \#include "arranger.h"}
111 {fltk::Scrollbar} song_vscroll {
114 {fltk::ThumbWheel} song_hscroll {
115 xywh {0 415 370 15} maximum 10000 step 10
119 {fltk::Group} pattern_edit {open
120 xywh {0 0 640 445} hide
122 {fltk::Group} {} {open
123 xywh {45 0 595 445} resizable
128 {fltk::Widget} pattern_timeline {
130 xywh {0 0 580 15} resizable box FLAT_BOX
131 extra_code {\#include "timeline.h"
136 {fltk::Group} pattern_scrollgroup {open
137 xywh {0 15 595 355} resizable
139 {fltk::Widget} piano_roll {
141 xywh {0 0 580 340} resizable box FLAT_BOX
142 extra_code {\#include "pianoroll.h"}
145 {fltk::Scrollbar} pattern_vscroll {
148 {fltk::ThumbWheel} pattern_hscroll {selected
155 {fltk::Widget} event_edit {
157 xywh {0 0 580 75} resizable box FLAT_BOX
158 extra_code {\#include "eventedit.h"}
161 {fltk::Widget} event_menu {
162 xywh {0 0 580 75} hide box FLAT_BOX
163 extra_code {\#include "eventmenu.h"}
166 {fltk::Button} event_menu_button {
168 callback {if(o->state()==0){
169 ui->event_menu->hide();
170 ui->event_edit->show();
173 ui->event_edit->hide();
174 ui->event_edit->recount_has();
175 ui->event_menu->show();
177 tooltip {pick event type}
179 extra_code {o->type(fltk::Button::TOGGLE);}
183 callback {ui->event_edit->label_flag = o->state();
184 ui->event_edit->redraw();}
185 tooltip {toggle event value labels}
187 extra_code {o->type(fltk::Button::TOGGLE);}
191 callback {ui->event_edit->clear_events();}
192 tooltip {clear these events}
197 callback {ui->event_edit->clear_non_note_events();}
198 tooltip {clear all non note events in pattern}
203 callback {ui->event_edit->clear_all_events();}
204 tooltip {clear everything}
205 xywh {580 60 15 15} labelcolor 0xff000000
209 {fltk::Group} {} {open
210 xywh {0 0 45 445} horizontal
216 {fltk::Group} {} {open
217 xywh {0 15 45 340} resizable
219 {fltk::Widget} track_select {
222 extra_code {\#include "trackselect.h"}
225 {fltk::Widget} sample_view {
228 extra_code {\#include "sampleview.h"}
231 {fltk::Widget} keyboard {
234 extra_code {\#include "keyboard.h"}
240 callback {show_song_edit();}
247 xywh {0 445 640 35} box UP_BOX
249 {fltk::Button} play_button {
251 callback {press_play();}
252 xywh {5 5 25 25} labelcolor 0x800000
254 {fltk::Button} stop_button {
256 callback {press_stop();}
257 xywh {35 5 25 25} labelcolor 0x800000
259 {fltk::Button} record_button {
261 callback {toggle_backend_recording();}
262 xywh {65 5 25 25} labelcolor 0xff000000
263 extra_code {o->type(fltk::Button::TOGGLE);}
265 {fltk::Widget} metronome {
267 xywh {95 5 25 25} color 56 labelcolor 0xffffff00
268 extra_code {\#include <metronome.h>}
271 {fltk::Group} {} {open
272 xywh {125 0 20 35} resizable
274 {fltk::Group} pattern_buttons {
275 xywh {145 5 310 25} hide
277 {fltk::Button} qbutton4 {
278 callback {set_quant(4);}
280 extra_code {o->type(fltk::Button::TOGGLE);}
282 {fltk::Button} qbutton8 {
283 callback {set_quant(8);}
285 extra_code {o->type(fltk::Button::TOGGLE);}
287 {fltk::Button} qbutton16 {
288 callback {set_quant(16);}
290 extra_code {o->type(fltk::Button::TOGGLE);
293 {fltk::Button} qbutton32 {
294 callback {set_quant(32);}
296 extra_code {o->type(fltk::Button::TOGGLE);}
298 {fltk::Button} qbutton64 {
299 callback {set_quant(64);}
301 extra_code {o->type(fltk::Button::TOGGLE);}
303 {fltk::Button} qbutton128 {
304 callback {set_quant(128);}
306 extra_code {o->type(fltk::Button::TOGGLE);}
308 {fltk::Button} qbutton0 {
309 callback {set_quant(0);}
311 extra_code {o->type(fltk::Button::TOGGLE);}
313 {fltk::Button} quant1_button {
315 tooltip {quantize selected notes}
318 {fltk::Button} quant0_button {
320 tooltip {quantize length of selected notes}
323 {fltk::Button} tool_button {
325 callback {toggle_tool();}
329 {fltk::Group} song_buttons {
332 {fltk::Button} color_toggle {
333 callback {arranger->color_flag = o->state();}
336 extra_code {o->type(fltk::Button::TOGGLE);}
338 {fltk::Button} unclone_button {
340 tooltip {unclone selected block}
343 {fltk::Button} join_button {
345 tooltip {join selected blocks}
348 {fltk::Button} split_button {
350 tooltip {split selected block}
354 {fltk::Button} loop_toggle {
355 callback {toggle_loop();}
356 tooltip {toggle looping}
358 extra_code {o->type(fltk::Button::TOGGLE);}
360 {fltk::Button} config_button {
362 callback {if(o->state()){
363 ui->config_window->show();
366 ui->config_window->hide();
368 tooltip configuration
370 extra_code {o->type(fltk::Button::TOGGLE);}
372 {fltk::Button} scope_button {
373 callback {if(o->state()){
374 ui->scope_window->show();
377 ui->scope_window->hide();
381 extra_code {o->type(fltk::Button::TOGGLE);}
383 {fltk::Button} file_button {
384 callback {if(o->state()){
385 ui->action_window->show();
388 ui->action_window->hide();
392 extra_code {\#include "saveload.h"
393 o->type(fltk::Button::TOGGLE);}
395 {fltk::Button} help_button {
396 callback {if(o->state()){
397 ui->help_window->show();
400 ui->help_window->hide();
404 extra_code {o->type(fltk::Button::TOGGLE);}
408 {fltk::Window} config_window {
410 xywh {52 125 320 285} hide
412 {fltk::TabGroup} {} {open
417 xywh {145 15 170 265} horizontal
419 {fltk::ValueInput} beats_per_measure {
420 label {beats per measure}
421 callback {if(o->value() > o->maximum())
422 o->value(o->maximum());
423 if(o->value() < o->minimum())
424 o->value(o->minimum());
425 set_beats_per_measure((int)o->value());}
426 xywh {5 5 45 20} minimum 1 maximum 31 step 1 value 4
428 {fltk::ValueInput} measures_per_phrase {
429 label {measures per phrase}
430 callback {if(o->value() > o->maximum())
431 o->value(o->maximum());
432 if(o->value() < o->minimum())
433 o->value(o->minimum());
434 set_measures_per_phrase((int)o->value());}
435 xywh {5 30 45 20} maximum 128 step 1 value 4
437 {fltk::ValueOutput} bpm_output {
439 xywh {5 55 45 20} minimum 1 maximum 1000 step 1 value 120
441 {fltk::ThumbWheel} bpm_wheel {
442 callback {set_bpm((int)o->value());
443 ui->bpm_output->value(o->value());}
444 xywh {55 55 105 20} align 4 minimum 1 maximum 1000 step 1 value 120
446 {fltk::ValueInput} measures_until_record {
447 label {measures until record}
448 callback {if(o->value() > o->maximum())
449 o->value(o->maximum());
450 if(o->value() < o->minimum())
451 o->value(o->minimum());
452 set_measures_until_record((int)o->value());}
453 xywh {5 80 45 20} maximum 128 step 1 value 1
455 {fltk::CheckButton} check_alwayscopy {
456 label {always hard copy}
457 callback {set_alwayscopy(o->value());}
458 tooltip {instead of making a linked clone when you copy a block in the song view.}
459 xywh {5 105 25 25} align 4
461 {fltk::CheckButton} check_autotrackname {
462 label {auto track name}
463 callback {set_autotrackname(o->value());}
464 tooltip {Fill in GM instruments for track names when you change the program.}
465 xywh {145 105 25 25} align 4
467 {fltk::CheckButton} check_passthru {
468 label {record pass-thru}
469 callback {set_passthru(o->value());}
470 tooltip {Echo midi input to midi output.}
471 xywh {5 130 25 26} horizontal align 4 value 1
473 {fltk::CheckButton} check_playinsert {
474 label {play note insertion}
475 callback {set_playinsert(o->value());}
476 tooltip {Send midi note on when you create notes.}
477 xywh {145 130 25 26} horizontal align 4 value 1
479 {fltk::CheckButton} check_recordonchan {
480 label {record on channel}
481 callback {set_recordonchan(o->value());}
482 tooltip {Record on first track that matches channel of midi input instead of selected track.}
483 xywh {5 155 25 25} align 4
485 {fltk::CheckButton} check_playmove {
486 label {play note move}
487 callback {set_playmove(o->value());}
488 tooltip {Send midi note on when you move notes.}
489 xywh {145 155 25 26} horizontal align 4 value 1
491 {fltk::CheckButton} check_follow {
492 label {follow playback}
493 callback {set_follow(o->value());}
494 tooltip {Auto scroll horizontally when play head leaves viewing area.}
495 xywh {5 179 25 26} horizontal align 4 value 1
497 {fltk::ValueInput} default_velocity {
498 label {default velocity}
499 callback {if(o->value() > o->maximum())
500 o->value(o->maximum());
501 if(o->value() < o->minimum())
502 o->value(o->minimum());
503 set_defaultvelocity((int)o->value());}
504 xywh {120 180 45 20} maximum 127 step 1 value 96
506 {fltk::Choice} menu_recordmode {
507 label {record mode} open
512 callback {set_recordmode(0);}
516 callback {set_recordmode(1);}
520 callback {set_recordmode(2);}
523 {fltk::Choice} menu_rob {
524 label {record outside block} open
529 callback {set_robmode(0);}
533 callback {set_robmode(1);}
537 callback {set_robmode(2);}
543 xywh {0 15 320 270} hide
545 {fltk::Widget} kg_l0 {
547 xywh {35 5 45 15} align 4
550 {fltk::Widget} kg_l1 {
552 xywh {35 20 45 15} align 4
555 {fltk::Widget} kg_l2 {
557 xywh {35 35 45 15} align 4
560 {fltk::Widget} kg_l3 {
562 xywh {35 50 45 15} align 4
565 {fltk::Widget} kg_l4 {
567 xywh {35 65 45 15} align 4
570 {fltk::Widget} kg_l5 {
572 xywh {35 80 45 15} align 4
575 {fltk::Widget} kg_l6 {
577 xywh {35 95 45 15} align 4
580 {fltk::Widget} kg_l7 {
582 xywh {35 110 45 15} align 4
585 {fltk::Widget} kg_l8 {
587 xywh {35 125 45 15} align 4
590 {fltk::Widget} kg_l9 {
592 xywh {35 140 45 15} align 4
595 {fltk::Widget} kg_l10 {
598 xywh {35 155 45 15} align 4
601 {fltk::Widget} kg_l11 {
603 xywh {35 170 45 15} align 4
606 {fltk::Widget} kg_l12 {
608 xywh {35 185 45 15} align 4
611 {fltk::Widget} kg_l13 {
613 xywh {35 200 45 15} align 4
616 {fltk::Widget} kg_l14 {
618 xywh {35 215 45 15} align 4
621 {fltk::Widget} kg_l15 {
623 xywh {35 230 45 15} align 4
626 {fltk::Widget} kg_l16 {
628 xywh {35 245 45 15} align 4
631 {fltk::Widget} kg_u0 {
633 xywh {130 5 45 15} align 4
636 {fltk::Widget} kg_u1 {
638 xywh {130 20 45 15} align 4
641 {fltk::Widget} kg_u2 {
643 xywh {130 35 45 15} align 4
646 {fltk::Widget} kg_u3 {
648 xywh {130 50 45 15} align 4
651 {fltk::Widget} kg_u4 {
653 xywh {130 65 45 15} align 4
656 {fltk::Widget} kg_u5 {
658 xywh {130 80 45 15} align 4
661 {fltk::Widget} kg_u6 {
663 xywh {130 95 45 15} align 4
666 {fltk::Widget} kg_u7 {
668 xywh {130 110 45 15} align 4
671 {fltk::Widget} kg_u8 {
673 xywh {130 125 45 15} align 4
676 {fltk::Widget} kg_u9 {
678 xywh {130 140 45 15} align 4
681 {fltk::Widget} kg_u10 {
683 xywh {130 155 45 15} align 4
686 {fltk::Widget} kg_u11 {
688 xywh {130 170 45 15} align 4
691 {fltk::Widget} kg_u12 {
693 xywh {130 185 45 15} align 4
696 {fltk::Widget} kg_u13 {
698 xywh {130 200 45 15} align 4
701 {fltk::Widget} kg_u14 {
703 xywh {130 215 45 15} align 4
706 {fltk::Widget} kg_u15 {
708 xywh {130 230 45 15} align 4
711 {fltk::Widget} kg_u16 {
713 xywh {130 245 45 15} align 4
716 {fltk::Widget} kg_u17 {
718 xywh {265 5 45 15} align 4
721 {fltk::Widget} kg_u18 {
723 xywh {265 20 45 15} align 4
726 {fltk::Widget} kg_u19 {
728 xywh {265 35 45 15} align 4
731 {fltk::Widget} kg_u20 {
733 xywh {265 50 45 15} align 4
736 {fltk::Widget} kg_zi {
738 xywh {265 65 45 15} align 4
741 {fltk::Widget} kg_zo {
743 xywh {265 80 45 15} align 4
746 {fltk::Widget} kg_ou {
748 xywh {265 95 45 15} align 4
751 {fltk::Widget} kg_od {
753 xywh {265 110 45 15} align 4
759 xywh {0 15 320 270} hide
782 {fltk::Window} help_window {
784 xywh {519 345 580 370} hide resizable
785 extra_code {o->size_range(580,370);}
787 {fltk::TabGroup} {} {open
792 xywh {0 25 580 345} resizable
794 {fltk::Input} title_text {
798 {fltk::Input} author_text {
802 {fltk::TextEditor} info_text {
803 xywh {5 55 570 285} resizable textfont 4
808 xywh {0 25 580 345} hide
810 {fltk::TextDisplay} {} {
811 xywh {5 5 570 335} resizable textfont 4
812 extra_code {load_text(o,ROOT_DATA_DIR"doc/controls.txt");}
817 xywh {0 25 580 345} hide
819 {fltk::TextDisplay} {} {
820 xywh {5 5 570 335} resizable textfont 4
821 extra_code {load_text(o,ROOT_DATA_DIR"doc/guide.txt");}
826 xywh {0 25 580 345} hide
828 {fltk::TextDisplay} {} {
829 xywh {5 5 570 335} resizable textfont 4
830 extra_code {load_text(o,ROOT_DATA_DIR"doc/license.txt");}
835 xywh {0 25 580 345} hide
837 {fltk::TextDisplay} {} {
838 xywh {5 5 570 335} resizable textfont 4
839 extra_code {load_text(o,ROOT_DATA_DIR"doc/README");}
844 {fltk::Window} action_window {
846 xywh {286 302 100 130} horizontal hide
850 callback {reset_song();}
855 callback {action_window->hide();
861 callback {action_window->hide();
862 save(fltk::file_chooser("save file",NULL,get_last_dir()));}
867 callback {action_window->hide();
868 if(load(fltk::file_chooser("open file",NULL,get_last_dir()))<0){
875 callback {action_window->hide();
876 if(loadsmf(fltk::file_chooser("import file",NULL,get_last_dir()))<0){
883 callback {action_window->hide();
884 savesmf(fltk::file_chooser("export file",NULL,get_last_dir()));}
888 {fltk::Window} scope_window {
890 xywh {647 310 425 280} hide resizable
892 {fltk::TextDisplay} scope {
893 xywh {5 5 415 245} textfont 4 color 0x280000 textcolor 0xff0000
894 extra_code {o->wrap_mode(1);}
901 callback {if(o->state()){
908 extra_code {o->type(fltk::Button::TOGGLE);}
910 {fltk::InvisibleBox} {} {
911 xywh {45 0 95 20} resizable
915 code {loop_toggle->image(fltk::SharedImage::get(ROOT_DATA_DIR"gfx/loop.gif"));
916 color_toggle->image(fltk::SharedImage::get(ROOT_DATA_DIR"gfx/color.gif"));
917 scope_button->image(fltk::SharedImage::get(ROOT_DATA_DIR"gfx/conf.gif"));
918 file_button->image(fltk::SharedImage::get(ROOT_DATA_DIR"gfx/file.gif"));
919 help_button->image(fltk::SharedImage::get(ROOT_DATA_DIR"gfx/help.gif"));
921 qbutton4->image(fltk::SharedImage::get(ROOT_DATA_DIR"gfx/q4.gif"));
922 qbutton8->image(fltk::SharedImage::get(ROOT_DATA_DIR"gfx/q8.gif"));
923 qbutton16->image(fltk::SharedImage::get(ROOT_DATA_DIR"gfx/q16.gif"));
924 qbutton32->image(fltk::SharedImage::get(ROOT_DATA_DIR"gfx/q32.gif"));
925 qbutton64->image(fltk::SharedImage::get(ROOT_DATA_DIR"gfx/q64.gif"));
926 qbutton128->image(fltk::SharedImage::get(ROOT_DATA_DIR"gfx/q128.gif"));
927 qbutton0->image(fltk::SharedImage::get(ROOT_DATA_DIR"gfx/q0.gif"));} {}
928 code {track_info->set_rec(0);} {}
929 code {start_monitor();} {}
930 code {main_window->show();} {}