Changeset 72:5c5d51f30cb2
- Timestamp:
- Sep 1, 2008, 6:23:30 PM (16 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 28 added
- 25 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
.cvsignore
r1 r72 1 1 build 2 2 api 3 cache 3 4 -
source/.cvsignore
r1 r72 1 1 script 2 translation -
source/class/pf/Application.js
r70 r72 11 11 /* ************************************************************************ 12 12 13 #resource(pf.image:image) 14 # embed(pf.image/*)13 14 #asset(pf/image/*) 15 15 16 16 ************************************************************************ */ … … 212 212 var leaf = tree.getSelectedElement(); 213 213 214 if (leaf && leaf.classname == "qx. ui.tree.TreeFile" && explorer_is_seen) {214 if (leaf && leaf.classname == "qx.legacy.ui.tree.TreeFile" && explorer_is_seen) { 215 215 if (this.isFavorite(leaf)) { 216 216 this.editMenuButtonAddToFav.setEnabled(false); … … 237 237 var el = leaf.getElement(); 238 238 239 if (leaf.classname == "qx. ui.tree.TreeFile") {239 if (leaf.classname == "qx.legacy.ui.tree.TreeFile") { 240 240 if (this.isFavorite(leaf)) { 241 241 this.treeMenuButtonAddToFav.setEnabled(false); … … 257 257 }; 258 258 259 ev.s etPropagationStopped(true);259 ev.stopPropagation(); 260 260 } 261 261 } … … 366 366 qx.Class.define("pf.Application", 367 367 { 368 extend : qx. application.Gui,368 extend : qx.legacy.application.Gui, 369 369 370 370 /* … … 809 809 var icon = "pf/image/" + s.id + "_small.png"; 810 810 811 leaf = new qx. ui.tree.TreeFile(entity.name, icon);812 leaf.add EventListener("changeSelected", clickEntityCB, this);813 leaf.add EventListener("contextmenu", treeMenuCB, this);811 leaf = new qx.legacy.ui.tree.TreeFile(entity.name, icon); 812 leaf.addListener("changeSelected", clickEntityCB, this); 813 leaf.addListener("contextmenu", treeMenuCB, this); 814 814 leaf.setUserData("entity", entity); 815 815 leaf.setUserData("species", s); … … 823 823 break; 824 824 default: 825 leaf = new qx. ui.tree.TreeFile(entity.name,825 leaf = new qx.legacy.ui.tree.TreeFile(entity.name, 826 826 "pf/image/all_small.png"); 827 leaf.add EventListener("changeSelected", clickEntityCB, this);828 leaf.add EventListener("contextmenu", treeMenuCB, this);827 leaf.addListener("changeSelected", clickEntityCB, this); 828 leaf.addListener("contextmenu", treeMenuCB, this); 829 829 leaf.setUserData("entity", entity); 830 830 … … 970 970 var tab_id, page_id; 971 971 972 tab_id = new qx. ui.pageview.tabview.Button(label, icon);972 tab_id = new qx.legacy.ui.pageview.tabview.Button(label, icon); 973 973 this.tabbar.add(tab_id); 974 page_id = new qx. ui.pageview.tabview.Page(tab_id);974 page_id = new qx.legacy.ui.pageview.tabview.Page(tab_id); 975 975 page_id.setHeight("100%"); 976 976 page_id.setPadding(10, 10, 10, 10); … … 992 992 var fr, gl; 993 993 994 fr = new qx. ui.groupbox.GroupBox("Electrons",994 fr = new qx.legacy.ui.groupbox.GroupBox("Electrons", 995 995 "pf/image/e_small.png"); 996 996 fr.setDimension("auto", "auto"); … … 999 999 page_id.add(fr); 1000 1000 1001 gl = new qx. ui.layout.GridLayout;1001 gl = new qx.legacy.ui.layout.GridLayout; 1002 1002 gl.setVerticalSpacing(4); 1003 1003 gl.setHorizontalSpacing(6); … … 1014 1014 1015 1015 // N_e 1016 l = new qx. ui.basic.Label("N<sub>e</sub> (cm<sup>-3</sup>):");1016 l = new qx.legacy.ui.basic.Label("N<sub>e</sub> (cm<sup>-3</sup>):"); 1017 1017 gl.add(l, 0, 0); 1018 1018 e = new pf.ui.TextField(this.e.getN()); 1019 1019 gl.add(e, 1, 0); 1020 1020 // e.setLiveUpdate(true); 1021 e.add EventListener("changeValue", changeN_e, this);1021 e.addListener("changeValue", changeN_e, this); 1022 1022 1023 1023 // T_e 1024 l = new qx. ui.basic.Label("T<sub>e</sub> (eV):");1024 l = new qx.legacy.ui.basic.Label("T<sub>e</sub> (eV):"); 1025 1025 gl.add(l, 0, 1); 1026 1026 e = new pf.ui.TextField(this.e.getT()); 1027 1027 gl.add(e, 1, 1); 1028 e.add EventListener("changeValue", changeT_e, this);1028 e.addListener("changeValue", changeT_e, this); 1029 1029 e.setLiveUpdate(true); 1030 1030 1031 1031 1032 fr = new qx. ui.groupbox.GroupBox("Ions",1032 fr = new qx.legacy.ui.groupbox.GroupBox("Ions", 1033 1033 "pf/image/i_small.png"); 1034 1034 fr.setDimension("auto", "auto"); … … 1038 1038 fr.setTop(100); 1039 1039 1040 gl = new qx. ui.layout.GridLayout;1040 gl = new qx.legacy.ui.layout.GridLayout; 1041 1041 gl.setVerticalSpacing(4); 1042 1042 gl.setHorizontalSpacing(6); … … 1053 1053 1054 1054 // Z_i 1055 l = new qx. ui.basic.Label("Z<sub>i</sub>:");1055 l = new qx.legacy.ui.basic.Label("Z<sub>i</sub>:"); 1056 1056 gl.add(l, 0, 0); 1057 1057 e = new pf.ui.Spinner(1, this.i.getQ(), 100); 1058 1058 gl.add(e, 1, 0); 1059 1059 1060 e.add EventListener("change", changeZ_i, this);1060 e.addListener("change", changeZ_i, this); 1061 1061 1062 1062 // M_i 1063 l = new qx. ui.basic.Label("M<sub>i</sub>:");1063 l = new qx.legacy.ui.basic.Label("M<sub>i</sub>:"); 1064 1064 gl.add(l, 0, 1); 1065 1065 e = new pf.ui.Spinner(1, this.i.getM(), 200); 1066 1066 gl.add(e, 1, 1); 1067 e.add EventListener("change", changeM_i, this);1067 e.addListener("change", changeM_i, this); 1068 1068 1069 1069 // T_i 1070 l = new qx. ui.basic.Label("T<sub>i</sub> (eV):");1070 l = new qx.legacy.ui.basic.Label("T<sub>i</sub> (eV):"); 1071 1071 gl.add(l, 0, 2); 1072 1072 e = new pf.ui.TextField(this.i.getT()); 1073 1073 gl.add(e, 1, 2); 1074 e.add EventListener("changeValue", changeT_i, this);1074 e.addListener("changeValue", changeT_i, this); 1075 1075 e.setLiveUpdate(true); 1076 1076 this.gui_T_i = e; 1077 1077 1078 1078 // N_i 1079 l = new qx. ui.basic.Label("N<sub>i</sub> (cm<sup>-3</sup>):");1079 l = new qx.legacy.ui.basic.Label("N<sub>i</sub> (cm<sup>-3</sup>):"); 1080 1080 gl.add(l, 0, 3); 1081 1081 e = new pf.ui.TextField(this.i.getN()); … … 1085 1085 1086 1086 1087 fr = new qx. ui.groupbox.GroupBox("Radiators",1087 fr = new qx.legacy.ui.groupbox.GroupBox("Radiators", 1088 1088 "pf/image/r_small.png"); 1089 1089 fr.setDimension("auto", "auto"); … … 1093 1093 fr.setLeft(390); 1094 1094 1095 gl = new qx. ui.layout.GridLayout;1095 gl = new qx.legacy.ui.layout.GridLayout; 1096 1096 gl.setVerticalSpacing(4); 1097 1097 gl.setHorizontalSpacing(6); … … 1110 1110 1111 1111 // Z_r 1112 l = new qx. ui.basic.Label("Z<sub>r</sub>:");1112 l = new qx.legacy.ui.basic.Label("Z<sub>r</sub>:"); 1113 1113 gl.add(l, 0, 0); 1114 1114 e = new pf.ui.Spinner(0, this.Z_r, 100); 1115 1115 gl.add(e, 1, 0); 1116 e.add EventListener("change", changeZ_r, this);1116 e.addListener("change", changeZ_r, this); 1117 1117 1118 1118 // M_r 1119 l = new qx. ui.basic.Label("M<sub>r</sub>:");1119 l = new qx.legacy.ui.basic.Label("M<sub>r</sub>:"); 1120 1120 gl.add(l, 0, 1); 1121 1121 e = new pf.ui.Spinner(1, this.r.getM(), 200); 1122 1122 gl.add(e, 1, 1); 1123 e.add EventListener("change", changeM_r, this);1123 e.addListener("change", changeM_r, this); 1124 1124 1125 1125 // T_r 1126 l = new qx. ui.basic.Label("T<sub>r</sub> (eV):");1126 l = new qx.legacy.ui.basic.Label("T<sub>r</sub> (eV):"); 1127 1127 gl.add(l, 0, 2); 1128 1128 e = new pf.ui.TextField(this.r.getT()); 1129 1129 gl.add(e, 1, 2); 1130 e.add EventListener("changeValue", changeT_r, this);1130 e.addListener("changeValue", changeT_r, this); 1131 1131 this.gui_T_r = e; 1132 1132 1133 1133 // P_r 1134 l = new qx. ui.basic.Label("P<sub>r</sub> (%):");1134 l = new qx.legacy.ui.basic.Label("P<sub>r</sub> (%):"); 1135 1135 gl.add(l, 0, 3); 1136 1136 e = new pf.ui.Spinner(0, this.P_r, 100); 1137 1137 gl.add(e, 1, 3); 1138 e.add EventListener("change", changeP_r, this);1138 e.addListener("change", changeP_r, this); 1139 1139 1140 1140 // N_r 1141 l = new qx. ui.basic.Label("N<sub>r</sub> (cm<sup>-3</sup>):");1141 l = new qx.legacy.ui.basic.Label("N<sub>r</sub> (cm<sup>-3</sup>):"); 1142 1142 gl.add(l, 0, 4); 1143 1143 e = new pf.ui.TextField(this.r.getN()); … … 1147 1147 1148 1148 1149 fr = new qx. ui.groupbox.GroupBox("Fields",1149 fr = new qx.legacy.ui.groupbox.GroupBox("Fields", 1150 1150 "pf/image/field_small.png"); 1151 1151 fr.setDimension("auto", "auto"); … … 1154 1154 page_id.add(fr); 1155 1155 1156 gl = new qx. ui.layout.GridLayout;1156 gl = new qx.legacy.ui.layout.GridLayout; 1157 1157 gl.setVerticalSpacing(4); 1158 1158 gl.setHorizontalSpacing(6); … … 1167 1167 1168 1168 1169 l = new qx. ui.basic.Label("B (T):");1169 l = new qx.legacy.ui.basic.Label("B (T):"); 1170 1170 gl.add(l, 0, 0); 1171 1171 e = new pf.ui.TextField(this.B); 1172 1172 gl.add(e, 1, 0); 1173 1173 // e.setLiveUpdate(true); 1174 e.add EventListener("changeValue", changeB, this);1174 e.addListener("changeValue", changeB, this); 1175 1175 1176 1176 // Atomic system frame 1177 fr = new qx. ui.groupbox.GroupBox("Atomic system",1177 fr = new qx.legacy.ui.groupbox.GroupBox("Atomic system", 1178 1178 "pf/image/all_small.png"); 1179 1179 fr.setDimension("auto", "auto"); … … 1182 1182 page_id.add(fr); 1183 1183 1184 gl = new qx. ui.layout.GridLayout;1184 gl = new qx.legacy.ui.layout.GridLayout; 1185 1185 gl.setVerticalSpacing(4); 1186 1186 gl.setHorizontalSpacing(6); … … 1197 1197 fr.setTop(202); 1198 1198 1199 l = new qx. ui.basic.Label("Z<sub>core</sub>:");1199 l = new qx.legacy.ui.basic.Label("Z<sub>core</sub>:"); 1200 1200 gl.add(l, 0, 0); 1201 e = new qx. ui.form.TextField(this.r.getQ() + 1);1201 e = new qx.legacy.ui.form.TextField(this.r.getQ() + 1); 1202 1202 e.setReadOnly(true); 1203 1203 gl.add(e, 1, 0); 1204 1204 this.gui_Zcore = e; 1205 1205 1206 l = new qx. ui.basic.Label("n<sub>u</sub>:");1206 l = new qx.legacy.ui.basic.Label("n<sub>u</sub>:"); 1207 1207 gl.add(l, 0, 1); 1208 1208 e = new pf.ui.Spinner(2, this.n_u, 1000); 1209 1209 gl.add(e, 1, 1); 1210 e.add EventListener("change", changeN_u, this);1211 1212 l = new qx. ui.basic.Label("n<sub>l</sub>:");1210 e.addListener("change", changeN_u, this); 1211 1212 l = new qx.legacy.ui.basic.Label("n<sub>l</sub>:"); 1213 1213 gl.add(l, 0, 2); 1214 1214 e = new pf.ui.Spinner(1, this.n_l, 1000); 1215 1215 gl.add(e, 1, 2); 1216 e.add EventListener("change", changeN_l, this);1216 e.addListener("change", changeN_l, this); 1217 1217 }, 1218 1218 … … 1220 1220 { 1221 1221 var page_id = this.renderTabPage("Explorer", 1222 "pf/image/tab-explorer.png" );1223 1224 var sp = new qx. ui.splitpane.HorizontalSplitPane(300, "1*");1222 "pf/image/tab-explorer.png", false); 1223 1224 var sp = new qx.legacy.ui.splitpane.HorizontalSplitPane(300, "1*"); 1225 1225 sp.set( 1226 1226 { … … 1240 1240 right_pane.setBackgroundColor("white"); 1241 1241 right_pane.setBorder("inset-thin"); 1242 var tree = new qx. ui.tree.Tree("Browser");1242 var tree = new qx.legacy.ui.tree.Tree("Browser"); 1243 1243 tree.set( 1244 1244 { … … 1255 1255 var folder; 1256 1256 1257 folder = new qx. ui.tree.TreeFolder("Frequency");1257 folder = new qx.legacy.ui.tree.TreeFolder("Frequency"); 1258 1258 folder.setAlwaysShowPlusMinusSymbol(true); 1259 1259 tree.add(folder); 1260 1260 this.gui_folder_freq = folder; 1261 1261 1262 folder = new qx. ui.tree.TreeFolder("Length");1262 folder = new qx.legacy.ui.tree.TreeFolder("Length"); 1263 1263 folder.setAlwaysShowPlusMinusSymbol(true); 1264 1264 tree.add(folder); 1265 1265 this.gui_folder_length = folder; 1266 1266 1267 folder = new qx. ui.tree.TreeFolder("Velocity");1267 folder = new qx.legacy.ui.tree.TreeFolder("Velocity"); 1268 1268 folder.setAlwaysShowPlusMinusSymbol(true); 1269 1269 tree.add(folder); 1270 1270 this.gui_folder_vel = folder; 1271 1271 1272 folder = new qx. ui.tree.TreeFolder("Dimensionless");1272 folder = new qx.legacy.ui.tree.TreeFolder("Dimensionless"); 1273 1273 tree.add(folder); 1274 1274 this.gui_folder_none = folder; 1275 1275 1276 folder = new qx. ui.tree.TreeFolder("Energy");1276 folder = new qx.legacy.ui.tree.TreeFolder("Energy"); 1277 1277 folder.setAlwaysShowPlusMinusSymbol(true); 1278 1278 tree.add(folder); 1279 1279 this.gui_folder_energy = folder; 1280 1280 1281 folder = new qx. ui.tree.TreeFolder("Pressure");1281 folder = new qx.legacy.ui.tree.TreeFolder("Pressure"); 1282 1282 folder.setAlwaysShowPlusMinusSymbol(true); 1283 1283 tree.add(folder); 1284 1284 this.gui_folder_pressure = folder; 1285 1285 1286 folder = new qx. ui.tree.TreeFolder("Area");1286 folder = new qx.legacy.ui.tree.TreeFolder("Area"); 1287 1287 folder.setAlwaysShowPlusMinusSymbol(true); 1288 1288 tree.add(folder); 1289 1289 this.gui_folder_area = folder; 1290 1290 1291 folder = new qx. ui.tree.TreeFolder("Power density");1291 folder = new qx.legacy.ui.tree.TreeFolder("Power density"); 1292 1292 folder.setAlwaysShowPlusMinusSymbol(true); 1293 1293 tree.add(folder); 1294 1294 this.gui_folder_power_density = folder; 1295 1295 1296 folder = new qx. ui.tree.TreeFolder("Power spectral density");1296 folder = new qx.legacy.ui.tree.TreeFolder("Power spectral density"); 1297 1297 folder.setAlwaysShowPlusMinusSymbol(true); 1298 1298 tree.add(folder); 1299 1299 this.gui_folder_spectral_power_density = folder; 1300 1300 1301 folder = new qx. ui.tree.TreeFolder("Miscellaneous");1301 folder = new qx.legacy.ui.tree.TreeFolder("Miscellaneous"); 1302 1302 folder.setAlwaysShowPlusMinusSymbol(true); 1303 1303 tree.add(folder); … … 1310 1310 1311 1311 // Build context-sensitive popup menu 1312 this.treeMenu = new qx. ui.menu.Menu;1312 this.treeMenu = new qx.legacy.ui.menu.Menu; 1313 1313 var button; 1314 1314 1315 button = new qx. ui.menu.Button("Add to Favorites",1315 button = new qx.legacy.ui.menu.Button("Add to Favorites", 1316 1316 "pf/image/favorite-add.png"); 1317 button.add EventListener("execute", addToFavCB, this);1317 button.addListener("execute", addToFavCB, this); 1318 1318 this.treeMenu.add(button); 1319 1319 this.treeMenuButtonAddToFav = button; 1320 button = new qx. ui.menu.Button("Remove from Favorites",1320 button = new qx.legacy.ui.menu.Button("Remove from Favorites", 1321 1321 "pf/image/favorite-delete.png"); 1322 button.add EventListener("execute", removeFromFavCB, this);1322 button.addListener("execute", removeFromFavCB, this); 1323 1323 this.treeMenu.add(button); 1324 1324 this.treeMenuButtonRemFromFav = button; … … 1326 1326 this.doc.add(this.treeMenu); 1327 1327 1328 var gl = new qx. ui.layout.GridLayout;1328 var gl = new qx.legacy.ui.layout.GridLayout; 1329 1329 gl.set( 1330 1330 { … … 1347 1347 var l, e; 1348 1348 1349 l = new qx. ui.basic.Label("Name:");1349 l = new qx.legacy.ui.basic.Label("Name:"); 1350 1350 gl.add(l, 0, 0); 1351 e = new qx. ui.form.TextField();1351 e = new qx.legacy.ui.form.TextField(); 1352 1352 e.setReadOnly(true); 1353 1353 this.gui_entity_name = e; 1354 1354 gl.add(e, 1, 0); 1355 1355 1356 l = new qx. ui.basic.Label("Value:");1356 l = new qx.legacy.ui.basic.Label("Value:"); 1357 1357 gl.add(l, 0, 1); 1358 1358 e = new pf.ui.TextField(""); … … 1362 1362 1363 1363 e = new pf.UnitSelector(); 1364 e.add EventListener("changeSelected", changeUnitsCB, this);1364 e.addListener("changeSelected", changeUnitsCB, this); 1365 1365 gl.add(e, 2, 1); 1366 1366 this.gui_entity_units = e; 1367 1367 1368 l = new qx. ui.basic.Label("Section:");1368 l = new qx.legacy.ui.basic.Label("Section:"); 1369 1369 gl.add(l, 0, 2); 1370 e = new qx. ui.form.TextField();1370 e = new qx.legacy.ui.form.TextField(); 1371 1371 e.setReadOnly(true); 1372 1372 this.gui_entity_section = e; … … 1381 1381 "pf/image/tab-compare.png"); 1382 1382 1383 var bl = new qx. ui.layout.VerticalBoxLayout("vertical");1383 var bl = new qx.legacy.ui.layout.VerticalBoxLayout("vertical"); 1384 1384 bl.setWidth("100%"); 1385 1385 bl.setHeight("100%"); … … 1387 1387 page_id.add(bl); 1388 1388 1389 var rc = new qx. ui.layout.HorizontalBoxLayout;1389 var rc = new qx.legacy.ui.layout.HorizontalBoxLayout; 1390 1390 rc.setWidth("100%"); 1391 1391 rc.setHeight("auto"); … … 1394 1394 1395 1395 var l, e; 1396 l = new qx. ui.basic.Label("Dimension:");1396 l = new qx.legacy.ui.basic.Label("Dimension:"); 1397 1397 e = new pf.ui.ComboBox; 1398 e.add(new qx. ui.form.ListItem("Frequency", null, "frequency"));1399 e.add(new qx. ui.form.ListItem("Length", null, "length"));1400 e.add(new qx. ui.form.ListItem("Velocity", null, "velocity"));1401 e.add(new qx. ui.form.ListItem("Energy", null, "energy"));1402 e.add(new qx. ui.form.ListItem("Pressure", null, "pressure"));1403 e.add(new qx. ui.form.ListItem("Area", null, "area"));1404 e.add(new qx. ui.form.ListItem("Power density", null, "power_density"));1405 e.add(new qx. ui.form.ListItem("Power spectral density",1398 e.add(new qx.legacy.ui.form.ListItem("Frequency", null, "frequency")); 1399 e.add(new qx.legacy.ui.form.ListItem("Length", null, "length")); 1400 e.add(new qx.legacy.ui.form.ListItem("Velocity", null, "velocity")); 1401 e.add(new qx.legacy.ui.form.ListItem("Energy", null, "energy")); 1402 e.add(new qx.legacy.ui.form.ListItem("Pressure", null, "pressure")); 1403 e.add(new qx.legacy.ui.form.ListItem("Area", null, "area")); 1404 e.add(new qx.legacy.ui.form.ListItem("Power density", null, "power_density")); 1405 e.add(new qx.legacy.ui.form.ListItem("Power spectral density", 1406 1406 null, "spectral_power_density")); 1407 e.add(new qx. ui.form.ListItem("Electric field", null, "efield"));1408 e.add(new qx. ui.form.ListItem("None", null, "none"));1409 e.add EventListener("changeSelected", function(ev) {1407 e.add(new qx.legacy.ui.form.ListItem("Electric field", null, "efield")); 1408 e.add(new qx.legacy.ui.form.ListItem("None", null, "none")); 1409 e.addListener("changeSelected", function(ev) { 1410 1410 var dimension = this.gui_compare_dim.getSelectedValue(); 1411 1411 this.gui_compare_units.update(dimension, … … 1417 1417 this.gui_compare_dim = e; 1418 1418 1419 l = new qx. ui.basic.Label("Units:");1419 l = new qx.legacy.ui.basic.Label("Units:"); 1420 1420 e = new pf.UnitSelector(); 1421 e.add EventListener("changeSelected", function(ev) {1421 e.addListener("changeSelected", function(ev) { 1422 1422 this.updateFavoritesListView(); 1423 1423 }, this); … … 1450 1450 sortable : true, 1451 1451 sortProp : "text", 1452 sortMethod : qx. util.Compare.byFloatString }1452 sortMethod : qx.legacy.util.Compare.byFloatString } 1453 1453 }; 1454 1454 1455 var lv = new qx. ui.listview.ListView(new Array, lc);1455 var lv = new qx.legacy.ui.listview.ListView(new Array, lc); 1456 1456 1457 1457 lv.setWidth("100%"); … … 1676 1676 "pf/image/tab-plot.png"); 1677 1677 1678 var sp = new qx. ui.splitpane.HorizontalSplitPane("1*", 300);1678 var sp = new qx.legacy.ui.splitpane.HorizontalSplitPane("1*", 300); 1679 1679 sp.set( 1680 1680 { … … 1707 1707 1708 1708 1709 var vbl = new qx. ui.layout.VerticalBoxLayout("vertical");1709 var vbl = new qx.legacy.ui.layout.VerticalBoxLayout("vertical"); 1710 1710 vbl.set( 1711 1711 { … … 1717 1717 right_pane.add(vbl); 1718 1718 1719 var gl = new qx. ui.layout.GridLayout;1719 var gl = new qx.legacy.ui.layout.GridLayout; 1720 1720 gl.set( 1721 1721 { … … 1743 1743 var l, e; 1744 1744 1745 var btn = new qx. ui.form.Button("Redraw", "pf/image/tab-plot.png");1746 btn.add EventListener("execute", this.drawCB, this);1745 var btn = new qx.legacy.ui.form.Button("Redraw", "pf/image/tab-plot.png"); 1746 btn.addListener("execute", this.drawCB, this); 1747 1747 gl.add(btn, 0, 0); 1748 1748 1749 l = new qx. ui.basic.Label("Parameter to vary:");1749 l = new qx.legacy.ui.basic.Label("Parameter to vary:"); 1750 1750 e = new pf.ui.ComboBox; 1751 e.add(new qx. ui.form.ListItem("N_e", null, "N_e"));1752 e.add(new qx. ui.form.ListItem("T", null, "T"));1753 e.add(new qx. ui.form.ListItem("T_e", null, "T_e"));1754 e.add(new qx. ui.form.ListItem("T_i", null, "T_i"));1755 e.add(new qx. ui.form.ListItem("T_r", null, "T_r"));1756 e.add(new qx. ui.form.ListItem("B", null, "B"));1751 e.add(new qx.legacy.ui.form.ListItem("N_e", null, "N_e")); 1752 e.add(new qx.legacy.ui.form.ListItem("T", null, "T")); 1753 e.add(new qx.legacy.ui.form.ListItem("T_e", null, "T_e")); 1754 e.add(new qx.legacy.ui.form.ListItem("T_i", null, "T_i")); 1755 e.add(new qx.legacy.ui.form.ListItem("T_r", null, "T_r")); 1756 e.add(new qx.legacy.ui.form.ListItem("B", null, "B")); 1757 1757 e.selectByValue("N_e"); 1758 1758 this.guiParameter = e; … … 1760 1760 gl.add(e, 1, 1); 1761 1761 1762 l = new qx. ui.basic.Label("Minimum scale:");1762 l = new qx.legacy.ui.basic.Label("Minimum scale:"); 1763 1763 e = new pf.ui.TextField(0.3); 1764 1764 this.guiMinParam = e; … … 1766 1766 gl.add(e, 1, 2); 1767 1767 1768 l = new qx. ui.basic.Label("Maximum scale:");1768 l = new qx.legacy.ui.basic.Label("Maximum scale:"); 1769 1769 e = new pf.ui.TextField(3.0); 1770 1770 this.guiMaxParam = e; … … 1772 1772 gl.add(e, 1, 3); 1773 1773 1774 l = new qx. ui.basic.Label("Number of points:");1774 l = new qx.legacy.ui.basic.Label("Number of points:"); 1775 1775 e = new pf.ui.Spinner(2, 10, 100); 1776 1776 this.guiParamPoints = e; … … 1799 1799 }; 1800 1800 1801 var lv = new qx. ui.listview.ListView(new Array, lc);1801 var lv = new qx.legacy.ui.listview.ListView(new Array, lc); 1802 1802 1803 1803 lv.setWidth("100%"); … … 1806 1806 lv.setBorder("dark-shadow"); 1807 1807 1808 lv.add EventListener("dblclick", function(ev) {1809 ev.s etPropagationStopped(true);1808 lv.addListener("dblclick", function(ev) { 1809 ev.stopPropagation(); 1810 1810 var pane = this.getPane(); 1811 1811 var item = pane.getSelectedItem(); … … 1821 1821 mypop.setUserData("favorite", favorite); 1822 1822 var el = this.getElement(); 1823 mypop.setTop(qx. html.Location.getPageBoxTop(el));1824 mypop.setLeft(qx. html.Location.getPageBoxLeft(el) -1823 mypop.setTop(qx.legacy.html.Location.getPageBoxTop(el)); 1824 mypop.setLeft(qx.legacy.html.Location.getPageBoxLeft(el) - 1825 1825 this.getWidthValue()); 1826 1826 mypop.show(); … … 1843 1843 } 1844 1844 1845 var mypop = new qx. ui.component.ColorPopup(mytables);1845 var mypop = new qx.legacy.ui.component.ColorPopup(mytables); 1846 1846 // A hack 1847 1847 mypop._layout.remove(mypop._automaticBtn); … … 1849 1849 mypop.addToDocument(); 1850 1850 1851 mypop.add EventListener("changeValue", function(ev) {1851 mypop.addListener("changeValue", function(ev) { 1852 1852 var color = ev.getValue(); 1853 1853 var mypop = ev.getTarget(); … … 1880 1880 var submenu, btn, q; 1881 1881 1882 var theme = qx. theme.manager.Color.getInstance().getColorTheme();1882 var theme = qx.legacy.theme.manager.Color.getInstance().getColorTheme(); 1883 1883 var bg = '#' + 1884 1884 qx.util.ColorUtil.rgbToHexString(theme.colors['button']); 1885 1885 1886 submenu = new qx. ui.menu.Menu;1886 submenu = new qx.legacy.ui.menu.Menu; 1887 1887 submenu.setBackgroundColor(bg); 1888 1888 this.doc.add(submenu); 1889 btn = new qx. ui.menu.Button("Open...", "pf/image/open.png");1890 btn.add EventListener("execute", function (ev) {1889 btn = new qx.legacy.ui.menu.Button("Open...", "pf/image/open.png"); 1890 btn.addListener("execute", function (ev) { 1891 1891 alert("Not implemented yet")}, this); 1892 1892 submenu.add(btn); 1893 btn = new qx. ui.menu.Button("Save...", "pf/image/save.png");1894 btn.add EventListener("execute", function (ev) {1893 btn = new qx.legacy.ui.menu.Button("Save...", "pf/image/save.png"); 1894 btn.addListener("execute", function (ev) { 1895 1895 alert("Not implemented yet")}, this); 1896 1896 submenu.add(btn); 1897 submenu.add(new qx. ui.menu.Separator);1898 q = new qx. client.Command("Ctrl+P");1899 q.add EventListener("execute", function(ev) {1897 submenu.add(new qx.legacy.ui.menu.Separator); 1898 q = new qx.event.Command("Ctrl+P"); 1899 q.addListener("execute", function(ev) { 1900 1900 window.print(); 1901 1901 }); 1902 btn = new qx. ui.menu.Button("Print...", "pf/image/print.png", q);1902 btn = new qx.legacy.ui.menu.Button("Print...", "pf/image/print.png", q); 1903 1903 submenu.add(btn); 1904 submenu.add(new qx. ui.menu.Separator);1905 q = new qx. client.Command("Ctrl+R");1906 q.add EventListener("execute", function(ev) {1904 submenu.add(new qx.legacy.ui.menu.Separator); 1905 q = new qx.event.Command("Ctrl+R"); 1906 q.addListener("execute", function(ev) { 1907 1907 location.reload(true); 1908 1908 }); 1909 btn = new qx. ui.menu.Button("Reset", "pf/image/reset.png", q);1909 btn = new qx.legacy.ui.menu.Button("Reset", "pf/image/reset.png", q); 1910 1910 submenu.add(btn); 1911 submenu.add(new qx. ui.menu.Separator);1912 q = new qx. client.Command("Ctrl+Q");1913 q.add EventListener("execute", function(ev) {1911 submenu.add(new qx.legacy.ui.menu.Separator); 1912 q = new qx.event.Command("Ctrl+Q"); 1913 q.addListener("execute", function(ev) { 1914 1914 window.close(); 1915 1915 }); 1916 btn = new qx. ui.menu.Button("Quit", "pf/image/exit.png", q);1916 btn = new qx.legacy.ui.menu.Button("Quit", "pf/image/exit.png", q); 1917 1917 submenu.add(btn); 1918 1918 1919 btn = new qx. ui.menubar.Button("File", submenu);1919 btn = new qx.legacy.ui.menubar.Button("File", submenu); 1920 1920 btn.set({ paddingLeft : 7, paddingRight : 7 }); 1921 1921 menubar.add(btn); 1922 1922 1923 1923 1924 submenu = new qx. ui.menu.Menu;1924 submenu = new qx.legacy.ui.menu.Menu; 1925 1925 submenu.setBackgroundColor(bg); 1926 submenu.add EventListener("beforeAppear", editMenuCB, this);1926 submenu.addListener("beforeAppear", editMenuCB, this); 1927 1927 this.doc.add(submenu); 1928 btn = new qx. ui.menu.Button("Add to Favorites",1928 btn = new qx.legacy.ui.menu.Button("Add to Favorites", 1929 1929 "pf/image/favorite-add.png"); 1930 btn.add EventListener("execute", addToFavCB, this);1930 btn.addListener("execute", addToFavCB, this); 1931 1931 this.editMenuButtonAddToFav = btn; 1932 1932 submenu.add(btn); 1933 btn = new qx. ui.menu.Button("Remove from Favorites",1933 btn = new qx.legacy.ui.menu.Button("Remove from Favorites", 1934 1934 "pf/image/favorite-delete.png"); 1935 btn.add EventListener("execute", removeFromFavCB, this);1935 btn.addListener("execute", removeFromFavCB, this); 1936 1936 this.editMenuButtonRemFromFav = btn; 1937 1937 submenu.add(btn); 1938 submenu.add(new qx. ui.menu.Separator);1939 btn = new qx. ui.menu.Button("Preferences",1938 submenu.add(new qx.legacy.ui.menu.Separator); 1939 btn = new qx.legacy.ui.menu.Button("Preferences", 1940 1940 "pf/image/preferences.png"); 1941 btn.add EventListener("execute", this.prefsCB, this);1941 btn.addListener("execute", this.prefsCB, this); 1942 1942 submenu.add(btn); 1943 1943 1944 btn = new qx. ui.menubar.Button("Edit", submenu);1944 btn = new qx.legacy.ui.menubar.Button("Edit", submenu); 1945 1945 btn.set({ paddingLeft : 7, paddingRight : 7 }); 1946 1946 menubar.add(btn); 1947 1947 1948 1948 1949 submenu = new qx. ui.menu.Menu;1949 submenu = new qx.legacy.ui.menu.Menu; 1950 1950 submenu.setBackgroundColor(bg); 1951 submenu.add EventListener("beforeAppear", viewMenuCB, this);1952 1953 var subMenu1 = new qx. ui.menu.Menu;1951 submenu.addListener("beforeAppear", viewMenuCB, this); 1952 1953 var subMenu1 = new qx.legacy.ui.menu.Menu; 1954 1954 subMenu1.setBackgroundColor(bg); 1955 button = new qx. ui.menu.CheckBox("Fundamental",1955 button = new qx.legacy.ui.menu.CheckBox("Fundamental", 1956 1956 null, this.showFundamental); 1957 button.add EventListener("execute", showFundamentalCB, this);1957 button.addListener("execute", showFundamentalCB, this); 1958 1958 subMenu1.add(button); 1959 button = new qx. ui.menu.CheckBox("Spectroscopy",1959 button = new qx.legacy.ui.menu.CheckBox("Spectroscopy", 1960 1960 null, this.showSpectroscopy); 1961 button.add EventListener("execute", showSpectroscopyCB, this);1961 button.addListener("execute", showSpectroscopyCB, this); 1962 1962 subMenu1.add(button); 1963 this.showSectionsButton = new qx. ui.menu.Button("Show Sections",1963 this.showSectionsButton = new qx.legacy.ui.menu.Button("Show Sections", 1964 1964 null, null, subMenu1); 1965 1965 submenu.add(this.showSectionsButton); 1966 1966 1967 submenu.add(new qx. ui.menu.Separator);1968 1969 var subMenu2 = new qx. ui.menu.Menu;1967 submenu.add(new qx.legacy.ui.menu.Separator); 1968 1969 var subMenu2 = new qx.legacy.ui.menu.Menu; 1970 1970 subMenu2.setBackgroundColor(bg); 1971 button = new qx. ui.menu.CheckBox("Electrons",1971 button = new qx.legacy.ui.menu.CheckBox("Electrons", 1972 1972 null, this.showElectrons) 1973 button.add EventListener("execute", showElectronsCB, this);1973 button.addListener("execute", showElectronsCB, this); 1974 1974 subMenu2.add(button); 1975 button = new qx. ui.menu.CheckBox("Ions",1975 button = new qx.legacy.ui.menu.CheckBox("Ions", 1976 1976 null, this.showIons) 1977 button.add EventListener("execute", showIonsCB, this);1977 button.addListener("execute", showIonsCB, this); 1978 1978 subMenu2.add(button); 1979 button = new qx. ui.menu.CheckBox("Radiators",1979 button = new qx.legacy.ui.menu.CheckBox("Radiators", 1980 1980 null, this.showRadiators) 1981 button.add EventListener("execute", showRadiatorsCB, this);1981 button.addListener("execute", showRadiatorsCB, this); 1982 1982 subMenu2.add(button); 1983 this.showSpeciesButton = new qx. ui.menu.Button("Show Species",1983 this.showSpeciesButton = new qx.legacy.ui.menu.Button("Show Species", 1984 1984 null, null, subMenu2); 1985 1985 submenu.add(this.showSpeciesButton); 1986 1986 1987 submenu.add(new qx. ui.menu.Separator);1988 q = new qx. client.Command("Ctrl+L");1989 q.add EventListener("execute", this.drawCB, this);1990 btn = new qx. ui.menu.Button("Redraw Plot",1987 submenu.add(new qx.legacy.ui.menu.Separator); 1988 q = new qx.event.Command("Ctrl+L"); 1989 q.addListener("execute", this.drawCB, this); 1990 btn = new qx.legacy.ui.menu.Button("Redraw Plot", 1991 1991 "pf/image/tab-plot.png", q); 1992 1992 submenu.add(btn); … … 1995 1995 this.doc.add(submenu, subMenu1, subMenu2); 1996 1996 1997 btn = new qx. ui.menubar.Button("View", submenu);1997 btn = new qx.legacy.ui.menubar.Button("View", submenu); 1998 1998 btn.set({ paddingLeft : 7, paddingRight : 7 }); 1999 1999 menubar.add(btn); 2000 2000 2001 2001 2002 submenu = new qx. ui.menu.Menu;2002 submenu = new qx.legacy.ui.menu.Menu; 2003 2003 submenu.setBackgroundColor(bg); 2004 2004 this.doc.add(submenu); 2005 q = new qx. client.Command("F1");2006 q.add EventListener("execute", function(ev) {2005 q = new qx.event.Command("F1"); 2006 q.addListener("execute", function(ev) { 2007 2007 alert("Help system not implemented yet"); 2008 2008 }); 2009 btn = new qx. ui.menu.Button("Help Contents",2009 btn = new qx.legacy.ui.menu.Button("Help Contents", 2010 2010 "pf/image/help.png", q); 2011 2011 submenu.add(btn); 2012 btn = new qx. ui.menu.Button("NRL Plasma Formulary",2012 btn = new qx.legacy.ui.menu.Button("NRL Plasma Formulary", 2013 2013 "pf/image/nrl.png"); 2014 btn.add EventListener("execute", function (ev) {2015 var w = new qx. client.NativeWindow("http://wwwppd.nrl.navy.mil/nrlformulary/");2014 btn.addListener("execute", function (ev) { 2015 var w = new qx.legacy.util.NativeWindow("http://wwwppd.nrl.navy.mil/nrlformulary/"); 2016 2016 w.setDimension(800, 600); 2017 2017 w.open(); 2018 2018 }, this); 2019 2019 submenu.add(btn); 2020 btn = new qx. ui.menu.Button("Plasma at Wikipedia",2020 btn = new qx.legacy.ui.menu.Button("Plasma at Wikipedia", 2021 2021 "pf/image/wikipedia.png"); 2022 btn.add EventListener("execute", function (ev) {2023 var w = new qx. client.NativeWindow("http://en.wikipedia.org/wiki/Plasma_%28physics%29");2022 btn.addListener("execute", function (ev) { 2023 var w = new qx.legacy.util.NativeWindow("http://en.wikipedia.org/wiki/Plasma_%28physics%29"); 2024 2024 w.setDimension(800, 600); 2025 2025 w.open(); 2026 2026 }, this); 2027 2027 submenu.add(btn); 2028 submenu.add(new qx. ui.menu.Separator);2029 btn = new qx. ui.menu.Button("About Plasma Formulary",2028 submenu.add(new qx.legacy.ui.menu.Separator); 2029 btn = new qx.legacy.ui.menu.Button("About Plasma Formulary", 2030 2030 "pf/image/about.png"); 2031 btn.add EventListener("execute", this.aboutCB, this);2031 btn.addListener("execute", this.aboutCB, this); 2032 2032 submenu.add(btn); 2033 2033 2034 btn = new qx. ui.menubar.Button("Help", submenu);2034 btn = new qx.legacy.ui.menubar.Button("Help", submenu); 2035 2035 btn.set({ paddingLeft : 7, paddingRight : 7 }); 2036 2036 menubar.add(btn); … … 2052 2052 var dims = new Object; 2053 2053 2054 dims.w = qx. html.Window.getInnerWidth(this.win);2055 dims.h = qx. html.Window.getInnerHeight(this.win);2054 dims.w = qx.legacy.html.Window.getInnerWidth(this.win); 2055 dims.h = qx.legacy.html.Window.getInnerHeight(this.win); 2056 2056 2057 2057 return dims; … … 2061 2061 { 2062 2062 if (this.prefs) { 2063 var prefstr = qx. io.Json.stringify(this.prefs);2064 qx. io.local.CookieApi.set("prefs", prefstr);2063 var prefstr = qx.util.Json.stringify(this.prefs); 2064 qx.legacy.io.local.CookieApi.set("prefs", prefstr); 2065 2065 } 2066 2066 }, … … 2068 2068 loadPreferences : function() 2069 2069 { 2070 var prefstr = qx. io.local.CookieApi.get("prefs");2070 var prefstr = qx.legacy.io.local.CookieApi.get("prefs"); 2071 2071 // this.warn(prefstr); 2072 2072 if (prefstr) { 2073 this.prefs = qx. io.Json.parseQx(prefstr);2073 this.prefs = qx.util.Json.parseQx(prefstr); 2074 2074 } 2075 2075 … … 2092 2092 var w; 2093 2093 // "Preferences..." dialog 2094 w = new qx. ui.window.Window("Preferences",2094 w = new qx.legacy.ui.window.Window("Preferences", 2095 2095 "pf/image/preferences.png"); 2096 2096 w.setSpace(200, "auto", 100, "auto"); … … 2099 2099 w.setShowMaximize(false); 2100 2100 2101 var vbl = new qx. ui.layout.VerticalBoxLayout("vertical");2101 var vbl = new qx.legacy.ui.layout.VerticalBoxLayout("vertical"); 2102 2102 vbl.setStretchChildrenOrthogonalAxis(false); 2103 2103 w.add(vbl); … … 2105 2105 var fr1, fr2, rc, l, e; 2106 2106 2107 fr1 = new qx. ui.groupbox.GroupBox("Default units");2107 fr1 = new qx.legacy.ui.groupbox.GroupBox("Default units"); 2108 2108 fr1.setDimension("auto", "auto"); 2109 2109 vbl.add(fr1); 2110 2110 2111 rc = new qx. ui.layout.HorizontalBoxLayout;2111 rc = new qx.legacy.ui.layout.HorizontalBoxLayout; 2112 2112 rc.setWidth("100%"); 2113 2113 rc.setHeight("auto"); … … 2115 2115 fr1.add(rc); 2116 2116 2117 l = new qx. ui.basic.Label("Dimension:");2117 l = new qx.legacy.ui.basic.Label("Dimension:"); 2118 2118 e = new pf.ui.ComboBox; 2119 e.add(new qx. ui.form.ListItem("Frequency", null, "frequency"));2120 e.add(new qx. ui.form.ListItem("Length", null, "length"));2121 e.add(new qx. ui.form.ListItem("Velocity", null, "velocity"));2122 e.add(new qx. ui.form.ListItem("Energy", null, "energy"));2123 e.add(new qx. ui.form.ListItem("Pressure", null, "pressure"));2124 e.add(new qx. ui.form.ListItem("Area", null, "area"));2125 e.add(new qx. ui.form.ListItem("Power density", null, "power_density"));2126 e.add(new qx. ui.form.ListItem("Power spectral density",2119 e.add(new qx.legacy.ui.form.ListItem("Frequency", null, "frequency")); 2120 e.add(new qx.legacy.ui.form.ListItem("Length", null, "length")); 2121 e.add(new qx.legacy.ui.form.ListItem("Velocity", null, "velocity")); 2122 e.add(new qx.legacy.ui.form.ListItem("Energy", null, "energy")); 2123 e.add(new qx.legacy.ui.form.ListItem("Pressure", null, "pressure")); 2124 e.add(new qx.legacy.ui.form.ListItem("Area", null, "area")); 2125 e.add(new qx.legacy.ui.form.ListItem("Power density", null, "power_density")); 2126 e.add(new qx.legacy.ui.form.ListItem("Power spectral density", 2127 2127 null, "spectral_power_density")); 2128 e.add(new qx. ui.form.ListItem("Electric field", null, "efield"));2129 e.add EventListener("changeSelected", function(ev) {2128 e.add(new qx.legacy.ui.form.ListItem("Electric field", null, "efield")); 2129 e.addListener("changeSelected", function(ev) { 2130 2130 var dimension = ev.getTarget().getSelectedValue(); 2131 2131 this.gui_prefs_units.update(dimension, … … 2135 2135 this.gui_prefs_dim = e; 2136 2136 2137 l = new qx. ui.basic.Label("Units:");2137 l = new qx.legacy.ui.basic.Label("Units:"); 2138 2138 e = new pf.UnitSelector(); 2139 e.add EventListener("changeSelected", function(ev) {2139 e.addListener("changeSelected", function(ev) { 2140 2140 var dimension = this.gui_prefs_dim.getSelectedValue(); 2141 2141 var units = ev.getTarget().getValue(); … … 2145 2145 this.gui_prefs_units = e; 2146 2146 2147 fr2 = new qx. ui.groupbox.GroupBox("Interface");2147 fr2 = new qx.legacy.ui.groupbox.GroupBox("Interface"); 2148 2148 fr2.setDimension("auto", "auto"); 2149 2149 vbl.add(fr2); 2150 2150 // A hack... 2151 fr1.add EventListener("appear", function(ev) {2151 fr1.addListener("appear", function(ev) { 2152 2152 fr2.setWidth(this.getWidthValue()); 2153 2153 }); 2154 2154 2155 e = new qx. ui.form.CheckBox("Remember window dimensions on exit");2155 e = new qx.legacy.ui.form.CheckBox("Remember window dimensions on exit"); 2156 2156 e.setChecked(this.prefs.rememberWindowSize); 2157 e.add EventListener("changeChecked", function(ev) {2157 e.addListener("changeChecked", function(ev) { 2158 2158 this.prefs.rememberWindowSize = ev.getTarget().getChecked(); 2159 2159 }, this); … … 2174 2174 { 2175 2175 this.base(arguments); 2176 2177 // Define alias for custom resource path 2178 qx.io.Alias.getInstance().add("pf", 2179 qx.core.Setting.get("pf.resourceUri")); 2180 2181 this.doc = qx.ui.core.ClientDocument.getInstance(); 2176 2177 // Enable logging in debug variant 2178 if (qx.core.Variant.isSet("qx.debug", "on")) 2179 { 2180 // support native logging capabilities, e.g. Firebug 2181 qx.log.appender.Native; 2182 // support additional cross-browser console. (Press F7) 2183 qx.log.appender.Console; 2184 } 2185 2186 this.doc = qx.legacy.ui.core.ClientDocument.getInstance(); 2182 2187 this.win = this.doc.getWindowElement(); 2183 2188 … … 2209 2214 2210 2215 // Top-level container 2211 this.bl_top = new qx. ui.layout.VerticalBoxLayout("vertical");2216 this.bl_top = new qx.legacy.ui.layout.VerticalBoxLayout("vertical"); 2212 2217 this.bl_top.setWidth("100%"); 2213 2218 this.bl_top.setHeight("100%"); … … 2216 2221 2217 2222 // The menubar 2218 this.menubar = new qx. ui.menubar.MenuBar;2223 this.menubar = new qx.legacy.ui.menubar.MenuBar; 2219 2224 this.bl_top.add(this.menubar); 2220 2225 … … 2222 2227 this.buildMenu(); 2223 2228 2224 var tf1 = new qx. ui.pageview.tabview.TabView;2229 var tf1 = new qx.legacy.ui.pageview.tabview.TabView; 2225 2230 tf1.set({ width : '100%', height : '2*' }); 2226 2231 … … 2248 2253 2249 2254 // "About..." dialog 2250 w = new qx. ui.window.Window("About Plasma Formulary",2255 w = new qx.legacy.ui.window.Window("About Plasma Formulary", 2251 2256 "pf/image/about.png"); 2252 2257 w.setSpace(200, "auto", 100, "auto"); … … 2262 2267 'Using Walter Zorn jsGraphics for drawing.</p>'; 2263 2268 2264 var a = new qx. ui.basic.Atom(str);2269 var a = new qx.legacy.ui.basic.Atom(str); 2265 2270 a.set({ top: 4, left: 4 }); 2266 2271 w.add(a); … … 2274 2279 2275 2280 // Handle resize events 2276 this.doc.add EventListener("windowresize", function(e) {2281 this.doc.addListener("windowresize", function(e) { 2277 2282 if (this.prefs.rememberWindowSize) { 2278 2283 this.prefs.dims = this.getWindowDimensions(); … … 2311 2316 this.base(arguments); 2312 2317 } 2313 },2314 2315 /*2316 *****************************************************************************2317 SETTINGS2318 *****************************************************************************2319 */2320 2321 settings : {2322 "pf.resourceUri" : "./resource"2323 2318 } 2324 2319 }); -
source/class/pf/ui/ComboBox.js
r32 r72 1 1 qx.Class.define("pf.ui.ComboBox", 2 2 { 3 extend: qx. ui.form.ComboBox,3 extend: qx.legacy.ui.form.ComboBox, 4 4 5 5 members: … … 7 7 addNumItem: function(vText, vValue) 8 8 { 9 var item = new qx. ui.form.ListItem(vText, null, vValue.toString());9 var item = new qx.legacy.ui.form.ListItem(vText, null, vValue.toString()); 10 10 this.add(item); 11 11 -
source/class/pf/ui/Spinner.js
r10 r72 1 1 qx.Class.define("pf.ui.Spinner", 2 2 { 3 extend: qx. ui.form.Spinner,3 extend: qx.legacy.ui.form.Spinner, 4 4 5 5 construct: function(vMin, vValue, vMax) { 6 6 this.base(arguments, vMin, vValue, vMax); 7 7 // Fix a bug in Qooxdoo (as of 0.7.2 at least) 8 this._textfield.remove EventListener("input", this._oninput, this);8 this._textfield.removeListener("input", this._oninput, this); 9 9 } 10 10 }); -
source/class/pf/ui/TextField.js
r1 r72 2 2 qx.Class.define("pf.ui.TextField", 3 3 { 4 extend: qx. ui.form.TextField,4 extend: qx.legacy.ui.form.TextField, 5 5 6 6 construct: function(v) { -
source/class/pf/ui/canvas/Canvas.js
r67 r72 1 1 qx.Class.define("pf.ui.canvas.Canvas", 2 2 { 3 extend: qx. ui.basic.Atom,3 extend: qx.legacy.ui.basic.Atom, 4 4 5 5 construct: function() { 6 6 this.base(arguments); 7 this.add EventListener("appear", function(e) {7 this.addListener("appear", function(e) { 8 8 if (!this.jg) { 9 9 var element = this.getElement(); -
source/class/pf/ui/canvas/Plotter.js
r47 r72 62 62 this.w = w; 63 63 64 var tracker = new qx. ui.basic.Atom("X:<br>Y:");64 var tracker = new qx.legacy.ui.basic.Atom("X:<br>Y:"); 65 65 tracker.setBorder("groove"); 66 66 tracker.hide(); … … 74 74 this.setVerticalChildrenAlign("top"); 75 75 76 this.add EventListener("mousemove", function(ev) {76 this.addListener("mousemove", function(ev) { 77 77 var tracker = this.tracker; 78 78 var el = this.getElement(); 79 79 tracker.dp.x = ev.getPageX() - 80 qx. html.Location.getClientInnerLeft(el) - 1;80 qx.legacy.html.Location.getClientInnerLeft(el) - 1; 81 81 tracker.dp.y = ev.getPageY() - 82 qx. html.Location.getClientInnerTop(el) - 1;82 qx.legacy.html.Location.getClientInnerTop(el) - 1; 83 83 this.dPoint2vPoint(tracker.dp, tracker.vp); 84 84 this.vPoint2wPoint(tracker.vp, tracker.wp); … … 89 89 }, this); 90 90 91 this.add EventListener("mouseover", function(ev) {91 this.addListener("mouseover", function(ev) { 92 92 this.tracker.show(); 93 93 }, this); 94 94 95 this.add EventListener("mouseout", function(ev) {95 this.addListener("mouseout", function(ev) { 96 96 this.tracker.hide(); 97 97 }, this); -
source/pf.html
r70 r72 8 8 <script type="text/javascript" src="entities.js"></script> 9 9 <script type="text/javascript"> 10 qx.log.Logger.ROOT_LOGGER.setMinLevel(qx.log.Logger.LEVEL_WARN); 10 qxvariants = { 11 "qx.debug": "on" 12 } 11 13 </script> 12 14 </head>
Note: See TracChangeset
for help on using the changeset viewer.