aboutsummaryrefslogtreecommitdiff
path: root/src/readerview.h
diff options
context:
space:
mode:
authorYour Name <you@example.com>2022-04-19 17:29:34 -0400
committerYour Name <you@example.com>2022-04-19 17:29:34 -0400
commit7fc9d0c19efb22cb02af7f34c8473c960ec2d02e (patch)
treef681ac174f584996734f0c97acca25cdf4b925d5 /src/readerview.h
parentff7307324ce69f3d55aa935db5aa0f1802785115 (diff)
downloadbiblereader-7fc9d0c19efb22cb02af7f34c8473c960ec2d02e.tar.gz
biblereader-7fc9d0c19efb22cb02af7f34c8473c960ec2d02e.tar.bz2
biblereader-7fc9d0c19efb22cb02af7f34c8473c960ec2d02e.zip
Code refactoring
Diffstat (limited to 'src/readerview.h')
-rw-r--r--src/readerview.h45
1 files changed, 23 insertions, 22 deletions
diff --git a/src/readerview.h b/src/readerview.h
index 0ea631e..7c0436b 100644
--- a/src/readerview.h
+++ b/src/readerview.h
@@ -1,32 +1,33 @@
#pragma once
#include <gtkmm.h>
-class Sword;
-
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<std::string> getAllBooks(void);
+ public:
+ ReaderView();
+ virtual ~ReaderView();
- void setVersion(std::string version);
- std::string getVersion(void);
- std::vector<std::string> getAllVersions(void);
+ 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<std::string> getAllBooks(void);
- void refresh(void);
+ std::string getVersion(void);
+
+ void refresh(void);
- std::vector<std::string> modsUpdated(void);
+ protected:
+ Gtk::TextView text;
+ struct config *conf;
+};
-protected:
- Sword *sword;
- Gtk::TextView text;
- struct config *conf;
+struct config {
+ int chapter;
+ std::string book;
+ std::string bookFull;
+ int maxChapter;
+ std::string version;
};