mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-04 16:51:37 -05:00
-Updated GUI load sample filter, Aesthetic improvements
This commit is contained in:
parent
7366434d9c
commit
e84a39357f
2 changed files with 5 additions and 76 deletions
10
src/gui.cxx
10
src/gui.cxx
|
@ -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
71
test.sh
|
@ -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
|
Loading…
Add table
Reference in a new issue