Changeset View
Changeset View
Standalone View
Standalone View
src/app/qml/WelcomePage.qml
Show All 21 Lines | |||||
22 | import QtQuick 2.2 | 22 | import QtQuick 2.2 | ||
23 | import QtQuick.Layouts 1.1 | 23 | import QtQuick.Layouts 1.1 | ||
24 | import QtQuick.Controls 2.2 as QtControls | 24 | import QtQuick.Controls 2.2 as QtControls | ||
25 | 25 | | |||
26 | import org.kde.kirigami 2.1 as Kirigami | 26 | import org.kde.kirigami 2.1 as Kirigami | ||
27 | 27 | | |||
28 | import org.kde.peruse 0.1 as Peruse | 28 | import org.kde.peruse 0.1 as Peruse | ||
29 | import "listcomponents" as ListComponents | 29 | import "listcomponents" as ListComponents | ||
30 | 30 | /** | |||
31 | * @brief The page that Peruse opens up on. | ||||
leinir: opens | |||||
32 | * | ||||
33 | * The WelcomePage shares some resemblance to the | ||||
34 | * BookShelf pages in that it allows the user to select a comic, | ||||
35 | * but where BookShelf pages are really for discovery and searching | ||||
36 | * through categories and subcategories, the WelcomePage is primarily | ||||
37 | * for selecting the recently opened and new books, which the user is most likely | ||||
38 | * to look at when they want to read. | ||||
39 | * | ||||
40 | * It uses BookTileTall to show the selectable books, SearchBox to search books | ||||
41 | * and Section to indicate a subsection. | ||||
42 | */ | ||||
31 | Kirigami.Page { | 43 | Kirigami.Page { | ||
32 | id: root; | 44 | id: root; | ||
33 | property string categoryName: "welcomePage"; | 45 | property string categoryName: "welcomePage"; | ||
34 | title: i18nc("title of the welcome page", "Welcome"); | 46 | title: i18nc("title of the welcome page", "Welcome"); | ||
35 | signal bookSelected(string filename, int currentPage); | 47 | signal bookSelected(string filename, int currentPage); | ||
36 | function updateRecent() { | 48 | function updateRecent() { | ||
37 | startWithThese.updateRecentlyRead(); | 49 | startWithThese.updateRecentlyRead(); | ||
38 | } | 50 | } | ||
▲ Show 20 Lines • Show All 476 Lines • Show Last 20 Lines |
opens