mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-02 23:35:40 +08:00
Ref T509, Qwt adjustments in model statistics
This commit is contained in:
committed by
Mat Sutcliffe
parent
6ce9f5724a
commit
0a1a23512e
@@ -75,9 +75,11 @@ namespace BlackGui
|
|||||||
series << c;
|
series << c;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QwtText title("distributor");
|
||||||
|
title.setRenderFlags(Qt::AlignLeft);
|
||||||
ui->qwt_Chart->setSymbols("distributors", "white");
|
ui->qwt_Chart->setSymbols("distributors", "white");
|
||||||
ui->qwt_Chart->setTitle("distributors");
|
ui->qwt_Chart->setTitle(title);
|
||||||
ui->qwt_Chart->setSamples1Bar(series, distributorsForAxis);
|
ui->qwt_Chart->setSamples1Bar(series, distributorsForAxis, this->getOrientation());
|
||||||
}
|
}
|
||||||
|
|
||||||
void CAircraftModelStatisticsDialog::chartAircraftIcao()
|
void CAircraftModelStatisticsDialog::chartAircraftIcao()
|
||||||
@@ -96,9 +98,16 @@ namespace BlackGui
|
|||||||
series << c;
|
series << c;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QwtText title("aircraft ICAO");
|
||||||
|
title.setRenderFlags(Qt::AlignLeft);
|
||||||
ui->qwt_Chart->setSymbols("aircraft", "white");
|
ui->qwt_Chart->setSymbols("aircraft", "white");
|
||||||
ui->qwt_Chart->setTitle("aircraft ICAO");
|
ui->qwt_Chart->setTitle(title);
|
||||||
ui->qwt_Chart->setSamples1Bar(series, icaosForAxis);
|
ui->qwt_Chart->setSamples1Bar(series, icaosForAxis, this->getOrientation());
|
||||||
|
}
|
||||||
|
|
||||||
|
Qt::Orientation CAircraftModelStatisticsDialog::getOrientation() const
|
||||||
|
{
|
||||||
|
return ui->rb_Vertical->isChecked() ? Qt::Vertical : Qt::Horizontal;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // ns
|
} // ns
|
||||||
|
|||||||
@@ -54,6 +54,9 @@ namespace BlackGui
|
|||||||
//! Chart for aircraft ICAO
|
//! Chart for aircraft ICAO
|
||||||
void chartAircraftIcao();
|
void chartAircraftIcao();
|
||||||
|
|
||||||
|
//! Orientation
|
||||||
|
Qt::Orientation getOrientation() const;
|
||||||
|
|
||||||
QScopedPointer<Ui::CAircraftModelStatisticsDialog> ui;
|
QScopedPointer<Ui::CAircraftModelStatisticsDialog> ui;
|
||||||
BlackMisc::Simulation::CAircraftModelList m_models;
|
BlackMisc::Simulation::CAircraftModelList m_models;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>333</width>
|
<width>404</width>
|
||||||
<height>298</height>
|
<height>268</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
@@ -76,6 +76,9 @@
|
|||||||
<property name="checked">
|
<property name="checked">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
|
<attribute name="buttonGroup">
|
||||||
|
<string notr="true">bg_Chart</string>
|
||||||
|
</attribute>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@@ -83,6 +86,9 @@
|
|||||||
<property name="text">
|
<property name="text">
|
||||||
<string>aircraft</string>
|
<string>aircraft</string>
|
||||||
</property>
|
</property>
|
||||||
|
<attribute name="buttonGroup">
|
||||||
|
<string notr="true">bg_Chart</string>
|
||||||
|
</attribute>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@@ -98,6 +104,29 @@
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QRadioButton" name="rb_Horizontal">
|
||||||
|
<property name="text">
|
||||||
|
<string>horizontal</string>
|
||||||
|
</property>
|
||||||
|
<property name="checked">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<attribute name="buttonGroup">
|
||||||
|
<string notr="true">bg_Layout</string>
|
||||||
|
</attribute>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QRadioButton" name="rb_Vertical">
|
||||||
|
<property name="text">
|
||||||
|
<string>vertical</string>
|
||||||
|
</property>
|
||||||
|
<attribute name="buttonGroup">
|
||||||
|
<string notr="true">bg_Layout</string>
|
||||||
|
</attribute>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item alignment="Qt::AlignRight">
|
<item alignment="Qt::AlignRight">
|
||||||
<widget class="QPushButton" name="pb_ShowChart">
|
<widget class="QPushButton" name="pb_ShowChart">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@@ -118,8 +147,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>299</width>
|
<width>370</width>
|
||||||
<height>191</height>
|
<height>161</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||||
@@ -217,4 +246,8 @@
|
|||||||
</hints>
|
</hints>
|
||||||
</connection>
|
</connection>
|
||||||
</connections>
|
</connections>
|
||||||
|
<buttongroups>
|
||||||
|
<buttongroup name="bg_Layout"/>
|
||||||
|
<buttongroup name="bg_Chart"/>
|
||||||
|
</buttongroups>
|
||||||
</ui>
|
</ui>
|
||||||
|
|||||||
Reference in New Issue
Block a user