]>
Commit | Line | Data |
---|---|---|
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 | // when defined to 1, wxAui for the main frame | |
15 | #define SCREENSHOTGEN_USE_AUI 0 | |
16 | ||
17 | ||
18 | class CtrlMaskOut; | |
19 | ||
20 | ||
21 | class ScreenshotFrame | |
22 | #if SCREENSHOTGEN_USE_AUI | |
23 | : public AuiGUIFrame | |
24 | #else | |
25 | : public GUIFrame | |
26 | #endif | |
27 | { | |
28 | public: | |
29 | ScreenshotFrame(wxFrame *frame); | |
30 | ~ScreenshotFrame(); | |
31 | ||
32 | protected: // 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 | ||
52 | private: | |
53 | // Helper functions | |
54 | void InitFBControls(); | |
55 | ||
56 | // Data members | |
57 | bool capturingRect; | |
58 | CtrlMaskOut * m_maskout; | |
59 | }; | |
60 | ||
61 | #endif // _SCREENSHOT_MAIN_H_ |