Ref T345, fixes in ATC UI

- use toggled to detect all/in range
- update ATIS when row is selected or clicked
- changing all/in range "updates"
This commit is contained in:
Klaus Basan
2018-09-09 23:37:07 +02:00
parent 111eca61ee
commit 3c9b8f98ca
4 changed files with 47 additions and 12 deletions

View File

@@ -47,12 +47,24 @@ namespace BlackGui
Q_OBJECT
public:
//! Tab
//! \remark needs to be in sync with tab order
enum AtcTab
{
TabAtcOnline = 0,
TabAtcOnlineTree,
TabAtcBooked
};
//! Constructor
explicit CAtcStationComponent(QWidget *parent = nullptr);
//! Destructor
virtual ~CAtcStationComponent() override;
//! Set tab
void setTab(AtcTab tab);
//! Number of booked stations
int countBookedStations() const;
@@ -86,7 +98,7 @@ namespace BlackGui
void requestAtis();
//! Online ATC station selected
void onlineAtcStationSelected(QModelIndex index);
void onlineAtcStationSelected(const BlackMisc::CVariant &object);
//! Tab changed
void atcStationsTabChanged();
@@ -140,7 +152,7 @@ namespace BlackGui
QDateTime m_timestampLastReadBookedStations; //!< stations read
QDateTime m_timestampBookedStationsChanged; //!< stations marked as changed
BlackMisc::CSettingReadOnly<BlackGui::Settings::TViewUpdateSettings> m_settingsView { this, &CAtcStationComponent::settingsChanged };
BlackMisc::CSettingReadOnly<BlackGui::Settings::TAtcStationsSettings> m_settingsAtc { this, &CAtcStationComponent::settingsChanged };
BlackMisc::CSettingReadOnly<BlackGui::Settings::TAtcStationsSettings> m_settingsAtc { this, &CAtcStationComponent::settingsChanged };
};
} // namespace
} // namespace