2
* Copyright (C) 2006 Paul Davis
3
* Copyright (C) 2007 Michael Taht
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21
#include <tranzport_control_protocol.h>
24
TranzportControlProtocol::normal_update ()
26
show_current_track ();
27
show_transport_time ();
33
TranzportControlProtocol::next_display_mode ()
35
switch (display_mode) {
38
enter_big_meter_mode();
42
enter_normal_display_mode();
45
case DisplayRecording:
46
enter_normal_display_mode();
49
case DisplayRecordingMeter:
50
enter_big_meter_mode();
55
case DisplayBlingMeter:
56
enter_normal_display_mode();
61
// FIXME: There should be both enter and exits
62
// EXIT would erase the portions of the screen being written
64
/* not sure going macro crazy is a good idea
65
#define DECLARE_ENTER_MODE(mode,modename) void TranzportControlProtocol::enter_##mode##_mode() \{\screen_clear(); lights_off(); display_mode=Display##modename;\;
68
TranzportControlProtocol::enter_recording_mode ()
72
display_mode = DisplayRecording;
76
TranzportControlProtocol::enter_bling_mode ()
80
display_mode = DisplayBling;
84
TranzportControlProtocol::enter_config_mode ()
88
display_mode = DisplayConfig;
93
TranzportControlProtocol::enter_big_meter_mode ()
95
lights_off (); // it will clear the screen for you
97
display_mode = DisplayBigMeter;
101
TranzportControlProtocol::enter_normal_display_mode ()
105
display_mode = DisplayNormal;