]> git.saurik.com Git - wxWidgets.git/blame - utils/screenshotgen/src/screenshot_main.h
change generic ints to enums in wxDC (closes #9959)
[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
f978831f
BP
9#ifndef _SCREENSHOT_MAIN_H_
10#define _SCREENSHOT_MAIN_H_
0d5eda9c
FM
11
12#include "guiframe.h"
13
14// when defined to 1, wxAui for the main frame
15#define SCREENSHOTGEN_USE_AUI 0
16
17
4bae10bd 18class CtrlMaskOut;
0d5eda9c
FM
19
20
4bae10bd 21class ScreenshotFrame
0d5eda9c 22#if SCREENSHOTGEN_USE_AUI
f978831f 23 : public AuiGUIFrame
0d5eda9c 24#else
f978831f 25 : public GUIFrame
0d5eda9c
FM
26#endif
27{
28public:
4bae10bd
FM
29 ScreenshotFrame(wxFrame *frame);
30 ~ScreenshotFrame();
0d5eda9c
FM
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;
4bae10bd 58 CtrlMaskOut * m_maskout;
0d5eda9c
FM
59};
60
f978831f 61#endif // _SCREENSHOT_MAIN_H_