Added an (experimental) tree view to ATC stations

This commit is contained in:
Klaus Basan
2015-01-22 11:11:57 +01:00
parent c1bc44b2a9
commit 054db94997
8 changed files with 118 additions and 34 deletions

View File

@@ -15,6 +15,7 @@
#include "blackmisc/avatcstationlist.h"
#include "blackgui/models/listmodelbase.h"
#include <QAbstractItemModel>
#include <QStandardItemModel>
#include <QDBusConnection>
namespace BlackGui
@@ -46,12 +47,15 @@ namespace BlackGui
//! Station mode
AtcStationMode getStationMode() const { return this->m_stationMode; }
//! A group by type (TWR, APP, ...) model
QStandardItemModel *toAtcGroupModel() const;
public slots:
//! Used to quickly update single station (better response for the user)
void changedAtcStationConnectionStatus(const BlackMisc::Aviation::CAtcStation &station, bool added);
private:
AtcStationMode m_stationMode;
AtcStationMode m_stationMode = NotSet;
};
}
}