Ref T489, display read state in model component for livery, airline, aircraft

* similar to model component
* distributor/countries too few data to benefit, hence not implemented
This commit is contained in:
Klaus Basan
2018-12-29 10:02:02 +01:00
committed by Mat Sutcliffe
parent ea7694248e
commit e810dfecf5
6 changed files with 75 additions and 21 deletions

View File

@@ -12,18 +12,17 @@
#ifndef BLACKGUI_COMPONENTS_DBLIVERYCOMPONENT_H
#define BLACKGUI_COMPONENTS_DBLIVERYCOMPONENT_H
#include "blackgui/blackguiexport.h"
#include "blackgui/components/enablefordockwidgetinfoarea.h"
#include "blackgui/overlaymessagesframe.h"
#include "blackgui/enableforviewbasedindicator.h"
#include "blackmisc/network/entityflags.h"
#include "blackgui/blackguiexport.h"
#include "blackmisc/aviation/airlineicaocode.h"
#include "blackmisc/network/entityflags.h"
#include <QFrame>
#include <QObject>
#include <QScopedPointer>
class QWidget;
namespace BlackMisc { namespace Aviation { class CLivery; } }
namespace Ui { class CDbLiveryComponent; }
namespace BlackGui
@@ -35,7 +34,7 @@ namespace BlackGui
* Liveries from DB
*/
class BLACKGUI_EXPORT CDbLiveryComponent :
public QFrame,
public COverlayMessagesFrame,
public CEnableForDockWidgetInfoArea,
public BlackGui::CEnableForViewBasedIndicator
{
@@ -51,7 +50,6 @@ namespace BlackGui
//! The livery view
BlackGui::Views::CLiveryView *view();
public slots:
//! Filter by livery
void filter(const BlackMisc::Aviation::CLivery &livery);
@@ -62,6 +60,9 @@ namespace BlackGui
//! Liveries codes have been read
void onLiveriesRead(BlackMisc::Network::CEntityFlags::Entity entity, BlackMisc::Network::CEntityFlags::ReadState readState, int count);
//! Download progress for an entity
void onEntityDownloadProgress(BlackMisc::Network::CEntityFlags::Entity entity, int logId, int progress, qint64 current, qint64 max, const QUrl &url);
//! Reload models
void onReload();