|
@ -15,7 +15,7 @@ Item { |
|
|
FontLoader |
|
|
FontLoader |
|
|
{ |
|
|
{ |
|
|
id: srcSansProLight |
|
|
id: srcSansProLight |
|
|
source: "qrc:/qml/fonts/SourceSansPro-Regular.ttf" |
|
|
source: "qrc:/qml/fonts/SourceSansPro-Light.ttf" |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Rectangle |
|
|
Rectangle |
|
@ -54,6 +54,7 @@ Item { |
|
|
font.family: srcSansProLight.name |
|
|
font.family: srcSansProLight.name |
|
|
font.pointSize: Style.title.pointSize |
|
|
font.pointSize: Style.title.pointSize |
|
|
anchors.verticalCenter: parent.verticalCenter |
|
|
anchors.verticalCenter: parent.verticalCenter |
|
|
|
|
|
font.weight: Font.Light |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -79,7 +80,7 @@ Item { |
|
|
spacing: 0 |
|
|
spacing: 0 |
|
|
|
|
|
|
|
|
Repeater { |
|
|
Repeater { |
|
|
model: ["Contracts", "Javascript", "HTML", "Styles", "Images", "Misc"] |
|
|
model: [qsTr("Contracts"), qsTr("Javascript"), qsTr("Web Pages"), qsTr("Styles"), qsTr("Images"), qsTr("Misc")]; |
|
|
signal selected(string doc, string groupName) |
|
|
signal selected(string doc, string groupName) |
|
|
id: sectionRepeater |
|
|
id: sectionRepeater |
|
|
FilesSection |
|
|
FilesSection |
|
@ -127,6 +128,11 @@ Item { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
onDocumentOpened: { |
|
|
|
|
|
if (document.groupName === modelData) |
|
|
|
|
|
sectionRepeater.selected(document.documentId, modelData); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
onNewProject: { |
|
|
onNewProject: { |
|
|
sectionModel.clear(); |
|
|
sectionModel.clear(); |
|
|
} |
|
|
} |
|
@ -145,7 +151,12 @@ Item { |
|
|
{ |
|
|
{ |
|
|
var newDoc = projectModel.getDocument(documentId); |
|
|
var newDoc = projectModel.getDocument(documentId); |
|
|
if (newDoc.groupName === modelData) |
|
|
if (newDoc.groupName === modelData) |
|
|
|
|
|
{ |
|
|
sectionModel.append(newDoc); |
|
|
sectionModel.append(newDoc); |
|
|
|
|
|
projectModel.openDocument(newDoc.documentId); |
|
|
|
|
|
sectionRepeater.selected(newDoc.documentId, modelData); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|