Changeset View
Changeset View
Standalone View
Standalone View
src/creator/qml/Main.qml
Show All 19 Lines | |||||
20 | */ | 20 | */ | ||
21 | 21 | | |||
22 | import QtQuick 2.2 | 22 | import QtQuick 2.2 | ||
23 | import QtQuick.Window 2.2 | 23 | import QtQuick.Window 2.2 | ||
24 | import QtQuick.Dialogs 1.2 | 24 | import QtQuick.Dialogs 1.2 | ||
25 | 25 | | |||
26 | import org.kde.kirigami 2.1 as Kirigami | 26 | import org.kde.kirigami 2.1 as Kirigami | ||
27 | import org.kde.peruse 0.1 as Peruse | 27 | import org.kde.peruse 0.1 as Peruse | ||
28 | 28 | /** | |||
29 | * @brief Main window of the application. | ||||
30 | * | ||||
31 | * This splits the window in two sections: | ||||
32 | * - A section where you can modify a comic. | ||||
33 | * - A "global drawer" which can be used to select actions. | ||||
34 | * | ||||
35 | * WelcomePage is the opening page and holds options to create a new comic. | ||||
36 | * CreateNewBook gives options for creating a new book from scratch. | ||||
37 | * Book is the actual book being modified. | ||||
38 | * Settings is the page with toggles and knobs for Peruse Creator config. | ||||
39 | */ | ||||
29 | Kirigami.ApplicationWindow { | 40 | Kirigami.ApplicationWindow { | ||
30 | id: mainWindow; | 41 | id: mainWindow; | ||
31 | property int animationDuration: 200; | 42 | property int animationDuration: 200; | ||
32 | width: Screen.desktopAvailableWidth * 0.6; | 43 | width: Screen.desktopAvailableWidth * 0.6; | ||
33 | height: Screen.desktopAvailableHeight * 0.7; | 44 | height: Screen.desktopAvailableHeight * 0.7; | ||
34 | pageStack.initialPage: welcomePage; | 45 | pageStack.initialPage: welcomePage; | ||
35 | 46 | | |||
36 | Peruse.Config { | 47 | Peruse.Config { | ||
▲ Show 20 Lines • Show All 108 Lines • Show Last 20 Lines |