Try   HackMD

How to edit COSMOSS GUIs

The Graphic User Interfaces (GUIs) of COSMOSS were written with the appdesigner of Matlb. I used to use GUIDE wordle for the GUIs but found the appdesigner is much scalable.

Editing Main GUI

To edit the GUIs, you need to call the appdesigner command with the '.mlapp' files. For example, to edit the main GUI, I can type the following in the Matlab working space[1]:

> appdesigner COSMOSS

You should see the appdesigner interface shows up as following:

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

The above figure shows the design view, which allows you to edit the graphical elements. The other tab on the top right named 'Code View' will give you access to the source code for further editing:

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Here is an nice video for how to use the appdesigner in general.

Editing other GUIs

Other GUIs can be found in the sub-folders in the COSMOSS source code folder. The structure modeling GUIs were stored in the "MoleculeConstruction" folders. The analysis tool GUIs were stored in the "AnalysisTools" fold. All the GUIs generated by the Matlab appdesigner end with a ".mlapp" extension.

tags: tutorials COSMOSS

  1. For the command to work, your Matlab current folder should be the COSMOSS source code folder. Otherwise the appdesigner can't find the 'COSMOSS.mlapp' file. ↩︎