]> git.saurik.com Git - wxWidgets.git/blame - utils/screenshotgen/src/screenshot_main.h
add to utils.bkl the hhp2cached (why wasn't already there?) and screenshotgen utilities
[wxWidgets.git] / utils / screenshotgen / src / screenshot_main.h
CommitLineData
0d5eda9c
FM
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 WXSCREENSHOTMAIN_H
10#define WXSCREENSHOTMAIN_H
11
12#include "guiframe.h"
13
14// when defined to 1, wxAui for the main frame
15#define SCREENSHOTGEN_USE_AUI 0
16
17
18class wxCtrlMaskOut;
19
20
21class wxScreenshotFrame
22#if SCREENSHOTGEN_USE_AUI
23: public AuiGUIFrame
24#else
25: public GUIFrame
26#endif
27{
28public:
29 wxScreenshotFrame(wxFrame *frame);
30 ~wxScreenshotFrame();
31
32protected: // event handlers
33
34 virtual void OnClose(wxCloseEvent& event);
35 virtual void OnQuit(wxCommandEvent& event);
36 virtual void OnAbout(wxCommandEvent& event);
37 virtual void OnSeeScreenshots( wxCommandEvent& event);
38
39 virtual void OnCaptureFullScreen( wxCommandEvent& event );
40 virtual void OnCaptureRect( wxCommandEvent& event );
41 virtual void OnEndCaptureRect( wxCommandEvent& event );
42 virtual void OnCaptureAllControls( wxCommandEvent& event );
43
44#if SCREENSHOTGEN_USE_AUI
45 virtual void OnNotebookPageChanged( wxAuiNotebookEvent& event );
46 virtual void OnNotebookPageChanging( wxAuiNotebookEvent& event );
47#else
48 virtual void OnNotebookPageChanged( wxNotebookEvent& event );
49 virtual void OnNotebookPageChanging( wxNotebookEvent& event );
50#endif
51
52private:
53 // Helper functions
54 void InitFBControls();
55
56 // Data members
57 bool capturingRect;
58 wxCtrlMaskOut * m_maskout;
59};
60
61#endif // WXSCREENSHOTMAIN_H