refs #445, data entry GUI

* component for main info area
* component for data mapping
* new subproject
This commit is contained in:
Klaus Basan
2015-07-10 01:31:29 +02:00
committed by Mathew Sutcliffe
parent a2527e69e3
commit d7bd20dd26
15 changed files with 954 additions and 0 deletions

View File

@@ -0,0 +1,68 @@
/* Copyright (C) 2015
* 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.
*/
#ifndef BLACKGUI_DATAMAPPINGCOMPONENT_H
#define BLACKGUI_DATAMAPPINGCOMPONENT_H
#include "blackgui/blackguiexport.h"
#include <QFrame>
namespace Ui { class CDataMappingComponent; }
namespace BlackCore { class CWebDataReader; }
namespace BlackGui
{
namespace Components
{
/**
* Mappings from/for the database
*/
class BLACKGUI_EXPORT CDataMappingComponent : public QFrame
{
Q_OBJECT
public:
//! Contructor
explicit CDataMappingComponent(QWidget *parent = nullptr);
//! Destructor
~CDataMappingComponent();
//! Readers have been initialized
void readersInitialized(BlackCore::CWebDataReader *webReaders);
private slots:
//! Aircraft ICAO codes read
void ps_aircraftIcaoCodeRead(int number);
//! Airline ICAO codes read
void ps_airlineIcaoCodeRead(int number);
//! Liveries read
void ps_liveriesRead(int number);
//! Distributors read
void ps_distributorsRead(int number);
//! Models read
void ps_modelsRead(int number);
//! Request distributor update
void ps_requestModelDataUpdate();
private:
QScopedPointer<Ui::CDataMappingComponent> ui;
BlackCore::CWebDataReader *m_webDataReader = nullptr;
QList<QMetaObject::Connection> m_webReaderSignalConnections;
};
} // ns
} // ns
#endif // guard