2010-05-21 03:13:36 +02:00
|
|
|
#include "compat.h"
|
|
|
|
#include "main.h"
|
|
|
|
|
2011-07-26 21:51:56 +02:00
|
|
|
#include <algorithm>
|
|
|
|
|
2010-05-21 03:13:36 +02:00
|
|
|
wxArrayString lagi_MRU_wxAS(const wxString &list) {
|
2011-07-26 21:51:56 +02:00
|
|
|
const agi::MRUManager::MRUListMap *map = config::mru->Get(STD_STR(list));
|
2010-05-21 03:13:36 +02:00
|
|
|
wxArrayString work;
|
2011-07-26 21:51:56 +02:00
|
|
|
work.reserve(map->size());
|
|
|
|
transform(map->begin(), map->end(), std::back_inserter(work), lagi_wxString);
|
2010-06-03 22:32:25 +02:00
|
|
|
return work;
|
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) {
|
|
|
|
wxArrayString ret;
|
|
|
|
ret.reserve(vec.size());
|
|
|
|
transform(vec.begin(), vec.end(), std::back_inserter(ret), lagi_wxString);
|
|
|
|
return ret;
|
|
|
|
}
|