File size: 4,740 Bytes
b1b3bae
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
Imports DWSIM.Interfaces.Enums
Imports DWSIM.Interfaces.Enums.GraphicObjects

'    DWSIM Interface definitions
'    Copyright 2010-2017 Daniel Wagner O. de Medeiros
'
'    This file is part of DWSIM.
'
'    DWSIM is free software: you can redistribute it and/or modify
'    it under the terms of the GNU General Public License as published by
'    the Free Software Foundation, either version 3 of the License, or
'    (at your option) any later version.
'
'    DWSIM is distributed in the hope that it will be useful,
'    but WITHOUT ANY WARRANTY; without even the implied warranty of
'    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
'    GNU General Public License for more details.
'
'    You should have received a copy of the GNU General Public License
'    along with DWSIM.  If not, see <http://www.gnu.org/licenses/>.

''' <summary>
''' This interface defines the flowsheet settings and other properties.
''' </summary>
<InterfaceType(ComInterfaceType.InterfaceIsIDispatch)>
Public Interface IFlowsheetOptions

    Property NumberFormat As String
    Property FractionNumberFormat As String

    Property SimulationName As String
    Property SimulationAuthor As String
    Property SimulationComments As String

    Property FilePath As String

    Property BackupFileName As String

    <Xml.Serialization.XmlIgnore> Property Password As String
    <Xml.Serialization.XmlIgnore> Property UsePassword As Boolean

    Property FlowsheetSnapToGrid As Boolean
    Property FlowsheetDisplayGrid As Boolean
    Property FlowsheetQuickConnect As Boolean
    Property FlowsheetShowConsoleWindow As Boolean
    Property FlowsheetShowCOReportsWindow As Boolean
    Property FlowsheetShowCalculationQueue As Boolean
    Property FlowsheetShowWatchWindow As Boolean

    Property FlowsheetControlPanelMode As Boolean

    Property Key As String

    Property SelectedUnitSystem As IUnitsOfMeasure

    Property VisibleProperties As Dictionary(Of String, List(Of String))

    Property SimultaneousAdjustSolverEnabled As Boolean

    Property SpreadsheetUseRegionalSeparator As Boolean

    Property SpreadsheetUnitLockingMode As Boolean

    Property MassBalanceCheck As WarningType

    Property EnergyBalanceCheck As WarningType

    Property MassBalanceRelativeTolerance As Double

    Property EnergyBalanceRelativeTolerance As Double

    Property DisplayFloatingPropertyTables As Boolean

    Property DisplayCornerPropertyList As Boolean

    Property DisplayCornerPropertyListPosition As ListPosition

    Property DisplayCornerPropertyListFontName As String

    Property DisplayCornerPropertyListFontSize As Integer

    Property DisplayCornerPropertyListFontColor As String

    Property DisplayCornerPropertyListPadding As Integer

    Property DefaultFloatingTableCompoundAmountBasis As Enums.CompositionBasis

    Property DisplayFloatingTableCompoundAmounts As Boolean

    Property FlowsheetMultiSelectMode As Boolean

    Property CompoundOrderingMode As CompoundOrdering

    Property SkipEquilibriumCalculationOnDefinedStreams As Boolean

    Property ForceStreamPhase As Enums.ForcedPhase

    Property DisplayUserDefinedPropertiesEditor As Boolean

    Property LabelFontSize As Double

    Property RegularFontName As String

    Property BoldFontName As String

    Property ItalicFontName As String

    Property FlowsheetColorTheme As Integer

    Property BoldItalicFontName As String

    Property DisplayEnergyStreamPowerValue As Boolean

    Property DisplayMaterialStreamMassFlowValue As Boolean

    Property DisplayMaterialStreamMolarFlowValue As Boolean

    Property DisplayMaterialStreamVolFlowValue As Boolean

    Property DisplayMaterialStreamTemperatureValue As Boolean

    Property DisplayMaterialStreamPressureValue As Boolean

    Property DisplayMaterialStreamEnergyFlowValue As Boolean

    Property DisplayDynamicPropertyValues As Boolean

    Property AddObjectsWithStreams As Integer

    Property VirtualFile As IVirtualFile

    Property CurrentWeather As IWeatherData

    Property CustomCalculationOrder As List(Of String)

    Property SpecCalculationMode As SpecCalcMode

    Property ForceObjectSolving As Boolean

    Property SaveFlowsheetMessagesInFile As Boolean

    Property SingleUnitOpMode As Boolean

    Property SingleUnitOpID As String

    Property RTFAnnotations As String

    Property EnabledUndoRedo As Boolean

    Property EnableGHGEmissionsSubsystem As Boolean

    Property FlowsheetTransitionObject As IFlowsheetTransitionRestore

    ReadOnly Property UniqueID As String

End Interface