HelpView: Rename to HelperWindow.
This commit is contained in:
parent
d71f5b963c
commit
b2b3956dea
|
@ -1 +1 @@
|
||||||
Subproject commit b48cbe6719f8ba98f61a1473811cb44a0f234a56
|
Subproject commit edeee77c443075ffb80a7e981a822718b47c2c7f
|
|
@ -49,7 +49,7 @@ set(
|
||||||
qml/components/ZigBeeDataView.qml qml/components/TabBar.qml qml/components/CenterView.qml
|
qml/components/ZigBeeDataView.qml qml/components/TabBar.qml qml/components/CenterView.qml
|
||||||
qml/components/ListTable.qml qml/components/DeviceList.qml qml/components/KeysList.qml
|
qml/components/ListTable.qml qml/components/DeviceList.qml qml/components/KeysList.qml
|
||||||
qml/components/EventsHistoryList.qml qml/components/FrameChooser.qml qml/components/RibbonMarkDownViewer.qml
|
qml/components/EventsHistoryList.qml qml/components/FrameChooser.qml qml/components/RibbonMarkDownViewer.qml
|
||||||
qml/components/HelpView.qml
|
qml/HelperWindow.qml
|
||||||
)
|
)
|
||||||
|
|
||||||
set(js_files js/markdown-it.js js/markdown-it-deflist.js js/markdown-it-emoji.js
|
set(js_files js/markdown-it.js js/markdown-it-deflist.js js/markdown-it-emoji.js
|
||||||
|
|
|
@ -5,26 +5,24 @@ import RibbonUI
|
||||||
import ProtocolParser
|
import ProtocolParser
|
||||||
import "."
|
import "."
|
||||||
|
|
||||||
Item {
|
RibbonWindow {
|
||||||
id:root
|
id: root
|
||||||
implicitHeight: 550
|
height: 550
|
||||||
implicitWidth: 550
|
width: 550
|
||||||
property string title: qsTr("帮助")
|
title_bar.show_darkmode_btn: false
|
||||||
|
title_bar.show_style_switch: false
|
||||||
|
title: qsTr("帮助")
|
||||||
Component.onCompleted: Tools.writeDirtoTempDir(":/qt/qml/ProtocolParser/")
|
Component.onCompleted: Tools.writeDirtoTempDir(":/qt/qml/ProtocolParser/")
|
||||||
|
|
||||||
RibbonText{
|
|
||||||
anchors{
|
|
||||||
top:parent.top
|
|
||||||
topMargin: 10
|
|
||||||
horizontalCenter: parent.horizontalCenter
|
|
||||||
}
|
|
||||||
text: title
|
|
||||||
}
|
|
||||||
|
|
||||||
RibbonMarkDownViewer{
|
RibbonMarkDownViewer{
|
||||||
id: viewer
|
id: viewer
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: 35
|
anchors{
|
||||||
|
topMargin: 10
|
||||||
|
leftMargin: anchors.topMargin
|
||||||
|
rightMargin: anchors.topMargin
|
||||||
|
bottomMargin: viewer.can_goback || viewer.can_goforward ? 30 : 10
|
||||||
|
}
|
||||||
file_name: 'qrc:/qt/qml/ProtocolParser/README.md'
|
file_name: 'qrc:/qt/qml/ProtocolParser/README.md'
|
||||||
base_url: 'qrc:/qt/qml/ProtocolParser/'
|
base_url: 'qrc:/qt/qml/ProtocolParser/'
|
||||||
resource_dir: Tools.baseDir
|
resource_dir: Tools.baseDir
|
||||||
|
@ -32,10 +30,11 @@ Item {
|
||||||
|
|
||||||
RibbonButton{
|
RibbonButton{
|
||||||
anchors{
|
anchors{
|
||||||
bottom: root.bottom
|
topMargin: 5
|
||||||
bottomMargin: 10
|
bottom: parent.bottom
|
||||||
left: root.left
|
bottomMargin: 5
|
||||||
leftMargin: 30
|
left: parent.left
|
||||||
|
leftMargin: viewer.anchors.leftMargin
|
||||||
}
|
}
|
||||||
show_bg: false
|
show_bg: false
|
||||||
show_hovered_bg: false
|
show_hovered_bg: false
|
||||||
|
@ -48,10 +47,11 @@ Item {
|
||||||
|
|
||||||
RibbonButton{
|
RibbonButton{
|
||||||
anchors{
|
anchors{
|
||||||
bottom: root.bottom
|
topMargin: 5
|
||||||
bottomMargin: 10
|
bottom: parent.bottom
|
||||||
right: root.right
|
bottomMargin: 5
|
||||||
rightMargin: 30
|
right: parent.right
|
||||||
|
rightMargin: viewer.anchors.rightMargin
|
||||||
}
|
}
|
||||||
show_bg: false
|
show_bg: false
|
||||||
show_hovered_bg: false
|
show_hovered_bg: false
|
|
@ -12,6 +12,7 @@ RibbonWindow {
|
||||||
minimumWidth: 1200
|
minimumWidth: 1200
|
||||||
height: 800
|
height: 800
|
||||||
minimumHeight: 800
|
minimumHeight: 800
|
||||||
|
comfirmed_quit: true
|
||||||
title: qsTr("Protocol Parser") + ` V${PPAPP_Version}`
|
title: qsTr("Protocol Parser") + ` V${PPAPP_Version}`
|
||||||
|
|
||||||
title_bar.right_content:RowLayout{
|
title_bar.right_content:RowLayout{
|
||||||
|
@ -27,7 +28,7 @@ RibbonWindow {
|
||||||
text_color: title_bar.title_text_color
|
text_color: title_bar.title_text_color
|
||||||
text_color_reverse: false
|
text_color_reverse: false
|
||||||
onClicked: {
|
onClicked: {
|
||||||
Window.window.popup.show_content("qrc:/qt/qml/ProtocolParser/components/HelpView.qml")
|
root.show_window("qrc:/qt/qml/ProtocolParser/HelperWindow.qml")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue