|
|
|
@ -85,7 +85,7 @@ Reader &Reader::Instance() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Reader::Reader(const std::string &bookToOpen) :
|
|
|
|
|
ZLApplication("Reader"),
|
|
|
|
|
ZLApplication("tde-ebook-reader"),
|
|
|
|
|
QuitOnCancelOption(ZLCategoryKey::CONFIG, OPTIONS, "QuitOnCancel", false),
|
|
|
|
|
KeyScrollingDelayOption(ZLCategoryKey::CONFIG, "Scrollings", "Delay", 0, 2000, 100),
|
|
|
|
|
LinesToScrollOption(ZLCategoryKey::CONFIG, "SmallScrolling", "LinesToScroll", 1, 20, 1),
|
|
|
|
@ -172,7 +172,7 @@ Reader::Reader(const std::string &bookToOpen) :
|
|
|
|
|
myOpenFileHandler = new OpenFileHandler();
|
|
|
|
|
ZLCommunicationManager::Instance().registerHandler("openFile", myOpenFileHandler);
|
|
|
|
|
|
|
|
|
|
ZLNetworkManager::Instance().setUserAgent(std::string("Reader/") + VERSION);
|
|
|
|
|
//ZLNetworkManager::Instance().setUserAgent(std::string("Reader/") + VERSION);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Reader::~Reader() {
|
|
|
|
|