Weather UI Views

refs #663
This commit is contained in:
Roland Winklmeier
2016-06-05 22:57:01 +02:00
parent 099282d0aa
commit 6a79802c1b
7 changed files with 196 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
/* Copyright (C) 2013
* 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.
*/
#include "blackgui/models/cloudlayerlistmodel.h"
#include "blackgui/views/cloudlayerview.h"
using namespace BlackMisc;
using namespace BlackGui::Models;
namespace BlackGui
{
namespace Views
{
CCloudLayerView::CCloudLayerView(QWidget *parent) : CViewBase(parent)
{
this->standardInit(new CCloudLayerListModel(this));
}
}
} // namespace

View File

@@ -0,0 +1,38 @@
/* Copyright (C) 2016
* 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_CLOUDLAYERVIEW_H
#define BLACKGUI_CLOUDLAYERVIEW_H
#include "blackgui/blackguiexport.h"
#include "blackgui/models/cloudlayerlistmodel.h"
#include "blackgui/views/viewbase.h"
class QWidget;
namespace BlackMisc { namespace Weather { class CCloudLayer; } }
namespace BlackGui
{
namespace Views
{
//! Airports view
class BLACKGUI_EXPORT CCloudLayerView : public CViewBase<Models::CCloudLayerListModel, BlackMisc::Weather::CCloudLayerList, BlackMisc::Weather::CCloudLayer>
{
public:
//! Constructor
explicit CCloudLayerView(QWidget *parent = nullptr);
};
}
}
#endif // guard

View File

@@ -0,0 +1,25 @@
/* Copyright (C) 2016
* 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.
*/
#include "blackgui/models/temperaturelayerlistmodel.h"
#include "blackgui/views/temperaturelayerview.h"
using namespace BlackMisc;
using namespace BlackGui::Models;
namespace BlackGui
{
namespace Views
{
CTemperatureLayerView::CTemperatureLayerView(QWidget *parent) : CViewBase(parent)
{
this->standardInit(new CTemperatureLayerListModel(this));
}
}
} // namespace

View File

@@ -0,0 +1,38 @@
/* Copyright (C) 2016
* 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_TEMPERATURELAYERVIEW_H
#define BLACKGUI_TEMPERATURELAYERVIEW_H
#include "blackgui/blackguiexport.h"
#include "blackgui/models/temperaturelayerlistmodel.h"
#include "blackgui/views/viewbase.h"
class QWidget;
namespace BlackMisc { namespace Weather { class CTemperatureLayer; } }
namespace BlackGui
{
namespace Views
{
//! Airports view
class BLACKGUI_EXPORT CTemperatureLayerView : public CViewBase<Models::CTemperatureLayerListModel, BlackMisc::Weather::CTemperatureLayerList, BlackMisc::Weather::CTemperatureLayer>
{
public:
//! Constructor
explicit CTemperatureLayerView(QWidget *parent = nullptr);
};
}
}
#endif // guard

View File

@@ -54,6 +54,9 @@
#include "blackmisc/simulation/simulatedaircraft.h"
#include "blackmisc/simulation/simulatedaircraftlist.h"
#include "blackmisc/statusmessagelist.h"
#include "blackmisc/weather/cloudlayerlist.h"
#include "blackmisc/weather/temperaturelayerlist.h"
#include "blackmisc/weather/windlayerlist.h"
#include "blackmisc/worker.h"
#include <QAction>
@@ -1301,5 +1304,9 @@ namespace BlackGui
template class CViewBase<BlackGui::Models::CTextMessageListModel, BlackMisc::Network::CTextMessageList, BlackMisc::Network::CTextMessage>;
template class CViewBase<BlackGui::Models::CUserListModel, BlackMisc::Network::CUserList, BlackMisc::Network::CUser>;
template class CViewBase<BlackGui::Models::CTemperatureLayerListModel, BlackMisc::Weather::CTemperatureLayerList, BlackMisc::Weather::CTemperatureLayer>;
template class CViewBase<BlackGui::Models::CCloudLayerListModel, BlackMisc::Weather::CCloudLayerList, BlackMisc::Weather::CCloudLayer>;
template class CViewBase<BlackGui::Models::CWindLayerListModel, BlackMisc::Weather::CWindLayerList, BlackMisc::Weather::CWindLayer>;
} // namespace
} // namespace

View File

@@ -0,0 +1,25 @@
/* Copyright (C) 2013
* 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.
*/
#include "blackgui/models/windlayerlistmodel.h"
#include "blackgui/views/windlayerview.h"
using namespace BlackMisc;
using namespace BlackGui::Models;
namespace BlackGui
{
namespace Views
{
CWindLayerView::CWindLayerView(QWidget *parent) : CViewBase(parent)
{
this->standardInit(new CWindLayerListModel(this));
}
}
} // namespace

View File

@@ -0,0 +1,38 @@
/* Copyright (C) 2016
* 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_WINDLAYERVIEW_H
#define BLACKGUI_WINDLAYERVIEW_H
#include "blackgui/blackguiexport.h"
#include "blackgui/models/windlayerlistmodel.h"
#include "blackgui/views/viewbase.h"
class QWidget;
namespace BlackMisc { namespace Weather { class CWindLayer; } }
namespace BlackGui
{
namespace Views
{
//! Wind layer view
class BLACKGUI_EXPORT CWindLayerView : public CViewBase<Models::CWindLayerListModel, BlackMisc::Weather::CWindLayerList, BlackMisc::Weather::CWindLayer>
{
public:
//! Constructor
explicit CWindLayerView(QWidget *parent = nullptr);
};
}
}
#endif // guard