This repository has been archived by the owner on Mar 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
main_frame.h
75 lines (58 loc) · 1.73 KB
/
main_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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/***************************************************************
* Name: main_frame.h
* Purpose: Defines Application Frame
* Author: Alatar, MZet
* Created: 2012-12-16
* Copyright: Alatar, MZet
* License:
**************************************************************/
#ifndef MAIN_FRAME_H
#define MAIN_FRAME_H
#include <wx/wx.h>
#include <wx/grid.h>
#include <wx/propgrid/propgrid.h>
#include <wx/notebook.h>
#include <wx/laywin.h>
class Project;
class MainFrame : public wxFrame
{
public:
MainFrame();
~MainFrame();
void CreateMenu();
private:
void OnFileOpen(wxCommandEvent& event);
void OnFileSave(wxCommandEvent& event);
void OnFileQuit(wxCommandEvent& event);
void OnHelpAbout(wxCommandEvent& event);
void OnSashDrag(wxSashEvent& event);
void OnSize(wxSizeEvent& event);
void OnPropertyGridChanged(wxPropertyGridEvent& event);
void OnCompGridColSort(wxGridEvent& event);
void OnTypeGridColSort(wxGridEvent& event);
void OnPatternGridColSort(wxGridEvent& event);
void OnFidmarkGridColSort(wxGridEvent& event);
void OnProjectLoaded(wxCommandEvent& event);
void OnProjectUpdated(wxCommandEvent& event);
void BuildCompGrid();
void BuildTypeGrid();
void BuildPatternGrid();
void BuildFidMarkGrid();
void BuildProjectPG();
void UpdateCompGrid();
void UpdateTypeGrid();
void UpdatePatternGrid();
void UpdateFidMarkGrid();
Project *m_project;
wxPropertyGrid *m_projectPG;
wxNotebook *m_book;
wxGrid *m_compGrid;
wxGrid *m_typeGrid;
wxGrid *m_patternGrid;
wxGrid *m_fidMarkGrid;
wxTextCtrl *m_logText;
wxSashLayoutWindow *m_bottomLayoutWin;
wxSashLayoutWindow *m_rightLayoutWin;
DECLARE_EVENT_TABLE()
};
#endif // MAIN_FRAME_H