X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c82c42d498ac1e35a395c9ecba681921c4817a7c..249e30415a58d8cad492f0b46ded8d7ac06fb535:/contrib/samples/fl/fl_demo1.h diff --git a/contrib/samples/fl/fl_demo1.h b/contrib/samples/fl/fl_demo1.h index 70675acf24..79626d5338 100644 --- a/contrib/samples/fl/fl_demo1.h +++ b/contrib/samples/fl/fl_demo1.h @@ -12,55 +12,52 @@ #ifndef __NEW_TEST_G__ #define __NEW_TEST_G__ -#if defined(__GNUG__) && !defined(__APPLE__) -#pragma interface "fl_demo1.h" -#endif - #define NEW_TEST_SAVE 1101 #define NEW_TEST_LOAD 1102 #define NEW_TEST_EXIT 1103 #include "wx/panel.h" -#include "wx/statline.h" +#include "wx/statline.h" // Define a new application type class MyApp: public wxApp -{ +{ public: bool OnInit(void); }; // Define a new frame type class MyFrame: public wxFrame -{ +{ public: wxFrameLayout* mpLayout; wxTextCtrl* mpClientWnd; - + wxTextCtrl* CreateTextCtrl( const wxString& value ); - + public: MyFrame(wxFrame *frame); virtual ~MyFrame(); - + bool OnClose(void) { Show(false); return true; } - + void OnLoad( wxCommandEvent& event ); void OnSave( wxCommandEvent& event ); void OnExit( wxCommandEvent& event ); - + DECLARE_EVENT_TABLE() }; +#if wxUSE_STATLINE /* * Quick example of your own Separator class... */ class wxMySeparatorLine : public wxStaticLine { public: - wxMySeparatorLine() + wxMySeparatorLine() {} - wxMySeparatorLine( wxWindow *parent, wxWindowID id) + wxMySeparatorLine( wxWindow *parent, wxWindowID id) : wxStaticLine( parent, id) {} @@ -69,6 +66,7 @@ protected: int width, int height, int sizeFlags = wxSIZE_AUTO); }; +#endif // wxUSE_STATLINE #endif