/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.cc

  • 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

30
30
}
31
31
 
32
32
 
 
33
void MinorMode::press()
 
34
{
 
35
        if( ++_flavour >= _num_flavours )
 
36
                _flavour = 0;
 
37
}
 
38
 
 
39
 
33
40
void MinorMode::activate()
34
41
{
35
42
        _flavour = 0;
36
43
}
37
44
 
38
45
 
39
 
void MinorMode::next_flavour()
40
 
{
41
 
        if( ++_flavour >= _num_flavours )
42
 
                _flavour = 0;
43
 
}
44
 
 
45
 
 
46
46
int MinorMode::get_flavour()
47
47
{
48
48
        return _flavour;
49
49
}
 
50
 
 
51
 
 
52
Drawer &MinorMode::get_drawer()
 
53
{
 
54
        return *this;
 
55
}