-
Notifications
You must be signed in to change notification settings - Fork 0
/
home_frame.h
47 lines (34 loc) · 915 Bytes
/
home_frame.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef LTYY_HOME_FRAME_H_
#define LTYY_HOME_FRAME_H_
#include <wx/wxprec.h>
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
#include "frame_event.h"
#include <memory>
#include <wx/listctrl.h>
#include "home_controller.h"
#include "bitmap_btn_panel.h"
enum
{
ID_Hello = 1
};
class HomeFrame : public wxFrame,
public FramePositionEvent {
public:
HomeFrame();
HomeController* GetController();
void RefreshSectionStatus();
private:
void OnHello(wxCommandEvent& event);
void OnExit(wxCommandEvent& event);
void OnAbout(wxCommandEvent& event);
// FramePositionEvent
void OnActiveEvent(wxEvent& event) override;
void OnCustomerDashBoard(wxCommandEvent& event);
void OnPaint(wxPaintEvent& WXUNUSED(event));
private:
std::unique_ptr<HomeController> controller_;
std::vector<BitmapBtnPanel*> sections_;
};
#endif // LTYY_HOME_FRAME_H_