aboutsummaryrefslogtreecommitdiff
path: root/readerview.h
blob: 0ea631e96063e8a02d8f8d4a8146de6f20cea9ec (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
#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);

    void setVersion(std::string version);
    std::string getVersion(void);
    std::vector<std::string> getAllVersions(void);

    void refresh(void);

    std::vector<std::string> modsUpdated(void);

protected:
    Sword *sword;
    Gtk::TextView text;
    struct config *conf;
};