diff --git a/OMEdit/OMEdit/OMEditGUI/MainWindow.cpp b/OMEdit/OMEdit/OMEditGUI/MainWindow.cpp index 9644f65f70e..cfb5ae68f19 100644 --- a/OMEdit/OMEdit/OMEditGUI/MainWindow.cpp +++ b/OMEdit/OMEdit/OMEditGUI/MainWindow.cpp @@ -2637,11 +2637,11 @@ void MainWindow::openConfigurationOptions() void MainWindow::openUsersGuide() { QUrl usersGuidePath (QString("file:///").append(QString(Helper::OpenModelicaHome).replace("\\", "/")) - .append("/share/doc/omc/OpenModelicaUsersGuide/index.html")); + .append("/share/doc/omc/index.html")); if (!QDesktopServices::openUrl(usersGuidePath)) { MessagesWidget::instance()->addGUIMessage(MessageItem(MessageItem::Modelica, - GUIMessages::getMessage(GUIMessages::UNABLE_TO_OPEN_FILE).arg(usersGuidePath.toString()), - Helper::scriptingKind, Helper::errorLevel)); + GUIMessages::getMessage(GUIMessages::UNABLE_TO_OPEN_FILE).arg(usersGuidePath.toString()), + Helper::scriptingKind, Helper::errorLevel)); } } @@ -2656,24 +2656,8 @@ void MainWindow::openUsersGuidePdf() .append("/share/doc/omc/OpenModelicaUsersGuide-latest.pdf")); if (!QDesktopServices::openUrl(usersGuidePath)) { MessagesWidget::instance()->addGUIMessage(MessageItem(MessageItem::Modelica, - GUIMessages::getMessage(GUIMessages::UNABLE_TO_OPEN_FILE).arg(usersGuidePath.toString()), - Helper::scriptingKind, Helper::errorLevel)); - } -} - -/*! - * \brief MainWindow::openUsersGuideOldPdf - * Slot activated when mpUsersGuideOldPdfAction triggered signal is raised.\n - * Opens the old pdf versions of OpenModelica users guide. - */ -void MainWindow::openUsersGuideOldPdf() -{ - QUrl usersGuidePath (QString("file:///").append(QString(Helper::OpenModelicaHome).replace("\\", "/")) - .append("/share/doc/omc/OpenModelicaUsersGuide.pdf")); - if (!QDesktopServices::openUrl(usersGuidePath)) { - MessagesWidget::instance()->addGUIMessage(MessageItem(MessageItem::Modelica, - GUIMessages::getMessage(GUIMessages::UNABLE_TO_OPEN_FILE).arg(usersGuidePath.toString()), - Helper::scriptingKind, Helper::errorLevel)); + GUIMessages::getMessage(GUIMessages::UNABLE_TO_OPEN_FILE).arg(usersGuidePath.toString()), + Helper::scriptingKind, Helper::errorLevel)); } } @@ -2685,11 +2669,11 @@ void MainWindow::openUsersGuideOldPdf() void MainWindow::openSystemDocumentation() { QUrl systemDocumentationPath (QString("file:///").append(QString(Helper::OpenModelicaHome).replace("\\", "/")) - .append("/share/doc/omc/SystemDocumentation/OpenModelicaSystem.pdf")); + .append("/share/doc/omc/OpenModelicaSystem.pdf")); if (!QDesktopServices::openUrl(systemDocumentationPath)) { MessagesWidget::instance()->addGUIMessage(MessageItem(MessageItem::Modelica, - GUIMessages::getMessage(GUIMessages::UNABLE_TO_OPEN_FILE).arg(systemDocumentationPath.toString()), - Helper::scriptingKind, Helper::errorLevel)); + GUIMessages::getMessage(GUIMessages::UNABLE_TO_OPEN_FILE).arg(systemDocumentationPath.toString()), + Helper::scriptingKind, Helper::errorLevel)); } } diff --git a/OMEdit/OMEdit/OMEditGUI/MainWindow.h b/OMEdit/OMEdit/OMEditGUI/MainWindow.h index 7d0119faf25..2498625ecd0 100644 --- a/OMEdit/OMEdit/OMEditGUI/MainWindow.h +++ b/OMEdit/OMEdit/OMEditGUI/MainWindow.h @@ -521,7 +521,6 @@ public slots: void openConfigurationOptions(); void openUsersGuide(); void openUsersGuidePdf(); - void openUsersGuideOldPdf(); void openSystemDocumentation(); void openOpenModelicaScriptingDocumentation(); void openModelicaDocumentation(); diff --git a/OMEdit/OMEdit/OMEditGUI/Simulation/SimulationDialog.cpp b/OMEdit/OMEdit/OMEditGUI/Simulation/SimulationDialog.cpp index 282c26f905c..d119c0f4bb0 100644 --- a/OMEdit/OMEdit/OMEditGUI/Simulation/SimulationDialog.cpp +++ b/OMEdit/OMEdit/OMEditGUI/Simulation/SimulationDialog.cpp @@ -2170,7 +2170,7 @@ void SimulationDialog::enableDasslIdaOptions(QString method) void SimulationDialog::showIntegrationHelp() { QUrl integrationAlgorithmsPath (QString("file:///").append(QString(Helper::OpenModelicaHome).replace("\\", "/")) - .append("/share/doc/omc/OpenModelicaUsersGuide/simulationflags.html#integration-methods")); + .append("/share/doc/omc/simulationflags.html#integration-methods")); if (!QDesktopServices::openUrl(integrationAlgorithmsPath)) { QString errorMessage = GUIMessages::getMessage(GUIMessages::UNABLE_TO_OPEN_FILE).arg(integrationAlgorithmsPath.toString()); MessagesWidget::instance()->addGUIMessage(MessageItem(MessageItem::Modelica, errorMessage, Helper::scriptingKind, Helper::errorLevel)); @@ -2257,7 +2257,7 @@ void SimulationDialog::browseDataReconciliationInputFile() void SimulationDialog::showSimulationFlagsHelp() { QUrl integrationAlgorithmsPath (QString("file:///").append(QString(Helper::OpenModelicaHome).replace("\\", "/")) - .append("/share/doc/omc/OpenModelicaUsersGuide/simulationflags.html")); + .append("/share/doc/omc/simulationflags.html")); if (!QDesktopServices::openUrl(integrationAlgorithmsPath)) { QString errorMessage = GUIMessages::getMessage(GUIMessages::UNABLE_TO_OPEN_FILE).arg(integrationAlgorithmsPath.toString()); MessagesWidget::instance()->addGUIMessage(MessageItem(MessageItem::Modelica, errorMessage, Helper::scriptingKind, Helper::errorLevel)); diff --git a/OMEdit/OMEdit/OMEditGUI/Simulation/TranslationFlagsWidget.cpp b/OMEdit/OMEdit/OMEditGUI/Simulation/TranslationFlagsWidget.cpp index 8c2b26f9342..1ac5d71574e 100644 --- a/OMEdit/OMEdit/OMEditGUI/Simulation/TranslationFlagsWidget.cpp +++ b/OMEdit/OMEdit/OMEditGUI/Simulation/TranslationFlagsWidget.cpp @@ -247,7 +247,7 @@ void TranslationFlagsWidget::updateIndexReductionToolTip(int index) void TranslationFlagsWidget::showTranslationFlagsHelp() { QUrl omcHelpTextPath (QString("file:///").append(QString(Helper::OpenModelicaHome).replace("\\", "/")) - .append("/share/doc/omc/OpenModelicaUsersGuide/omchelptext.html")); + .append("/share/doc/omc/omchelptext.html")); if (!QDesktopServices::openUrl(omcHelpTextPath)) { QMessageBox::critical(this, QString("%1 - %2").arg(Helper::applicationName, Helper::error), GUIMessages::getMessage(GUIMessages::UNABLE_TO_OPEN_FILE).arg(omcHelpTextPath.toString()), Helper::ok);