diff --git a/utils/screenshotgen/src/autocapture.cpp b/utils/screenshotgen/src/autocapture.cpp
index 382c445172..8263e38b7e 100644
--- a/utils/screenshotgen/src/autocapture.cpp
+++ b/utils/screenshotgen/src/autocapture.cpp
@@ -89,6 +89,35 @@ wxBitmap Capture(wxRect rect)
// AutoCaptureMechanism
// ----------------------------------------------------------------------------
+void AutoCaptureMechanism::CaptureAll()
+{
+ m_notebook->SetSelection(0);
+ wxYield();
+
+ for(ControlList::iterator it = m_controlList.begin();
+ it != m_controlList.end();
+ ++it)
+ {
+ Control & ctrl = *it;
+
+ if(ctrl.flag == AJ_TurnPage) // Turn to next page
+ {
+ m_notebook->SetSelection(m_notebook->GetSelection() + 1);
+ wxYield();
+ continue;
+ }
+
+ wxBitmap screenshot = Capture(ctrl);
+
+ if(ctrl.flag & AJ_Union)
+ {
+ screenshot = Union(screenshot, Capture(*(++it)));
+ }
+
+ Save(screenshot, ctrl.name);
+ }
+}
+
wxBitmap AutoCaptureMechanism::Capture(Control & ctrl)
{
if(ctrl.name == wxT("")) //no mannual specification for the control name
diff --git a/utils/screenshotgen/src/autocapture.h b/utils/screenshotgen/src/autocapture.h
index e07b43f19b..10ea3c8bd4 100644
--- a/utils/screenshotgen/src/autocapture.h
+++ b/utils/screenshotgen/src/autocapture.h
@@ -40,6 +40,7 @@ public:
wxString directory = wxT("screenshots"),
int border = 5)
: m_notebook(notebook), m_dir(directory), m_border(border) {}
+
~AutoCaptureMechanism(){}
/*
@@ -62,34 +63,7 @@ public:
m_controlList.push_back(Control(0, wxT(""), AJ_TurnPage));
}
- void CaptureAll()
- {
- m_notebook->SetSelection(0);
- wxYield();
-
- for(ControlList::iterator it = m_controlList.begin();
- it != m_controlList.end();
- ++it)
- {
- Control & ctrl = *it;
-
- if(ctrl.flag == AJ_TurnPage) // Turn to next page
- {
- m_notebook->SetSelection(m_notebook->GetSelection() + 1);
- wxYield();
- continue;
- }
-
- wxBitmap screenshot = Capture(ctrl);
-
- if(ctrl.flag & AJ_Union)
- {
- screenshot = Union(screenshot, Capture(*(++it)));
- }
-
- Save(screenshot, ctrl.name);
- }
- }
+ void CaptureAll();
protected: // internal utils
struct Control
diff --git a/utils/screenshotgen/src/ctrlmaskout.h b/utils/screenshotgen/src/ctrlmaskout.h
index 124788c911..660d96df91 100644
--- a/utils/screenshotgen/src/ctrlmaskout.h
+++ b/utils/screenshotgen/src/ctrlmaskout.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
diff --git a/utils/screenshotgen/src/customcombo.h b/utils/screenshotgen/src/customcombo.h
index 8902abd3d6..ba3d52a75e 100644
--- a/utils/screenshotgen/src/customcombo.h
+++ b/utils/screenshotgen/src/customcombo.h
@@ -60,7 +60,8 @@ public:
wxLC_LIST|wxLC_VRULES|wxBORDER_THEME);
}
- virtual wxWindow *GetControl() { return this; }
+ virtual wxWindow *GetControl()
+ { return this; }
virtual void SetStringValue( const wxString& s )
{
@@ -113,8 +114,8 @@ public:
}
protected:
- int m_value; // current item index
- int m_itemHere; // hot item in popup
+ int m_value; // current item index
+ int m_itemHere; // hot item in popup
private:
DECLARE_EVENT_TABLE()
@@ -158,7 +159,8 @@ public:
return wxSize(minWidth, wxMin(80, maxHeight));
}
- virtual wxWindow *GetControl() { return this; }
+ virtual wxWindow *GetControl()
+ { return this; }
// Needed by SetStringValue
wxTreeItemId FindItemByText( wxTreeItemId parent, const wxString& text )
@@ -236,9 +238,8 @@ public:
}
protected:
-
- wxTreeItemId m_value; // current item index
- wxTreeItemId m_itemHere; // hot item in popup
+ wxTreeItemId m_value; // current item index
+ wxTreeItemId m_itemHere; // hot item in popup
private:
DECLARE_EVENT_TABLE()
diff --git a/utils/screenshotgen/src/guidesign.fbp b/utils/screenshotgen/src/guidesign.fbp
index 2340fc4e14..19eb9d6a0d 100644
--- a/utils/screenshotgen/src/guidesign.fbp
+++ b/utils/screenshotgen/src/guidesign.fbp
@@ -70,7 +70,7 @@
-
-