Rev 1346 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1346 | Rev 1352 | ||
|---|---|---|---|
| Line 4... | Line 4... | ||
| 4 | loadScript("Logic/gLCD_MenuItems/DimmerGlcdMenuItem.js"); |
4 | loadScript("Logic/gLCD_MenuItems/DimmerGlcdMenuItem.js"); |
| - | 5 | loadScript("Logic/gLCD_MenuItems/SensorGlcdMenuItem.js"); |
|
| 5 | 6 | ||
| 6 | function DorrDisplay(type, name, id) |
7 | function DorrDisplay(type, name, id) |
| 7 | { |
8 | { |
| 8 | /* We must always call the parent constructor, initialization |
9 | /* We must always call the parent constructor, initialization |
| 9 | of variables could be done here, but initialize is a better place */ |
10 | of variables could be done here, but initialize is a better place */ |
| Line 23... | Line 24... | ||
| 23 | DorrDisplay.prototype.myIntervalAlways = null; |
24 | DorrDisplay.prototype.myIntervalAlways = null; |
| 24 | 25 | ||
| 25 | DorrDisplay.prototype.MainMenuItem = null; |
26 | DorrDisplay.prototype.MainMenuItem = null; |
| 26 | DorrDisplay.prototype.SettingMenuItem = null; |
27 | DorrDisplay.prototype.SettingMenuItem = null; |
| 27 | DorrDisplay.prototype.DimmerGlcdMenuItem = null; |
28 | DorrDisplay.prototype.DimmerGlcdMenuItem = null; |
| - | 29 | DorrDisplay.prototype.SensorGlcdMenuItem = null; |
|
| 28 | 30 | ||
| 29 | /* The currently displayed menuitem */ |
31 | /* The currently displayed menuitem */ |
| 30 | DorrDisplay.prototype.currentMenuItem = null; |
32 | DorrDisplay.prototype.currentMenuItem = null; |
| 31 | 33 | ||
| 32 | /* counter for going to screensaver */ |
34 | /* counter for going to screensaver */ |
| Line 98... | Line 100... | ||
| 98 | 100 | ||
| 99 | /* create the first menu item */ |
101 | /* create the first menu item */ |
| 100 | this.MainMenuItem = new MainMenuItem(this, this.myGLCDService); |
102 | this.MainMenuItem = new MainMenuItem(this, this.myGLCDService); |
| 101 | this.SettingMenuItem = new SettingsMenuItem(this, this.myGLCDService); |
103 | this.SettingMenuItem = new SettingsMenuItem(this, this.myGLCDService); |
| 102 | this.DimmerGlcdMenuItem = new DimmerGlcdMenuItem(this, this.myGLCDService); |
104 | this.DimmerGlcdMenuItem = new DimmerGlcdMenuItem(this, this.myGLCDService); |
| - | 105 | this.SensorGlcdMenuItem = new SensorGlcdMenuItem(this, this.myGLCDService); |
|
| 103 | 106 | ||
| 104 | this.currentMenuItem = this.MainMenuItem; |
107 | this.currentMenuItem = this.MainMenuItem; |
| 105 | 108 | ||
| 106 | 109 | ||
| 107 | /* create the screensaver menu item */ |
110 | /* create the screensaver menu item */ |
| 108 | this.SettingMenuItem.LeftItem=this.MainMenuItem; |
- | |
| 109 | this.SettingMenuItem.RightItem=this.DimmerGlcdMenuItem; |
- | |
| - | 111 | ||
| 110 | 112 | ||
| 111 | /* set the function that shall be executed when knob is turned */ |
113 | /* set the function that shall be executed when knob is turned */ |
| 112 | /* create the screensaver menu item */ |
114 | /* create the screensaver menu item */ |
| 113 | this.MainMenuItem.LeftItem=this. |
115 | this.MainMenuItem.LeftItem=this.SensorGlcdMenuItem; |
| 114 | this.MainMenuItem.RightItem=this.SettingMenuItem; |
116 | this.MainMenuItem.RightItem=this.SettingMenuItem; |
| - | 117 | ||
| 115 | this. |
118 | this.SettingMenuItem.LeftItem=this.MainMenuItem; |
| - | 119 | this.SettingMenuItem.RightItem=this.DimmerGlcdMenuItem; |
|
| - | 120 | ||
| 116 | this.DimmerGlcdMenuItem.LeftItem=this.SettingMenuItem; |
121 | this.DimmerGlcdMenuItem.LeftItem=this.SettingMenuItem; |
| - | 122 | this.DimmerGlcdMenuItem.RightItem=this.SensorGlcdMenuItem; |
|
| 117 | 123 | ||
| - | 124 | this.SensorGlcdMenuItem.LeftItem=this.DimmerGlcdMenuItem; |
|
| - | 125 | this.SensorGlcdMenuItem.RightItem=this.MainMenuItem; |
|
| 118 | 126 | ||
| 119 | } |
127 | } |
| 120 | // |
128 | // |
| 121 | DorrDisplay.prototype.changeToLeft = function() |
129 | DorrDisplay.prototype.changeToLeft = function() |
| 122 | { |
130 | { |