Skip to content

Commit

Permalink
Call the preferredView string the 'view'
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Dec 10, 2021
1 parent 8d344c0 commit 4026dd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapters/annotations.tex
Expand Up @@ -1130,11 +1130,11 @@ \section{Annotations for the Graphical User Interface}\label{annotations-for-the
This section describes the annotations that are used to define properties of the graphical user interface.

\begin{lstlisting}[language=modelica]
annotation(preferredView = $\mathit{layer}$)
annotation(preferredView = $\mathit{view}$)
\end{lstlisting}

The \fmtannotationindex{preferredView} annotation defines the default view when selecting the class.
The $\mathit{layer}$ is a \lstinline!String! literal where \lstinline!"info"! means information layer, i.e., the documentation of the class, \lstinline!"diagram"! means diagram layer, \lstinline!"icon" means icon layer, and \lstinline!"text"! means the Modelica text layer.
The $\mathit{view}$ is a \lstinline!String! literal where \lstinline!"info"! means class documentation, \lstinline!"diagram"! means class diagram, \lstinline!"icon" means class icon, and \lstinline!"text"! means Modelica source code.

\begin{lstlisting}[language=grammar]
documentation-class-annotation:
Expand Down

0 comments on commit 4026dd6

Please sign in to comment.