OpenModelica System Documentation Preliminary Draft, 2006-06-13


Chapter 4 OMNotebook and OMShell



Download 0.72 Mb.
Page10/12
Date09.01.2017
Size0.72 Mb.
#8101
1   ...   4   5   6   7   8   9   10   11   12

Chapter 4

OMNotebook and OMShell


This chapter covers the OpenModelica electronic notebook subsystem, called OMNotebook. Both OMNotebook and OMShell uses the development framework Qt.

4.1Qt


Qt is an object-oriented, platform independent, C++ development framework created and maintained by Trolltech. Qt includes a comprehensive class library, with more then 400 classes, and several tools for development. The Qt API has a rich set of classes and functionality for several types of development and programming. In OMNotebook Qt have been used for GUI programming, file handling and XML, but Qt can be used for database programming, networking, internationalization, OpenGL integration and much more.

Qt is consistent across all supported platforms, which enable developers to create truly platform independent applications. Using Qt, developers can create native applications for Windows, Mac and X11 platforms. Qt requires no virtual machines, emulation layers or bulky runtime environments. Instead Qt writes directly to low-level graphics function like native applications, which allows Qt applications to run natively. Trolltech have designed Qt to be easy and intuitive to use.


4.2HTML documentation


Using Doxygen a HTML documentation have been generated from the source files. This documentation contatins information about the different classes, functions and files belonging to OMNotebook. The documentation is found on the SVN under OMNotebook/Doxygen_doc.

4.3Mathematica Notebook Parser


OMNotebook have a parser implemented that can read Mathematica notebooks. This parser is generated by ANTLR using grammar descriptions. This is an EBNF grammar for the Mathematica notebook fullform format, taken from the grammar definition for the Mathematica notebook parser.
document ::=
expr ::= (FrontEnd´)*

|

|

exprheader ::=

Notebook [ (, )* ]

| List [ ()* (, )* ]

| list [ ()* (, )* ]

| Cell [ (, )? (, )* ]

| CellGroupData [ (, Open|Closed)) ]

| TextData [ (, )* (, )* ]

| StyleBox [ (, )* (, )* ]

| StyleData [ (, )* (, )* ]

| SuperscriptBox [ , ]

| SubscriptBox [ , ]

| SubsuperscriptBox [ (, )* (, )* ]

| UnderscriptBox [ (, )* (, )* ]

| OverscriptBox [ (, )* (, )* ]

| UnderoverscriptBox [ (, )* (, )* ]

| FractionBox [ (, )* (, )* ]

| SqrtBox [ (, )* (, )* ]

| RadicalBox [ (, )* (, )* ]

| RowBox [ (, )* (, )* ]

| GridBox [ (, )* (, )* ]

| FormBox [ (, )* (, )* ]

| TagBox [ (, )* (, )* ]

| CounterBox [ (, )* (, )* ]

| AdjustmentBox [ (, )* (, )* ]

| ButtonBox [ (, )* (, )* ]

| InterpretationBox [ , ]

| Annotation [ (, )* (, )* ]

| Equal [ (, )* (, )* ]

| Diagram [ (, )* (, )* ]

| Icon [ (, )* (, )* ]

| Polygon [ (, )* (, )* ]

| Ellipse [ (, )* (, )* ]

| Line [ (, )* (, )* ]

| GreyLevel [ (, )* (, )* ]

| OLEData [ (, )* (, )* ]

| RGBColor [ Number, Number, Number ]

| Filename [ (, )* (, )* ]

| BoxData [ (, )* (, )* ]

| GraphicsData [ String, String (, )* ]

| DirectedInfinity [ Number ]

| StartModelEditor [ ]

| ParentDirectory [ ]
listbody ::= (|)
rule ::= Rule [ (, ) ]

| rule [ (, ) ]

| RuleDelayed [ (, ) ]
value ::= String

| Number


| True

| False


| Right

| Left


| Center

| Smaller

| Inherited

| PaperWidth

| WindowWidth

| TraditionalForm

| StandardForm

| InputForm

| OutputForm

| DefaultInputFormatType

| Automatic

| None


| Null

| All
attribute ::= FontSlant

| FontSize

| FontColor

| FontWeight

| FontFamily

| FontVariation

| TextAlignment

| TextJustification

| InitializationCell

| FormatType

| PageWidth

| PageHeaders

| PageHeaderLines

| PageFooters

| PageFooterLines

| PageBreakBelow

| PageBreakWithin

| BoxMargins

| BoxBaselineShift

| LineSpacing

| Hyphenation

| Active

| Visible

| Evaluatable

| ButtonFuncion

| ButtonData

| ButtonEvaluator

| ButtonStyle

| CharacterEncoding

| ShowStringCharacters

| ScreenRectangle

| AutoGeneratedPackage

| AutoItalicWords

| InputAutoReplacements

| ScriptMinSize

| StyleMenuListing

| CounterIncrements

| CounterAssignments

| PrivateEvaluationOptions

| GroupPageBreakWithin

| DefaultFormatType

| NumberMarks

| LinebreakAdjustments

| VisioLineFormat

| VisioFillFormat

| Extent

| NamePosition

| CellTags

| CellFrame

| CellFrameColor

| CellFrameLabels

| CellFrameMargins

| CellFrameLabelMargins

| CellLabelMargins

| CellLabelPositioning

| CellMargins

| CellDingbat

| CellHorizontalScrolling

| CellOpen

| GeneratedCell

| ShowCellBracket

| ShowCellLabel

| CellBracketOptions

| Editable

| Background

| CellGroupingRules

| WindowSize

| WindowMargins

| WindowFrame

| WindowElements

| WindowTitle

| WindowToolbars

| WindowMoveable

| WindowFloating

| WindowClickSelect

| StyleDefinitions

| FrontEndVersion

| ScreenStyleEnvironment

| PrintingStyleEnvironment

| PrintingOptions

| PrintingCopies

| PrintingPageRange

| PrivateFontOptions

| Magnification

| GenerateCell

| CellAutoOverwrite

| ImageSize

| ImageMargins

| ImageRegion

| ImageRangeCache

| ImageCache



| ModelEditor


Download 0.72 Mb.

Share with your friends:
1   ...   4   5   6   7   8   9   10   11   12




The database is protected by copyright ©ininet.org 2024
send message

    Main page