Fork of Smoothie to port to mbed non-LPC targets.
Fork of Smoothie by
CustomScreen.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 CUSTOMSCREEN_H 00009 #define CUSTOMSCREEN_H 00010 00011 #include "PanelScreen.h" 00012 00013 #include <string> 00014 #include <vector> 00015 #include <tuple> 00016 00017 class CustomScreen : public PanelScreen 00018 { 00019 public: 00020 CustomScreen(); 00021 00022 void on_refresh(); 00023 void on_enter(); 00024 void on_main_loop(); 00025 void display_menu_line(uint16_t line); 00026 void clicked_menu_entry(uint16_t line); 00027 int idle_timeout_secs() { return 60; } 00028 00029 private: 00030 std::string command; 00031 std::vector<std::tuple<const char*,const char*> > menu_items; 00032 }; 00033 00034 #endif
Generated on Tue Jul 12 2022 20:09:00 by 1.7.2