/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: edam
  • Date: 2012-05-18 12:11:01 UTC
  • Revision ID: tim@ed.am-20120518121101-0wik922hyvjkcjdi
switched back to using classes for modes

Show diffs side-by-side

added added

removed removed

25
25
 
26
26
 
27
27
#include "major_mode.h"
28
 
#include "button.h"
29
28
 
30
29
 
31
30
class SettingsMajorMode : public MajorMode
33
32
public:
34
33
 
35
34
        /**
36
 
         * Constructor which provides the button.
37
 
         */
38
 
        SettingsMajorMode( Button &button );
39
 
 
40
 
        /**
41
35
         * Called once per segment to draw a column of LEDs.
42
 
         *
43
36
         * @param segment the segment number to draw
44
37
         */
45
38
        void draw( int segment );
65
58
        void press();
66
59
 
67
60
        /**
68
 
         * Called when the button has been long-pressed.
 
61
         * Called when the button haas been long-pressed.
69
62
         */
70
63
        void long_press();
71
64
 
81
74
        
82
75
        /** part of item that we're setting */
83
76
        int _part;
84
 
 
85
 
        /** is there an interim press and does it need actioning? */
86
 
        char _press_state;
87
 
 
88
 
        /** the button */
89
 
        Button &_button;
90
77
};
91
78
 
92
79