Showing 1 changed files with 6 additions and 0 deletions
+6
Nasal/display.nas
... ...
@@ -1,6 +1,7 @@
1 1
 # vim: set foldmethod=marker foldmarker={{{,}}} :
2 2
 var displayClass = {
3 3
     new: func(device, role) {
4
+# the contructor {{{
4 5
         var m = { parents: [ displayClass ] };
5 6
 
6 7
         m.display = canvas.new({
... ...
@@ -20,7 +21,9 @@ var displayClass = {
20 21
 
21 22
         return m;
22 23
     },
24
+#}}}
23 25
 
26
+# timers stuff {{{
24 27
     timers : {},
25 28
 
26 29
     timerTrigger : func {
... ...
@@ -41,6 +44,7 @@ var displayClass = {
41 44
         foreach (var e; element)
42 45
             me.timers[e] = end;
43 46
     },
47
+#}}}
44 48
 
45 49
     loadsvg : func () {
46 50
         me.screen = me.display.createGroup();
... ...
@@ -697,6 +701,7 @@ var displayClass = {
697 701
 };
698 702
 
699 703
 var keyMap = {
704
+# softkeys map for PFD and MFD {{{
700 705
     PFD : {
701 706
         first : 1,
702 707
         texts : ['INSET', 'SENSOR', 'PFD', 'OBS', 'CDI', 'DME', 'XPDR', 'IDENT', 'TMR/REF', 'NRST' ],
... ...
@@ -761,3 +766,4 @@ var keyMap = {
761 766
         },
762 767
     },
763 768
 };
769
+#}}}