X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c801d85f158c4cba50b588807daabdcbd0ed3853..dc18c8f1b2869d99485b404fef56b0af82e79867:/samples/png/pngdemo.h diff --git a/samples/png/pngdemo.h b/samples/png/pngdemo.h index e4be03ed4b..5653a14074 100644 --- a/samples/png/pngdemo.h +++ b/samples/png/pngdemo.h @@ -6,10 +6,10 @@ // Created: 01/02/97 // RCS-ID: $Id$ // Copyright: (c) Julian Smart and Markus Holzem -// Licence: wxWindows license +// Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined( __GNUG__) && !defined(__APPLE__) #pragma interface #endif @@ -31,10 +31,11 @@ class MyFrame: public wxFrame public: MyCanvas *canvas; MyFrame(wxFrame *parent, const wxString& title, const wxPoint& pos, const wxSize& size); + virtual ~MyFrame(); - bool OnClose(void); void OnActivate(bool) {} void OnLoadFile(wxCommandEvent& event); + void OnSaveFile(wxCommandEvent& event); void OnQuit(wxCommandEvent& event); void OnAbout(wxCommandEvent& event); DECLARE_EVENT_TABLE() @@ -54,4 +55,5 @@ DECLARE_EVENT_TABLE() #define PNGDEMO_QUIT 100 #define PNGDEMO_ABOUT 101 #define PNGDEMO_LOAD_FILE 102 +#define PNGDEMO_SAVE_FILE 103