/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

Lines of Context:
32
32
{
33
33
public:
34
34
 
35
 
        /**
36
 
         * Constructor which provides the button.
37
 
         */
38
35
        SettingsMajorMode( Button &button );
39
36
 
40
37
        /**
41
 
         * Called once per segment to draw a column of LEDs.
42
 
         *
43
 
         * @param segment the segment number to draw
44
 
         */
45
 
        void draw( int segment );
46
 
 
47
 
        /**
48
38
         * Called at the start of a "frame", before any segments are drawn.
49
39
         */
50
40
        void draw_reset();
65
55
        void press();
66
56
 
67
57
        /**
68
 
         * Called when the button has been long-pressed.
 
58
         * Called when the button haas been long-pressed.
69
59
         */
70
60
        void long_press();
71
61
 
82
72
        /** part of item that we're setting */
83
73
        int _part;
84
74
 
85
 
        /** is there an interim press and does it need actioning? */
86
 
        char _press_state;
87
 
 
88
75
        /** the button */
89
76
        Button &_button;
90
77
};