]>
git.saurik.com Git - wxWidgets.git/blob - utils/screenshotgen/src/screenshot_main.h
a81ce1352b785fe007f55c242422ff8986d28e4e
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: screenshot_main.h
3 // Purpose: Defines the Application Frame
4 // Author: Utensil Candel (UtensilCandel@@gmail.com)
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
9 #ifndef _SCREENSHOT_MAIN_H_
10 #define _SCREENSHOT_MAIN_H_
14 class ScreenshotFrame
: public GUIFrame
17 ScreenshotFrame(wxFrame
*frame
);
20 protected: // event handlers
22 virtual void OnClose(wxCloseEvent
& event
);
23 virtual void OnQuit(wxCommandEvent
& event
);
24 virtual void OnAbout(wxCommandEvent
& event
);
25 virtual void OnSeeScreenshots( wxCommandEvent
& event
);
27 virtual void OnCaptureFullScreen( wxCommandEvent
& event
);
28 virtual void OnCaptureAllControls( wxCommandEvent
& event
);
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"); }
37 wxString
GetDefaultDirectoryAbsPath() const
39 wxFileName output
= wxFileName::DirName(GetDefaultDirectory());
40 output
.MakeAbsolute();
41 return output
.GetFullPath();
45 #endif // _SCREENSHOT_MAIN_H_