summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5ef3cac)
Non-ASCII filenames can be used to load and save schemas.
Function SaveAs still strips the accents.
Windows compatibility is not tested yet.
{
DEBTRACE(logger->getStr());
}
{
DEBTRACE(logger->getStr());
}
- QString fn=QString::fromStdString(filename);
+ QString fn=QString::fromUtf8(filename.c_str());
if(edit)
createContext(proc, fn, "", true);
else
if(edit)
createContext(proc, fn, "", true);
else
if (!fi.exists() && fi.suffix() != "xml")
fn += ".xml";
if (!fi.exists() && fi.suffix() != "xml")
fn += ".xml";
- DEBTRACE("file loaded : " <<fn.toStdString());
+ DEBTRACE("file loaded : " <<fn.toUtf8().constData());
YACS::ENGINE::Proc *proc = 0;
try {
YACS::ENGINE::Proc *proc = 0;
try {
- proc = _loader->load(fn.toLatin1());
+ proc = _loader->load(fn.toUtf8().constData());
}
if (fn.isEmpty()) return;
}
if (fn.isEmpty()) return;
- DEBTRACE("GenericGui::onExportSchema: " << fn.toStdString());
+ DEBTRACE("GenericGui::onExportSchema: " << fn.toUtf8().constData());
//to be sure that all pending changes are effective
_parent->setFocus();
QtGuiContext::getQtCurrent()->setFileName(fn);
VisitorSaveGuiSchema aWriter(proc);
//to be sure that all pending changes are effective
_parent->setFocus();
QtGuiContext::getQtCurrent()->setFileName(fn);
VisitorSaveGuiSchema aWriter(proc);
- aWriter.openFileSchema( fn.toStdString() );
+ aWriter.openFileSchema( fn.toUtf8().constData() );
aWriter.visitProc();
aWriter.closeFileSchema();
QtGuiContext::getQtCurrent()->setNotSaved(false);
aWriter.visitProc();
aWriter.closeFileSchema();
QtGuiContext::getQtCurrent()->setNotSaved(false);
QString fn = getSaveFileName(fo);
if (fn.isEmpty()) return;
QString fn = getSaveFileName(fo);
if (fn.isEmpty()) return;
- DEBTRACE("GenericGui::onExportSchemaAs: " << fn.toStdString());
+ DEBTRACE("GenericGui::onExportSchemaAs: " << fn.toUtf8().constData());
QtGuiContext::getQtCurrent()->setFileName(fn);
VisitorSaveGuiSchema aWriter(proc);
QtGuiContext::getQtCurrent()->setFileName(fn);
VisitorSaveGuiSchema aWriter(proc);
- aWriter.openFileSchema(fn.toStdString());
+ aWriter.openFileSchema(fn.toUtf8().constData());
aWriter.visitProc();
aWriter.closeFileSchema();
_isSaved = true;
aWriter.visitProc();
aWriter.closeFileSchema();
_isSaved = true;