Skip to content

Commit

Permalink
ticket:4975 Fixed handling of simulation options.
Browse files Browse the repository at this point in the history
Start with the default simulation options, then apply the experiment and __OpenModelica_simulationFlags annotation.
After that all the user changes of simulation options are stored inside OMEdit.
  • Loading branch information
adeas31 committed Jul 12, 2018
1 parent bcacb27 commit 857e886
Show file tree
Hide file tree
Showing 33 changed files with 758 additions and 623 deletions.
1 change: 1 addition & 0 deletions OMEdit/OMEditGUI/Annotations/LineAnnotation.cpp
Expand Up @@ -34,6 +34,7 @@

#include "MainWindow.h"
#include "LineAnnotation.h"
#include "Modeling/ItemDelegate.h"
#include "Modeling/Commands.h"

#include <QMessageBox>
Expand Down
1 change: 0 additions & 1 deletion OMEdit/OMEditGUI/Annotations/ShapeAnnotation.cpp
Expand Up @@ -36,7 +36,6 @@
#include "Util/Helper.h"
#include "MainWindow.h"
#include "Options/OptionsDialog.h"
#include "Modeling/ModelWidgetContainer.h"
#include "ShapePropertiesDialog.h"
#include "Modeling/Commands.h"
#include "Component/ComponentProperties.h"
Expand Down
2 changes: 2 additions & 0 deletions OMEdit/OMEditGUI/Debugger/Attach/AttachToProcessDialog.cpp
Expand Up @@ -33,11 +33,13 @@

#include "AttachToProcessDialog.h"
#include "Modeling/LibraryTreeWidget.h"
#include "Modeling/ItemDelegate.h"
#include "Options/OptionsDialog.h"
#include "Debugger/GDB/GDBAdapter.h"

#include <QHeaderView>
#include <QMessageBox>
#include <QGridLayout>

