Changeset View
Changeset View
Standalone View
Standalone View
source/tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.cpp
Show First 20 Lines • Show All 508 Lines • ▼ Show 20 Lines | #define ADD_HELP_ITEM(id) \ | ||||
do { \ | do { \ | ||||
if (!data[#id].hasContent()) \ | if (!data[#id].hasContent()) \ | ||||
break; \ | break; \ | ||||
if (!data[#id]["title"].hasContent() || !data[#id]["url"].hasContent()) \ | if (!data[#id]["title"].hasContent() || !data[#id]["url"].hasContent()) \ | ||||
break; \ | break; \ | ||||
menuHelp->Append(ID_##id, _(wxString(data[#id]["title"])), _(wxString(data[#id]["tooltip"]))); \ | menuHelp->Append(ID_##id, _(wxString(data[#id]["title"])), _(wxString(data[#id]["tooltip"]))); \ | ||||
m_HelpData.insert(std::make_pair( \ | m_HelpData.insert(std::make_pair( \ | ||||
ID_##id, \ | ID_##id, \ | ||||
HelpItem(wxString(data[#id]["title"]), wxString(data[#id]["tooltip"]), wxString(data[#id]["url"])) \ | HelpItem(wxString::FromUTF8(data[#id]["title"]), wxString::FromUTF8(data[#id]["tooltip"]), wxString::FromUTF8(data[#id]["url"])) \ | ||||
)); \ | )); \ | ||||
} while (0) | } while (0) | ||||
ADD_HELP_ITEM(Manual); | ADD_HELP_ITEM(Manual); | ||||
ADD_HELP_ITEM(ReportBug); | ADD_HELP_ITEM(ReportBug); | ||||
#undef ADD_HELP_ITEM | #undef ADD_HELP_ITEM | ||||
} | } | ||||
else | else | ||||
wxLogError(_("'%ls' does not exist"), helpPath.GetFullPath().c_str()); | wxLogError(_("'%ls' does not exist"), helpPath.GetFullPath().c_str()); | ||||
▲ Show 20 Lines • Show All 616 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator