-Updated GUI load sample filter, Aesthetic improvements

main
Harry van Haaren 2013-12-08 22:58:15 +00:00
parent 7366434d9c
commit e84a39357f
2 changed files with 5 additions and 76 deletions

View File

@ -262,17 +262,17 @@ void Gui::selectLoadSample( int track, int scene )
Fl_Native_File_Chooser fnfc;
fnfc.title("Pick a file");
fnfc.type(Fl_Native_File_Chooser::BROWSE_FILE);
fnfc.filter("Wav\t*.wav");
fnfc.filter("Audio\t{*.aiff,*.wav,*.flac}");
std::string defLoadPath = gui->getDiskReader()->getLastLoadedSamplePath();
fnfc.directory( defLoadPath.c_str() ); // default directory to use
// Show native chooser
switch ( fnfc.show() ) {
case -1: printf("ERROR: %s\n", fnfc.errmsg()); break; // ERROR
case 1: printf("CANCEL\n"); break; // CANCEL
default: printf("Loading directory: %s\n", fnfc.filename());
// update path and load it
case -1: /*printf("ERROR: %s\n", fnfc.errmsg()); */ break; // ERROR
case 1: /*(printf("CANCEL\n"); */ break; // CANCEL
default: /*printf("Loading directory: %s\n", fnfc.filename()); */
path = fnfc.filename();
break;
}

71
test.sh
View File

@ -1,71 +0,0 @@
# Tup with CONFIG_LUPPP_BUILD_TESTS=y
# Compile with:
# define BUILD_TESTS
# define BUILD_COVERAGE_TEST
# -lgcov
# run the tests:
# Luppp quits after tests are finished
# gcov scrapes .gcna / .gcdo files, produces .gcov files
# cp source files into dir: needed for analysis by lcov
# lcov scrapes .gcov files into lcov.info
# genhtml produces index.html from lcov.info
#set -e
make && ./bin/luppp -test -stopAfterTest
if [ $? -eq 0 ]; then
notify-send -t 5 "Luppp: Tests passed..."
else
notify-send -t 10 -u critical "Luppp: Build / Test Failed!"
fi
exit
#####################################
FILE=buildTest/build.success
rm -f $(FILE)
tup upd buildTest/ ;
if [ ! -f $FILE ]; then
echo "File not found!"
fi
if [ -f $FILE ];
then
echo "File $FILE exists."
else
notify-send -t 0 --urgency=critical "Luppp: Compilation FAILURE!"
exit
fi
sleep 1
cd buildTest/
./luppp
if [ $? -eq 0 ]; then
notify-send -t 5 "Luppp: Tests passed successfully..."
echo OK
else
notify-send -t 5 -u critical "Luppp: Test FAILURE!"
echo FAIL
fi
cd src
gcov -r -b *
cp -r ../../src/* ./
lcov --directory . --capture --output-file lcov.info
genhtml lcov.info
notify-send -t 5 "Luppp: Test data available..."
#firefox src/index.html