@@ -820,8 +820,8 @@ void MainWindow::checkAllModels(LibraryTreeNode *pLibraryTreeNode)
820820 }
821821 else
822822 {
823- mpMessagesWidget->addGUIMessage (new MessageItem (" " , false , 0 , 0 , 0 , 0 , " Check of " + pLibraryTreeNode->getName () + " failed." ,
824- Helper::scriptingKind, Helper::notificationLevel, 0 ));
823+ mpMessagesWidget->addGUIMessage (MessageItem (" " , false , 0 , 0 , 0 , 0 , " Check of " + pLibraryTreeNode->getName () + " failed." ,
824+ Helper::scriptingKind, Helper::notificationLevel));
825825 }
826826 // hide progress bar
827827 hideProgressBar ();
@@ -845,10 +845,10 @@ void MainWindow::exportModelFMU(LibraryTreeNode *pLibraryTreeNode)
845845 double version = mpOptionsDialog->getFMIPage ()->getFMIExportVersion ();
846846 QString FMUName = mpOptionsDialog->getFMIPage ()->getFMUNameTextBox ()->text ();
847847 if (mpOMCProxy->translateModelFMU (pLibraryTreeNode->getNameStructure (), version, FMUName)) {
848- mpMessagesWidget->addGUIMessage (new MessageItem (" " , false , 0 , 0 , 0 , 0 , GUIMessages::getMessage (GUIMessages::FMU_GENERATED)
849- .arg (FMUName.isEmpty () ? pLibraryTreeNode->getNameStructure () : FMUName)
850- .arg (mpOMCProxy->changeDirectory ()), Helper::scriptingKind,
851- Helper::notificationLevel, 0 ));
848+ mpMessagesWidget->addGUIMessage (MessageItem (" " , false , 0 , 0 , 0 , 0 , GUIMessages::getMessage (GUIMessages::FMU_GENERATED)
849+ .arg (FMUName.isEmpty () ? pLibraryTreeNode->getNameStructure () : FMUName)
850+ .arg (mpOMCProxy->changeDirectory ()), Helper::scriptingKind,
851+ Helper::notificationLevel));
852852 }
853853 // hide progress bar
854854 hideProgressBar ();
@@ -871,9 +871,9 @@ void MainWindow::exportModelXML(LibraryTreeNode *pLibraryTreeNode)
871871 showProgressBar ();
872872 if (mpOMCProxy->translateModelXML (pLibraryTreeNode->getNameStructure ()))
873873 {
874- mpMessagesWidget->addGUIMessage (new MessageItem (" " , false , 0 , 0 , 0 , 0 , GUIMessages::getMessage (GUIMessages::XML_GENERATED)
875- .arg (mpOMCProxy->changeDirectory ()).arg (pLibraryTreeNode->getNameStructure ()),
876- Helper::scriptingKind, Helper::notificationLevel, 0 ));
874+ mpMessagesWidget->addGUIMessage (MessageItem (" " , false , 0 , 0 , 0 , 0 , GUIMessages::getMessage (GUIMessages::XML_GENERATED)
875+ .arg (mpOMCProxy->changeDirectory ()).arg (pLibraryTreeNode->getNameStructure ()),
876+ Helper::scriptingKind, Helper::notificationLevel));
877877 }
878878 // hide progress bar
879879 hideProgressBar ();
@@ -1327,8 +1327,8 @@ void MainWindow::instantiatesModel()
13271327 }
13281328 else
13291329 {
1330- mpMessagesWidget->addGUIMessage (new MessageItem (" " , false , 0 , 0 , 0 , 0 , GUIMessages::getMessage (GUIMessages::NO_MODELICA_CLASS_OPEN)
1331- .arg (tr (" instantiating" )), Helper::scriptingKind, Helper::notificationLevel, 0 ));
1330+ mpMessagesWidget->addGUIMessage (MessageItem (" " , false , 0 , 0 , 0 , 0 , GUIMessages::getMessage (GUIMessages::NO_MODELICA_CLASS_OPEN)
1331+ .arg (tr (" instantiating" )), Helper::scriptingKind, Helper::notificationLevel));
13321332 }
13331333}
13341334
@@ -1343,8 +1343,8 @@ void MainWindow::checkModel()
13431343 }
13441344 else
13451345 {
1346- mpMessagesWidget->addGUIMessage (new MessageItem (" " , false , 0 , 0 , 0 , 0 , GUIMessages::getMessage (GUIMessages::NO_MODELICA_CLASS_OPEN)
1347- .arg (tr (" checking" )), Helper::scriptingKind, Helper::notificationLevel, 0 ));
1346+ mpMessagesWidget->addGUIMessage (MessageItem (" " , false , 0 , 0 , 0 , 0 , GUIMessages::getMessage (GUIMessages::NO_MODELICA_CLASS_OPEN)
1347+ .arg (tr (" checking" )), Helper::scriptingKind, Helper::notificationLevel));
13481348 }
13491349}
13501350
@@ -1359,8 +1359,8 @@ void MainWindow::checkAllModels()
13591359 }
13601360 else
13611361 {
1362- mpMessagesWidget->addGUIMessage (new MessageItem (" " , false , 0 , 0 , 0 , 0 , GUIMessages::getMessage (GUIMessages::NO_MODELICA_CLASS_OPEN)
1363- .arg (tr (" checking" )), Helper::scriptingKind, Helper::notificationLevel, 0 ));
1362+ mpMessagesWidget->addGUIMessage (MessageItem (" " , false , 0 , 0 , 0 , 0 , GUIMessages::getMessage (GUIMessages::NO_MODELICA_CLASS_OPEN)
1363+ .arg (tr (" checking" )), Helper::scriptingKind, Helper::notificationLevel));
13641364 }
13651365}
13661366
@@ -1439,8 +1439,8 @@ void MainWindow::exportModelFMU()
14391439 }
14401440 else
14411441 {
1442- mpMessagesWidget->addGUIMessage (new MessageItem (" " , false , 0 , 0 , 0 , 0 , GUIMessages::getMessage (GUIMessages::NO_MODELICA_CLASS_OPEN)
1443- .arg (tr (" making FMU" )), Helper::scriptingKind, Helper::notificationLevel, 0 ));
1442+ mpMessagesWidget->addGUIMessage (MessageItem (" " , false , 0 , 0 , 0 , 0 , GUIMessages::getMessage (GUIMessages::NO_MODELICA_CLASS_OPEN)
1443+ .arg (tr (" making FMU" )), Helper::scriptingKind, Helper::notificationLevel));
14441444 }
14451445}
14461446
@@ -1456,8 +1456,8 @@ void MainWindow::exportModelXML()
14561456 }
14571457 else
14581458 {
1459- mpMessagesWidget->addGUIMessage (new MessageItem (" " , false , 0 , 0 , 0 , 0 , GUIMessages::getMessage (GUIMessages::NO_MODELICA_CLASS_OPEN)
1460- .arg (tr (" making XML" )), Helper::scriptingKind, Helper::notificationLevel, 0 ));
1459+ mpMessagesWidget->addGUIMessage (MessageItem (" " , false , 0 , 0 , 0 , 0 , GUIMessages::getMessage (GUIMessages::NO_MODELICA_CLASS_OPEN)
1460+ .arg (tr (" making XML" )), Helper::scriptingKind, Helper::notificationLevel));
14611461 }
14621462}
14631463
@@ -1473,8 +1473,8 @@ void MainWindow::exportModelFigaro()
14731473 }
14741474 else
14751475 {
1476- mpMessagesWidget->addGUIMessage (new MessageItem (" " , false , 0 , 0 , 0 , 0 , GUIMessages::getMessage (GUIMessages::NO_MODELICA_CLASS_OPEN)
1477- .arg (tr (" exporting to Figaro" )), Helper::scriptingKind, Helper::notificationLevel, 0 ));
1476+ mpMessagesWidget->addGUIMessage (MessageItem (" " , false , 0 , 0 , 0 , 0 , GUIMessages::getMessage (GUIMessages::NO_MODELICA_CLASS_OPEN)
1477+ .arg (tr (" exporting to Figaro" )), Helper::scriptingKind, Helper::notificationLevel));
14781478 }
14791479}
14801480
@@ -1499,8 +1499,8 @@ void MainWindow::exportModelToOMNotebook()
14991499 }
15001500 else
15011501 {
1502- mpMessagesWidget->addGUIMessage (new MessageItem (" " , false , 0 , 0 , 0 , 0 , GUIMessages::getMessage (GUIMessages::NO_MODELICA_CLASS_OPEN)
1503- .arg (tr (" exporting to OMNotebook" )), Helper::scriptingKind, Helper::notificationLevel, 0 ));
1502+ mpMessagesWidget->addGUIMessage (MessageItem (" " , false , 0 , 0 , 0 , 0 , GUIMessages::getMessage (GUIMessages::NO_MODELICA_CLASS_OPEN)
1503+ .arg (tr (" exporting to OMNotebook" )), Helper::scriptingKind, Helper::notificationLevel));
15041504 }
15051505}
15061506
@@ -1649,8 +1649,8 @@ void MainWindow::exportModelAsImage(bool copyToClipboard)
16491649 hideProgressBar ();
16501650 }
16511651 } else {
1652- mpMessagesWidget->addGUIMessage (new MessageItem (" " , false , 0 , 0 , 0 , 0 , GUIMessages::getMessage (GUIMessages::NO_MODELICA_CLASS_OPEN)
1653- .arg (tr (" exporting to Image" )), Helper::scriptingKind, Helper::notificationLevel, 0 ));
1652+ mpMessagesWidget->addGUIMessage (MessageItem (" " , false , 0 , 0 , 0 , 0 , GUIMessages::getMessage (GUIMessages::NO_MODELICA_CLASS_OPEN)
1653+ .arg (tr (" exporting to Image" )), Helper::scriptingKind, Helper::notificationLevel));
16541654 }
16551655}
16561656
0 commit comments