]> git.saurik.com Git - wxWidgets.git/blob - utils/screenshotgen/src/screenshot_main.h
a81ce1352b785fe007f55c242422ff8986d28e4e
[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 ScreenshotFrame : public GUIFrame
15 {
16 public:
17 ScreenshotFrame(wxFrame *frame);
18 ~ScreenshotFrame() {}
19
20 protected: // event handlers
21
22 virtual void OnClose(wxCloseEvent& event);
23 virtual void OnQuit(wxCommandEvent& event);
24 virtual void OnAbout(wxCommandEvent& event);
25 virtual void OnSeeScreenshots( wxCommandEvent& event);
26
27 virtual void OnCaptureFullScreen( wxCommandEvent& event );
28 virtual void OnCaptureAllControls( wxCommandEvent& event );
29
30
31 private:
32
33 // Before a config class is written, these two functions are placed here.
34 // It's only a transition and they wil be removed soon
35 wxString GetDefaultDirectory() const { return _T("screenshots"); }
36
37 wxString GetDefaultDirectoryAbsPath() const
38 {
39 wxFileName output = wxFileName::DirName(GetDefaultDirectory());
40 output.MakeAbsolute();
41 return output.GetFullPath();
42 }
43 };
44
45 #endif // _SCREENSHOT_MAIN_H_