mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-19 03:45:30 +08:00
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:
committed by
Mat Sutcliffe
parent
ea7694248e
commit
e810dfecf5
@@ -12,19 +12,18 @@
|
||||
#ifndef BLACKGUI_COMPONENTS_DBAIRCRAFTICAOCOMPONENT_H
|
||||
#define BLACKGUI_COMPONENTS_DBAIRCRAFTICAOCOMPONENT_H
|
||||
|
||||
#include "blackgui/blackguiexport.h"
|
||||
#include "blackgui/components/enablefordockwidgetinfoarea.h"
|
||||
#include "blackgui/overlaymessagesframe.h"
|
||||
#include "blackgui/enableforviewbasedindicator.h"
|
||||
#include "blackgui/blackguiexport.h"
|
||||
#include "blackmisc/network/entityflags.h"
|
||||
|
||||
#include <QFrame>
|
||||
#include <QObject>
|
||||
#include <QScopedPointer>
|
||||
|
||||
class QWidget;
|
||||
|
||||
namespace BlackMisc { namespace Aviation { class CAircraftIcaoCode; } }
|
||||
namespace Ui { class CDbAircraftIcaoComponent; }
|
||||
namespace BlackMisc { namespace Aviation { class CAircraftIcaoCode; } }
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Views { class CAircraftIcaoCodeView; }
|
||||
@@ -34,7 +33,7 @@ namespace BlackGui
|
||||
* DB aircraft ICAO data
|
||||
*/
|
||||
class BLACKGUI_EXPORT CDbAircraftIcaoComponent :
|
||||
public QFrame,
|
||||
public COverlayMessagesFrame,
|
||||
public CEnableForDockWidgetInfoArea,
|
||||
public CEnableForViewBasedIndicator
|
||||
{
|
||||
@@ -50,7 +49,6 @@ namespace BlackGui
|
||||
//! Get the view
|
||||
BlackGui::Views::CAircraftIcaoCodeView *view() const;
|
||||
|
||||
public slots:
|
||||
//! Filter by ICAO as default
|
||||
void filter(const BlackMisc::Aviation::CAircraftIcaoCode &icao);
|
||||
|
||||
@@ -58,6 +56,9 @@ namespace BlackGui
|
||||
//! ICAO codes have been read
|
||||
void onIcaoRead(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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user