]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/screenshotgen/src/screenshot_main.h
Fix a crash in wxExecute() in wxMSW too.
[wxWidgets.git] / utils / screenshotgen / src / screenshot_main.h
index 54b6667a339c28ea1a20bbd128c2020937e6907e..37504cfde11afe1a2a7b1949c4871b85d767b156 100644 (file)
@@ -3,31 +3,19 @@
 // Purpose:     Defines the Application Frame
 // Author:      Utensil Candel (UtensilCandel@@gmail.com)
 // RCS-ID:      $Id$
-// Licence:     wxWindows license
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifndef WXSCREENSHOTMAIN_H
-#define WXSCREENSHOTMAIN_H
+#ifndef _SCREENSHOT_MAIN_H_
+#define _SCREENSHOT_MAIN_H_
 
 #include "guiframe.h"
 
-// when defined to 1, wxAui for the main frame
-#define SCREENSHOTGEN_USE_AUI       0
-
-
-class CtrlMaskOut;
-
-
-class ScreenshotFrame
-#if SCREENSHOTGEN_USE_AUI
-: public AuiGUIFrame
-#else
-: public GUIFrame
-#endif
+class ScreenshotFrame : public GUIFrame
 {
 public:
     ScreenshotFrame(wxFrame *frame);
-    ~ScreenshotFrame();
+    ~ScreenshotFrame() {}
 
 protected:      // event handlers
 
@@ -37,25 +25,7 @@ protected:      // event handlers
     virtual void OnSeeScreenshots( wxCommandEvent& event);
 
     virtual void OnCaptureFullScreen( wxCommandEvent& event );
-    virtual void OnCaptureRect( wxCommandEvent& event );
-    virtual void OnEndCaptureRect( wxCommandEvent& event );
     virtual void OnCaptureAllControls( wxCommandEvent& event );
-
-#if SCREENSHOTGEN_USE_AUI
-    virtual void OnNotebookPageChanged( wxAuiNotebookEvent& event );
-    virtual void OnNotebookPageChanging( wxAuiNotebookEvent& event );
-#else
-    virtual void OnNotebookPageChanged( wxNotebookEvent& event );
-    virtual void OnNotebookPageChanging( wxNotebookEvent& event );
-#endif
-
-private:
-    // Helper functions
-    void InitFBControls();
-
-    // Data members
-    bool capturingRect;
-    CtrlMaskOut * m_maskout;
 };
 
-#endif // WXSCREENSHOTMAIN_H
+#endif // _SCREENSHOT_MAIN_H_