Changeset View
Changeset View
Standalone View
Standalone View
src/creator/qml/Book.qml
Show All 18 Lines | |||||
19 | * | 19 | * | ||
20 | */ | 20 | */ | ||
21 | 21 | | |||
22 | import QtQuick 2.2 | 22 | import QtQuick 2.2 | ||
23 | import QtQuick.Controls 2.2 as QtControls | 23 | import QtQuick.Controls 2.2 as QtControls | ||
24 | 24 | | |||
25 | import org.kde.kirigami 2.1 as Kirigami | 25 | import org.kde.kirigami 2.1 as Kirigami | ||
26 | import org.kde.peruse 0.1 as Peruse | 26 | import org.kde.peruse 0.1 as Peruse | ||
27 | 27 | /** | |||
28 | * @brief the page that deals with editing the book. | ||||
29 | * | ||||
30 | * This is primarily a list of pages that can be moved around. These are inside | ||||
31 | * Kirigami ListSwipeItems. | ||||
32 | * | ||||
33 | * This also has a button to add pages, which calls up AddPageSheet. | ||||
34 | * And a button to edit the book metadata, which calls up BookMetainfoPage. | ||||
35 | */ | ||||
28 | Kirigami.ScrollablePage { | 36 | Kirigami.ScrollablePage { | ||
29 | id: root; | 37 | id: root; | ||
30 | property string categoryName: "book"; | 38 | property string categoryName: "book"; | ||
31 | title: i18nc("title of the main book editor page", "Editing %1", bookModel.title == "" ? root.filename : bookModel.title); | 39 | title: i18nc("title of the main book editor page", "Editing %1", bookModel.title == "" ? root.filename : bookModel.title); | ||
32 | property string filename; | 40 | property string filename; | ||
33 | 41 | | |||
34 | actions { | 42 | actions { | ||
35 | left: addPageSheet.opened ? null : saveBookAction; | 43 | left: addPageSheet.opened ? null : saveBookAction; | ||
▲ Show 20 Lines • Show All 138 Lines • Show Last 20 Lines |