From cd87a41ab9bfa2207b41a6117e6fe9aea2075143 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 22 Jun 2024 21:28:13 +0900 Subject: [PATCH] Add tde-ebook-reader package Signed-off-by: Michele Calgaro --- CMakeLists.txt | 3 +- ConfigureChecks.cmake | 7 + reader/LICENSE => LICENSE | 0 config.h.cmake | 2 +- debian/control | 4 +- debian/tde-ebook-reader.install | 3 +- reader/CMakeLists.txt | 3 + reader/data/CMakeLists.txt | 49 ++ .../{config.desktop.xml => config.xml} | 0 .../{external.desktop.xml => external.xml} | 0 ...bar.desktop.xml => fullscreen_toolbar.xml} | 0 .../{keymap.desktop.xml => keymap.xml} | 0 reader/data/default/menubar.xml | 39 -- .../{styles.desktop.xml => styles.xml} | 0 reader/data/default/toolbar.full.xml | 25 - reader/data/default/toolbar.short.xml | 23 - .../{toolbar.desktop.xml => toolbar.xml} | 0 reader/data/icons/application/16x16.png | Bin 612 -> 0 bytes reader/data/icons/application/26x26.png | Bin 1069 -> 0 bytes reader/data/icons/application/32x24.png | Bin 1230 -> 0 bytes reader/data/icons/application/32x32.png | Bin 1316 -> 0 bytes reader/data/icons/application/48x48.png | Bin 2106 -> 0 bytes reader/data/icons/application/64x43.png | Bin 1534 -> 0 bytes reader/data/icons/application/Reader.icns | Bin 163060 -> 0 bytes reader/data/icons/application/desktop.png | 1 - .../{64x64.png => tde-ebook-reader.png} | Bin .../22x22-transparent-png/tree-authorinfo.png | Bin 4023 -> 0 bytes .../22x22-transparent-png/tree-bookinfo.png | Bin 1226 -> 0 bytes .../tree-download-demo.png | Bin 2927 -> 0 bytes .../tree-download-epub.png | Bin 4196 -> 0 bytes .../tree-download-fb2.png | Bin 4184 -> 0 bytes .../tree-download-mobi.png | Bin 4177 -> 0 bytes .../22x22-transparent-png/tree-local-demo.png | Bin 2988 -> 0 bytes .../22x22-transparent-png/tree-local-epub.png | Bin 4179 -> 0 bytes .../22x22-transparent-png/tree-local-fb2.png | Bin 4171 -> 0 bytes .../22x22-transparent-png/tree-local-mobi.png | Bin 4167 -> 0 bytes .../tree-open-in-browser.png | Bin 1355 -> 0 bytes .../tree-order-series.png | Bin 4306 -> 0 bytes .../22x22-transparent-png/tree-purchase.png | Bin 2914 -> 0 bytes .../22x22-transparent-png/tree-removebook.png | Bin 1503 -> 0 bytes .../22x22-transparent-png/tree-removetag.png | Bin 4379 -> 0 bytes .../22x22-transparent-png/tree-strut.png | Bin 108 -> 0 bytes .../22x22-transparent-png/tree-taginfo.png | Bin 4269 -> 0 bytes .../28x28-transparent-png/tree-authorinfo.png | Bin 1620 -> 0 bytes .../28x28-transparent-png/tree-bookinfo.png | Bin 1776 -> 0 bytes .../tree-download-epub.png | Bin 2241 -> 0 bytes .../tree-download-fb2.png | Bin 2208 -> 0 bytes .../tree-download-mobi.png | Bin 2186 -> 0 bytes .../28x28-transparent-png/tree-local-epub.png | Bin 2272 -> 0 bytes .../28x28-transparent-png/tree-local-fb2.png | Bin 2217 -> 0 bytes .../28x28-transparent-png/tree-local-mobi.png | Bin 2244 -> 0 bytes .../tree-open-in-browser.png | Bin 2083 -> 0 bytes .../tree-orderseries.png | Bin 2069 -> 0 bytes .../28x28-transparent-png/tree-removebook.png | Bin 2150 -> 0 bytes .../28x28-transparent-png/tree-removetag.png | Bin 2436 -> 0 bytes .../28x28-transparent-png/tree-strut.png | Bin 177 -> 0 bytes .../28x28-transparent-png/tree-taginfo.png | Bin 2247 -> 0 bytes .../booktree/{new => }/booktree-author.png | Bin .../booktree/{new => }/booktree-book.png | Bin .../booktree/{new => }/booktree-catalog.png | Bin .../icons/booktree/{new => }/booktree-tag.png | Bin reader/data/icons/booktree/desktop | 1 - .../icons/booktree/{new => }/searchresult.png | Bin reader/data/icons/filetree/12x12-png/fb2.png | Bin 205 -> 0 bytes .../data/icons/filetree/12x12-png/folder.png | Bin 193 -> 0 bytes reader/data/icons/filetree/12x12-png/html.png | Bin 269 -> 0 bytes .../icons/filetree/12x12-png/mobipocket.png | Bin 205 -> 0 bytes reader/data/icons/filetree/12x12-png/oeb.png | Bin 205 -> 0 bytes .../icons/filetree/12x12-png/openreader.png | Bin 205 -> 0 bytes reader/data/icons/filetree/12x12-png/palm.png | Bin 205 -> 0 bytes .../data/icons/filetree/12x12-png/plucker.png | Bin 205 -> 0 bytes reader/data/icons/filetree/12x12-png/rtf.png | Bin 205 -> 0 bytes reader/data/icons/filetree/12x12-png/tcr.png | Bin 205 -> 0 bytes .../data/icons/filetree/12x12-png/unknown.png | Bin 205 -> 0 bytes .../icons/filetree/12x12-png/upfolder.png | Bin 193 -> 0 bytes .../data/icons/filetree/12x12-png/weasel.png | Bin 205 -> 0 bytes .../icons/filetree/12x12-png/zipfolder.png | Bin 227 -> 0 bytes .../filetree/22x22-transparent-ico/fb2.ico | Bin 2086 -> 0 bytes .../filetree/22x22-transparent-ico/folder.ico | Bin 2086 -> 0 bytes .../filetree/22x22-transparent-ico/html.ico | Bin 2086 -> 0 bytes .../22x22-transparent-ico/mobipocket.ico | Bin 2086 -> 0 bytes .../filetree/22x22-transparent-ico/oeb.ico | Bin 2086 -> 0 bytes .../22x22-transparent-ico/openreader.ico | Bin 2086 -> 0 bytes .../filetree/22x22-transparent-ico/palm.ico | Bin 2086 -> 0 bytes .../22x22-transparent-ico/plucker.ico | Bin 2086 -> 0 bytes .../filetree/22x22-transparent-ico/rtf.ico | Bin 2086 -> 0 bytes .../filetree/22x22-transparent-ico/tcr.ico | Bin 2086 -> 0 bytes .../22x22-transparent-ico/unknown.ico | Bin 2086 -> 0 bytes .../22x22-transparent-ico/upfolder.ico | Bin 2086 -> 0 bytes .../filetree/22x22-transparent-ico/weasel.ico | Bin 2086 -> 0 bytes .../22x22-transparent-ico/zipfolder.ico | Bin 2086 -> 0 bytes .../filetree/22x22-transparent-png/fb2.png | Bin 523 -> 0 bytes .../filetree/22x22-transparent-png/folder.png | Bin 680 -> 0 bytes .../filetree/22x22-transparent-png/html.png | Bin 1097 -> 0 bytes .../22x22-transparent-png/mobipocket.png | Bin 523 -> 0 bytes .../filetree/22x22-transparent-png/oeb.png | Bin 523 -> 0 bytes .../22x22-transparent-png/openreader.png | Bin 523 -> 0 bytes .../filetree/22x22-transparent-png/palm.png | Bin 523 -> 0 bytes .../22x22-transparent-png/plucker.png | Bin 523 -> 0 bytes .../filetree/22x22-transparent-png/rtf.png | Bin 654 -> 0 bytes .../filetree/22x22-transparent-png/tcr.png | Bin 523 -> 0 bytes .../22x22-transparent-png/unknown.png | Bin 523 -> 0 bytes .../22x22-transparent-png/upfolder.png | Bin 836 -> 0 bytes .../filetree/22x22-transparent-png/weasel.png | Bin 523 -> 0 bytes .../22x22-transparent-png/zipfolder.png | Bin 695 -> 0 bytes reader/data/icons/filetree/desktop | 1 - .../{32x32-transparent-png => }/fb2.png | Bin .../{32x32-transparent-png => }/folder.png | Bin .../{32x32-transparent-png => }/html.png | Bin .../mobipocket.png | Bin .../{32x32-transparent-png => }/oeb.png | Bin .../openreader.png | Bin .../{32x32-transparent-png => }/palm.png | Bin .../{32x32-transparent-png => }/plucker.png | Bin .../{32x32-transparent-png => }/rtf.png | Bin .../{32x32-transparent-png => }/tcr.png | Bin .../{32x32-transparent-png => }/unknown.png | Bin .../{32x32-transparent-png => }/upfolder.png | Bin .../{32x32-transparent-png => }/weasel.png | Bin .../{32x32-transparent-png => }/zipfolder.png | Bin .../data/icons/toolbar/14x15-png/addBook.png | Bin 241 -> 0 bytes .../data/icons/toolbar/14x15-png/bookInfo.png | Bin 247 -> 0 bytes .../data/icons/toolbar/14x15-png/findNext.png | Bin 371 -> 0 bytes .../icons/toolbar/14x15-png/findPrevious.png | Bin 376 -> 0 bytes .../data/icons/toolbar/14x15-png/gotoHome.png | Bin 303 -> 0 bytes .../icons/toolbar/14x15-png/preferences.png | Bin 235 -> 0 bytes reader/data/icons/toolbar/14x15-png/redo.png | Bin 166 -> 0 bytes .../data/icons/toolbar/14x15-png/rotate.png | Bin 219 -> 0 bytes .../data/icons/toolbar/14x15-png/search.png | Bin 495 -> 0 bytes .../icons/toolbar/14x15-png/showLibrary.png | Bin 256 -> 0 bytes .../icons/toolbar/14x15-png/showReading.png | Bin 171 -> 0 bytes .../icons/toolbar/14x15-png/showRecent.png | Bin 134 -> 0 bytes reader/data/icons/toolbar/14x15-png/toc.png | Bin 175 -> 0 bytes reader/data/icons/toolbar/14x15-png/undo.png | Bin 171 -> 0 bytes .../data/icons/toolbar/22x18-png/addBook.png | Bin 274 -> 0 bytes .../data/icons/toolbar/22x18-png/bookInfo.png | Bin 275 -> 0 bytes .../data/icons/toolbar/22x18-png/findNext.png | Bin 533 -> 0 bytes .../icons/toolbar/22x18-png/findPrevious.png | Bin 525 -> 0 bytes .../data/icons/toolbar/22x18-png/gotoHome.png | Bin 338 -> 0 bytes .../icons/toolbar/22x18-png/preferences.png | Bin 270 -> 0 bytes reader/data/icons/toolbar/22x18-png/redo.png | Bin 202 -> 0 bytes .../data/icons/toolbar/22x18-png/rotate.png | Bin 218 -> 0 bytes .../data/icons/toolbar/22x18-png/search.png | Bin 613 -> 0 bytes .../icons/toolbar/22x18-png/showLibrary.png | Bin 275 -> 0 bytes .../icons/toolbar/22x18-png/showReading.png | Bin 196 -> 0 bytes .../icons/toolbar/22x18-png/showRecent.png | Bin 147 -> 0 bytes reader/data/icons/toolbar/22x18-png/toc.png | Bin 207 -> 0 bytes reader/data/icons/toolbar/22x18-png/undo.png | Bin 196 -> 0 bytes .../toolbar/32x32-transparent-ico/addBook.ico | Bin 4286 -> 0 bytes .../advancedSearchOnNetwork.ico | Bin 4286 -> 0 bytes .../32x32-transparent-ico/bookInfo.ico | Bin 4286 -> 0 bytes .../32x32-transparent-ico/byAuthor.ico | Bin 4286 -> 0 bytes .../toolbar/32x32-transparent-ico/byTag.ico | Bin 4286 -> 0 bytes .../32x32-transparent-ico/findNext.ico | Bin 4286 -> 0 bytes .../32x32-transparent-ico/findPrevious.ico | Bin 4286 -> 0 bytes .../32x32-transparent-ico/gotoHome.ico | Bin 4286 -> 0 bytes .../32x32-transparent-ico/preferences.ico | Bin 4286 -> 0 bytes .../toolbar/32x32-transparent-ico/redo.ico | Bin 4286 -> 0 bytes .../toolbar/32x32-transparent-ico/rotate.ico | Bin 4286 -> 0 bytes .../toolbar/32x32-transparent-ico/search.ico | Bin 4286 -> 0 bytes .../32x32-transparent-ico/showHelp.ico | Bin 4286 -> 0 bytes .../32x32-transparent-ico/showLibrary.ico | Bin 4286 -> 0 bytes .../32x32-transparent-ico/showNetLibrary.ico | Bin 4286 -> 0 bytes .../32x32-transparent-ico/showReading.ico | Bin 4286 -> 0 bytes .../32x32-transparent-ico/showRecent.ico | Bin 4286 -> 0 bytes .../toolbar/32x32-transparent-ico/toc.ico | Bin 4286 -> 0 bytes .../toolbar/32x32-transparent-ico/undo.ico | Bin 4286 -> 0 bytes .../{32x32-transparent-png => }/addBook.png | Bin .../advancedSearchOnNetwork.png | Bin .../{32x32-transparent-png => }/bookInfo.png | Bin .../{32x32-transparent-png => }/byAuthor.png | Bin .../{32x32-transparent-png => }/byTag.png | Bin reader/data/icons/toolbar/desktop | 1 - .../{32x32-transparent-png => }/findNext.png | Bin .../findPrevious.png | Bin .../{32x32-transparent-png => }/gotoHome.png | Bin .../preferences.png | Bin .../{32x32-transparent-png => }/redo.png | Bin .../{32x32-transparent-png => }/rotate.png | Bin .../{32x32-transparent-png => }/search.png | Bin .../{32x32-transparent-png => }/showHelp.png | Bin .../showLibrary.png | Bin .../showNetLibrary.png | Bin .../showNetworkLibrary.png | 0 .../showReading.png | Bin .../showRecent.png | Bin .../{32x32-transparent-png => }/toc.png | Bin .../{32x32-transparent-png => }/undo.png | Bin reader/desktop/CMakeLists.txt | 6 + .../{desktop => tde-ebook-reader.desktop} | 0 reader/src/CMakeLists.txt | 19 + .../src/formats/docbook/DocBookBookReader.cpp | 111 ----- .../src/formats/docbook/DocBookBookReader.h | 45 -- .../docbook/DocBookDescriptionReader.cpp | 137 ------ .../docbook/DocBookDescriptionReader.h | 56 --- reader/src/formats/docbook/DocBookPlugin.cpp | 43 -- reader/src/formats/docbook/DocBookPlugin.h | 41 -- reader/src/formats/docbook/DocBookReader.cpp | 71 --- reader/src/formats/docbook/DocBookReader.h | 95 ---- reader/src/formats/dummy/DummyBookReader.cpp | 42 -- reader/src/formats/dummy/DummyBookReader.h | 44 -- .../src/formats/dummy/DummyMetaInfoReader.cpp | 40 -- .../src/formats/dummy/DummyMetaInfoReader.h | 46 -- reader/src/formats/dummy/DummyPlugin.cpp | 57 --- reader/src/formats/dummy/DummyPlugin.h | 38 -- reader/src/formats/dummy/createPlugin.sh | 12 - reader/src/formats/pdf/PdfBookReader.cpp | 261 ---------- reader/src/formats/pdf/PdfBookReader.h | 52 -- .../src/formats/pdf/PdfDescriptionReader.cpp | 29 -- reader/src/formats/pdf/PdfDescriptionReader.h | 40 -- reader/src/formats/pdf/PdfObject.cpp | 450 ------------------ reader/src/formats/pdf/PdfObject.h | 201 -------- reader/src/formats/pdf/PdfPlugin.cpp | 42 -- reader/src/formats/pdf/PdfPlugin.h | 41 -- reader/src/formats/pdf/StringStream.cpp | 55 --- reader/src/formats/pdf/StringStream.h | 44 -- reader/src/migration/migrate.cpp | 2 + .../lookAndFeel/LookAndFeelOptionsDialog.cpp | 2 +- .../optionsDialog/reading/IndicatorTab.cpp | 2 +- .../reading/ReadingOptionsDialog.cpp | 2 +- reader/src/reader/BookTextView.h | 2 +- reader/src/reader/ContentsView.h | 2 +- reader/src/reader/FootnoteView.h | 2 +- reader/src/reader/Reader.cpp | 2 + reader/src/reader/SearchActions.cpp | 2 +- reader/src/reader/TimeUpdater.cpp | 2 +- reader/src/reader/View.cpp | 2 +- zlibrary/core/include/ZLZDecompressor.h | 2 + 228 files changed, 106 insertions(+), 2198 deletions(-) rename reader/LICENSE => LICENSE (100%) create mode 100644 reader/CMakeLists.txt create mode 100644 reader/data/CMakeLists.txt rename reader/data/default/{config.desktop.xml => config.xml} (100%) rename reader/data/default/{external.desktop.xml => external.xml} (100%) rename reader/data/default/{fullscreen_toolbar.desktop.xml => fullscreen_toolbar.xml} (100%) rename reader/data/default/{keymap.desktop.xml => keymap.xml} (100%) delete mode 100644 reader/data/default/menubar.xml rename reader/data/default/{styles.desktop.xml => styles.xml} (100%) delete mode 100644 reader/data/default/toolbar.full.xml delete mode 100644 reader/data/default/toolbar.short.xml rename reader/data/default/{toolbar.desktop.xml => toolbar.xml} (100%) delete mode 100644 reader/data/icons/application/16x16.png delete mode 100644 reader/data/icons/application/26x26.png delete mode 100644 reader/data/icons/application/32x24.png delete mode 100644 reader/data/icons/application/32x32.png delete mode 100644 reader/data/icons/application/48x48.png delete mode 100644 reader/data/icons/application/64x43.png delete mode 100644 reader/data/icons/application/Reader.icns delete mode 120000 reader/data/icons/application/desktop.png rename reader/data/icons/application/{64x64.png => tde-ebook-reader.png} (100%) delete mode 100644 reader/data/icons/booktree/22x22-transparent-png/tree-authorinfo.png delete mode 100644 reader/data/icons/booktree/22x22-transparent-png/tree-bookinfo.png delete mode 100644 reader/data/icons/booktree/22x22-transparent-png/tree-download-demo.png delete mode 100644 reader/data/icons/booktree/22x22-transparent-png/tree-download-epub.png delete mode 100644 reader/data/icons/booktree/22x22-transparent-png/tree-download-fb2.png delete mode 100644 reader/data/icons/booktree/22x22-transparent-png/tree-download-mobi.png delete mode 100644 reader/data/icons/booktree/22x22-transparent-png/tree-local-demo.png delete mode 100644 reader/data/icons/booktree/22x22-transparent-png/tree-local-epub.png delete mode 100644 reader/data/icons/booktree/22x22-transparent-png/tree-local-fb2.png delete mode 100644 reader/data/icons/booktree/22x22-transparent-png/tree-local-mobi.png delete mode 100644 reader/data/icons/booktree/22x22-transparent-png/tree-open-in-browser.png delete mode 100644 reader/data/icons/booktree/22x22-transparent-png/tree-order-series.png delete mode 100644 reader/data/icons/booktree/22x22-transparent-png/tree-purchase.png delete mode 100644 reader/data/icons/booktree/22x22-transparent-png/tree-removebook.png delete mode 100644 reader/data/icons/booktree/22x22-transparent-png/tree-removetag.png delete mode 100644 reader/data/icons/booktree/22x22-transparent-png/tree-strut.png delete mode 100644 reader/data/icons/booktree/22x22-transparent-png/tree-taginfo.png delete mode 100644 reader/data/icons/booktree/28x28-transparent-png/tree-authorinfo.png delete mode 100644 reader/data/icons/booktree/28x28-transparent-png/tree-bookinfo.png delete mode 100644 reader/data/icons/booktree/28x28-transparent-png/tree-download-epub.png delete mode 100644 reader/data/icons/booktree/28x28-transparent-png/tree-download-fb2.png delete mode 100644 reader/data/icons/booktree/28x28-transparent-png/tree-download-mobi.png delete mode 100644 reader/data/icons/booktree/28x28-transparent-png/tree-local-epub.png delete mode 100644 reader/data/icons/booktree/28x28-transparent-png/tree-local-fb2.png delete mode 100644 reader/data/icons/booktree/28x28-transparent-png/tree-local-mobi.png delete mode 100644 reader/data/icons/booktree/28x28-transparent-png/tree-open-in-browser.png delete mode 100644 reader/data/icons/booktree/28x28-transparent-png/tree-orderseries.png delete mode 100644 reader/data/icons/booktree/28x28-transparent-png/tree-removebook.png delete mode 100644 reader/data/icons/booktree/28x28-transparent-png/tree-removetag.png delete mode 100644 reader/data/icons/booktree/28x28-transparent-png/tree-strut.png delete mode 100644 reader/data/icons/booktree/28x28-transparent-png/tree-taginfo.png rename reader/data/icons/booktree/{new => }/booktree-author.png (100%) rename reader/data/icons/booktree/{new => }/booktree-book.png (100%) rename reader/data/icons/booktree/{new => }/booktree-catalog.png (100%) rename reader/data/icons/booktree/{new => }/booktree-tag.png (100%) delete mode 120000 reader/data/icons/booktree/desktop rename reader/data/icons/booktree/{new => }/searchresult.png (100%) delete mode 100644 reader/data/icons/filetree/12x12-png/fb2.png delete mode 100644 reader/data/icons/filetree/12x12-png/folder.png delete mode 100644 reader/data/icons/filetree/12x12-png/html.png delete mode 100644 reader/data/icons/filetree/12x12-png/mobipocket.png delete mode 100644 reader/data/icons/filetree/12x12-png/oeb.png delete mode 100644 reader/data/icons/filetree/12x12-png/openreader.png delete mode 100644 reader/data/icons/filetree/12x12-png/palm.png delete mode 100644 reader/data/icons/filetree/12x12-png/plucker.png delete mode 100644 reader/data/icons/filetree/12x12-png/rtf.png delete mode 100644 reader/data/icons/filetree/12x12-png/tcr.png delete mode 100644 reader/data/icons/filetree/12x12-png/unknown.png delete mode 100644 reader/data/icons/filetree/12x12-png/upfolder.png delete mode 100644 reader/data/icons/filetree/12x12-png/weasel.png delete mode 100644 reader/data/icons/filetree/12x12-png/zipfolder.png delete mode 100644 reader/data/icons/filetree/22x22-transparent-ico/fb2.ico delete mode 100644 reader/data/icons/filetree/22x22-transparent-ico/folder.ico delete mode 100644 reader/data/icons/filetree/22x22-transparent-ico/html.ico delete mode 100644 reader/data/icons/filetree/22x22-transparent-ico/mobipocket.ico delete mode 100644 reader/data/icons/filetree/22x22-transparent-ico/oeb.ico delete mode 100644 reader/data/icons/filetree/22x22-transparent-ico/openreader.ico delete mode 100644 reader/data/icons/filetree/22x22-transparent-ico/palm.ico delete mode 100644 reader/data/icons/filetree/22x22-transparent-ico/plucker.ico delete mode 100644 reader/data/icons/filetree/22x22-transparent-ico/rtf.ico delete mode 100644 reader/data/icons/filetree/22x22-transparent-ico/tcr.ico delete mode 100644 reader/data/icons/filetree/22x22-transparent-ico/unknown.ico delete mode 100644 reader/data/icons/filetree/22x22-transparent-ico/upfolder.ico delete mode 100644 reader/data/icons/filetree/22x22-transparent-ico/weasel.ico delete mode 100644 reader/data/icons/filetree/22x22-transparent-ico/zipfolder.ico delete mode 100644 reader/data/icons/filetree/22x22-transparent-png/fb2.png delete mode 100644 reader/data/icons/filetree/22x22-transparent-png/folder.png delete mode 100644 reader/data/icons/filetree/22x22-transparent-png/html.png delete mode 100644 reader/data/icons/filetree/22x22-transparent-png/mobipocket.png delete mode 100644 reader/data/icons/filetree/22x22-transparent-png/oeb.png delete mode 100644 reader/data/icons/filetree/22x22-transparent-png/openreader.png delete mode 100644 reader/data/icons/filetree/22x22-transparent-png/palm.png delete mode 100644 reader/data/icons/filetree/22x22-transparent-png/plucker.png delete mode 100644 reader/data/icons/filetree/22x22-transparent-png/rtf.png delete mode 100644 reader/data/icons/filetree/22x22-transparent-png/tcr.png delete mode 100644 reader/data/icons/filetree/22x22-transparent-png/unknown.png delete mode 100644 reader/data/icons/filetree/22x22-transparent-png/upfolder.png delete mode 100644 reader/data/icons/filetree/22x22-transparent-png/weasel.png delete mode 100644 reader/data/icons/filetree/22x22-transparent-png/zipfolder.png delete mode 120000 reader/data/icons/filetree/desktop rename reader/data/icons/filetree/{32x32-transparent-png => }/fb2.png (100%) rename reader/data/icons/filetree/{32x32-transparent-png => }/folder.png (100%) rename reader/data/icons/filetree/{32x32-transparent-png => }/html.png (100%) rename reader/data/icons/filetree/{32x32-transparent-png => }/mobipocket.png (100%) rename reader/data/icons/filetree/{32x32-transparent-png => }/oeb.png (100%) rename reader/data/icons/filetree/{32x32-transparent-png => }/openreader.png (100%) rename reader/data/icons/filetree/{32x32-transparent-png => }/palm.png (100%) rename reader/data/icons/filetree/{32x32-transparent-png => }/plucker.png (100%) rename reader/data/icons/filetree/{32x32-transparent-png => }/rtf.png (100%) rename reader/data/icons/filetree/{32x32-transparent-png => }/tcr.png (100%) rename reader/data/icons/filetree/{32x32-transparent-png => }/unknown.png (100%) rename reader/data/icons/filetree/{32x32-transparent-png => }/upfolder.png (100%) rename reader/data/icons/filetree/{32x32-transparent-png => }/weasel.png (100%) rename reader/data/icons/filetree/{32x32-transparent-png => }/zipfolder.png (100%) delete mode 100644 reader/data/icons/toolbar/14x15-png/addBook.png delete mode 100644 reader/data/icons/toolbar/14x15-png/bookInfo.png delete mode 100644 reader/data/icons/toolbar/14x15-png/findNext.png delete mode 100644 reader/data/icons/toolbar/14x15-png/findPrevious.png delete mode 100644 reader/data/icons/toolbar/14x15-png/gotoHome.png delete mode 100644 reader/data/icons/toolbar/14x15-png/preferences.png delete mode 100644 reader/data/icons/toolbar/14x15-png/redo.png delete mode 100644 reader/data/icons/toolbar/14x15-png/rotate.png delete mode 100644 reader/data/icons/toolbar/14x15-png/search.png delete mode 100644 reader/data/icons/toolbar/14x15-png/showLibrary.png delete mode 100644 reader/data/icons/toolbar/14x15-png/showReading.png delete mode 100644 reader/data/icons/toolbar/14x15-png/showRecent.png delete mode 100644 reader/data/icons/toolbar/14x15-png/toc.png delete mode 100644 reader/data/icons/toolbar/14x15-png/undo.png delete mode 100644 reader/data/icons/toolbar/22x18-png/addBook.png delete mode 100644 reader/data/icons/toolbar/22x18-png/bookInfo.png delete mode 100644 reader/data/icons/toolbar/22x18-png/findNext.png delete mode 100644 reader/data/icons/toolbar/22x18-png/findPrevious.png delete mode 100644 reader/data/icons/toolbar/22x18-png/gotoHome.png delete mode 100644 reader/data/icons/toolbar/22x18-png/preferences.png delete mode 100644 reader/data/icons/toolbar/22x18-png/redo.png delete mode 100644 reader/data/icons/toolbar/22x18-png/rotate.png delete mode 100644 reader/data/icons/toolbar/22x18-png/search.png delete mode 100644 reader/data/icons/toolbar/22x18-png/showLibrary.png delete mode 100644 reader/data/icons/toolbar/22x18-png/showReading.png delete mode 100644 reader/data/icons/toolbar/22x18-png/showRecent.png delete mode 100644 reader/data/icons/toolbar/22x18-png/toc.png delete mode 100644 reader/data/icons/toolbar/22x18-png/undo.png delete mode 100644 reader/data/icons/toolbar/32x32-transparent-ico/addBook.ico delete mode 100644 reader/data/icons/toolbar/32x32-transparent-ico/advancedSearchOnNetwork.ico delete mode 100644 reader/data/icons/toolbar/32x32-transparent-ico/bookInfo.ico delete mode 100644 reader/data/icons/toolbar/32x32-transparent-ico/byAuthor.ico delete mode 100644 reader/data/icons/toolbar/32x32-transparent-ico/byTag.ico delete mode 100644 reader/data/icons/toolbar/32x32-transparent-ico/findNext.ico delete mode 100644 reader/data/icons/toolbar/32x32-transparent-ico/findPrevious.ico delete mode 100644 reader/data/icons/toolbar/32x32-transparent-ico/gotoHome.ico delete mode 100644 reader/data/icons/toolbar/32x32-transparent-ico/preferences.ico delete mode 100644 reader/data/icons/toolbar/32x32-transparent-ico/redo.ico delete mode 100644 reader/data/icons/toolbar/32x32-transparent-ico/rotate.ico delete mode 100644 reader/data/icons/toolbar/32x32-transparent-ico/search.ico delete mode 100644 reader/data/icons/toolbar/32x32-transparent-ico/showHelp.ico delete mode 100644 reader/data/icons/toolbar/32x32-transparent-ico/showLibrary.ico delete mode 100644 reader/data/icons/toolbar/32x32-transparent-ico/showNetLibrary.ico delete mode 100644 reader/data/icons/toolbar/32x32-transparent-ico/showReading.ico delete mode 100644 reader/data/icons/toolbar/32x32-transparent-ico/showRecent.ico delete mode 100644 reader/data/icons/toolbar/32x32-transparent-ico/toc.ico delete mode 100644 reader/data/icons/toolbar/32x32-transparent-ico/undo.ico rename reader/data/icons/toolbar/{32x32-transparent-png => }/addBook.png (100%) rename reader/data/icons/toolbar/{32x32-transparent-png => }/advancedSearchOnNetwork.png (100%) rename reader/data/icons/toolbar/{32x32-transparent-png => }/bookInfo.png (100%) rename reader/data/icons/toolbar/{32x32-transparent-png => }/byAuthor.png (100%) rename reader/data/icons/toolbar/{32x32-transparent-png => }/byTag.png (100%) delete mode 120000 reader/data/icons/toolbar/desktop rename reader/data/icons/toolbar/{32x32-transparent-png => }/findNext.png (100%) rename reader/data/icons/toolbar/{32x32-transparent-png => }/findPrevious.png (100%) rename reader/data/icons/toolbar/{32x32-transparent-png => }/gotoHome.png (100%) rename reader/data/icons/toolbar/{32x32-transparent-png => }/preferences.png (100%) rename reader/data/icons/toolbar/{32x32-transparent-png => }/redo.png (100%) rename reader/data/icons/toolbar/{32x32-transparent-png => }/rotate.png (100%) rename reader/data/icons/toolbar/{32x32-transparent-png => }/search.png (100%) rename reader/data/icons/toolbar/{32x32-transparent-png => }/showHelp.png (100%) rename reader/data/icons/toolbar/{32x32-transparent-png => }/showLibrary.png (100%) rename reader/data/icons/toolbar/{32x32-transparent-png => }/showNetLibrary.png (100%) rename reader/data/icons/toolbar/{32x32-transparent-png => }/showNetworkLibrary.png (100%) rename reader/data/icons/toolbar/{32x32-transparent-png => }/showReading.png (100%) rename reader/data/icons/toolbar/{32x32-transparent-png => }/showRecent.png (100%) rename reader/data/icons/toolbar/{32x32-transparent-png => }/toc.png (100%) rename reader/data/icons/toolbar/{32x32-transparent-png => }/undo.png (100%) create mode 100644 reader/desktop/CMakeLists.txt rename reader/desktop/{desktop => tde-ebook-reader.desktop} (100%) create mode 100644 reader/src/CMakeLists.txt delete mode 100644 reader/src/formats/docbook/DocBookBookReader.cpp delete mode 100644 reader/src/formats/docbook/DocBookBookReader.h delete mode 100644 reader/src/formats/docbook/DocBookDescriptionReader.cpp delete mode 100644 reader/src/formats/docbook/DocBookDescriptionReader.h delete mode 100644 reader/src/formats/docbook/DocBookPlugin.cpp delete mode 100644 reader/src/formats/docbook/DocBookPlugin.h delete mode 100644 reader/src/formats/docbook/DocBookReader.cpp delete mode 100644 reader/src/formats/docbook/DocBookReader.h delete mode 100644 reader/src/formats/dummy/DummyBookReader.cpp delete mode 100644 reader/src/formats/dummy/DummyBookReader.h delete mode 100644 reader/src/formats/dummy/DummyMetaInfoReader.cpp delete mode 100644 reader/src/formats/dummy/DummyMetaInfoReader.h delete mode 100644 reader/src/formats/dummy/DummyPlugin.cpp delete mode 100644 reader/src/formats/dummy/DummyPlugin.h delete mode 100755 reader/src/formats/dummy/createPlugin.sh delete mode 100644 reader/src/formats/pdf/PdfBookReader.cpp delete mode 100644 reader/src/formats/pdf/PdfBookReader.h delete mode 100644 reader/src/formats/pdf/PdfDescriptionReader.cpp delete mode 100644 reader/src/formats/pdf/PdfDescriptionReader.h delete mode 100644 reader/src/formats/pdf/PdfObject.cpp delete mode 100644 reader/src/formats/pdf/PdfObject.h delete mode 100644 reader/src/formats/pdf/PdfPlugin.cpp delete mode 100644 reader/src/formats/pdf/PdfPlugin.h delete mode 100644 reader/src/formats/pdf/StringStream.cpp delete mode 100644 reader/src/formats/pdf/StringStream.h diff --git a/CMakeLists.txt b/CMakeLists.txt index ce91642..5568df4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,6 +12,7 @@ include( TDEVersion ) cmake_minimum_required( VERSION ${TDE_CMAKE_MINIMUM_VERSION} ) tde_set_project_version( ) +set( PACKAGE_VERSION 0.99.4 ) #### general package setup @@ -69,7 +70,7 @@ set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" ##### directories add_subdirectory( zlibrary ) -#add_subdirectory( tde-ebook-reader ) +add_subdirectory( reader ) ##### write configure files diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index a69a3c7..478f610 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -56,6 +56,13 @@ if( NOT FRIBIDI_FOUND ) endif( ) +##### check for sqlite3 +pkg_search_module( SQLITE sqlite3 ) +if( NOT SQLITE_FOUND ) + tde_message_fatal( "sqlite3 is required, but not found on your system" ) +endif( ) + + ##### check for unibreak pkg_search_module( UNIBREAK libunibreak ) if( NOT UNIBREAK_FOUND ) diff --git a/reader/LICENSE b/LICENSE similarity index 100% rename from reader/LICENSE rename to LICENSE diff --git a/config.h.cmake b/config.h.cmake index 5edc539..d0eb046 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -1,4 +1,4 @@ -#define VERSION "@VERSION@" +#define VERSION "@PACKAGE_VERSION@" // Defined if you have fvisibility and fvisibility-inlines-hidden support. #cmakedefine __KDE_HAVE_GCC_VISIBILITY 1 diff --git a/debian/control b/debian/control index 97e81ed..3ffd947 100644 --- a/debian/control +++ b/debian/control @@ -4,8 +4,8 @@ Priority: optional Maintainer: TDE Debian Team XSBC-Original-Maintainer: Debian QA Group Build-Depends: cdbs, debhelper (>= 10~), quilt, tde-cmake, ninja-build, libtqtinterface-dev, - libbz2-dev, libcurl4-gnutls-dev, libexpat1-dev, libfribidi-dev, - libjpeg-dev, libsqlite3-dev, libunibreak-dev, libz-dev, pkgconf + libbz2-dev, libexpat1-dev, libfribidi-dev, + libsqlite3-dev, libunibreak-dev, libz-dev, pkgconf Standards-Version: 4.7.0 Package: tde-ebook-reader diff --git a/debian/tde-ebook-reader.install b/debian/tde-ebook-reader.install index 0a08ffe..59065ad 100644 --- a/debian/tde-ebook-reader.install +++ b/debian/tde-ebook-reader.install @@ -1 +1,2 @@ -#usr/lib +/opt/trinity/bin +/opt/trinity/share diff --git a/reader/CMakeLists.txt b/reader/CMakeLists.txt new file mode 100644 index 0000000..0fd2489 --- /dev/null +++ b/reader/CMakeLists.txt @@ -0,0 +1,3 @@ +add_subdirectory( data ) +add_subdirectory( desktop ) +add_subdirectory( src ) diff --git a/reader/data/CMakeLists.txt b/reader/data/CMakeLists.txt new file mode 100644 index 0000000..bbd3519 --- /dev/null +++ b/reader/data/CMakeLists.txt @@ -0,0 +1,49 @@ +##### default files + +file( GLOB _default_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/default/*.xml ) +install( + FILES ${_default_files} + DESTINATION ${DATA_INSTALL_DIR}/tde-ebook-reader/default +) + + +##### format files + +file( GLOB _formats_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/formats/fb2/* ) +install( + FILES ${_formats_files} + DESTINATION ${DATA_INSTALL_DIR}/tde-ebook-reader/formats/fb2 +) + +file( GLOB _formats_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/formats/html/* ) +install( + FILES ${_formats_files} + DESTINATION ${DATA_INSTALL_DIR}/tde-ebook-reader/formats/html +) + + +##### help files + +file( GLOB _help_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/help/*.fb2 ) +install( + FILES ${_help_files} + DESTINATION ${DATA_INSTALL_DIR}/tde-ebook-reader/help +) + + +##### icons files + +file( GLOB_RECURSE _icon_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/icons/*) +install( + FILES ${_icon_files} + DESTINATION ${DATA_INSTALL_DIR}/tde-ebook-reader/icons +) + + +##### resource files + +file( GLOB _xml_resource_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/resources/*.xml ) +install( + FILES ${_xml_resource_files} + DESTINATION ${DATA_INSTALL_DIR}/tde-ebook-reader/resources +) diff --git a/reader/data/default/config.desktop.xml b/reader/data/default/config.xml similarity index 100% rename from reader/data/default/config.desktop.xml rename to reader/data/default/config.xml diff --git a/reader/data/default/external.desktop.xml b/reader/data/default/external.xml similarity index 100% rename from reader/data/default/external.desktop.xml rename to reader/data/default/external.xml diff --git a/reader/data/default/fullscreen_toolbar.desktop.xml b/reader/data/default/fullscreen_toolbar.xml similarity index 100% rename from reader/data/default/fullscreen_toolbar.desktop.xml rename to reader/data/default/fullscreen_toolbar.xml diff --git a/reader/data/default/keymap.desktop.xml b/reader/data/default/keymap.xml similarity index 100% rename from reader/data/default/keymap.desktop.xml rename to reader/data/default/keymap.xml diff --git a/reader/data/default/menubar.xml b/reader/data/default/menubar.xml deleted file mode 100644 index bbe89f5..0000000 --- a/reader/data/default/menubar.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/reader/data/default/styles.desktop.xml b/reader/data/default/styles.xml similarity index 100% rename from reader/data/default/styles.desktop.xml rename to reader/data/default/styles.xml diff --git a/reader/data/default/toolbar.full.xml b/reader/data/default/toolbar.full.xml deleted file mode 100644 index 99cb8a0..0000000 --- a/reader/data/default/toolbar.full.xml +++ /dev/null @@ -1,25 +0,0 @@ - - -