Ref T472, category UI component

This commit is contained in:
Klaus Basan
2019-02-03 21:45:14 +01:00
committed by Mat Sutcliffe
parent 1b730dd0b1
commit 2aff3bb775
6 changed files with 324 additions and 39 deletions

View File

@@ -0,0 +1,60 @@
/* Copyright (C) 2019
* swift project Community / Contributors
*
* This file is part of swift Project. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
* including this file, may be copied, modified, propagated, or distributed except according to the terms
* contained in the LICENSE file.
*/
//! \file
#ifndef BLACKGUI_COMPONENTS_DBAIRCRAFTCATEGORYCOMPONENT_H
#define BLACKGUI_COMPONENTS_DBAIRCRAFTCATEGORYCOMPONENT_H
#include "blackgui/components/enablefordockwidgetinfoarea.h"
#include "blackgui/overlaymessagesframe.h"
#include "blackgui/enableforviewbasedindicator.h"
#include "blackgui/blackguiexport.h"
#include "blackmisc/network/entityflags.h"
#include <QScopedPointer>
namespace Ui { class CDbAircraftCategoryComponent; }
namespace BlackGui
{
namespace Components
{
/**
* DB aircraft categories
*/
class BLACKGUI_EXPORT CDbAircraftCategoryComponent :
public COverlayMessagesFrame,
public CEnableForDockWidgetInfoArea,
public CEnableForViewBasedIndicator
{
Q_OBJECT
public:
//! Constructor
explicit CDbAircraftCategoryComponent(QWidget *parent = nullptr);
//! Destructor
virtual ~CDbAircraftCategoryComponent();
private:
//! ICAO codes have been read
void onCategoryRead(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();
QScopedPointer<Ui::CDbAircraftCategoryComponent> ui;
};
} // ns
} // ns
#endif // guard