Skip to content

Commit

Permalink
- Better message to generate operations for transformationalDebugger.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24409 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Feb 4, 2015
1 parent 097a10f commit 9464ecd
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
2 changes: 1 addition & 1 deletion OMEdit/OMEditGUI/Options/OptionsDialog.cpp
Expand Up @@ -3228,7 +3228,7 @@ DebuggerPage::DebuggerPage(OptionsDialog *pOptionsDialog)
/* Transformational Debugger */
mpTransformationalDebuggerGroupBox = new QGroupBox(Helper::transformationalDebugger);
mpAlwaysShowTransformationsCheckBox = new QCheckBox(tr("Always show %1 after compilation").arg(Helper::transformationalDebugger));
mpGenerateOperationsCheckBox = new QCheckBox(tr("Generate operations in the info xml"));
mpGenerateOperationsCheckBox = new QCheckBox(tr("Generate Operations"));
// set the layout of Transformational Debugger group
QGridLayout *pTransformationalDebuggerLayout = new QGridLayout;
pTransformationalDebuggerLayout->setAlignment(Qt::AlignTop);
Expand Down
Expand Up @@ -945,9 +945,13 @@ void TransformationsWidget::fetchOperations(const OMVariable &variable)
} else {
QString message;
#ifdef Q_OS_MAC
message = GUIMessages::getMessage(GUIMessages::SET_INFO_XML_FLAG).arg(GUIMessages::getMessage(GUIMessages::SET_INFO_XML_FLAG_MSG_MAC));
message = GUIMessages::getMessage(GUIMessages::SET_INFO_XML_FLAG)
.arg(GUIMessages::getMessage(GUIMessages::GENERATE_OPERATIONS_MSG_MAC))
.arg(GUIMessages::getMessage(GUIMessages::SET_INFO_XML_FLAG_MSG_MAC));
#else
message = GUIMessages::getMessage(GUIMessages::SET_INFO_XML_FLAG).arg(GUIMessages::getMessage(GUIMessages::SET_INFO_XML_FLAG_MSG));
message = GUIMessages::getMessage(GUIMessages::SET_INFO_XML_FLAG)
.arg(GUIMessages::getMessage(GUIMessages::GENERATE_OPERATIONS_MSG))
.arg(GUIMessages::getMessage(GUIMessages::SET_INFO_XML_FLAG_MSG));
#endif
QStringList values;
values << message;
Expand Down Expand Up @@ -1136,9 +1140,13 @@ void TransformationsWidget::fetchOperations(OMEquation *equation)
} else {
QString message;
#ifdef Q_OS_MAC
message = GUIMessages::getMessage(GUIMessages::SET_INFO_XML_FLAG).arg(GUIMessages::getMessage(GUIMessages::SET_INFO_XML_FLAG_MSG_MAC));
message = GUIMessages::getMessage(GUIMessages::SET_INFO_XML_FLAG)
.arg(GUIMessages::getMessage(GUIMessages::GENERATE_OPERATIONS_MSG_MAC))
.arg(GUIMessages::getMessage(GUIMessages::SET_INFO_XML_FLAG_MSG_MAC));
#else
message = GUIMessages::getMessage(GUIMessages::SET_INFO_XML_FLAG).arg(GUIMessages::getMessage(GUIMessages::SET_INFO_XML_FLAG_MSG));
message = GUIMessages::getMessage(GUIMessages::SET_INFO_XML_FLAG)
.arg(GUIMessages::getMessage(GUIMessages::GENERATE_OPERATIONS_MSG))
.arg(GUIMessages::getMessage(GUIMessages::SET_INFO_XML_FLAG_MSG));
#endif
QStringList values;
values << message;
Expand Down
6 changes: 5 additions & 1 deletion OMEdit/OMEditGUI/Util/Helper.cpp
Expand Up @@ -553,7 +553,11 @@ QString GUIMessages::getMessage(int type)
case WRONG_MODIFIER:
return tr("The Modifier <b>%1</b> format is invalid. The correct format is <b>phi(start=1)</b>");
case SET_INFO_XML_FLAG:
return tr("The operations were not generated. You must set the +d=infoXmlOperations flag. Enable it via %1 and simulate again.");
return tr("The operations were not generated. Check Generate Operations in %1 OR you must set the +d=infoXmlOperations flag via %2 and simulate again.");
case GENERATE_OPERATIONS_MSG:
return tr("Tools->Options->Debugger->Transformational Debugger");
case GENERATE_OPERATIONS_MSG_MAC:
return tr("OMEdit->Preferences->Debugger->Transformational Debugger");
case SET_INFO_XML_FLAG_MSG:
return tr("Tools->Options->Simulation->OMC Flags");
case SET_INFO_XML_FLAG_MSG_MAC:
Expand Down
2 changes: 2 additions & 0 deletions OMEdit/OMEditGUI/Util/Helper.h
Expand Up @@ -341,6 +341,8 @@ class GUIMessages : public QObject
DELETE_TEXT_FILE_MSG,
WRONG_MODIFIER,
SET_INFO_XML_FLAG,
GENERATE_OPERATIONS_MSG,
GENERATE_OPERATIONS_MSG_MAC,
SET_INFO_XML_FLAG_MSG,
SET_INFO_XML_FLAG_MSG_MAC,
DEBUG_CONFIGURATION_EXISTS_MSG,
Expand Down

0 comments on commit 9464ecd

Please sign in to comment.