Fork of Smoothie to port to mbed non-LPC targets.
Fork of Smoothie by
FileScreen.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 FILESCREEN_H 00009 #define FILESCREEN_H 00010 00011 #include "libs/Kernel.h" 00012 #include "libs/nuts_bolts.h" 00013 #include "libs/utils.h" 00014 #include "libs/Pin.h" 00015 #include "LcdBase.h" 00016 #include "Panel.h" 00017 #include "PanelScreen.h" 00018 00019 #include <string> 00020 using namespace std; 00021 00022 class FileScreen : public PanelScreen { 00023 public: 00024 FileScreen(); 00025 void on_enter(); 00026 void on_refresh(); 00027 void on_main_loop(); 00028 void enter_folder(std::string folder); 00029 uint16_t count_folder_content(std::string folder); 00030 void clicked_line(uint16_t line); 00031 void display_menu_line(uint16_t line); 00032 bool is_a_folder( string path ); 00033 string file_at(uint16_t line); 00034 00035 std::string current_folder; 00036 00037 private: 00038 void play(string path); 00039 bool start_play; 00040 string play_path; 00041 }; 00042 00043 00044 00045 00046 00047 00048 #endif
Generated on Tue Jul 12 2022 20:09:01 by 1.7.2