]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/screenshotgen/src/ctrlmaskout.h
Removed dummy wxFont == operator implementation (IIRC was needed to compile with...
[wxWidgets.git] / utils / screenshotgen / src / ctrlmaskout.h
index 124788c911730e36a5d3736c7a42b67ae8ae5731..1e0ec6832e9f7ebbb905d710534630820b46bfd8 100644 (file)
@@ -6,10 +6,10 @@
 // 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"
 
 
 // ----------------------------------------------------------------------------
@@ -30,7 +30,14 @@ public:
     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
@@ -53,6 +60,6 @@ private:
     bool m_isTiming;
 };
 
-#endif // WX_CTRL_MASK_OUT
+#endif // _CTRLMASKOUT_H_