// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
-#ifndef WX_CTRL_MASK_OUT
-#define WX_CTRL_MASK_OUT
+#ifndef _CTRLMASKOUT_H_
+#define _CTRLMASKOUT_H_
-#include <wx/frame.h>
+#include "wx/filename.h"
// ----------------------------------------------------------------------------
void Capture(wxRect rect, wxString fileName);
void Capture(int x, int y, int width, int height, wxString fileName);
- wxString GetDefaultDirectory(){return m_defaultDir;}
+ wxString GetDefaultDirectory() const
+ { return m_defaultDir; }
+ wxString GetDefaultDirectoryAbsPath() const
+ {
+ wxFileName output = wxFileName::DirName(GetDefaultDirectory());
+ output.MakeAbsolute();
+ return output.GetFullPath();
+ }
private:
// Helper functions
bool m_isTiming;
};
-#endif // WX_CTRL_MASK_OUT
+#endif // _CTRLMASKOUT_H_