From 306a3865d4874417df3ce35e5a1792d194a0a1c6 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Sat, 30 Jul 2005 16:59:09 +0100 Subject: initial track support --- src/gipfel.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gipfel.cxx') 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 }, -- cgit v1.2.3