MCPcopy Create free account
hub / github.com/aardappel/treesheets / ChangeFileName

Method ChangeFileName

src/document.h:151–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149 }
150
151 void ChangeFileName(const wxString &fn, bool checkext) {
152 filename = fn;
153 if (checkext) {
154 wxFileName wxfn(filename);
155 if (!wxfn.HasExt()) filename.Append(L".cts");
156 }
157 UpdateFileName();
158 }
159
160 const wxChar *SaveDB(bool *success, bool istempfile = false, int page = -1) {
161 if (filename.empty()) return _(L"Save cancelled.");

Callers 1

ImportMethod · 0.80

Calls 1

AppendMethod · 0.45

Tested by

no test coverage detected