Changeset b0383b2 in OpenModelica
- Timestamp:
- 2018-05-09T10:45:21+02:00 (6 years ago)
- Branches:
- Added-citation-metadata, maintenance/v1.14, maintenance/v1.15, maintenance/v1.16, maintenance/v1.17, maintenance/v1.18, maintenance/v1.19, maintenance/v1.20, maintenance/v1.21, maintenance/v1.22, maintenance/v1.23, master, omlib-staging
- Children:
- 57f144b7
- Parents:
- a86472e (diff), afcb6057 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Location:
- OMEdit/OMEditGUI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
OMEdit/OMEditGUI/OMC/OMCProxy.cpp
r072b5c8c r881575c 2501 2501 // go through the list of links and convert them if needed. 2502 2502 foreach (QString attribute, attributeMatches) { 2503 if (attribute.startsWith("modelica://")) { 2503 // ticket:4923 Modelica specification allows both modelica:// and Modelica:// 2504 if (attribute.startsWith("modelica://") || attribute.startsWith("Modelica://")) { 2504 2505 QString fileName = uriToFilename(attribute); 2505 2506 #ifdef WIN32 -
OMEdit/OMEditGUI/Plotting/VariablesWidget.cpp
re2aff3c8 rafcb6057 1501 1501 } 1502 1502 } 1503 } else if (pPlotWindow->getPlotType() == PlotWindow::PLOTPARAMETRIC ) { // if plottype is PLOTPARAMETRIC then1503 } else if (pPlotWindow->getPlotType() == PlotWindow::PLOTPARAMETRIC || pPlotWindow->getPlotType() == PlotWindow::PLOTARRAYPARAMETRIC) { // if plottype is PLOTPARAMETRIC or PLOTARRAYPARAMETRIC then 1504 1504 // check the item checkstate 1505 1505 if (pVariablesTreeItem->isChecked()) { … … 1535 1535 if (pPlotWindow->getPlotType() == PlotWindow::PLOTPARAMETRIC) 1536 1536 pPlotWindow->plotParametric(pPlotCurve); 1537 else /* ie. (pPlotWindow->getPlotType() == PlotWindow::PLOTARRAYPARAMETRIC)*/{1537 else /* ie. (pPlotWindow->getPlotType() == PlotWindow::PLOTARRAYPARAMETRIC)*/{ 1538 1538 double timePercent = mpSimulationTimeSlider->value(); 1539 1539 pPlotWindow->plotArrayParametric(timePercent,pPlotCurve); … … 1772 1772 PlotWindow *pPlotWindow = MainWindow::instance()->getPlotWindowContainer()->getCurrentWindow(); 1773 1773 if (pPlotWindow) { 1774 //PLOT, PLOTALL, PLOTPARAMETRIC, PLOTARRAY, PLOTARRAYPARAMETRIC}1775 1774 PlotWindow::PlotType plotType = pPlotWindow->getPlotType(); 1776 if (plotType == PlotWindow::PLOT ||1777 plotType == PlotWindow::PLOTALL ||1778 plotType == PlotWindow::PLOTPARAMETRIC) {1779 return;1780 }1781 QList<PlotCurve*> curves = pPlotWindow->getPlot()->getPlotCurvesList();1782 1775 if (plotType == PlotWindow::PLOTARRAY) { 1776 QList<PlotCurve*> curves = pPlotWindow->getPlot()->getPlotCurvesList(); 1783 1777 foreach (PlotCurve* curve, curves) { 1784 1778 QString varName = curve->getYVariable(); … … 1787 1781 } 1788 1782 } else if (plotType == PlotWindow::PLOTARRAYPARAMETRIC) { 1783 QList<PlotCurve*> curves = pPlotWindow->getPlot()->getPlotCurvesList(); 1789 1784 foreach (PlotCurve* curve, curves) { 1790 1785 QString xVarName = curve->getXVariable(); … … 1793 1788 pPlotWindow->plotArrayParametric(timePercent, curve); 1794 1789 } 1790 } else { 1791 return; 1795 1792 } 1796 1793 }
Note: See TracChangeset
for help on using the changeset viewer.