Database is now at ~/.kisscount/kc.bdd

This commit is contained in:
2011-02-20 14:22:31 +01:00
parent 46df6c01d3
commit 16e90b8fc0
9 changed files with 146 additions and 93 deletions

View File

@@ -79,7 +79,7 @@ SearchPanel::SearchPanel(KissCount* kiss, wxUI *parent) : KissPanel(kiss, parent
_category = new wxCheckListBox(this, wxID_ANY);
_category->Append(_("Unknown"));
for(categoryIt = user->_categories.begin(); categoryIt != user->_categories.end(); categoryIt++)
_category->Append(categoryIt->name);
_category->Append(wxGetTranslation(categoryIt->name));
wxString stypes[] = {_("Fix"), _("Non fix"), _("Checked"), _("Not checked")};
_optype = new wxCheckListBox(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 4, stypes);
@@ -381,7 +381,6 @@ static void ChangeName(Operation* op, void** params)
void SearchPanel::OnButtonRename(wxCommandEvent& event)
{
std::vector<int> rows;
User* user = _kiss->GetUser();
std::vector<Operation>::iterator it;
wxString category;
wxString description;

View File

@@ -84,7 +84,7 @@ StatsPanel::StatsPanel(KissCount* kiss, wxUI *parent) : KissPanel(kiss, parent),
categoryIt++, i++)
{
_categoriesIndexes[categoryIt->id] = i;
_categories[i] = categoryIt->name ;
_categories[i] = wxGetTranslation(categoryIt->name) ;
}
DEFAULT_FONT(font);