/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 14:55:12 UTC
  • Revision ID: tim@ed.am-20120518145512-4dg4ble01d47a8z5
moved rount Time a bit, and passed _button to SettingsMajorMode so that it can
come in and out of send_interim mode

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
 
         */
38
35
        SettingsMajorMode( Button &button );
39
36
 
40
37
        /**
41
38
         * Called once per segment to draw a column of LEDs.
42
 
         *
43
39
         * @param segment the segment number to draw
44
40
         */
45
41
        void draw( int segment );
65
61
        void press();
66
62
 
67
63
        /**
68
 
         * Called when the button has been long-pressed.
 
64
         * Called when the button haas been long-pressed.
69
65
         */
70
66
        void long_press();
71
67
 
82
78
        /** part of item that we're setting */
83
79
        int _part;
84
80
 
85
 
        /** is there an interim press and does it need actioning? */
86
 
        char _press_state;
87
 
 
88
81
        /** the button */
89
82
        Button &_button;
90
83
};