Changeset 103:8662f632b66a


Ignore:
Timestamp:
Jan 14, 2009, 1:11:44 PM (16 years ago)
Author:
fnevgeny
Branch:
default
Phase:
public
Message:

Added "collisions" and "waves" sections.

Location:
source
Files:
2 edited

Legend:

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

    r102 r103  
    252252}
    253253
     254function showWavesCB(ev)
     255{
     256    this.showWaves = !this.showWaves;
     257    this.rePopulateTree();
     258}
     259
     260function showCollisionsCB(ev)
     261{
     262    this.showCollisions = !this.showCollisions;
     263    this.rePopulateTree();
     264}
     265
    254266function showElectronsCB(ev)
    255267{
     
    366378        showFundamental  : true,
    367379        showSpectroscopy : true,
     380        showWaves        : true,
     381        showCollisions   : true,
    368382
    369383        showElectrons  : true,
     
    802816                if (entity.section == "spectroscopy" &&
    803817                    this.showSpectroscopy != true) {
     818                    continue;
     819                }
     820                if (entity.section == "waves" &&
     821                    this.showWaves != true) {
     822                    continue;
     823                }
     824                if (entity.section == "collisions" &&
     825                    this.showCollisions != true) {
    804826                    continue;
    805827                }
     
    20812103            button.addListener("execute", showSpectroscopyCB, this);
    20822104            subMenu1.add(button);
     2105            button = new qx.legacy.ui.menu.CheckBox("Waves",
     2106                null, this.showWaves);
     2107            button.addListener("execute", showWavesCB, this);
     2108            subMenu1.add(button);
     2109            button = new qx.legacy.ui.menu.CheckBox("Collisions",
     2110                null, this.showCollisions);
     2111            button.addListener("execute", showCollisionsCB, this);
     2112            subMenu1.add(button);
    20832113            this.showSectionsButton = new qx.legacy.ui.menu.Button("Show Sections",
    20842114                null, null, subMenu1);
  • source/entities.js

    r102 r103  
    8484        dimension : "velocity",
    8585        nspecies  : 0,
    86         section   : "fundamental",
     86        section   : "waves",
    8787        formula   : "this.getAlfvenVelocity(this.B)",
    8888        wikiLink  : "Alfven_velocity"
     
    317317        dimension : "none",
    318318        nspecies  : 1,
    319         section   : "fundamental",
     319        section   : "collisions",
    320320        formula   : "this.e.getCoulombLog(%s1)",
    321321        wikiLink  : "Coulomb_logarithm",
Note: See TracChangeset for help on using the changeset viewer.