2010-05-21 03:13:36 +02:00
|
|
|
#include "compat.h"
|
|
|
|
#include "main.h"
|
|
|
|
|
2011-07-26 21:51:56 +02:00
|
|
|
#include <algorithm>
|
|
|
|
|
2012-12-23 00:18:38 +01:00
|
|
|
template<typename T>
|
|
|
|
wxArrayString to_wxAS(T const& src) {
|
|
|
|
wxArrayString ret;
|
|
|
|
ret.reserve(src.size());
|
|
|
|
transform(src.begin(), src.end(), std::back_inserter(ret), (wxString (*)(std::string const&))to_wx);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2010-05-21 03:13:36 +02:00
|
|
|
wxArrayString lagi_MRU_wxAS(const wxString &list) {
|
2012-12-23 00:18:38 +01:00
|
|
|
return to_wxAS(*config::mru->Get(from_wx(list)));
|
2010-05-21 03:13:36 +02:00
|
|
|
}
|
2012-10-30 16:59:47 +01:00
|
|
|
|
|
|
|
wxArrayString to_wx(std::vector<std::string> const& vec) {
|
2012-12-23 00:18:38 +01:00
|
|
|
return to_wxAS(vec);
|
2012-10-30 16:59:47 +01:00
|
|
|
}
|