add on_exit to panelscreen
[clinton/Smoothieware.git] / src / modules / utils / panel / screens / MainMenuScreen.h
CommitLineData
862fc625 1/*
35089dc7
JM
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.
862fc625 5 You should have received a copy of the GNU General Public License along with Smoothie. If not, see <http://www.gnu.org/licenses/>.
35089dc7
JM
6*/
7
8#ifndef MAINMENUSCREEN_H
9#define MAINMENUSCREEN_H
10
35089dc7 11#include "PanelScreen.h"
35089dc7
JM
12
13class MainMenuScreen : public PanelScreen {
14 public:
15 MainMenuScreen();
862fc625 16 void on_refresh();
35089dc7 17 void on_enter();
35089dc7
JM
18 void display_menu_line(uint16_t line);
19 void clicked_menu_entry(uint16_t line);
20
383c9c1c
JM
21 friend class Panel;
22 private:
35089dc7
JM
23 PanelScreen* watch_screen;
24 PanelScreen* file_screen;
25 PanelScreen* jog_screen;
26 PanelScreen* prepare_screen;
27
35089dc7 28 void abort_playing();
383c9c1c 29 void setupConfigureScreen();
35089dc7
JM
30};
31
32
33
34
35
36
37#endif