mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 10:15:38 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user