Changeset 45:d9ccdf31868c for source/class
- Timestamp:
- Jan 16, 2008, 4:20:53 PM (17 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/class/pf/Application.js
r44 r45 1936 1936 var menubar = this.menubar; 1937 1937 1938 var submenu, btn ;1938 var submenu, btn, q; 1939 1939 1940 1940 var theme = qx.theme.manager.Color.getInstance().getColorTheme(); … … 1954 1954 submenu.add(btn); 1955 1955 submenu.add(new qx.ui.menu.Separator); 1956 btn = new qx.ui.menu.Button("Exit", "pf/image/exit.png"); 1957 btn.addEventListener("execute", function (ev) { 1958 window.close()}, this); 1956 q = new qx.client.Command("Ctrl+P"); 1957 q.addEventListener("execute", function(ev) { 1958 window.print(); 1959 }); 1960 btn = new qx.ui.menu.Button("Print...", "pf/image/print.png", q); 1961 submenu.add(btn); 1962 submenu.add(new qx.ui.menu.Separator); 1963 q = new qx.client.Command("Ctrl+R"); 1964 q.addEventListener("execute", function(ev) { 1965 location.reload(true); 1966 }); 1967 btn = new qx.ui.menu.Button("Reset", "pf/image/reset.png", q); 1968 submenu.add(btn); 1969 submenu.add(new qx.ui.menu.Separator); 1970 q = new qx.client.Command("Ctrl+Q"); 1971 q.addEventListener("execute", function(ev) { 1972 window.close(); 1973 }); 1974 btn = new qx.ui.menu.Button("Quit", "pf/image/exit.png", q); 1959 1975 submenu.add(btn); 1960 1976 … … 2029 2045 2030 2046 submenu.add(new qx.ui.menu.Separator); 2047 q = new qx.client.Command("Ctrl+L"); 2048 q.addEventListener("execute", this.drawCB, this); 2031 2049 btn = new qx.ui.menu.Button("Redraw Plot", 2032 "pf/image/tab-plot.png"); 2033 btn.addEventListener("execute", this.drawCB, this); 2050 "pf/image/tab-plot.png", q); 2034 2051 submenu.add(btn); 2035 2052 this.redrawButton = btn; … … 2045 2062 submenu.setBackgroundColor(bg); 2046 2063 this.doc.add(submenu); 2064 q = new qx.client.Command("F1"); 2065 q.addEventListener("execute", function(ev) { 2066 alert("Help system not implemented yet"); 2067 }); 2047 2068 btn = new qx.ui.menu.Button("Help Contents", 2048 "pf/image/help.png"); 2049 btn.addEventListener("execute", function (ev) { 2050 alert("Not implemented yet")}, this); 2069 "pf/image/help.png", q); 2051 2070 submenu.add(btn); 2052 2071 btn = new qx.ui.menu.Button("NRL Plasma Formulary",
Note: See TracChangeset
for help on using the changeset viewer.