- Timestamp:
- 01/22/07 09:30:35 (19 months ago)
- Location:
- EVA/trunk
- Files:
-
- 5 modified
-
EVA.rbp (modified) (previous)
-
Makefile (modified) (3 diffs)
-
RB_ext/winDataBrowser.xml (modified) (52 diffs)
-
RB_ext/winDataPlot.xml (modified) (2 diffs)
-
RB_ext/winPlot.xml (modified) (53 diffs)
Legend:
- Unmodified
- Added
- Removed
-
EVA/trunk/Makefile
r597 r636 9 9 RELEASE_DIR=../releases/$(APP)-$(VERSION) 10 10 RELEASE_WDIR=$(RELEASE_DIR)-win 11 BASE_DIR=/Users/mankoff/local/Applications/EdGCM/EdGCM\ Helper\ Applications 11 #BASE_DIR=/Users/mankoff/local/Applications/EdGCM/EdGCM\ Helper\ Applications 12 BASE_DIR=/Users/mankoff/EdGCM/EVA/releases 12 13 INSTALL_DIR=$(BASE_DIR)/$(APPNAME) 13 DEV_DIR=/Users/mankoff/GISS/EVA/trunk14 14 15 15 ### keep the following list UP TO DATE ### … … 20 20 @echo "make EVA # build EVA.app" 21 21 @echo "make idl # build IDL code" 22 @echo "make install # install release to (my) Applications folder" 22 @echo "make install # install release folder" 23 @echo "make release-mac # build local release to DMG" 23 24 @echo "make release # build & upload VERSIONed release to web" 24 25 @echo "make release-p # link download file to latest version (public)" … … 73 74 svn export --force ./sample_data $(RELEASE_DIR)/sample_data 74 75 # (cd ../releases; zip -r $(ZIP) $(APP)-$(VERSION)) 76 (cd ../releases; ln -s $(APP)-$(VERSION) latest) 75 77 make dmg 76 78 -
EVA/trunk/RB_ext/winDataBrowser.xml
r622 r636 1 1 <?xml version="1.0"?> 2 <RBProject version="2006r 4">2 <RBProject version="2006r2"> 3 3 <block type="Window" ID="-1109012280"> 4 4 <ObjName>winDataBrowser</ObjName> … … 1007 1007 <Visible>1</Visible> 1008 1008 <PropertyGroup>ID</PropertyGroup> 1009 <InheritsFrom>DragMetalWindow</InheritsFrom>1010 1009 </ViewProperty> 1011 1010 <ViewProperty> … … 1013 1012 <Visible>1</Visible> 1014 1013 <PropertyGroup>ID</PropertyGroup> 1015 <InheritsFrom>DragMetalWindow</InheritsFrom>1016 1014 </ViewProperty> 1017 1015 <ViewProperty> … … 1019 1017 <Visible>1</Visible> 1020 1018 <PropertyGroup>ID</PropertyGroup> 1021 <InheritsFrom>DragMetalWindow</InheritsFrom>1022 1019 </ViewProperty> 1023 1020 <ViewProperty> … … 1026 1023 <PropertyGroup>Position</PropertyGroup> 1027 1024 <PropertyValue>0</PropertyValue> 1028 <InheritsFrom>DragMetalWindow</InheritsFrom>1029 1025 <Enumeration> 1030 1026 <ItemDef>0 - Default</ItemDef> … … 1040 1036 <PropertyGroup>Position</PropertyGroup> 1041 1037 <PropertyValue>300</PropertyValue> 1042 <InheritsFrom>DragMetalWindow</InheritsFrom>1043 1038 </ViewProperty> 1044 1039 <ViewProperty> … … 1047 1042 <PropertyGroup>Position</PropertyGroup> 1048 1043 <PropertyValue>300</PropertyValue> 1049 <InheritsFrom>DragMetalWindow</InheritsFrom>1050 1044 </ViewProperty> 1051 1045 <ViewProperty> … … 1054 1048 <PropertyGroup>Position</PropertyGroup> 1055 1049 <PropertyValue>64</PropertyValue> 1056 <InheritsFrom>DragMetalWindow</InheritsFrom>1057 1050 </ViewProperty> 1058 1051 <ViewProperty> … … 1061 1054 <PropertyGroup>Position</PropertyGroup> 1062 1055 <PropertyValue>64</PropertyValue> 1063 <InheritsFrom>DragMetalWindow</InheritsFrom>1064 1056 </ViewProperty> 1065 1057 <ViewProperty> … … 1068 1060 <PropertyGroup>Position</PropertyGroup> 1069 1061 <PropertyValue>32000</PropertyValue> 1070 <InheritsFrom>DragMetalWindow</InheritsFrom>1071 1062 </ViewProperty> 1072 1063 <ViewProperty> … … 1075 1066 <PropertyGroup>Position</PropertyGroup> 1076 1067 <PropertyValue>32000</PropertyValue> 1077 <InheritsFrom>DragMetalWindow</InheritsFrom>1078 1068 </ViewProperty> 1079 1069 <ViewProperty> … … 1082 1072 <PropertyGroup>Appearance</PropertyGroup> 1083 1073 <PropertyValue>0</PropertyValue> 1084 <InheritsFrom>DragMetalWindow</InheritsFrom>1085 1074 <Enumeration> 1086 1075 <ItemDef>0 - Document</ItemDef> … … 1102 1091 <PropertyGroup>Appearance</PropertyGroup> 1103 1092 <PropertyValue>False</PropertyValue> 1104 <InheritsFrom>DragMetalWindow</InheritsFrom>1105 1093 </ViewProperty> 1106 1094 <ViewProperty> … … 1109 1097 <PropertyGroup>Appearance</PropertyGroup> 1110 1098 <PropertyValue>False</PropertyValue> 1111 <InheritsFrom>DragMetalWindow</InheritsFrom>1112 1099 </ViewProperty> 1113 1100 <ViewProperty> … … 1116 1103 <PropertyGroup>Appearance</PropertyGroup> 1117 1104 <PropertyValue>&hFFFFFF</PropertyValue> 1118 <InheritsFrom>DragMetalWindow</InheritsFrom>1119 1105 </ViewProperty> 1120 1106 <ViewProperty> … … 1122 1108 <Visible>1</Visible> 1123 1109 <PropertyGroup>Appearance</PropertyGroup> 1124 <InheritsFrom>DragMetalWindow</InheritsFrom>1125 1110 </ViewProperty> 1126 1111 <ViewProperty> … … 1129 1114 <PropertyGroup>Appearance</PropertyGroup> 1130 1115 <PropertyValue>Untitled</PropertyValue> 1131 <InheritsFrom>DragMetalWindow</InheritsFrom>1132 1116 </ViewProperty> 1133 1117 <ViewProperty> … … 1136 1120 <PropertyGroup>Appearance</PropertyGroup> 1137 1121 <PropertyValue>True</PropertyValue> 1138 <InheritsFrom>DragMetalWindow</InheritsFrom>1139 1122 </ViewProperty> 1140 1123 <ViewProperty> … … 1143 1126 <PropertyGroup>Appearance</PropertyGroup> 1144 1127 <PropertyValue>False</PropertyValue> 1145 <InheritsFrom>DragMetalWindow</InheritsFrom>1146 1128 </ViewProperty> 1147 1129 <ViewProperty> … … 1150 1132 <PropertyGroup>Appearance</PropertyGroup> 1151 1133 <PropertyValue>True</PropertyValue> 1152 <InheritsFrom>DragMetalWindow</InheritsFrom>1153 1134 </ViewProperty> 1154 1135 <ViewProperty> … … 1157 1138 <PropertyGroup>Appearance</PropertyGroup> 1158 1139 <PropertyValue>True</PropertyValue> 1159 <InheritsFrom>DragMetalWindow</InheritsFrom>1160 1140 </ViewProperty> 1161 1141 <ViewProperty> … … 1164 1144 <PropertyGroup>Appearance</PropertyGroup> 1165 1145 <PropertyValue>False</PropertyValue> 1166 <InheritsFrom>DragMetalWindow</InheritsFrom>1167 1146 </ViewProperty> 1168 1147 <ViewProperty> … … 1171 1150 <PropertyGroup>Appearance</PropertyGroup> 1172 1151 <PropertyValue>False</PropertyValue> 1173 <InheritsFrom>DragMetalWindow</InheritsFrom>1174 1152 </ViewProperty> 1175 1153 <ViewProperty> … … 1178 1156 <PropertyGroup>Appearance</PropertyGroup> 1179 1157 <PropertyValue>False</PropertyValue> 1180 <InheritsFrom>DragMetalWindow</InheritsFrom>1181 1158 </ViewProperty> 1182 1159 <ViewProperty> … … 1185 1162 <PropertyGroup>Appearance</PropertyGroup> 1186 1163 <PropertyValue>True</PropertyValue> 1187 <InheritsFrom>DragMetalWindow</InheritsFrom>1188 1164 </ViewProperty> 1189 1165 <ViewProperty> … … 1191 1167 <Visible>1</Visible> 1192 1168 <PropertyGroup>Appearance</PropertyGroup> 1193 <InheritsFrom>DragMetalWindow</InheritsFrom>1194 1169 </ViewProperty> 1195 1170 <ViewProperty> … … 1198 1173 <PropertyGroup>Appearance</PropertyGroup> 1199 1174 <PropertyValue>0</PropertyValue> 1200 <InheritsFrom>DragMetalWindow</InheritsFrom>1201 1175 </ViewProperty> 1202 1176 <ViewProperty> … … 1204 1178 <Visible>1</Visible> 1205 1179 <PropertyGroup>Appearance</PropertyGroup> 1206 <InheritsFrom>DragMetalWindow</InheritsFrom>1207 1180 </ViewProperty> 1208 1181 <ViewProperty> … … 1210 1183 <PropertyGroup>Behavior</PropertyGroup> 1211 1184 <PropertyValue>0</PropertyValue> 1212 <InheritsFrom>DragMetalWindow</InheritsFrom>1213 1185 </ViewProperty> 1214 1186 <ViewProperty> … … 1216 1188 <PropertyGroup>Behavior</PropertyGroup> 1217 1189 <PropertyValue>0</PropertyValue> 1218 <InheritsFrom>DragMetalWindow</InheritsFrom>1219 1190 </ViewProperty> 1220 1191 <ViewProperty> … … 1222 1193 <PropertyGroup>Behavior</PropertyGroup> 1223 1194 <PropertyValue>0</PropertyValue> 1224 <InheritsFrom>DragMetalWindow</InheritsFrom>1225 1195 </ViewProperty> 1226 1196 <ViewProperty> 1227 1197 <ObjName>cursor</ObjName> 1228 1198 <PropertyGroup>Behavior</PropertyGroup> 1229 <ItemType>string</ItemType>1230 <EditorType>MultiLineEditor</EditorType>1231 1199 </ViewProperty> 1232 1200 <ViewProperty> … … 1234 1202 <PropertyGroup>Behavior</PropertyGroup> 1235 1203 <PropertyValue>0</PropertyValue> 1236 <ItemType>integer</ItemType>1237 1204 </ViewProperty> 1238 1205 </ViewBehavior> … … 1794 1761 <SourceLine>end</SourceLine> 1795 1762 <SourceLine></SourceLine> 1763 <SourceLine></SourceLine> 1764 <SourceLine></SourceLine> 1765 <SourceLine></SourceLine> 1766 <SourceLine>'dim w1 as winData</SourceLine> 1767 <SourceLine>'dim winPlot as winPlot</SourceLine> 1768 <SourceLine>'dim c as DatabaseCursor</SourceLine> 1769 <SourceLine>dim j, k as integer</SourceLine> 1770 <SourceLine>dim a(), s, plotType as string</SourceLine> 1771 <SourceLine>dim b(0), fileTypeErr as boolean</SourceLine> 1772 <SourceLine>for j = 4 to 6 ' isNetCDF, isTimeSeries, isZonalAverage</SourceLine> 1773 <SourceLine>for i = 0 to listoutput.ListCount-1</SourceLine> 1774 <SourceLine>if ( listOutput.SelCount = 0 ) OR listOutput.Selected(i) then</SourceLine> 1775 <SourceLine>b.append listOutput.CellCheck( i, j ) '</SourceLine> 1776 <SourceLine>end</SourceLine> 1777 <SourceLine>next</SourceLine> 1778 <SourceLine>k = uBound(b)</SourceLine> 1779 <SourceLine>for i = 1 to k</SourceLine> 1780 <SourceLine>if b(i) <> b(1) then</SourceLine> 1781 <SourceLine>fileTypeErr = true</SourceLine> 1782 <SourceLine>end</SourceLine> 1783 <SourceLine>next</SourceLine> 1784 <SourceLine>redim b(0)</SourceLine> 1785 <SourceLine>next</SourceLine> 1786 <SourceLine>if fileTypeErr then</SourceLine> 1787 <SourceLine>msgBox app.lang.Child("DataBrowser").Child("Errors").GetString("ErrorType")</SourceLine> 1788 <SourceLine>return</SourceLine> 1789 <SourceLine>end</SourceLine> 1790 <SourceLine></SourceLine> 1791 <SourceLine></SourceLine> 1792 <SourceLine></SourceLine> 1793 <SourceLine></SourceLine> 1794 <SourceLine></SourceLine> 1795 <SourceLine></SourceLine> 1796 1796 <SourceLine>dim files(), vars(), times() as string</SourceLine> 1797 1797 <SourceLine>dim c as new DataBaseCursor</SourceLine> … … 1900 1900 <PropertyVal Name="Left">-49</PropertyVal> 1901 1901 <PropertyVal Name="ControlOrder">0</PropertyVal> 1902 <PropertyVal Name="Super">CustomContextualMenu</PropertyVal> 1902 1903 <PropertyVal Name="Index">-2147483648</PropertyVal> 1903 1904 <PropertyVal Name="Name">myMenu</PropertyVal> 1904 <PropertyVal Name="Super">CustomContextualMenu</PropertyVal>1905 1905 <ControlIndex>5</ControlIndex> 1906 1906 </Control> … … 1937 1937 <PropertyVal Name="Left">20</PropertyVal> 1938 1938 <PropertyVal Name="ControlOrder">1</PropertyVal> 1939 <PropertyVal Name="Super">WindowSplitter</PropertyVal> 1939 1940 <PropertyVal Name="Index">-2147483648</PropertyVal> 1940 1941 <PropertyVal Name="Name">WindowSplitter1</PropertyVal> 1941 <PropertyVal Name="Super">WindowSplitter</PropertyVal>1942 1942 <ControlIndex>6</ControlIndex> 1943 1943 </Control> … … 1972 1972 <PropertyVal Name="Left">566</PropertyVal> 1973 1973 <PropertyVal Name="ControlOrder">2</PropertyVal> 1974 <PropertyVal Name="Super">PopupMenu</PropertyVal> 1974 1975 <PropertyVal Name="Index">-2147483648</PropertyVal> 1975 1976 <PropertyVal Name="Name">popupShow</PropertyVal> 1976 <PropertyVal Name="Super">PopupMenu</PropertyVal>1977 1977 <ControlIndex>4</ControlIndex> 1978 1978 </Control> … … 2019 2019 <PropertyVal Name="Left">0</PropertyVal> 2020 2020 <PropertyVal Name="ControlOrder">3</PropertyVal> 2021 <PropertyVal Name="Super">DataBrowserListbox</PropertyVal> 2021 2022 <PropertyVal Name="Index">0</PropertyVal> 2022 2023 <PropertyVal Name="Name">myListBox</PropertyVal> 2023 <PropertyVal Name="Super">DataBrowserListbox</PropertyVal>2024 2024 <ControlIndex>2</ControlIndex> 2025 2025 </Control> … … 2066 2066 <PropertyVal Name="Left">182</PropertyVal> 2067 2067 <PropertyVal Name="ControlOrder">4</PropertyVal> 2068 <PropertyVal Name="Super">DataBrowserListbox</PropertyVal> 2068 2069 <PropertyVal Name="Index">1</PropertyVal> 2069 2070 <PropertyVal Name="Name">myListBox</PropertyVal> 2070 <PropertyVal Name="Super">DataBrowserListbox</PropertyVal>2071 2071 <ControlIndex>2</ControlIndex> 2072 2072 </Control> … … 2113 2113 <PropertyVal Name="Left">0</PropertyVal> 2114 2114 <PropertyVal Name="ControlOrder">5</PropertyVal> 2115 <PropertyVal Name="Super">DataBrowserListbox</PropertyVal> 2115 2116 <PropertyVal Name="Index">3</PropertyVal> 2116 2117 <PropertyVal Name="Name">myListBox</PropertyVal> 2117 <PropertyVal Name="Super">DataBrowserListbox</PropertyVal>2118 2118 <ControlIndex>2</ControlIndex> 2119 2119 </Control> … … 2160 2160 <PropertyVal Name="Left">364</PropertyVal> 2161 2161 <PropertyVal Name="ControlOrder">6</PropertyVal> 2162 <PropertyVal Name="Super">DataBrowserListbox</PropertyVal> 2162 2163 <PropertyVal Name="Index">2</PropertyVal> 2163 2164 <PropertyVal Name="Name">myListBox</PropertyVal> 2164 <PropertyVal Name="Super">DataBrowserListbox</PropertyVal>2165 2165 <ControlIndex>2</ControlIndex> 2166 2166 </Control> … … 2196 2196 <PropertyVal Name="Left">13</PropertyVal> 2197 2197 <PropertyVal Name="ControlOrder">7</PropertyVal> 2198 <PropertyVal Name="Super">PopupMenu</PropertyVal> 2198 2199 <PropertyVal Name="Index">-2147483648</PropertyVal> 2199 2200 <PropertyVal Name="Name">popupMath</PropertyVal> 2200 <PropertyVal Name="Super">PopupMenu</PropertyVal>2201 2201 <ControlIndex>1</ControlIndex> 2202 2202 </Control> … … 2227 2227 <PropertyVal Name="Left">161</PropertyVal> 2228 2228 <PropertyVal Name="ControlOrder">8</PropertyVal> 2229 <PropertyVal Name="Super">PushButton</PropertyVal> 2229 2230 <PropertyVal Name="Index">-2147483648</PropertyVal> 2230 2231 <PropertyVal Name="Name">btnMath</PropertyVal> 2231 <PropertyVal Name="Super">PushButton</PropertyVal>2232 2232 <ControlIndex>3</ControlIndex> 2233 2233 </Control> … … 2261 2261 <PropertyVal Name="Left">296</PropertyVal> 2262 2262 <PropertyVal Name="ControlOrder">9</PropertyVal> 2263 <PropertyVal Name="Super">PopupMenu</PropertyVal> 2263 2264 <PropertyVal Name="Index">-2147483648</PropertyVal> 2264 2265 <PropertyVal Name="Name">popupPlot</PropertyVal> 2265 <PropertyVal Name="Super">PopupMenu</PropertyVal>2266 2266 <ControlIndex>0</ControlIndex> 2267 2267 </Control> … … 2276 2276 <PropertyVal Name="Left">-49</PropertyVal> 2277 2277 <PropertyVal Name="ControlOrder">10</PropertyVal> 2278 <PropertyVal Name="Super">DatabaseQuery</PropertyVal> 2278 2279 <PropertyVal Name="Index">-2147483648</PropertyVal> 2279 2280 <PropertyVal Name="Name">DatabaseQuery1</PropertyVal> 2280 <PropertyVal Name="Super">DatabaseQuery</PropertyVal>2281 2281 <ControlIndex>7</ControlIndex> 2282 2282 </Control> … … 2310 2310 <PropertyVal Name="Left">330</PropertyVal> 2311 2311 <PropertyVal Name="ControlOrder">11</PropertyVal> 2312 <PropertyVal Name="Super">PopupMenu</PropertyVal> 2312 2313 <PropertyVal Name="Index">-2147483648</PropertyVal> 2313 2314 <PropertyVal Name="Name">popMath</PropertyVal> 2314 <PropertyVal Name="Super">PopupMenu</PropertyVal>2315 2315 <ControlIndex>8</ControlIndex> 2316 2316 </Control> … … 2352 2352 <PropertyVal Name="Left">488</PropertyVal> 2353 2353 <PropertyVal Name="ControlOrder">12</PropertyVal> 2354 <PropertyVal Name="Super">BevelButtonPush</PropertyVal> 2354 2355 <PropertyVal Name="Index">-2147483648</PropertyVal> 2355 2356 <PropertyVal Name="Name">btnPlot</PropertyVal> 2356 <PropertyVal Name="Super">BevelButtonPush</PropertyVal>2357 2357 <ControlIndex>9</ControlIndex> 2358 2358 </Control> … … 2394 2394 <PropertyVal Name="Left">16</PropertyVal> 2395 2395 <PropertyVal Name="ControlOrder">13</PropertyVal> 2396 <PropertyVal Name="Super">BevelButtonPush</PropertyVal> 2396 2397 <PropertyVal Name="Index">-2147483648</PropertyVal> 2397 2398 <PropertyVal Name="Name">BevelButtonPush1</PropertyVal> 2398 <PropertyVal Name="Super">BevelButtonPush</PropertyVal>2399 2399 <ControlIndex>10</ControlIndex> 2400 2400 </Control> … … 2436 2436 <PropertyVal Name="Left">-448</PropertyVal> 2437 2437 <PropertyVal Name="ControlOrder">14</PropertyVal> 2438 <PropertyVal Name="Super">BevelButtonPush</PropertyVal> 2438 2439 <PropertyVal Name="Index">-2147483648</PropertyVal> 2439 2440 <PropertyVal Name="Name">BevelButtonPush2</PropertyVal> 2440 <PropertyVal Name="Super">BevelButtonPush</PropertyVal>2441 2441 <ControlIndex>11</ControlIndex> 2442 2442 </Control> … … 2478 2478 <PropertyVal Name="Left">68</PropertyVal> 2479 2479 <PropertyVal Name="ControlOrder">15</PropertyVal> 2480 <PropertyVal Name="Super">BevelButtonPush</PropertyVal> 2480 2481 <PropertyVal Name="Index">-2147483648</PropertyVal> 2481 2482 <PropertyVal Name="Name">BevelButtonPush3</PropertyVal> 2482 <PropertyVal Name="Super">BevelButtonPush</PropertyVal>2483 2483 <ControlIndex>12</ControlIndex> 2484 2484 </Control> … … 2512 2512 <PropertyVal Name="Left">13</PropertyVal> 2513 2513 <PropertyVal Name="ControlOrder">16</PropertyVal> 2514 <PropertyVal Name="Super">StaticText</PropertyVal> 2514 2515 <PropertyVal Name="Index">-2147483648</PropertyVal> 2515 2516 <PropertyVal Name="Name">StaticText1</PropertyVal> 2516 <PropertyVal Name="Super">StaticText</PropertyVal>2517 2517 <ControlIndex>13</ControlIndex> 2518 2518 </Control> … … 2546 2546 <PropertyVal Name="Left">65</PropertyVal> 2547 2547 <PropertyVal Name="ControlOrder">17</PropertyVal> 2548 <PropertyVal Name="Super">StaticText</PropertyVal> 2548 2549 <PropertyVal Name="Index">-2147483648</PropertyVal> 2549 2550 <PropertyVal Name="Name">StaticText2</PropertyVal> 2550 <PropertyVal Name="Super">StaticText</PropertyVal>2551 2551 <ControlIndex>14</ControlIndex> 2552 2552 </Control> … … 2580 2580 <PropertyVal Name="Left">470</PropertyVal> 2581 2581 <PropertyVal Name="ControlOrder">18</PropertyVal> 2582 <PropertyVal Name="Super">StaticText</PropertyVal> 2582 2583 <PropertyVal Name="Index">-2147483648</PropertyVal> 2583 2584 <PropertyVal Name="Name">btnPlotText</PropertyVal> 2584 <PropertyVal Name="Super">StaticText</PropertyVal>2585 2585 <ControlIndex>15</ControlIndex> 2586 2586 </Control> -
EVA/trunk/RB_ext/winDataPlot.xml
r635 r636 62 62 <SourceLine>datagrid.cols = 0</SourceLine> 63 63 <SourceLine>datagrid.rows = 0</SourceLine> 64 <SourceLine>datagrid.cols = xsize+3</SourceLine>64 <SourceLine>datagrid.cols = (xsize*2)+2</SourceLine> 65 65 <SourceLine>datagrid.rows = ysize+3</SourceLine> 66 66 <SourceLine></SourceLine> 67 67 <SourceLine></SourceLine> 68 68 <SourceLine>// populate the StyleGrid with the data</SourceLine> 69 <SourceLine> if not w.diff then</SourceLine>69 <SourceLine>'if not w.diff then</SourceLine> 70 70 <SourceLine></SourceLine> 71 71 <SourceLine>dim val as double</SourceLine> 72 72 <SourceLine>for x = 1 to xsize+1</SourceLine> 73 73 <SourceLine>for y = 1 to ysize+1</SourceLine> 74 <SourceLine>cell = datagrid.WritableCell( x+1, y+1 )</SourceLine> 74 <SourceLine></SourceLine> 75 <SourceLine>'' data (y)</SourceLine> 76 <SourceLine>cell = datagrid.WritableCell( (x*2), y+1 )</SourceLine> 75 77 <SourceLine>val = w.yy( x-1, y-1 )</SourceLine> 76 78 <SourceLine>if val >= 0 then cell.style = style else cell.style = styleNeg</SourceLine> 77 79 <SourceLine>cell.alignment = -1</SourceLine> 78 <SourceLine>cell.Text = Format( val, fmt ) + " "</SourceLine> 80 <SourceLine>if Val = -1e30 then cell.Text = "Nan" else cell.Text = Format( val, fmt ) + " "</SourceLine> 81 <SourceLine></SourceLine> 82 <SourceLine>'' axis (x)</SourceLine> 83 <SourceLine>cell = datagrid.WritableCell( (x*2)-1, y+1 )</SourceLine> 84 <SourceLine>cell.Style = style</SourceLine> 85 <SourceLine>cell.Alignment = 1</SourceLine> 86 <SourceLine>if w.xx(0,y-1) = -1e30 then cell.Text = "NaN" else cell.text = Str( w.xx( 0, y-1 ) )</SourceLine> 87 <SourceLine>cell.Style.BackColor = &cB4B4B4</SourceLine> 88 <SourceLine></SourceLine> 79 89 <SourceLine>next</SourceLine> 80 90 <SourceLine>next</SourceLine> 81 <SourceLine> end</SourceLine>91 <SourceLine>'end</SourceLine> 82 92 <SourceLine></SourceLine> 83 93 <SourceLine>// popuplate the top/left/bottom/right cells with the lat/lon/pressure/whatever info</SourceLine> … … 85 95 <SourceLine>for x = 0 to xsize</SourceLine> 86 96 <SourceLine>// header</SourceLine> 87 <SourceLine>cell = datagrid.WritableCell( x+2, 1 )</SourceLine>97 <SourceLine>cell = datagrid.WritableCell( (x*2)+2, 1 )</SourceLine> 88 98 <SourceLine>cell.Style = style</SourceLine> 89 99 <SourceLine>cell.Alignment = 1</SourceLine> 90 <SourceLine> cell.Text = xaxis( x )</SourceLine>100 <SourceLine>if Val( xaxis(x) ) = -1e30 then cell.Text = "NaN" else cell.Text = xaxis( x )</SourceLine> 91 101 <SourceLine>cell.Style.BackColor = &cB4B4B4</SourceLine> 92 102 <SourceLine>// footer</SourceLine> 93 <SourceLine>cell = datagrid.WritableCell( x+2, ysize+3 )</SourceLine>103 <SourceLine>cell = datagrid.WritableCell( (x*2)+2, ysize+3 )</SourceLine> 94 104 <SourceLine>cell.Style = style</SourceLine> 95 105 <SourceLine>cell.Alignment = 1</SourceLine> 96 <SourceLine> cell.Text = xaxis( x )</SourceLine>106 <SourceLine>if Val( xaxis(x) ) = -1e30 then cell.Text = "NaN" else cell.Text = xaxis( x )</SourceLine> 97 107 <SourceLine>cell.Style.BackColor = &cB4B4B4</SourceLine> 98 108 <SourceLine>next</SourceLine> 99 <SourceLine>for y = 0 to ysize</SourceLine> 100 <SourceLine>// left</SourceLine> 101 <SourceLine>cell = datagrid.WritableCell( 1, y+2 )</SourceLine> 102 <SourceLine>cell.Style = style</SourceLine> 103 <SourceLine>cell.Alignment = 1</SourceLine> 104 <SourceLine>'cell.Text = yaxis( y )</SourceLine> 105 <SourceLine>cell.text = Str( w.xx( 0, y ) )</SourceLine> 106 <SourceLine>cell.Style.BackColor = &cB4B4B4</SourceLine> 107 <SourceLine>// right</SourceLine> 108 <SourceLine>cell = datagrid.WritableCell( xsize+3, y+2 )</SourceLine> 109 <SourceLine>cell.Style = style</SourceLine> 110 <SourceLine>cell.Alignment = -1</SourceLine> 111 <SourceLine>'cell.Text = yaxis( y )</SourceLine> 112 <SourceLine>cell.Text = Str( w.xx( 0, y ) )</SourceLine> 113 <SourceLine>cell.Style.BackColor = &cB4B4B4</SourceLine> 114 <SourceLine>next</SourceLine> 109 <SourceLine>'for y = 0 to ysize</SourceLine> 110 <SourceLine>'// left</SourceLine> 111 <SourceLine>'cell = datagrid.WritableCell( 1, y+2 )</SourceLine> 112 <SourceLine>'cell.Style = style</SourceLine> 113 <SourceLine>'cell.Alignment = 1</SourceLine> 114 <SourceLine>'if w.xx(0,y) = -1e30 then cell.Text = "NaN" else cell.text = Str( w.xx( 0, y ) )</SourceLine> 115 <SourceLine>'cell.Style.BackColor = &cB4B4B4</SourceLine> 116 <SourceLine>'// right</SourceLine> 117 <SourceLine>'cell = datagrid.WritableCell( xsize+3, y+2 )</SourceLine> 118 <SourceLine>'cell.Style = style</SourceLine> 119 <SourceLine>'cell.Alignment = -1</SourceLine> 120 <SourceLine>'if w.xx(0,y) = -1e30 then cell.Text = "NaN" else cell.Text = Str( w.xx( 0, y ) )</SourceLine> 121 <SourceLine>'cell.Style.BackColor = &cB4B4B4</SourceLine> 122 <SourceLine>'next</SourceLine> 115 123 <SourceLine></SourceLine> 116 124 <SourceLine>// column width & height</SourceLine> -
EVA/trunk/RB_ext/winPlot.xml
r635 r636 159 159 </ItemSource> 160 160 </MenuHandler> 161 <MenuHandler> 162 <ItemName>WindowXshift</ItemName> 163 <Compatibility></Compatibility> 164 <Visible>1</Visible> 165 <ItemSource> 166 <TextEncoding>134217984</TextEncoding> 167 <SourceLine>Function WindowXshift() As Boolean</SourceLine> 168 <SourceLine>dim i, j as integer</SourceLine> 169 <SourceLine>dim c as ccurve</SourceLine> 170 <SourceLine>dim n as cNode</SourceLine> 171 <SourceLine>dim s as string</SourceLine> 172 <SourceLine>dim m as double = 9999999999999.999</SourceLine> 173 <SourceLine></SourceLine> 174 <SourceLine>dim mxv as double</SourceLine> 175 <SourceLine></SourceLine>
