-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainPanel.cpp
36 lines (28 loc) · 1.14 KB
/
MainPanel.cpp
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
#include "MainPanel.h"
MainPanel::MainPanel(wxWindow* parent)
: wxPanel (parent, wxID_ANY) {
filesList = new wxListView(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_LIST);
testText = new wxStaticText(this, wxID_STATIC, wxT("Przykładowy text."));
wxVector<wxPoint2DDouble> points1;
points1.push_back(wxPoint2DDouble(-0.2, 3.5));
points1.push_back(wxPoint2DDouble(0.5, 2.5));
points1.push_back(wxPoint2DDouble(1.2, 0.1));
points1.push_back(wxPoint2DDouble(1.5, 1.6));
points1.push_back(wxPoint2DDouble(2, 1.8));
points1.push_back(wxPoint2DDouble(2.2, 2.1));
points1.push_back(wxPoint2DDouble(2.7, 2));
wxScatterPlotDataset::ptr dataset1(
new wxScatterPlotDataset(
wxColor(250, 10, 10, 0x28),
wxColor(250, 10, 20, 0x98),
points1)
);
mainPlotData.AddDataset(dataset1);
mainPlot = new wxScatterPlotCtrl(this, wxID_ANY, mainPlotData);
mainSizer = new wxBoxSizer(wxHORIZONTAL);
mainSizer->Add(filesList, 1, wxEXPAND | wxALL, 5);
mainSizer->Add(mainPlot, 1, wxEXPAND | wxALL, 5);
SetSizer(mainSizer);
mainSizer->Fit(this);
mainSizer->SetSizeHints(this);
}