2010-05-14 15:04:01 +02:00
|
|
|
#ifndef WXUI_H
|
|
|
|
#define WXUI_H
|
|
|
|
|
|
|
|
#include <wx/wx.h>
|
|
|
|
#include "AccountPanel.h"
|
|
|
|
#include "ButtonPanel.h"
|
2010-05-17 18:03:21 +02:00
|
|
|
#include "PreferencesPanel.h"
|
2010-05-14 15:04:01 +02:00
|
|
|
#include "UsersDialog.h"
|
|
|
|
#include <controller/KissCount.h>
|
|
|
|
|
|
|
|
class KissCount;
|
|
|
|
class AccountPanel;
|
2010-05-17 18:03:21 +02:00
|
|
|
class PreferencesPanel;
|
2010-05-14 15:04:01 +02:00
|
|
|
|
2010-05-16 10:35:34 +02:00
|
|
|
extern wxString months[12];
|
|
|
|
|
2010-05-14 15:04:01 +02:00
|
|
|
class wxUI: public wxFrame
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
wxUI(KissCount* kiss, const wxString& title, const wxPoint& pos, const wxSize& size);
|
|
|
|
~wxUI();
|
|
|
|
|
|
|
|
void OnQuit(wxCommandEvent& event);
|
|
|
|
void OnAbout(wxCommandEvent& event);
|
|
|
|
|
|
|
|
void ChangeUser();
|
|
|
|
void LoadUser();
|
2010-05-16 10:35:34 +02:00
|
|
|
|
2010-05-17 18:03:21 +02:00
|
|
|
void ShowAccount();
|
|
|
|
void ShowPreferences();
|
|
|
|
|
2010-05-14 15:04:01 +02:00
|
|
|
private:
|
2010-05-17 18:03:21 +02:00
|
|
|
KissCount *_kiss;
|
2010-05-14 15:04:01 +02:00
|
|
|
wxBoxSizer *_hbox;
|
|
|
|
AccountPanel *_accountPanel;
|
2010-05-17 18:03:21 +02:00
|
|
|
PreferencesPanel *_preferencesPanel;
|
|
|
|
wxPanel *_curPanel;
|
|
|
|
|
|
|
|
void ShowPanel(wxPanel* panel);
|
|
|
|
|
|
|
|
DECLARE_EVENT_TABLE();
|
|
|
|
|
2010-05-14 15:04:01 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
ID_Quit = 1,
|
|
|
|
ID_About,
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|