Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Smoothie by
PanelScreen.h
00001 /* 00002 This file is part of Smoothie (http://smoothieware.org/). The motion control part is heavily based on Grbl (https://github.com/simen/grbl). 00003 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. 00004 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. 00005 You should have received a copy of the GNU General Public License along with Smoothie. If not, see <http://www.gnu.org/licenses/>. 00006 */ 00007 00008 #ifndef PANELSCREEN_H 00009 #define PANELSCREEN_H 00010 00011 #include "Panel.h" 00012 00013 class Panel; 00014 class PanelScreen 00015 { 00016 public: 00017 PanelScreen(); 00018 virtual void on_refresh(); 00019 virtual void on_main_loop(); 00020 PanelScreen *set_panel(Panel *parent); 00021 PanelScreen *set_parent(PanelScreen *passed_parent); 00022 virtual void on_enter(); 00023 // if you completely rewrite the screen do not clear it, this avoids flicker 00024 void refresh_screen(bool clear); 00025 void refresh_menu(bool clear); 00026 void refresh_menu(void) { refresh_menu(true); }; 00027 virtual void display_menu_line(uint16_t line) = 0; 00028 // default idle timeout for a screen, each screen can override this 00029 virtual int idle_timeout_secs(){ return 10; } 00030 Panel *panel; 00031 PanelScreen *parent; 00032 00033 protected: 00034 void send_gcode(std::string g); 00035 void send_command(const char *gcstr); 00036 }; 00037 00038 #endif
Generated on Tue Jul 12 2022 20:09:02 by
1.7.2
