Also allow to use SHIFT + button for models, aircraft

* added setTab functions
* shift can be used to reset to first tab
This commit is contained in:
Klaus Basan
2018-08-08 01:12:31 +02:00
parent 461d146619
commit 92deb19572
11 changed files with 62 additions and 29 deletions

View File

@@ -23,8 +23,6 @@
#include <QtGlobal>
#include <QTimer>
class QWidget;
namespace BlackMisc
{
namespace Aviation { class CCallsign; }
@@ -44,11 +42,19 @@ namespace BlackGui
Q_OBJECT
public:
//! Tab
//! \remark needs to be in sync with tab order
enum AircraftTab
{
TabAircraftInRange = 0,
TabAirportsInRange
};
//! Constructor
explicit CAircraftComponent(QWidget *parent = nullptr);
//! Destructor
virtual ~CAircraftComponent();
virtual ~CAircraftComponent() override;
//! Aircraft in range
int countAircraftInView() const;
@@ -62,6 +68,9 @@ namespace BlackGui
//! Update aircraft/airport view
void update();
//! Set tab
void setTab(AircraftTab tab);
signals:
//! Request a text message
void requestTextMessageWidget(const BlackMisc::Aviation::CCallsign &callsign);