diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2005-07-30 16:59:09 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2005-07-30 16:59:09 +0100 |
commit | 306a3865d4874417df3ce35e5a1792d194a0a1c6 (patch) | |
tree | 69d737675fafd18a8ba610e232911ddecc9bd816 /src/gipfel.cxx | |
parent | 02a0aca8283e7acd62eb4223c41a671209e5bf7d (diff) |
initial track support
Diffstat (limited to 'src/gipfel.cxx')
-rw-r--r-- | src/gipfel.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gipfel.cxx b/src/gipfel.cxx index 74dba5e..d5392a0 100644 --- a/src/gipfel.cxx +++ b/src/gipfel.cxx @@ -80,6 +80,11 @@ void open_cb() { } } +void track_cb() { + char *file = fl_file_chooser("Track File?", NULL, NULL); + gipf->load_track(file); +} + void scale_cb(Fl_Slider* o, void*) { if (gipf) { gipf->set_scale(o->value()); @@ -151,6 +156,7 @@ void about_cb() { Fl_Menu_Item menuitems[] = { { "&File", 0, 0, 0, FL_SUBMENU }, + { "Load &Track", FL_CTRL + 't', (Fl_Callback *)track_cb, 0 }, { "&Quit", FL_CTRL + 'q', (Fl_Callback *)quit_cb, 0 }, {0}, { "&Help", 0, 0, 0, FL_SUBMENU }, |