mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Ref T489, download progress for model component
* using COverlayMessagesFrame * onEntityDownloadProgress displaying progress
This commit is contained in:
committed by
Mat Sutcliffe
parent
fefeeac33b
commit
a908c03e93
@@ -12,15 +12,15 @@
|
||||
#ifndef BLACKUI_COMPONENTS_DBMODELCOMPONENT_H
|
||||
#define BLACKUI_COMPONENTS_DBMODELCOMPONENT_H
|
||||
|
||||
#include "blackgui/blackguiexport.h"
|
||||
#include "blackgui/components/dbmappingcomponentaware.h"
|
||||
#include "blackgui/components/enablefordockwidgetinfoarea.h"
|
||||
#include "blackgui/enableforviewbasedindicator.h"
|
||||
#include "blackgui/overlaymessagesframe.h"
|
||||
#include "blackgui/blackguiexport.h"
|
||||
#include "blackmisc/network/entityflags.h"
|
||||
#include "blackmisc/simulation/aircraftmodel.h"
|
||||
#include "blackmisc/simulation/aircraftmodellist.h"
|
||||
|
||||
#include <QFrame>
|
||||
#include <QObject>
|
||||
#include <QScopedPointer>
|
||||
|
||||
@@ -33,10 +33,10 @@ namespace BlackGui
|
||||
* Database models. Those are the models loaaded from the DB.
|
||||
*/
|
||||
class BLACKGUI_EXPORT CDbModelComponent :
|
||||
public QFrame,
|
||||
public COverlayMessagesFrame,
|
||||
public CDbMappingComponentAware,
|
||||
public CEnableForDockWidgetInfoArea,
|
||||
public BlackGui::CEnableForViewBasedIndicator
|
||||
public CEnableForViewBasedIndicator
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
@@ -53,14 +53,13 @@ namespace BlackGui
|
||||
//! Models loaded?
|
||||
bool hasModels() const;
|
||||
|
||||
//! Load new data
|
||||
void requestUpdatedData();
|
||||
|
||||
signals:
|
||||
//! Request to stash the selected models
|
||||
void requestStash(const BlackMisc::Simulation::CAircraftModelList &models);
|
||||
|
||||
public:
|
||||
//! Load new data
|
||||
void requestUpdatedData();
|
||||
|
||||
private:
|
||||
//! Models have been read
|
||||
void onModelsRead(BlackMisc::Network::CEntityFlags::Entity entity, BlackMisc::Network::CEntityFlags::ReadState readState, int count);
|
||||
@@ -71,6 +70,9 @@ namespace BlackGui
|
||||
//! Style sheet changed
|
||||
void onStyleSheetChanged();
|
||||
|
||||
//! Download progress for an entity
|
||||
void onEntityDownloadProgress(BlackMisc::Network::CEntityFlags::Entity entity, int logId, int progress, qint64 current, qint64 max, const QUrl &url);
|
||||
|
||||
private:
|
||||
QScopedPointer<Ui::CDbModelComponent> ui;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user