add on_exit to panelscreen
[clinton/Smoothieware.git] / src / modules / utils / panel / screens / WatchScreen.h
1 /*
2 This file is part of Smoothie (http://smoothieware.org/). The motion control part is heavily based on Grbl (https://github.com/simen/grbl).
3 Smoothie is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
4 Smoothie is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
5 You should have received a copy of the GNU General Public License along with Smoothie. If not, see <http://www.gnu.org/licenses/>.
6 */
7
8 #ifndef WATCHSCREEN_H
9 #define WATCHSCREEN_H
10
11 #include "PanelScreen.h"
12
13 class WatchScreen : public PanelScreen
14 {
15 public:
16 WatchScreen();
17 ~WatchScreen();
18 void on_refresh();
19 void on_enter();
20 void on_main_loop();
21 void display_menu_line(uint16_t line);
22
23 private:
24 void get_temp_data();
25 float get_current_speed();
26 void set_speed();
27 void get_current_pos(float *cp);
28 void get_sd_play_info();
29 const char *get_status();
30 const char *get_network();
31
32 bool speed_changed;
33 bool issue_change_speed;
34 bool fan_state;
35 int hotendtemp;
36 int hotendtarget;
37 int bedtemp;
38 int bedtarget;
39 int current_speed;
40 float pos[3];
41 unsigned long elapsed_time;
42 unsigned int sd_pcnt_played;
43
44 char *ipstr;
45 };
46
47 #endif