Some structure changes. Added saving of window size
This commit is contained in:
@@ -88,7 +88,7 @@ VMainFrame::VMainFrame( wxWindow* parent, wxWindowID id, const wxString& title,
|
||||
this->Layout();
|
||||
|
||||
// Connect Events
|
||||
this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( VMainFrame::onExitClick ) );
|
||||
this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( VMainFrame::onWindowClose ) );
|
||||
this->Connect( miOpenGrid->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( VMainFrame::onOpenGridClick ) );
|
||||
this->Connect( miGenerate->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( VMainFrame::onGenerateClick ) );
|
||||
this->Connect( miExport->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( VMainFrame::onExportClick ) );
|
||||
@@ -102,7 +102,7 @@ VMainFrame::VMainFrame( wxWindow* parent, wxWindowID id, const wxString& title,
|
||||
VMainFrame::~VMainFrame()
|
||||
{
|
||||
// Disconnect Events
|
||||
this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( VMainFrame::onExitClick ) );
|
||||
this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( VMainFrame::onWindowClose ) );
|
||||
this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( VMainFrame::onOpenGridClick ) );
|
||||
this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( VMainFrame::onGenerateClick ) );
|
||||
this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( VMainFrame::onExportClick ) );
|
||||
|
||||
@@ -51,7 +51,7 @@ class VMainFrame : public wxFrame
|
||||
wxButton* bGenerate;
|
||||
|
||||
// Virtual event handlers, overide them in your derived class
|
||||
virtual void onExitClick( wxCloseEvent& event ) { event.Skip(); }
|
||||
virtual void onWindowClose( wxCloseEvent& event ) { event.Skip(); }
|
||||
virtual void onOpenGridClick( wxCommandEvent& event ) { event.Skip(); }
|
||||
virtual void onGenerateClick( wxCommandEvent& event ) { event.Skip(); }
|
||||
virtual void onExportClick( wxCommandEvent& event ) { event.Skip(); }
|
||||
|
||||
Reference in New Issue
Block a user