/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

Lines of Context:
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
30
class MinorMode
32
31
    :
33
 
    public ModeBase,
34
 
        public Drawer
 
32
    public Drawer
35
33
{
36
34
public:
37
35
 
43
41
        MinorMode( int num_flavours );
44
42
 
45
43
        /**
46
 
         * Called to inform the mode that there has been a (short) button press.
47
 
         */
48
 
        virtual void press();
49
 
 
50
 
        /**
51
 
         * Called when this major mode is becoming active
52
 
         */
53
 
        virtual void activate();
54
 
 
55
 
        /**
56
 
         * Retrieve a drawer.
57
 
         *
58
 
         * @return drawer
59
 
         */
60
 
        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();
61
52
 
62
53
protected:
63
54