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:
Klaus Basan
2016-03-22 09:07:44 +01:00
parent 5dc976caca
commit e993ecdeaa
15 changed files with 565 additions and 410 deletions

View File

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