mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
refs #618, own component for GUI own model handling
* moved to own component * ajdjusted last selections * some renaming such as getView() -> view()
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
* contained in the LICENSE file.
|
||||
*/
|
||||
|
||||
//! \file
|
||||
|
||||
#ifndef BLACKGUI_COMPONENTS_DBOWNMODELSETCOMPONENT_H
|
||||
#define BLACKGUI_COMPONENTS_DBOWNMODELSETCOMPONENT_H
|
||||
|
||||
@@ -15,7 +17,6 @@
|
||||
#include <QFrame>
|
||||
#include <QScopedPointer>
|
||||
|
||||
|
||||
namespace Ui { class CDbOwnModelSetComponent; }
|
||||
|
||||
namespace BlackGui
|
||||
@@ -42,7 +43,7 @@ namespace BlackGui
|
||||
virtual ~CDbOwnModelSetComponent();
|
||||
|
||||
//! Corresponding view
|
||||
Views::CAircraftModelView *getView() const;
|
||||
Views::CAircraftModelView *view() const;
|
||||
|
||||
//! Set the model set
|
||||
void setModelSet(const BlackMisc::Simulation::CAircraftModelList &models, const BlackMisc::Simulation::CSimulatorInfo &simulator);
|
||||
@@ -50,6 +51,9 @@ namespace BlackGui
|
||||
//! \copydoc CDbMappingComponentAware::setMappingComponent
|
||||
virtual void setMappingComponent(CDbMappingComponent *component) override;
|
||||
|
||||
//! Model set is for simulator
|
||||
const BlackMisc::Simulation::CSimulatorInfo &getModelSetSimulator() const { return m_simulator; }
|
||||
|
||||
private slots:
|
||||
//! Tab has been changed
|
||||
void ps_tabChanged(int index);
|
||||
|
||||
Reference in New Issue
Block a user