msgstr ""
msgid "VisuGUI_TextPrefDlg::TIT_TEXT_PREF"
-msgstr "Text property"
+msgstr "Text properties"
msgid "VisuGUI_TextPrefDlg::LBL_TITLE"
msgstr "Title"
msgstr ""
msgid "VisuGUI_BarPrefDlg::TIT_BAR_PREF"
-msgstr "Bar property"
+msgstr "Bar properties"
msgid "VisuGUI_BarPrefDlg::LBL_TITLE_W"
msgstr "Title width (%)"
msgid "VisuGUI_BarPrefDlg::MSG_LABEL_FORMAT"
msgstr "Labels format is invalid."
+msgid "VisuGUI_BarPrefDlg::MSG_BIG_SCALE"
+msgstr "The common (Title, Label, Bar) width or height should not be greater then 100%."
+
msgid "VisuGUI_BarPrefDlg::AUTO"
msgstr "auto"
tr("MSG_LABEL_FORMAT"),
tr("BUT_OK"));
} else {
- QDialog::accept();
+ if(
+ (
+ TitleWidthSpin->value()+
+ LabelWidthSpin->value()+
+ BarWidthSpin->value()
+ > 100
+ ) ||
+ (
+ TitleHeightSpin->value()+
+ LabelHeightSpin->value()+
+ BarHeightSpin->value()
+ > 100
+ )
+ ) {
+ SUIT_MessageBox::warn1( this,tr("WRN_VISU"),
+ tr("MSG_BIG_SCALE"),
+ tr("BUT_OK"));
+ } else {
+ myTitleWidth = TitleWidthSpin->value();
+ myTitleHeight = TitleHeightSpin->value();
+ myLabelWidth = LabelWidthSpin->value();
+ myLabelHeight = LabelHeightSpin->value();
+ myBarWidth = BarWidthSpin->value();
+ myBarHeight = BarHeightSpin->value();
+ myUnits = CBUnits->isChecked();
+ myUnitsFormat = UnitsEdit->text();
+ QDialog::accept();
+ }
}
}