1e0f08c0ed
Use boost::filesystem::path for all paths, and std::string for all other strings, converting to/from wxString as close to the actual uses of wx as possible. Where possible, replace the uses of non-UI wxWidgets functionality with the additions to the standard library in C++11, or the equivalents in boost. Move the path token management logic to libaegisub (and rewrite it in the process). Add a basic thread pool based on asio and std::thread to libaegisub. This touches nearly every file in the project and a nontrivial amount of code had to be rewritten entirely, so there's probably a lot of broken stuff.
19 lines
677 B
C++
19 lines
677 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include <wx/colour.h>
|
|
#include <wx/arrstr.h>
|
|
#include <wx/string.h>
|
|
|
|
#include <libaegisub/color.h>
|
|
|
|
inline wxColour to_wx(agi::Color color) { return wxColour(color.r, color.g, color.b, 255 - color.a); }
|
|
inline wxString to_wx(std::string const& str) { return wxString(str.c_str(), wxConvUTF8); }
|
|
wxArrayString to_wx(std::vector<std::string> const& vec);
|
|
|
|
inline agi::Color from_wx(wxColour color) { return agi::Color(color.Red(), color.Green(), color.Blue(), 255 - color.Alpha()); }
|
|
inline std::string from_wx(wxString const& str) { return std::string(str.utf8_str()); }
|
|
|
|
wxArrayString lagi_MRU_wxAS(std::string const& list);
|