Skip to content

Commit

Permalink
Merge branch 'feature/graph_views' into feature/domain_view
Browse files Browse the repository at this point in the history
  • Loading branch information
JesusPoderoso authored Sep 20, 2023
2 parents b1e29b5 + ccaa137 commit 7f83569
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 9 deletions.
1 change: 1 addition & 0 deletions qml.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
<file>qml/StatusPanel.qml</file>
<file>qml/StatusView.qml</file>
<file>qml/SummaryView.qml</file>
<file>qml/TabLayout.qml</file>
<file>qtquickcontrols2.conf</file>
</qresource>
<qresource prefix="/resources/images">
Expand Down
8 changes: 8 additions & 0 deletions qml/ChartsLayout.qml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ Rectangle {

Rectangle {
anchors.fill: parent
anchors.topMargin: 1
anchors.rightMargin: 2
anchors.leftMargin: 2
radius: width / 2
Expand All @@ -134,6 +135,13 @@ Rectangle {
color: gridViewScrollBar.pressed ? Theme.lightGrey : Theme.grey
}
}

Rectangle {
anchors.top: parent.top
height: 1
width: parent.width
color: gridViewScrollBar.pressed ? Theme.lightGrey : Theme.grey
}
}

onCountChanged: {
Expand Down
16 changes: 8 additions & 8 deletions qml/Panels.qml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ RowLayout {
}
}
onChangeChartboxLayout: {
chartsLayout.boxesPerRow = chartsPerRow
chartsLayout.exitFullScreen()
tabs.chartsLayout_boxesPerRow(chartsPerRow)
tabs.chartsLayout_exitFullScreen()
}

IconsVBar {
Expand Down Expand Up @@ -92,8 +92,8 @@ RowLayout {
onExplorerEntityInfoChanged: panels.explorerEntityInfoChanged(status)
}

ChartsLayout {
id: chartsLayout
TabLayout {
id: tabs
SplitView.fillWidth: true
clip: true

Expand All @@ -115,19 +115,19 @@ RowLayout {
}

function createHistoricChart(dataKind){
chartsLayout.createHistoricChart(dataKind)
tabs.chartsLayout_createHistoricChart(dataKind)
}

function createDynamicChart(dataKind, timeWindowSeconds, updatePeriod, maxPoints){
chartsLayout.createDynamicChart(dataKind, timeWindowSeconds, updatePeriod, maxPoints)
tabs.chartsLayout_createDynamicChart(dataKind, timeWindowSeconds, updatePeriod, maxPoints)
}

function createScheduleClear(entities, data, updateData, updateClear){
chartsLayout.createScheduleClear(entities, data, updateData, updateClear)
tabs.chartsLayout_createScheduleClear(entities, data, updateData, updateClear)
}

function saveAllCSV() {
chartsLayout.saveAllCSV()
tabs.chartsLayout_saveAllCSV()
}

function changeExplorerDDSEntities(status) {
Expand Down
4 changes: 3 additions & 1 deletion qml/TabLayout.qml
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ Item {
text: "Chart View"
onClicked: {
if (!disable_chart_selection_)

{
tabLayout.tab_model_[current_]["title"] = "Chart View"
if (stack.deep > 1)
Expand All @@ -248,6 +249,7 @@ Item {
}
stack.push(chartsLayout)
disable_chart_selection_ = true

refresh_layout(current_)
}
}
Expand Down Expand Up @@ -430,7 +432,7 @@ Item {
}
}
}

refresh_layout(current_)
}
// update idx model
Expand Down

0 comments on commit 7f83569

Please sign in to comment.