-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCGTeaFrame.h
executable file
·53 lines (39 loc) · 1.28 KB
/
CGTeaFrame.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
//
// Created by rostam on 15.10.19.
//
#ifndef CGTEA_CGTEAFRAME_H
#define CGTEA_CGTEAFRAME_H
#include "datatypes.h"
#include <wx/wxprec.h>
#ifndef WX_PRECOMP
#include <wx/wx.h>
#include <wx/sizer.h>
#include <wx/dir.h>
#include "datatypes.h"
#include <string>
#endif
#include <memory>
#include "generators/GeneratorInterface.h"
#include "reports/ReportInterface.h"
#include "actions/ActionInterface.h"
#include "G6Format/G6Format.h"
class CGTeaFrame: public wxFrame {
public:
Graph currentGraph;
CGTeaFrame(const wxString &title, const wxPoint &pos, const wxSize &size);
std::vector<std::unique_ptr<GeneratorInterface>> availableGenerators;
std::vector<std::unique_ptr<ReportInterface>> availableReports;
std::vector<std::unique_ptr<ActionInterface>> availableActions;
// std::tuple<Cycle, Complete, Antiprism> availableGenerators = std::make_tuple(Cycle(), Complete(), Antiprism());
private:
void Generate(wxCommandEvent &event);
void Report(wxCommandEvent &event);
void Layout(wxCommandEvent &event);
void Action(wxCommandEvent &event);
void OnExit(wxCommandEvent &event);
void OnAbout(wxCommandEvent &event);
void Open(wxCommandEvent &event);
void Save(wxCommandEvent &event);
wxDECLARE_EVENT_TABLE();
};
#endif //CGTEA_CGTEAFRAME_H