/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/minor_mode.h

  • Committer: Tim Marston
  • Date: 2012-03-09 23:42:20 UTC
  • Revision ID: tim@ed.am-20120309234220-xr1vxzve0o5n2oss
added support for eclipse project and converted to a manual Makefile

Show diffs side-by-side

added added

removed removed

24
24
#define _MINOR_MODE_H_
25
25
 
26
26
 
 
27
#include "mode_base.h"
27
28
#include "drawer.h"
28
29
 
29
30
 
30
 
class MinorMode
31
 
    :
32
 
    public Drawer
 
31
class MinorMode : public ModeBase, public Drawer
33
32
{
34
33
public:
35
34
 
41
40
        MinorMode( int num_flavours );
42
41
 
43
42
        /**
44
 
         * Called when this mninor mode becomes active
45
 
         */
46
 
        void activate();
47
 
 
48
 
        /**
49
 
         * Called when the display should change
50
 
         */
51
 
        void next_flavour();
 
43
         * Called to inform the mode that there has been a (short) button press.
 
44
         */
 
45
        virtual void press();
 
46
 
 
47
        /**
 
48
         * Called when this major mode is becoming active
 
49
         */
 
50
        virtual void activate();
 
51
 
 
52
        /**
 
53
         * Retrieve a drawer.
 
54
         *
 
55
         * @return drawer
 
56
         */
 
57
        Drawer &get_drawer();
52
58
 
53
59
protected:
54
60