1 /* TheStory.h */ 2 3 /* 4 NUT nutrition software 5 Copyright (C) 1996-2014 by Jim Jozwiak. 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License as published by 9 the Free Software Foundation; either version 2 of the License, or 10 (at your option) any later version. 11 12 This program is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 GNU General Public License for more details. 16 17 You should have received a copy of the GNU General Public License 18 along with this program; if not, write to the Free Software 19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 20 */ 21 22 #ifndef THESTORY_H 23 #define THESTORY_H 24 25 #include "NutCharts.h" 26 #include "FoodRanking.h" 27 28 class FoodRanking; 29 30 class TheStory : public Fl_Wizard 31 { 32 public: 33 TheStory(int x, int y, int w, int h, Fl_Color widgetcolor); 34 void new_story(int nut, int screen); 35 void update(void); 36 void choose_food_group(void); 37 void set_food_group(int fg); 38 void choose_minimize(void); 39 void set_minimize(int min); 40 void reindex_foodbuttons(int foodnum); 41 NutCharts *charts; 42 FoodRanking *ranking; 43 NutButtonWidget *nbw; 44 struct food foodwork; 45 46 private: 47 int lastnut, lastscreen; 48 Fl_Group *mainscreen, *foodgroup; 49 bool minimize; 50 }; 51 52 #endif 53