Ref T246, added distributor selection to 1st model set

This commit is contained in:
Klaus Basan
2018-02-10 19:36:33 +01:00
parent 9ad8b9b980
commit b0f7e9e8f6
6 changed files with 58 additions and 19 deletions

View File

@@ -21,7 +21,9 @@
#include <QScopedPointer>
class QWidget;
namespace Ui { class CDbDistributorComponent; }
namespace BlackMisc { namespace Simulation { class CSimulatorInfo; }}
namespace BlackGui
{
namespace Views { class CDistributorView; }
@@ -42,22 +44,23 @@ namespace BlackGui
explicit CDbDistributorComponent(QWidget *parent = nullptr);
//! Destructor
~CDbDistributorComponent();
virtual ~CDbDistributorComponent();
//! Get the view
BlackGui::Views::CDistributorView *view() const;
private slots:
//! Distributors have been read
void ps_distributorsRead(BlackMisc::Network::CEntityFlags::Entity entity, BlackMisc::Network::CEntityFlags::ReadState readState, int count);
//! Reload models
void ps_reload();
//! Filter by simulator
void filterBySimulator(const BlackMisc::Simulation::CSimulatorInfo &simulator);
private:
QScopedPointer<Ui::CDbDistributorComponent> ui;
};
//! Distributors have been read
void distributorsRead(BlackMisc::Network::CEntityFlags::Entity entity, BlackMisc::Network::CEntityFlags::ReadState readState, int count);
//! Reload models
void reload();
};
} // ns
} // ns