-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGUI.h
More file actions
69 lines (58 loc) · 1.61 KB
/
Copy pathGUI.h
File metadata and controls
69 lines (58 loc) · 1.61 KB
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
#pragma once
#include <wx/artprov.h>
#include <wx/xrc/xmlres.h>
#include <wx/string.h>
#include <wx/bitmap.h>
#include <wx/image.h>
#include <wx/icon.h>
#include <wx/gdicmn.h>
#include <wx/button.h>
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/settings.h>
#include <wx/stattext.h>
#include <wx/sizer.h>
#include <wx/panel.h>
#include <wx/frame.h>
#include <wx/filedlg.h>
#include <wx/textfile.h>
#include <iostream>
#include "Instruction.h"
#include <wx/dcbuffer.h>
#include <wx/dcclient.h>
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
/// Class MyFrame
///////////////////////////////////////////////////////////////////////////////
class MyFrame : public wxFrame
{
private:
Instruction inst;
std::vector<Points> end_frame_points;
int current_fractal;
protected:
wxButton* m_button3;
wxButton* m_button4;
wxButton* m_button5;
wxStaticText* m_staticText2;
wxPanel* m_panel2;
enum {
ID_WXBUTTON_FILE = 1001,
ID_WXBUTTON_MORPH = 1002,
ID_WXBUTTON_NEXT = 1003
};
public:
MyFrame( wxWindow* parent,
wxWindowID id = wxID_ANY,
const wxString& title = wxEmptyString,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxSize( 562,348 ),
long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL);
~MyFrame();
void draw();
void windowOnResize(wxSizeEvent& e);
void writeButtonOnClick(wxCommandEvent& e);
void morphButtonOnClick(wxCommandEvent& e);
void nextButtonOnClick(wxCommandEvent& e);
Instruction deserialize(wxString& str, wxTextFile& tfile);
};