/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: 2013-03-31 17:07:36 UTC
  • Revision ID: tim@ed.am-20130331170736-hphm2hg0y6l7w6z1
made rtc-test's DS1307 library a symlink to the main one in src/util

Show diffs side-by-side

added added

removed removed

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