refs #873, UI improvements

* allow to set inner message frame factor (width/height)
* fixed aircrft selector to keep selection
This commit is contained in:
Klaus Basan
2017-02-03 03:19:11 +01:00
committed by Mathew Sutcliffe
parent ec23863d53
commit 3afead9f71
5 changed files with 48 additions and 18 deletions

View File

@@ -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();