71 void operator()()
override;
79 void operator()()
override;
88 NullLoader(
const wxString& name,
char* buffer,
size_t size) { fileName = name; data = buffer; len = size; Ready(); };
103 len = strlen(s.
mb_str(wxConvUTF8));
104 data =
new char[len + 1];
105 strcpy(data, (
const char*)s.
mb_str(wxConvUTF8));
129 cb_must_consume_result
LoaderBase* Load(
const wxString& file,
bool reuseEditors =
false);
135 bool SaveUTF8(
const wxString& file,
const char* data,
size_t len);
URLLoader(const wxString &name)
std::vector< char > mBuffer
void operator()() override
BackgroundThread urlLoaderThread
void operator()() override
const wxCharBuffer mb_str(const wxMBConv &conv=wxConvLibc) const
wxString FileName() const
NullLoader(const wxString &name, char *buffer, size_t size)
BackgroundThread uncLoaderThread
bool SaveDocument(const wxString &, TiXmlDocument *)
void operator()() override
BackgroundThread fileLoaderThread
EditorReuser(const wxString &name, const wxString &s)
Gets a UTF8 representation of the editor's content.
FileLoader(const wxString &name)