/*!
* \class AttachToProcessDialog
Expand Down
3 changes: 3 additions & 0 deletions OMEdit/OMEditGUI/Debugger/Breakpoints/BreakpointDialog.cpp
Expand Up @@ -34,13 +34,16 @@
#include "BreakpointDialog.h"
#include "MainWindow.h"
#include "BreakpointsWidget.h"
#include "BreakpointMarker.h"
#include "Util/Helper.h"
#include "Util/Utilities.h"
#include "Modeling/LibraryTreeWidget.h"
#include "Modeling/ModelicaClassDialog.h"
#include "Modeling/ModelWidgetContainer.h"

#include <limits>
#include <QMessageBox>
#include <QGridLayout>

/*!
* \class BreakpointDialog
Expand Down
Expand Up @@ -37,6 +37,7 @@
#include "Debugger/GDB/CommandFactory.h"
#include "Util/Helper.h"
#include "Modeling/ModelWidgetContainer.h"
#include "Modeling/ItemDelegate.h"

#include <QGridLayout>
#include <QMenu>
Expand Down
1 change: 1 addition & 0 deletions OMEdit/OMEditGUI/Debugger/DebuggerConfigurationsDialog.cpp
Expand Up @@ -33,6 +33,7 @@

#include "DebuggerConfigurationsDialog.h"
#include "Modeling/LibraryTreeWidget.h"
#include "Modeling/ItemDelegate.h"
#include "Debugger/GDB/GDBAdapter.h"
#include "Util/Helper.h"
#include "Util/StringHandler.h"
Expand Down
2 changes: 1 addition & 1 deletion OMEdit/OMEditGUI/Debugger/GDB/GDBAdapter.cpp
Expand Up @@ -1401,7 +1401,7 @@ void GDBAdapter::handleGDBProcessStarted()
*/
void GDBAdapter::handleGDBProcessStartedForSimulation()
{
QFileInfo resultFileInfo(QString(mSimulationOptions.getWorkingDirectory()).append("/").append(mSimulationOptions.getResultFileName()));
QFileInfo resultFileInfo(QString(mSimulationOptions.getWorkingDirectory()).append("/").append(mSimulationOptions.getFullResultFileName()));
if (resultFileInfo.exists()) {
mResultFileLastModifiedDateTime = resultFileInfo.lastModified();
}
Expand Down
5 changes: 5 additions & 0 deletions OMEdit/OMEditGUI/Debugger/Locals/LocalsWidget.cpp
Expand Up @@ -34,12 +34,17 @@
#include "Debugger/Locals/LocalsWidget.h"
#include "MainWindow.h"
#include "Modeling/LibraryTreeWidget.h"
#include "Modeling/ItemDelegate.h"
#include "Debugger/GDB/GDBAdapter.h"
#include "Debugger/StackFrames/StackFramesWidget.h"
#include "Debugger/Locals/ModelicaValue.h"
#include "Debugger/GDB/CommandFactory.h"
#include "Util/Helper.h"

#include <QSplitter>
#include <QGridLayout>
#include <QHBoxLayout>

/*!
* \class LocalsTreeItem
* \brief Contains the information about the local variable.
Expand Down
2 changes: 2 additions & 0 deletions OMEdit/OMEditGUI/Debugger/StackFrames/StackFramesWidget.cpp
Expand Up @@ -35,12 +35,14 @@
#include "Options/OptionsDialog.h"
#include "MainWindow.h"
#include "Modeling/LibraryTreeWidget.h"
#include "Modeling/ItemDelegate.h"
#include "Debugger/GDB/GDBAdapter.h"
#include "Debugger/GDB/CommandFactory.h"
#include "Debugger/Locals/LocalsWidget.h"

#include <QMenu>
#include <QMessageBox>
#include <QHBoxLayout>

StackFrameItem::StackFrameItem(QString level, QString address, QString function, QString line, QString file, QString fullName, StackFramesTreeWidget *pStackFramesTreeWidget)
: QTreeWidgetItem(pStackFramesTreeWidget)
Expand Down
4 changes: 4 additions & 0 deletions OMEdit/OMEditGUI/Editors/ModelicaEditor.cpp
Expand Up @@ -35,14 +35,18 @@
#include "ModelicaEditor.h"
#include "MainWindow.h"
#include "OMC/OMCProxy.h"
#include "Modeling/LibraryTreeWidget.h"
#include "Modeling/ModelWidgetContainer.h"
#include "Options/OptionsDialog.h"
#include "Debugger/Breakpoints/BreakpointMarker.h"
#include "Util/Helper.h"
#include "Options/NotificationsDialog.h"

#include <QCompleter>
#include <QMenu>
#include <QMessageBox>


/*!
* \class ModelicaEditor
* \brief An editor for Modelica Text.
Expand Down
1 change: 1 addition & 0 deletions OMEdit/OMEditGUI/FMI/ImportFMUDialog.cpp
Expand Up @@ -43,6 +43,7 @@
#include "Git/CommitChangesDialog.h"

#include <QMessageBox>
#include <QGridLayout>

/*!
* \class ImportFMUDialog
Expand Down
2 changes: 2 additions & 0 deletions OMEdit/OMEditGUI/FMI/ImportFMUModelDescriptionDialog.cpp
Expand Up @@ -36,12 +36,14 @@
#include "MainWindow.h"
#include "OMC/OMCProxy.h"
#include "Modeling/LibraryTreeWidget.h"
#include "Modeling/ModelWidgetContainer.h"
#include "Options/OptionsDialog.h"
#include "Git/CommitChangesDialog.h"
#include "Util/Helper.h"
#include "Util/StringHandler.h"

#include <QMessageBox>
#include <QGridLayout>

/*!
* \class ImportFMUModelDescriptionDialog
Expand Down
1 change: 1 addition & 0 deletions OMEdit/OMEditGUI/MainWindow.cpp
Expand Up @@ -36,6 +36,7 @@
#include "MainWindow.h"
/* Keep PlotWindowContainer on top to include OSG first */
#include "Plotting/PlotWindowContainer.h"
#include "Modeling/ModelWidgetContainer.h"
#include "Options/OptionsDialog.h"
#include "Modeling/MessagesWidget.h"
#include "Modeling/LibraryTreeWidget.h"
Expand Down

0 comments on commit 857e886

Please sign in to comment.