From b96fa27adbcdedee9e0a2c788bc5604fbaaa60d8 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 21 Apr 2022 10:51:07 -0400 Subject: Code simplifications --- src/readerview.h | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'src/readerview.h') diff --git a/src/readerview.h b/src/readerview.h index 7c0436b..51fc48d 100644 --- a/src/readerview.h +++ b/src/readerview.h @@ -7,27 +7,16 @@ class ReaderView : public Gtk::Frame ReaderView(); virtual ~ReaderView(); - void setChapter(int chapter); - int getChapter(void); - int getChapterMax(void); + void setChapter(unsigned int chapter); + unsigned int getChapter(void); + unsigned 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; }; -- cgit v1.2.3