| 112 | } |
| 113 | |
| 114 | FluxViewerWindowGen::FluxViewerWindowGen( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style ) |
| 115 | { |
| 116 | this->SetSizeHints( wxSize( 200,100 ), wxDefaultSize ); |
| 117 | |
| 118 | wxFlexGridSizer* fgSizer5; |
| 119 | fgSizer5 = new wxFlexGridSizer( 0, 1, 0, 0 ); |
| 120 | fgSizer5->AddGrowableCol( 0 ); |
| 121 | fgSizer5->AddGrowableRow( 0 ); |
| 122 | fgSizer5->SetFlexibleDirection( wxBOTH ); |
| 123 | fgSizer5->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED ); |
| 124 | |
| 125 | fluxviewer = new FluxViewerControl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 ); |
| 126 | fgSizer5->Add( fluxviewer, 1, wxEXPAND, 5 ); |
| 127 | |
| 128 | scrollbar = new wxScrollBar( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSB_HORIZONTAL ); |
| 129 | fgSizer5->Add( scrollbar, 0, wxALIGN_BOTTOM|wxEXPAND, 5 ); |
| 130 | |
| 131 | m_sdbSizer2 = new wxStdDialogButtonSizer(); |
| 132 | m_sdbSizer2OK = new wxButton( this, wxID_OK ); |
| 133 | m_sdbSizer2->AddButton( m_sdbSizer2OK ); |
| 134 | m_sdbSizer2->Realize(); |
| 135 | |
| 136 | fgSizer5->Add( m_sdbSizer2, 1, wxALL|wxEXPAND, 5 ); |
| 137 | |
| 138 | |
| 139 | this->SetSizer( fgSizer5 ); |
| 140 | this->Layout(); |
| 141 | |
| 142 | this->Centre( wxBOTH ); |
| 143 | |
| 144 | // Connect Events |
| 145 | this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( FluxViewerWindowGen::OnClose ) ); |
| 146 | m_sdbSizer2OK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( FluxViewerWindowGen::OnClose ), NULL, this ); |
| 147 | } |
| 148 | |
| 149 | FluxViewerWindowGen::~FluxViewerWindowGen() |
| 150 | { |