/elec/propeller-clock

To get this branch, use:
bzr branch http://bzr.ed.am/elec/propeller-clock

« back to all changes in this revision

Viewing changes to src/modes/settings_major_mode.h

  • Committer: Tim Marston
  • Date: 2012-05-18 18:29:50 UTC
  • Revision ID: tim@ed.am-20120518182950-t85bn9a21n72uzm8
text messages are now individually enabled and draw()n automatically

Show diffs side-by-side

added added

removed removed

25
25
 
26
26
 
27
27
#include "major_mode.h"
 
28
#include "button.h"
28
29
 
29
30
 
30
31
class SettingsMajorMode : public MajorMode
31
32
{
32
33
public:
33
34
 
34
 
        /**
35
 
         * Called once per segment to draw a column of LEDs.
36
 
         * @param segment the segment number to draw
37
 
         */
38
 
        void draw( int segment );
 
35
        SettingsMajorMode( Button &button );
39
36
 
40
37
        /**
41
38
         * Called at the start of a "frame", before any segments are drawn.
74
71
        
75
72
        /** part of item that we're setting */
76
73
        int _part;
 
74
 
 
75
        /** the button */
 
76
        Button &_button;
77
77
};
78
78
 
79
79