#include <dcp/locale_convert.h>
#include <wx/spinctrl.h>
#include <wx/splash.h>
+#include <wx/filepicker.h>
#include <boost/thread.hpp>
using namespace std;
}
}
+void
+checked_set (wxDirPickerCtrl* widget, boost::filesystem::path value)
+{
+ if (widget->GetPath() != std_to_wx (value.string())) {
+ if (value.empty()) {
+ /* Hack to make wxWidgets clear the control when we are passed
+ an empty value.
+ */
+ value = " ";
+ }
+ widget->SetPath (std_to_wx (value.string()));
+ }
+}
+
void
checked_set (wxSpinCtrl* widget, int value)
{
#endif
class FilePickerCtrl;
+class wxDirPickerCtrl;
class wxSpinCtrl;
class wxSpinCtrlDouble;
class wxGridBagSizer;
extern double calculate_mark_interval (double start);
extern void checked_set (FilePickerCtrl* widget, boost::filesystem::path value);
+extern void checked_set (wxDirPickerCtrl* widget, boost::filesystem::path value);
extern void checked_set (wxSpinCtrl* widget, int value);
extern void checked_set (wxSpinCtrlDouble* widget, double value);
extern void checked_set (wxChoice* widget, int value);