2015-01-04 01:34:04 +00:00
|
|
|
#include "dqframe.hpp"
|
|
|
|
|
|
|
|
using std::cout;
|
|
|
|
using std::endl;
|
|
|
|
using std::string;
|
|
|
|
using std::to_string;
|
|
|
|
|
|
|
|
dqFrame::dqFrame(const wxString& title) : wxFrame(NULL, wxID_ANY, title){
|
2015-01-04 03:10:59 +00:00
|
|
|
wxPanel *panel = new wxPanel(this, wxID_ANY);
|
|
|
|
wxBoxSizer *mainsizer = new wxBoxSizer(wxHORIZONTAL);
|
|
|
|
wxBoxSizer *datasizer = new wxBoxSizer(wxVERTICAL);
|
|
|
|
wxStaticText *text = new wxStaticText(panel, wxID_ANY, wxEmptyString, wxPoint(25, 80));
|
|
|
|
dqdraw = new dqDraw((wxFrame*)panel);
|
|
|
|
dqdraw->text = text;
|
|
|
|
|
2015-01-04 01:44:46 +00:00
|
|
|
mainsizer->Add(dqdraw, 1,wxEXPAND,0);
|
2015-01-04 03:49:49 +00:00
|
|
|
datasizer->SetMinSize(120, 0);
|
2015-01-04 03:10:59 +00:00
|
|
|
mainsizer->Add(datasizer, 0,wxRIGHT | wxALL,3);
|
|
|
|
datasizer->Add(text, 1,wxEXPAND | wxALL,3);
|
|
|
|
|
|
|
|
panel->SetSizer(mainsizer);
|
|
|
|
//wxTextCtrl* text = new wxTextCtrl(rightpanel,wxID_ANY,wxEmptyString,wxDefaultPosition,wxDefaultSize,wxTE_MULTILINE|wxTE_READONLY);
|
|
|
|
//datasizer->Add(text, 0,wxEXPAND,0);
|
2015-01-04 01:34:04 +00:00
|
|
|
|
|
|
|
}
|