2010-05-17 18:03:21 +02:00
|
|
|
#ifndef PREFERENCESPANEL_H
|
|
|
|
#define PREFERENCESPANEL_H
|
|
|
|
|
|
|
|
#include <wx/wx.h>
|
|
|
|
#include <wx/grid.h>
|
|
|
|
#include <wx/treectrl.h>
|
|
|
|
#include <wx/statbox.h>
|
|
|
|
#include <wx/gbsizer.h>
|
|
|
|
#include <wx/stattext.h>
|
|
|
|
#include <wx/textctrl.h>
|
|
|
|
|
|
|
|
#include <controller/KissCount.h>
|
|
|
|
#include "wxUI.h"
|
|
|
|
#include <model/model.h>
|
|
|
|
|
|
|
|
class wxUI;
|
|
|
|
class KissCount;
|
|
|
|
|
|
|
|
class PreferencesPanel: public wxPanel
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
PreferencesPanel(KissCount* kiss, wxUI *parent);
|
|
|
|
void ChangeUser();
|
|
|
|
|
2010-06-21 10:53:43 +02:00
|
|
|
void OnAccountModified(wxGridEvent& event);
|
|
|
|
void OnCategoryModified(wxGridEvent& event);
|
|
|
|
|
2010-05-17 18:03:21 +02:00
|
|
|
private:
|
|
|
|
KissCount* _kiss;
|
|
|
|
wxUI* _wxUI;
|
2010-06-21 10:53:43 +02:00
|
|
|
wxGrid* _accountsGrid;
|
2010-05-17 18:03:21 +02:00
|
|
|
wxGrid* _categoriesGrid;
|
2010-06-21 10:53:43 +02:00
|
|
|
|
|
|
|
void InitAccounts(User* user);
|
|
|
|
void InitCategories(User* user);
|
2010-05-17 18:03:21 +02:00
|
|
|
|
2010-06-21 10:53:43 +02:00
|
|
|
DECLARE_EVENT_TABLE();
|
2010-05-17 18:03:21 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|