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

Added "collisions" and "waves" sections.

File:
1 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);
Note: See TracChangeset for help on using the changeset viewer.