Percents into statistics have now minimum two digits
Package libraries into lib instead of root (package.sh)
This commit is contained in:
parent
5da154cd48
commit
75dfe39a03
2
TODO
2
TODO
|
@ -1,6 +1,6 @@
|
||||||
Version 0.1
|
Version 0.1
|
||||||
|
|
||||||
Statistics (need to update libraries and add months/years label on graph)
|
Statistics (need to add months/years label on graph)
|
||||||
Copy and paste
|
Copy and paste
|
||||||
Import/Export module
|
Import/Export module
|
||||||
Using tabulation to navigate throw interface (Search Panel)
|
Using tabulation to navigate throw interface (Search Panel)
|
||||||
|
|
|
@ -493,7 +493,7 @@ void AccountPanel::UpdateStats()
|
||||||
for(i=0; i<user->GetCategoriesNumber()+1; i++)
|
for(i=0; i<user->GetCategoriesNumber()+1; i++)
|
||||||
{
|
{
|
||||||
percents = ((double) (_categoriesValues[i]*100))/totalDebit;
|
percents = ((double) (_categoriesValues[i]*100))/totalDebit;
|
||||||
_statsGrid->SetCellValue(CATS_STATS+i, 1, wxString::Format(wxT("%.2lf (%d %%)"), _categoriesValues[i], (int)percents));
|
_statsGrid->SetCellValue(CATS_STATS+i, 1, wxString::Format(wxT("%.2lf (%02d %%)"), _categoriesValues[i], (int)percents));
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i=0, accountIt=user->_accounts.begin(); accountIt!=user->_accounts.end(); accountIt++, i++)
|
for (i=0, accountIt=user->_accounts.begin(); accountIt!=user->_accounts.end(); accountIt++, i++)
|
||||||
|
|
|
@ -260,7 +260,7 @@ void StatsPanel::UpdateStats(int monthFrom, int yearFrom, int monthTo, int yearT
|
||||||
{
|
{
|
||||||
_categoriesValues[_categoriesIndexes[categoriesIt->first]] = categoriesIt->second;
|
_categoriesValues[_categoriesIndexes[categoriesIt->first]] = categoriesIt->second;
|
||||||
percents = ((double) (categoriesIt->second*100))/total;
|
percents = ((double) (categoriesIt->second*100))/total;
|
||||||
value = wxString::Format(wxT("%0.2lf (%d%%)"), categoriesIt->second, percents);
|
value = wxString::Format(wxT("%0.2lf (%02d%%)"), categoriesIt->second, percents);
|
||||||
_statsGrid->SetCellValue(_categoriesIndexes[categoriesIt->first], 1, value);
|
_statsGrid->SetCellValue(_categoriesIndexes[categoriesIt->first], 1, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH
|
export LD_LIBRARY_PATH=./lib:$LD_LIBRARY_PATH
|
||||||
./kc
|
./kc
|
||||||
|
|
|
@ -6,10 +6,13 @@ FILE="$DIR.tar.bz2"
|
||||||
|
|
||||||
rm -f $FILE
|
rm -f $FILE
|
||||||
rm -rf $DIR
|
rm -rf $DIR
|
||||||
|
if [ "$1" == "clean" ] ; then
|
||||||
make clean
|
make clean
|
||||||
|
fi
|
||||||
make || (echo "Compilation failed" ; exit 1)
|
make || (echo "Compilation failed" ; exit 1)
|
||||||
mkdir $DIR
|
mkdir -p $DIR/lib
|
||||||
cp -r kc lib/freechart/lib/* lib/wxsqlite3-1.9.9/lib/* init.sql ressources launch_kc.sh TODO CONTRIBUTORS COPYING README README.fr $DIR
|
cp -r kc lib/freechart/lib/* lib/wxsqlite3-1.9.9/lib/* $DIR/lib
|
||||||
|
cp -r kc init.sql ressources launch_kc.sh TODO CONTRIBUTORS COPYING README README.fr $DIR
|
||||||
tar -jcf $FILE $DIR
|
tar -jcf $FILE $DIR
|
||||||
rm -rf $DIR
|
rm -rf $DIR
|
||||||
echo "Packaged !"
|
echo "Packaged !"
|
Loading…
Reference in New Issue
Block a user