Fixed bug in resize again.
[epichord.git] / src / uihelper.h
blob2ad41c7270dffc1d2d86ad0190ca8d79ef5e674b
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;
41 int trackinit;
44 void load_config();
45 void save_config();
46 void start_monitor();
48 void press_stop();
49 void press_panic();
50 void press_play();
52 void set_quant(int q);
53 void set_songtool(int i);
55 void turnonscope();
56 void turnoffscope();
57 void scope_print(const char* text);
59 void update_config_gui();
61 void set_beats_per_measure(int n);
62 void set_measures_per_phrase(int n);
63 void set_measures_until_record(int n);
65 void set_beats_per_minute(int n);
66 void set_alwayscopy(int v);
67 void set_autotrackname(int v);
68 void set_passthru(int v);
69 void set_playinsert(int v);
70 void set_recordonchan(int v);
71 void set_playmove(int v);
72 void set_follow(int v);
73 void set_recordmode(int n);
74 void set_robmode(int n);
75 void set_defaultvelocity(int n);
76 void set_trackinit(int n);
78 void show_song_edit();
79 void show_pattern_edit();
81 void toggle_tool();
83 void reset_song();
86 void add_track(track* t);
87 void remove_track(int n);
89 void dump_pattern();
91 void init_gui();
92 void shutdown_gui();
94 #endif