1 /* 2 * tracker/TitlePageManager.h 3 * 4 * Copyright 2009 Peter Barth 5 * 6 * This file is part of Milkytracker. 7 * 8 * Milkytracker is free software: you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation, either version 3 of the License, or 11 * (at your option) any later version. 12 * 13 * Milkytracker is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with Milkytracker. If not, see <http://www.gnu.org/licenses/>. 20 * 21 */ 22 23 #ifndef __TITLEPAGEMANAGER_H__ 24 #define __TITLEPAGEMANAGER_H__ 25 26 #include "BasicTypes.h" 27 28 class TitlePageManager 29 { 30 private: 31 class PPScreen& screen; 32 33 public: 34 TitlePageManager(PPScreen& screen); 35 36 enum Pages 37 { 38 PageTitle, 39 PageTime, 40 PagePeak 41 }; 42 43 Pages getCurrentTitlePage(); 44 void showTitlePage(Pages page, bool update = true); 45 void showSongTitleEditField(bool update = true); 46 void showTimeCounter(bool update = true); 47 void showPeakControl(bool update = true); 48 49 void setPeakControlHeadingColor(const PPColor& color, bool update = true); 50 }; 51 52 #endif 53