A canceled load or import does not erase the song.
[epichord.git] / src / uihelper.h
blob0180979124267679dd2dafa622617e7950d16ed1
1 #ifndef uihelper_h
2 #define uihelper_h
4 /*
5 Epichord - a midi sequencer
6 Copyright (C) 2008 Evan Rinehart
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 as published by the Free Software Foundation; either version 2
11 of the License, or (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to
21 The Free Software Foundation, Inc.
22 51 Franklin Street, Fifth Floor
23 Boston, MA 02110-1301, USA
26 struct conf{
27 int beats_per_minute;
28 int beats_per_measure;
29 int measures_per_phrase;
30 int measures_until_record;
31 int alwayscopy;
32 int autotrackname;
33 int passthru;
34 int playinsert;
35 int recordonchan;
36 int playmove;
37 int follow;
38 int recordmode;
39 int robmode;
40 int defaultvelocity;
43 void load_config();
44 void save_config();
45 void start_monitor();
47 void press_stop();
48 void press_panic();
49 void press_play();
51 void set_quant(int q);
52 void set_songtool(int i);
54 void turnonscope();
55 void turnoffscope();
56 void scope_print(const char* text);
58 void update_config_gui();
60 void set_beats_per_measure(int n);
61 void set_measures_per_phrase(int n);
62 void set_measures_until_record(int n);
64 void set_beats_per_minute(int n);
65 void set_alwayscopy(int v);
66 void set_autotrackname(int v);
67 void set_passthru(int v);
68 void set_playinsert(int v);
69 void set_recordonchan(int v);
70 void set_playmove(int v);
71 void set_follow(int v);
72 void set_recordmode(int n);
73 void set_robmode(int n);
74 void set_defaultvelocity(int n);
76 void show_song_edit();
77 void show_pattern_edit();
79 void toggle_tool();
81 void reset_song();
84 void add_track(track* t);
85 void remove_track(int n);
88 void init_gui();
90 #endif