Changeset 341:a7cbe51aa3f3 for source


Ignore:
Timestamp:
Dec 11, 2013, 1:20:38 PM (11 years ago)
Author:
Evgeny Stambulchik <Evgeny.Stambulchik@…>
Branch:
default
Phase:
public
Message:

"q" var is global in qx-3.

Location:
source/class/pf
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source/class/pf/Application.js

    r340 r341  
    19871987            var menubar = this.menubar;
    19881988           
    1989             var submenu, btn, q;
     1989            var submenu, btn, qc;
    19901990
    19911991            submenu = new qx.ui.menu.Menu;
    19921992            this.doc.add(submenu);
    1993             q = new qx.ui.core.Command("Ctrl+O");
    1994             q.addListener("execute", this.openCB, this);
    1995             btn = new qx.ui.menu.Button("Open...", "pf/image/open.png", q);
     1993            qc = new qx.ui.core.Command("Ctrl+O");
     1994            qc.addListener("execute", this.openCB, this);
     1995            btn = new qx.ui.menu.Button("Open...", "pf/image/open.png", qc);
    19961996            submenu.add(btn);
    1997             q = new qx.ui.core.Command("Ctrl+S");
    1998             q.addListener("execute", this.saveConfigCB, this);
    1999             btn = new qx.ui.menu.Button("Save", "pf/image/save.png", q);
     1997            qc = new qx.ui.core.Command("Ctrl+S");
     1998            qc.addListener("execute", this.saveConfigCB, this);
     1999            btn = new qx.ui.menu.Button("Save", "pf/image/save.png", qc);
    20002000            submenu.add(btn);
    20012001            btn = new qx.ui.menu.Button("Save as...", "pf/image/save.png");
     
    20032003            submenu.add(btn);
    20042004            submenu.add(new qx.ui.menu.Separator);
    2005             q = new qx.ui.core.Command("Ctrl+P");
    2006             q.addListener("execute", function(ev) {
     2005            qc = new qx.ui.core.Command("Ctrl+P");
     2006            qc.addListener("execute", function(ev) {
    20072007                window.print();
    20082008            });
    2009             btn = new qx.ui.menu.Button("Print...", "pf/image/print.png", q);
     2009            btn = new qx.ui.menu.Button("Print...", "pf/image/print.png", qc);
    20102010            submenu.add(btn);
    20112011            submenu.add(new qx.ui.menu.Separator);
    2012             q = new qx.ui.core.Command("Ctrl+R");
    2013             q.addListener("execute", function(ev) {
     2012            qc = new qx.ui.core.Command("Ctrl+R");
     2013            qc.addListener("execute", function(ev) {
    20142014                    this.restart(false);
    20152015                }, this);
    2016             btn = new qx.ui.menu.Button("Restart", "pf/image/reset.png", q);
     2016            btn = new qx.ui.menu.Button("Restart", "pf/image/reset.png", qc);
    20172017            submenu.add(btn);
    20182018            submenu.add(new qx.ui.menu.Separator);
    2019             q = new qx.ui.core.Command("Ctrl+Q");
    2020             q.addListener("execute", function(ev) {
     2019            qc = new qx.ui.core.Command("Ctrl+Q");
     2020            qc.addListener("execute", function(ev) {
    20212021                    this.quit(false);
    20222022                }, this);
    2023             btn = new qx.ui.menu.Button("Quit", "pf/image/exit.png", q);
     2023            btn = new qx.ui.menu.Button("Quit", "pf/image/exit.png", qc);
    20242024            submenu.add(btn);
    20252025               
     
    20992099           
    21002100            submenu.add(new qx.ui.menu.Separator);
    2101             q = new qx.ui.core.Command("Ctrl+W");
    2102             q.addListener("execute", this.loadWikiCB, this);
     2101            qc = new qx.ui.core.Command("Ctrl+W");
     2102            qc.addListener("execute", this.loadWikiCB, this);
    21032103            btn = new qx.ui.menu.Button("Load Wikipedia Article",
    2104                 "pf/image/wikipedia.png", q);
     2104                "pf/image/wikipedia.png", qc);
    21052105            submenu.add(btn);
    21062106            this.loadWikiButton = btn;
     
    21102110
    21112111            submenu.add(new qx.ui.menu.Separator);
    2112             q = new qx.ui.core.Command("Ctrl+L");
    2113             q.addListener("execute", this.drawCB, this);
     2112            qc = new qx.ui.core.Command("Ctrl+L");
     2113            qc.addListener("execute", this.drawCB, this);
    21142114            btn = new qx.ui.menu.Button("Redraw Plot",
    2115                 "pf/image/tab-plot.png", q);
     2115                "pf/image/tab-plot.png", qc);
    21162116            submenu.add(btn);
    21172117            this.redrawButton = btn;
     
    21312131            submenu = new qx.ui.menu.Menu;
    21322132            this.doc.add(submenu);
    2133             q = new qx.ui.core.Command("F1");
    2134             q.addListener("execute", function(ev) {
     2133            qc = new qx.ui.core.Command("F1");
     2134            qc.addListener("execute", function(ev) {
    21352135                    var url = "resource/pf/html/ug.html";
    21362136                    var w = qx.bom.Window.open(url, null, nvOptions);
    21372137                }, this);
    21382138            btn = new qx.ui.menu.Button("Help Contents",
    2139                 "pf/image/help.png", q);
     2139                "pf/image/help.png", qc);
    21402140            submenu.add(btn);
    21412141            btn = new qx.ui.menu.Button("Reference Paper",
  • source/class/pf/base/Species.js

    r293 r341  
    2626        },
    2727       
    28         setQ: function(q)
    29         {
    30             this._q = parseInt(q);
     28        setQ: function(Q)
     29        {
     30            this._q = parseInt(Q);
    3131            this._update();
    3232        },
     
    199199       
    200200   
    201     construct: function(id, m, q, n, t)
     201    construct: function(id, m, Q, n, t)
    202202    {
    203203        if (m <= 0.0 || n < 0.0 || t <= 0.0) {
     
    207207        this.id = id;
    208208        this._m  = m;
    209         this._q  = q;
     209        this._q  = Q;
    210210        this._n  = n;
    211211        this._t  = t;
Note: See TracChangeset for help on using the changeset viewer.