#pragma once #include class ReaderView : public Gtk::Frame { public: ReaderView(); virtual ~ReaderView(); void setChapter(int chapter); int getChapter(void); int getChapterMax(void); void setBook(std::string book); std::string getBook(void); std::string getBookFull(void); std::vector getAllBooks(void); std::string getVersion(void); void refresh(void); protected: Gtk::TextView text; struct config *conf; }; struct config { int chapter; std::string book; std::string bookFull; int maxChapter; std::string version; };