Add Delete operation in GridAccount

Fix a bug : Forgot to update stats when there is a modification
This commit is contained in:
2011-11-01 18:01:17 +01:00
parent a9bcdcc733
commit 6c4ee9dec3
8 changed files with 140 additions and 151 deletions

View File

@@ -22,16 +22,11 @@
#include "AccountPanel.hpp"
/*#include "PreferencesPanel.hpp"
#include "UsersDialog.hpp"
#include "GenerateDialog.hpp"
#include "SearchPanel.hpp"
#include "StatsPanel.hpp"
#include "ImportPanel.hpp"
#include "ExportPanel.hpp"
#include "grid/wxMyGrid.hpp"
#include "grid/wxGridCellFastBoolEditor.hpp"
#include "grid/wxGridCellButtonRenderer.hpp"
#include "grid/wxGridCellButtonEditor.hpp"
*/
#include "wxUI.hpp"
#include "view.hpp"
@@ -279,6 +274,12 @@ void wxUI::GenerateMonth(int month, int year)
(dynamic_cast<AccountPanel*>(_panels[0]))->GenerateMonth(month, year);
}
void wxUI::UpdateStats()
{
if (_curPanel == _panels[0])
(dynamic_cast<AccountPanel*>(_panels[0]))->UpdateStats();
}
void wxUI::KillMe()
{
std::vector<KissPanel*>::iterator it;