@@ -3,13 +3,15 @@ import QtQuick.Layouts
33import QtQuick.Controls
44import Qt.labs.platform
55
6+ import xplatforms.cffflashcontainer.flashheader 1.0
67import xplatforms.cffflashcontainer.flashblock 1.0
78import xplatforms.cffflashcontainer.flashsegment 1.0
89import xplatforms.cffflashcontainer.flashsegmentmodel 1.0
910
1011
1112ColumnLayout
1213{
14+ property CFFFlashHeader header;
1315 property CFFFlashDataBlock block;
1416 property CFFFlashSegmentModel segments_model: CFFFlashSegmentModel{}
1517 Component .onCompleted : {
@@ -24,7 +26,7 @@ ColumnLayout
2426 {
2527 Label{
2628 font .bold : true
27- text: " Qualifier : "
29+ text: " qualifier : "
2830 }
2931 Label{text: block .Qualifier }
3032 // Label{text: "test"}
@@ -46,7 +48,8 @@ ColumnLayout
4648 }
4749 Button
4850 {
49- // Layout.fillWidth: true
51+ id: btn_export_all
52+
5053 text: " Export all segments... "
5154 onClicked:
5255 {
@@ -80,7 +83,7 @@ ColumnLayout
8083 // height: 200
8184 model: segments_model
8285 // block.getSegmentsModel()//segments_model.addFlashSegments(block.FlashSegments)
83- delegate: FlashSegmentModel{idk: block .FlashDataInfo_Idk ; segment: FlashSegment}
86+ delegate: FlashSegmentModel{flash_name : header . FlashName ; idk: block .FlashDataInfo_Idk ; segment: FlashSegment}
8487 }
8588
8689 FolderDialog
@@ -94,17 +97,22 @@ ColumnLayout
9497
9598 onAccepted: {
9699 console .log (" You chose: " + export_dialog .folder )
97- block .exportSegments (export_dialog .folder );
98- // FlashSegment.saveToFile(FlashSegment.SegmentName+"_"+idk+".segment");
99- // loadCFF(fileDialog.currentFile);
100- // Qt.quit()
100+ ttip_id .show (" Segments saved to: " + block .exportSegments (export_dialog .folder , header .FlashName ), 2500 );
101101 }
102102 onRejected: {
103103 console .log (" Canceled" )
104104 // Qt.quit()
105105 }
106106 // Component.onCompleted: visible = true
107107 }
108+
109+ ToolTip
110+ {
111+ id: ttip_id
112+ // parent: parent//btn_export_all
113+ anchors .centerIn : parent
114+ margins: 20
115+ }
108116}
109117
110118
0 commit comments