1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

OP-1119 More gui

This commit is contained in:
Fredrik Arvidsson 2013-11-20 21:08:26 +01:00
parent ed18e372db
commit 72d1744676
4 changed files with 26 additions and 9 deletions

View File

@ -10,6 +10,7 @@ Rectangle {
ColumnLayout {
anchors.fill: parent
anchors.margins: 10
spacing: 10
RowLayout {
Layout.fillWidth: true
@ -20,15 +21,18 @@ Rectangle {
height: 40
Text {
id: totalFlights
font.pixelSize: 12
text: "<b>" + qsTr("Flights recorded: ") + "</b>" + logStatus.Flight
}
Text {
id: totalEntries
text: "<b>" + qsTr("Logs recorded: ") + "</b>" + logStatus.UsedSlots
font.pixelSize: 12
text: "<b>" + qsTr("Logs slots used: ") + "</b>" + logStatus.UsedSlots
}
Text {
id: freeEntries
text: "<b>" + qsTr("Logs left: ") + "</b>" + logStatus.FreeSlots
font.pixelSize: 12
text: "<b>" + qsTr("Logs slots left: ") + "</b>" + logStatus.FreeSlots
}
}
}
@ -50,16 +54,24 @@ Rectangle {
}
}
Rectangle {
RowLayout {
Layout.fillWidth: true
height: 40
Button {
id: button1
anchors.bottom: parent.bottom
anchors.bottomMargin: 10
anchors.right: parent.right
anchors.rightMargin: 10
id: exportButton
text: qsTr("Export...")
activeFocusOnPress: true
onClicked: logManager.exportLogs()
}
Rectangle {
Layout.fillWidth: true
}
Button {
id: okButton
text: qsTr("OK")
activeFocusOnPress: true
onClicked: dialog.close()
}
}

View File

@ -11,7 +11,6 @@ class FlightLogDialog : public QDialog
public:
explicit FlightLogDialog(QWidget *parent, FlightLogManager *flightLogManager);
~FlightLogDialog();
};
#endif // FLIGHTLOGDIALOG_H

View File

@ -104,3 +104,8 @@ void FlightLogManager::clearAllLogs() {
void FlightLogManager::retrieveLogs(int flight) {
//Get logs from flight side
}
void FlightLogManager::exportLogs()
{
}

View File

@ -57,6 +57,7 @@ signals:
public slots:
void clearAllLogs();
void retrieveLogs(int flight = -1);
void exportLogs();
private:
UAVObjectManager *m_objectManager;