Skip to content

Commit

Permalink
initial SFV integration
Browse files Browse the repository at this point in the history
Contributes-To: #36
  • Loading branch information
Peter G. (nephros) authored and nephros committed Nov 16, 2024
1 parent 83e3135 commit 298fa5c
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 2 deletions.
6 changes: 4 additions & 2 deletions qml/pages/MainPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Apache License 2.0
Copyright (c) 2022 Peter G. (nephros)
Copyright (c) 2023 Peter G. (nephros)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License.
Expand Down Expand Up @@ -436,7 +436,9 @@ Page {
);
}
console.info("Submitting Bug Report... ");
Qt.openUrlExternally( formToUrl() );
//Qt.openUrlExternally( formToUrl() );
var finalUrl = formToUrl();
var dialog = pageStack.push(Qt.resolvedUrl("PostSelector.qml"), { "postUrl": finalUrl } )
}
}
}
Expand Down
63 changes: 63 additions & 0 deletions qml/pages/PostSelector.qml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/*
Apache License 2.0
Copyright (c) 2022 Peter G. (nephros)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

import QtQuick 2.6
import Sailfish.Silica 1.0
//import "../components"
//import "../config/settings.js" as Settings

Page { id: page
property string postUrl
property bool haveSFV: false

SilicaFlickable { id: flick
anchors.fill: parent
contentHeight: col.height
PageHeader { id: header ;
width: parent.width
title: qsTr("Select App to post with")
}
Column { id: col
width: parent.width - Theme.horizontalPageMargin
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: header.bottom
Label {
width: parent.width
font.pixelSize: Theme.fontSizeSmall
color: Theme.secondaryHighlightColor
horizontalAlignment: Text.AlignJustify
text: qsTr("There are several way to finally post your report.<br />")
+ "<ul>"
+ "<li>" + qsTr("If you choose the Browser, continue on page 38.")
+ "<li>" + qsTr("If you choose the Forum Viewer, roll a d8 and determine the outcome using the table on page 142.")
+ "</ul>"
}
ButtonLayout {
width: parent.width
preferredWidth: Theme.buttonSizeExtraLarge
Button { label: qsTr("Browser") }
Button { label: qsTr("Forum Viewer"); enabled: page.haveSFV }
}
}
VerticalScrollDecorator {}
}
}

// vim: expandtab ts=4 st=4 sw=4 filetype=javascript

0 comments on commit 298fa5c

Please sign in to comment.