/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: edam
  • Date: 2012-02-25 14:54:33 UTC
  • Revision ID: edam@waxworlds.org-20120225145433-kih8qs45x05cum46
removed Bounce library and updated/fixed new code

Show diffs side-by-side

added added

removed removed

24
24
#define _MINOR_MODE_H_
25
25
 
26
26
 
27
 
#include "mode_base.h"
28
27
#include "drawer.h"
29
28
 
30
29
 
31
 
class MinorMode : public ModeBase, public Drawer
 
30
class MinorMode
 
31
    :
 
32
    public Drawer
32
33
{
33
34
public:
34
35
 
40
41
        MinorMode( int num_flavours );
41
42
 
42
43
        /**
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();
 
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();
58
52
 
59
53
protected:
60
54