aboutsummaryrefslogtreecommitdiff
path: root/src/readerview.h
blob: 7c0436be75217b0496d07d7937a3f70cbdfbb0ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#pragma once
#include <gtkmm.h>

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);

        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;
};