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

  • Committer: Tim Marston
  • Date: 2012-05-18 14:55:12 UTC
  • Revision ID: tim@ed.am-20120518145512-4dg4ble01d47a8z5
moved rount Time a bit, and passed _button to SettingsMajorMode so that it can
come in and out of send_interim mode

Show diffs side-by-side

added added

removed removed

33
33
#define DATE_SET_IDX 2
34
34
 
35
35
 
 
36
SettingsMajorMode::SettingsMajorMode( Button &button )
 
37
        :
 
38
        _button( button )
 
39
{
 
40
}
 
41
 
 
42
 
36
43
void SettingsMajorMode::draw( int segment )
37
44
{
38
45
        Text::draw( 0, segment );
103
110
        _item = _part = 0;
104
111
 
105
112
        reset_messages();
 
113
 
 
114
        _button.set_press_mode( false );
106
115
}
107
116
 
108
117
 
109
118
void SettingsMajorMode::deactivate()
110
119
{
 
120
        _button.set_press_mode( true );
 
121
 
 
122
        // save time
 
123
 
111
124
}
112
125
 
113
126