Changeset 7094b7c in OpenModelica for OMEdit/OMEditLIB/Util/StringHandler.cpp


Ignore:
Timestamp:
2020-06-12T14:35:32+02:00 (4 years ago)
Author:
Adeel Asghar <adeel.asghar@…>
Parents:
327c277
git-author:
Adeel Asghar <adeel.asghar@…> (05/29/20 14:56:19)
git-committer:
Adeel Asghar <adeel.asghar@…> (06/12/20 14:35:32)
Message:

Snapshot based redo undo functionality for OMSimulator models

Create new OMSimulator models by right clicking in the Libraries Browser
Improved the addsubmodel dialog. Let user first select the file and then propose name from filename.
Fixes ticket:5789
Fixes ticket:5984
Disable the text view if its not allowed to edit.
Tabs should be preserved when accepting text changes.
The open nodes of the tree view in the libraries browser should be preserved when accepting text changes.

Handle deletion of multiple components.
Convert dots to underscores in submodel name.
Set background-color to show the read-only ssp editor as disbaled.
Renamed OMSimulator menu item to SSP.
Use the same GUI buttons for simulation.
Separated instantiation from simulation setup.
Disable the changes once the model is in instantiated state.
Get rid of OMSSimulationOptions.h InstantiateDialog.h/.cpp
Accept text changes when user clicks in the libraries browser.
Open directly the file browser when adding a submodel.
Use just one setting for working directory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OMEdit/OMEditLIB/Util/StringHandler.cpp

    r895904a r7094b7c  
    16601660QString StringHandler::makeClassNameRelative(QString draggedClassName, QString droppedClassName)
    16611661{
    1662   if (getFirstWordBeforeDot(draggedClassName).compare(getFirstWordBeforeDot(droppedClassName)) == 0) {
     1662  if (draggedClassName.compare(droppedClassName) == 0) {
     1663    return getLastWordAfterDot(draggedClassName);
     1664  } else if (getFirstWordBeforeDot(draggedClassName).compare(getFirstWordBeforeDot(droppedClassName)) == 0) {
    16631665    return makeClassNameRelative(removeFirstWordAfterDot(draggedClassName), removeFirstWordAfterDot(droppedClassName));
    16641666  } else {
Note: See TracChangeset for help on using the changeset viewer.