mirror of
https://github.com/YACReader/yacreader
synced 2025-11-12 21:12:43 -05:00
Use ComicDB and ComiInfo for filling the information in ComicInfo.qml
This commit is contained in:
@ -6,6 +6,7 @@ import QtQuick.Layouts 1.2
|
|||||||
import QtGraphicalEffects 1.0
|
import QtGraphicalEffects 1.0
|
||||||
|
|
||||||
import com.yacreader.ComicInfo 1.0
|
import com.yacreader.ComicInfo 1.0
|
||||||
|
import com.yacreader.ComicDB 1.0
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
|
||||||
@ -25,8 +26,6 @@ Rectangle {
|
|||||||
|
|
||||||
property bool compact : width <= 650
|
property bool compact : width <= 650
|
||||||
|
|
||||||
property ComicInfo comicInfo
|
|
||||||
|
|
||||||
RowLayout
|
RowLayout
|
||||||
{
|
{
|
||||||
id:main_layout
|
id:main_layout
|
||||||
@ -112,7 +111,7 @@ Rectangle {
|
|||||||
font.pixelSize: mainContainer.compact ? 18 : 21;
|
font.pixelSize: mainContainer.compact ? 18 : 21;
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
|
|
||||||
text: "#1" + " - " + "A Single Dream Can Spark A Revolution"
|
text: comic.getTitleIncludingNumber()
|
||||||
}
|
}
|
||||||
|
|
||||||
RowLayout
|
RowLayout
|
||||||
@ -143,49 +142,59 @@ Rectangle {
|
|||||||
id: volume
|
id: volume
|
||||||
color: infoColor
|
color: infoColor
|
||||||
font: mainContainer.infoFont
|
font: mainContainer.infoFont
|
||||||
text: "Clive Barker's Next Testament"
|
text: comicInfo.volume
|
||||||
rightPadding: 20
|
rightPadding: 20
|
||||||
|
visible: comicInfo.volume
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: numbering
|
id: numbering
|
||||||
color: infoColor
|
color: infoColor
|
||||||
font: mainContainer.infoFont
|
font: mainContainer.infoFont
|
||||||
text: "1/12"
|
text: comicInfo.number + "/" + comicInfo.count
|
||||||
rightPadding: 20
|
rightPadding: 20
|
||||||
|
visible : comicInfo.number
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: genre
|
id: genre
|
||||||
color: infoColor
|
color: infoColor
|
||||||
font: mainContainer.infoFont
|
font: mainContainer.infoFont
|
||||||
text: "Terror"
|
text: comicInfo.genere
|
||||||
rightPadding: 20
|
rightPadding: 20
|
||||||
|
visible: comicInfo.genere
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: date
|
id: date
|
||||||
color: infoColor
|
color: infoColor
|
||||||
font: mainContainer.infoFont
|
font: mainContainer.infoFont
|
||||||
text: "21/03/2016"
|
text: comicInfo.date
|
||||||
rightPadding: 20
|
rightPadding: 20
|
||||||
|
visible: comicInfo.date
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: pages
|
id: pages
|
||||||
color: infoColor
|
color: infoColor
|
||||||
font: mainContainer.infoFont
|
font: mainContainer.infoFont
|
||||||
text: "23 pages"
|
text: comicInfo.numPages + " pages"
|
||||||
rightPadding: 20
|
rightPadding: 20
|
||||||
|
visible: comicInfo.numPages
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: showInComicVinw
|
id: showInComicVinw
|
||||||
color: "#ffcc00"
|
|
||||||
font: mainContainer.infoFont
|
font: mainContainer.infoFont
|
||||||
|
color: "#ffcc00"
|
||||||
text: "Show in Comic Vine"
|
text: "Show in Comic Vine"
|
||||||
|
visible: comicInfo.comicVineID
|
||||||
onLinkActivated: Qt.openUrlExternally(link)
|
MouseArea {
|
||||||
|
anchors.fill: parent
|
||||||
|
onClicked: {
|
||||||
|
Qt.openUrlExternally("http://www.comicvine.com/comic/4000-%1/".arg(comicInfo.comicVineID));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -200,7 +209,8 @@ Rectangle {
|
|||||||
font.pixelSize: 15
|
font.pixelSize: 15
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
horizontalAlignment: Text.AlignJustify
|
horizontalAlignment: Text.AlignJustify
|
||||||
text: "The first original comic series created and written by Clive Barker is here!Julian Edmond, captain of industry, has left behind everything to begin a walkabout -- he believes he’s on a mission from God. While in the wasteland, he comes across a figure unlike any other, who calls himself Wick...and claims to be God. Their journey will span the globe, as neither man merely wants to make a mark on the world, but a scar.Clive Barker, with internationally acclaimed artist Haemi Jang (HELLRAISER: THE ROAD BELOW), come together to create the next legendary work in the canon of one of the great writers of our era. Ask your retailer about the ultra-limited edition signed Clive Barker variant cover, painted by the master of horror himself!"
|
text: comicInfo.synopsis
|
||||||
|
visible: comicInfo.synopsis
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
@ -214,21 +224,28 @@ Rectangle {
|
|||||||
font.bold: true
|
font.bold: true
|
||||||
|
|
||||||
text: "Authors"
|
text: "Authors"
|
||||||
|
|
||||||
|
visible: comicInfo.getWriters().length +
|
||||||
|
comicInfo.getPencillers().length +
|
||||||
|
comicInfo.getInkers().length +
|
||||||
|
comicInfo.getColorists().length +
|
||||||
|
comicInfo.getLetterers().length +
|
||||||
|
comicInfo.getCoverArtists().length > 0
|
||||||
}
|
}
|
||||||
|
|
||||||
Flow {
|
Flow {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
spacing: 20
|
spacing: 20
|
||||||
Repeater {
|
Repeater {
|
||||||
id: authors
|
id: writers
|
||||||
model: 50
|
model: comicInfo.getWriters().length
|
||||||
Column{
|
Column{
|
||||||
Text {
|
Text {
|
||||||
color: "white"
|
color: "white"
|
||||||
font.family: "Arial"
|
font.family: "Arial"
|
||||||
font.pixelSize: 15
|
font.pixelSize: 15
|
||||||
|
|
||||||
text: "Author"
|
text: comicInfo.getWriters()[index]
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
@ -240,6 +257,116 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Repeater {
|
||||||
|
id: pencilllers
|
||||||
|
model: comicInfo.getPencillers().length
|
||||||
|
Column{
|
||||||
|
Text {
|
||||||
|
color: "white"
|
||||||
|
font.family: "Arial"
|
||||||
|
font.pixelSize: 15
|
||||||
|
|
||||||
|
text: comicInfo.getPencillers()[index]
|
||||||
|
}
|
||||||
|
|
||||||
|
Text {
|
||||||
|
color: "#b0b0b0"
|
||||||
|
font.family: "Arial"
|
||||||
|
font.pixelSize: 13
|
||||||
|
font.italic: true
|
||||||
|
text: "penciller"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Repeater {
|
||||||
|
id: inkers
|
||||||
|
model: comicInfo.getInkers().length
|
||||||
|
Column{
|
||||||
|
Text {
|
||||||
|
color: "white"
|
||||||
|
font.family: "Arial"
|
||||||
|
font.pixelSize: 15
|
||||||
|
|
||||||
|
text: comicInfo.getInkers()[index]
|
||||||
|
}
|
||||||
|
|
||||||
|
Text {
|
||||||
|
color: "#b0b0b0"
|
||||||
|
font.family: "Arial"
|
||||||
|
font.pixelSize: 13
|
||||||
|
font.italic: true
|
||||||
|
text: "inker"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Repeater {
|
||||||
|
id: colorist
|
||||||
|
model: comicInfo.getColorists().length
|
||||||
|
Column{
|
||||||
|
Text {
|
||||||
|
color: "white"
|
||||||
|
font.family: "Arial"
|
||||||
|
font.pixelSize: 15
|
||||||
|
|
||||||
|
text: comicInfo.getColorists()[index]
|
||||||
|
}
|
||||||
|
|
||||||
|
Text {
|
||||||
|
color: "#b0b0b0"
|
||||||
|
font.family: "Arial"
|
||||||
|
font.pixelSize: 13
|
||||||
|
font.italic: true
|
||||||
|
text: "colorist"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Repeater {
|
||||||
|
id: letterers
|
||||||
|
model: comicInfo.getLetterers().length
|
||||||
|
Column{
|
||||||
|
Text {
|
||||||
|
color: "white"
|
||||||
|
font.family: "Arial"
|
||||||
|
font.pixelSize: 15
|
||||||
|
|
||||||
|
text: comicInfo.getLetterers()[index]
|
||||||
|
}
|
||||||
|
|
||||||
|
Text {
|
||||||
|
color: "#b0b0b0"
|
||||||
|
font.family: "Arial"
|
||||||
|
font.pixelSize: 13
|
||||||
|
font.italic: true
|
||||||
|
text: "letterer"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Repeater {
|
||||||
|
id: cover_artist
|
||||||
|
model: comicInfo.getCoverArtists().length
|
||||||
|
Column{
|
||||||
|
Text {
|
||||||
|
color: "white"
|
||||||
|
font.family: "Arial"
|
||||||
|
font.pixelSize: 15
|
||||||
|
|
||||||
|
text: comicInfo.getCoverArtists()[index]
|
||||||
|
}
|
||||||
|
|
||||||
|
Text {
|
||||||
|
color: "#b0b0b0"
|
||||||
|
font.family: "Arial"
|
||||||
|
font.pixelSize: 13
|
||||||
|
font.italic: true
|
||||||
|
text: "cover artist"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
@ -251,7 +378,7 @@ Rectangle {
|
|||||||
font.pixelSize: 18
|
font.pixelSize: 18
|
||||||
font.bold: true
|
font.bold: true
|
||||||
|
|
||||||
text: "Publiser"
|
text: "Publisher"
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
@ -265,6 +392,8 @@ Rectangle {
|
|||||||
font.bold: true
|
font.bold: true
|
||||||
|
|
||||||
text: "Characters"
|
text: "Characters"
|
||||||
|
|
||||||
|
visible: comicInfo.getCharacters().length > 0
|
||||||
}
|
}
|
||||||
|
|
||||||
Flow {
|
Flow {
|
||||||
@ -272,14 +401,14 @@ Rectangle {
|
|||||||
spacing: 20
|
spacing: 20
|
||||||
Repeater {
|
Repeater {
|
||||||
id: characters
|
id: characters
|
||||||
model: 50
|
model: comicInfo.getCharacters().lenght
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
color: "white"
|
color: "white"
|
||||||
font.family: "Arial"
|
font.family: "Arial"
|
||||||
font.pixelSize: 15
|
font.pixelSize: 15
|
||||||
|
|
||||||
text: "character"
|
text: comicInfo.getCharacters()[index]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user