KissCount/src/view/PreferencesPanel.h

52 lines
1.1 KiB
C
Raw Normal View History

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>
2010-07-06 20:59:02 +02:00
#include <wx/bmpcbox.h>
2010-05-17 18:03:21 +02:00
#include <controller/KissCount.h>
#include "wxUI.h"
#include <model/model.h>
2010-06-27 21:39:49 +02:00
#include "PasswordDialog.h"
2010-07-06 20:59:02 +02:00
#include "SupportedLanguages.h"
2010-05-17 18:03:21 +02:00
class wxUI;
class KissCount;
class PreferencesPanel: public wxPanel
{
2010-07-04 16:33:25 +02:00
public:
2010-05-17 18:03:21 +02:00
PreferencesPanel(KissCount* kiss, wxUI *parent);
void ChangeUser();
2010-06-21 10:53:43 +02:00
void OnAccountModified(wxGridEvent& event);
void OnCategoryModified(wxGridEvent& event);
2010-06-27 21:39:49 +02:00
void OnChangeName(wxCommandEvent& event);
void OnChangePassword(wxCommandEvent& event);
2010-07-06 20:59:02 +02:00
void OnLanguageChange(wxCommandEvent& event);
2010-06-27 21:39:49 +02:00
void OnShow(wxShowEvent& event);
void OnKillMe(wxCommandEvent& event);
2010-06-21 10:53:43 +02:00
2010-07-04 16:33:25 +02:00
private:
2010-05-17 18:03:21 +02:00
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-27 21:39:49 +02:00
wxTextCtrl* _name;
2010-07-06 20:59:02 +02:00
wxBitmapComboBox* _language;
2010-06-21 10:53:43 +02:00
void InitAccounts(User* user);
void InitCategories(User* user);
2010-07-06 20:59:02 +02:00
void InitLanguage(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