Ref T270, models/views for parts and situations

* added base class CListModelTimestampObjects
* added model/view for CAircraftParts
* added model/view for CAircraftSituation
This commit is contained in:
Klaus Basan
2018-05-25 21:29:13 +02:00
parent 117862e756
commit c16f5575f4
17 changed files with 485 additions and 19 deletions

View File

@@ -0,0 +1,40 @@
/* Copyright (C) 2018
* 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_MODELS_AIRCRAFTSITUATIONLISTMODEL_H
#define BLACKGUI_MODELS_AIRCRAFTSITUATIONLISTMODEL_H
#include "blackgui/blackguiexport.h"
#include "blackgui/models/listmodeltimestampobjects.h"
#include "blackmisc/aviation/aircraftsituationlist.h"
#include <QVariant>
class QModelIndex;
class QObject;
namespace BlackGui
{
namespace Models
{
//! Client list model
class BLACKGUI_EXPORT CAircraftSituationListModel : public CListModelTimestampObjects<BlackMisc::Aviation::CAircraftSituation, BlackMisc::Aviation::CAircraftSituationList, true>
{
public:
//! Constructor
explicit CAircraftSituationListModel(QObject *parent = nullptr);
//! Destructor
virtual ~CAircraftSituationListModel() {}
};
} // namespace
} // namespace
#endif // guard