// -*- C++ -*- // // generated by wxGlade "faked test version" // // Example for compiling a single file project under Linux using g++: // g++ MyApp.cpp $(wx-config --libs) $(wx-config --cxxflags) -o MyApp // // Example for compiling a multi file project under Linux using g++: // g++ main.cpp $(wx-config --libs) $(wx-config --cxxflags) -o MyApp Dialog1.cpp Frame1.cpp // #include "remove_class_inplace_input.h" // begin wxGlade: ::extracode // end wxGlade MyDialog::MyDialog(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style): wxDialog(parent, id, title, pos, size, wxDEFAULT_DIALOG_STYLE) { // begin wxGlade: MyDialog::MyDialog text_ctrl_1 = new wxTextCtrl(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE); static_line_1 = new wxStaticLine(this, wxID_ANY); button_2 = new wxButton(this, wxID_OK, wxEmptyString); button_1 = new wxButton(this, wxID_CANCEL, wxEmptyString); set_properties(); do_layout(); // end wxGlade } void MyDialog::set_properties() { // begin wxGlade: MyDialog::set_properties SetTitle(_("dialog_1")); button_1->SetDefault(); // end wxGlade } void MyDialog::do_layout() { // begin wxGlade: MyDialog::do_layout wxFlexGridSizer* grid_sizer_1 = new wxFlexGridSizer(3, 1, 0, 0); wxBoxSizer* sizer_1 = new wxBoxSizer(wxHORIZONTAL); grid_sizer_1->Add(text_ctrl_1, 1, wxALL|wxEXPAND, 5); grid_sizer_1->Add(static_line_1, 0, wxALL|wxEXPAND, 5); sizer_1->Add(button_2, 0, wxALL, 5); sizer_1->Add(button_1, 0, wxALL, 5); grid_sizer_1->Add(sizer_1, 1, wxEXPAND, 0); SetSizer(grid_sizer_1); grid_sizer_1->Fit(this); grid_sizer_1->AddGrowableRow(0); Layout(); // end wxGlade } MyDialog1::MyDialog1(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style): wxDialog(parent, id, title, pos, size, wxDEFAULT_DIALOG_STYLE) { // Content of this block not found. Did you rename this class? } void MyDialog1::set_properties() { // Content of this block not found. Did you rename this class? } void MyDialog1::do_layout() { // Content of this block not found. Did you rename this class? } class MyApp: public wxApp { public: bool OnInit(); protected: wxLocale m_locale; // locale we'll be using }; IMPLEMENT_APP(MyApp) bool MyApp::OnInit() { m_locale.Init(); #ifdef APP_LOCALE_DIR m_locale.AddCatalogLookupPathPrefix(wxT(APP_LOCALE_DIR)); #endif m_locale.AddCatalog(wxT(APP_CATALOG)); wxInitAllImageHandlers(); MyDialog* dialog_1 = new MyDialog(NULL, wxID_ANY, wxEmptyString); SetTopWindow(dialog_1); dialog_1->Show(); return true; }