Skip to content

Commit 4059793

Browse files
authored
Improved text of Discard Local Translation Flags widget (#9835)
* Improved text of Discard Local Translation Flags widget * Fixed header file
1 parent 5e6b2a7 commit 4059793

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

OMEdit/OMEditLIB/Options/OptionsDialog.cpp

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7065,11 +7065,16 @@ DiscardLocalTranslationFlagsDialog::DiscardLocalTranslationFlagsDialog(QWidget *
70657065
setAttribute(Qt::WA_DeleteOnClose);
70667066
setWindowTitle(QString("%1 - %2").arg(Helper::applicationName, tr("Discard Local Translation Flags")));
70677067
setMinimumWidth(400);
7068-
mpDescriptionLabel = new Label(tr("The global translation flags are changed. The following models have local translation flags. Select which models local translation flags"
7069-
" you want to discard. Discard means that the simulation settings of the models will be reset as if you closed OMEdit and restarted"
7070-
" a new session. The new global options will first be applied, and then any further setting saved in the annotations will be applied.\n"
7071-
"Double click the model to see its existing local translation flags.\n"));
7068+
mpDescriptionLabel = new Label(tr("You just changed some global translation flags.\n\n"
7069+
"The models listed below are currently open and have different local translation flags,"
7070+
"that were selected with the Simulation Setup dialog.\n\n"
7071+
"Select the models for which you want to discard the local translation flag and apply the new global flags (*)."
7072+
"All other models will retain the current local settings until you close OMEdit.\n"));
7073+
mpDescriptionLabel2 = new Label(tr("(*) If you discard local settings, the new global settings will first be applied, and then any further settings"
7074+
"saved in the model annotations will be applied. This is the same behaviour you would get if you closed OMEdit,"
7075+
"restarted it and reopened all models.\n"));
70727076
mpDescriptionLabel->setWordWrap(true);
7077+
mpDescriptionLabel2->setWordWrap(true);
70737078
mpClassesWithLocalTranslationFlagsListWidget = new QListWidget;
70747079
mpClassesWithLocalTranslationFlagsListWidget->setObjectName("ClassesWithLocalTranslationFlagsListWidget");
70757080
mpClassesWithLocalTranslationFlagsListWidget->setItemDelegate(new ItemDelegate(mpClassesWithLocalTranslationFlagsListWidget));
@@ -7097,6 +7102,7 @@ DiscardLocalTranslationFlagsDialog::DiscardLocalTranslationFlagsDialog(QWidget *
70977102
pMainLayout->addWidget(mpDescriptionLabel);
70987103
pMainLayout->addWidget(pSelectUnSelectAll);
70997104
pMainLayout->addWidget(mpClassesWithLocalTranslationFlagsListWidget);
7105+
pMainLayout->addWidget(mpDescriptionLabel2);
71007106
pMainLayout->addWidget(mpButtonBox, 0, Qt::AlignRight);
71017107
setLayout(pMainLayout);
71027108
}

OMEdit/OMEditLIB/Options/OptionsDialog.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,6 +1108,7 @@ class DiscardLocalTranslationFlagsDialog : public QDialog
11081108
DiscardLocalTranslationFlagsDialog(QWidget *pParent = 0);
11091109
private:
11101110
Label *mpDescriptionLabel;
1111+
Label *mpDescriptionLabel2;
11111112
QListWidget *mpClassesWithLocalTranslationFlagsListWidget;
11121113
QPushButton *mpYesButton;
11131114
QPushButton *mpNoButton;

0 commit comments

Comments
 (0)