/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-28 17:03:09 UTC
  • Revision ID: edam@waxworlds.org-20120228170309-gaaj6k3prrgvwvp8
remove TextRenderer singleton and save space

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"
27
28
#include "drawer.h"
28
29
 
29
30
 
30
31
class MinorMode
31
32
    :
32
 
    public Drawer
 
33
    public ModeBase,
 
34
        public Drawer
33
35
{
34
36
public:
35
37
 
41
43
        MinorMode( int num_flavours );
42
44
 
43
45
        /**
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();
 
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();
52
61
 
53
62
protected:
54
63