]> git.saurik.com Git - wxWidgets.git/blob - utils/screenshotgen/src/screenshot_main.h
lastest patch from Utensil Candel: remove some legacy code; clarify the logic in...
[wxWidgets.git] / utils / screenshotgen / src / screenshot_main.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: screenshot_main.h
3 // Purpose: Defines the Application Frame
4 // Author: Utensil Candel (UtensilCandel@@gmail.com)
5 // RCS-ID: $Id$
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
8
9 #ifndef _SCREENSHOT_MAIN_H_
10 #define _SCREENSHOT_MAIN_H_
11
12 #include "guiframe.h"
13
14 class CtrlMaskOut;
15
16
17 class ScreenshotFrame : public GUIFrame
18 {
19 public:
20 ScreenshotFrame(wxFrame *frame);
21 ~ScreenshotFrame();
22
23 protected: // event handlers
24
25 virtual void OnClose(wxCloseEvent& event);
26 virtual void OnQuit(wxCommandEvent& event);
27 virtual void OnAbout(wxCommandEvent& event);
28 virtual void OnSeeScreenshots( wxCommandEvent& event);
29
30 virtual void OnCaptureFullScreen( wxCommandEvent& event );
31 virtual void OnCaptureRect( wxCommandEvent& event );
32 virtual void OnEndCaptureRect( wxCommandEvent& event );
33 virtual void OnCaptureAllControls( wxCommandEvent& event );
34
35 virtual void OnNotebookPageChanged( wxNotebookEvent& event );
36 virtual void OnNotebookPageChanging( wxNotebookEvent& event );
37
38 private:
39 // Helper functions
40 void InitFBControls();
41
42 // Data members
43 bool capturingRect;
44 CtrlMaskOut * m_maskout;
45 };
46
47 #endif // _SCREENSHOT_MAIN_H_