mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 18:35:35 +08:00
refs #873, UI improvements
* allow to set inner message frame factor (width/height) * fixed aircrft selector to keep selection
This commit is contained in:
committed by
Mathew Sutcliffe
parent
ec23863d53
commit
3afead9f71
@@ -25,7 +25,6 @@ class QWidget;
|
||||
|
||||
namespace BlackMisc { namespace Simulation { class CSimulatedAircraft; } }
|
||||
namespace Ui { class CRemoteAircraftSelector; }
|
||||
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Components
|
||||
@@ -40,11 +39,14 @@ namespace BlackGui
|
||||
explicit CRemoteAircraftSelector(QWidget *parent = nullptr);
|
||||
|
||||
//! Destructor
|
||||
~CRemoteAircraftSelector();
|
||||
virtual ~CRemoteAircraftSelector();
|
||||
|
||||
//! Selected callsign
|
||||
BlackMisc::Aviation::CCallsign getSelectedCallsign() const;
|
||||
|
||||
//! Indicate if aircraft parts enabled aircraft
|
||||
void indicatePartsEnabled(bool indicate);
|
||||
|
||||
protected:
|
||||
//! \copydoc QWidget::showEvent
|
||||
virtual void showEvent(QShowEvent *event) override;
|
||||
@@ -59,6 +61,7 @@ namespace BlackGui
|
||||
private:
|
||||
QScopedPointer<Ui::CRemoteAircraftSelector> ui;
|
||||
BlackMisc::Simulation::CSimulatedAircraftList m_aircraft;
|
||||
bool m_showPartsEnabled = false;
|
||||
|
||||
//! Set combobox items
|
||||
void fillComboBox();
|
||||
|
||||
Reference in New Issue
Block a user