mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 10:25:36 +08:00
refs #445, models and views for new value classes
* livery * distributor
This commit is contained in:
committed by
Mathew Sutcliffe
parent
3c9f95356e
commit
b308014bc2
24
src/blackgui/views/distributorview.cpp
Normal file
24
src/blackgui/views/distributorview.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
#include "distributorview.h"
|
||||
#include <QHeaderView>
|
||||
|
||||
using namespace BlackGui::Models;
|
||||
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Views
|
||||
{
|
||||
CDistributorView::CDistributorView(QWidget *parent) : CViewBase(parent)
|
||||
{
|
||||
this->standardInit(new CDistributorListModel(this));
|
||||
}
|
||||
}
|
||||
} // namespace
|
||||
33
src/blackgui/views/distributorview.h
Normal file
33
src/blackgui/views/distributorview.h
Normal file
@@ -0,0 +1,33 @@
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
//! \file
|
||||
|
||||
#ifndef BLACKGUI_DISTRIBUTORVIEW_H
|
||||
#define BLACKGUI_DISTRIBUTORVIEW_H
|
||||
|
||||
#include "blackgui/blackguiexport.h"
|
||||
#include "viewbase.h"
|
||||
#include "../models/distributorlistmodel.h"
|
||||
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Views
|
||||
{
|
||||
//! Distributors
|
||||
class BLACKGUI_EXPORT CDistributorView : public CViewBase<Models::CDistributorListModel, BlackMisc::Simulation::CDistributorList, BlackMisc::Simulation::CDistributor>
|
||||
{
|
||||
|
||||
public:
|
||||
//! Constructor
|
||||
explicit CDistributorView(QWidget *parent = nullptr);
|
||||
};
|
||||
}
|
||||
}
|
||||
#endif // guard
|
||||
24
src/blackgui/views/liveryview.cpp
Normal file
24
src/blackgui/views/liveryview.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
#include "liveryview.h"
|
||||
#include <QHeaderView>
|
||||
|
||||
using namespace BlackGui::Models;
|
||||
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Views
|
||||
{
|
||||
CLiveryView::CLiveryView(QWidget *parent) : CViewBase(parent)
|
||||
{
|
||||
this->standardInit(new CLiveryListModel(this));
|
||||
}
|
||||
}
|
||||
} // namespace
|
||||
33
src/blackgui/views/liveryview.h
Normal file
33
src/blackgui/views/liveryview.h
Normal file
@@ -0,0 +1,33 @@
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
//! \file
|
||||
|
||||
#ifndef BLACKGUI_LIVERYVIEW_H
|
||||
#define BLACKGUI_LIVERYVIEW_H
|
||||
|
||||
#include "blackgui/blackguiexport.h"
|
||||
#include "viewbase.h"
|
||||
#include "../models/liverylistmodel.h"
|
||||
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Views
|
||||
{
|
||||
//! Distributors
|
||||
class BLACKGUI_EXPORT CLiveryView : public CViewBase<Models::CLiveryListModel, BlackMisc::Aviation::CLiveryList, BlackMisc::Aviation::CLivery>
|
||||
{
|
||||
|
||||
public:
|
||||
//! Constructor
|
||||
explicit CLiveryView(QWidget *parent = nullptr);
|
||||
};
|
||||
}
|
||||
}
|
||||
#endif // guard
|
||||
@@ -8,19 +8,7 @@
|
||||
*/
|
||||
|
||||
#include "viewbase.h"
|
||||
#include "../models/statusmessagelistmodel.h"
|
||||
#include "../models/identifierlistmodel.h"
|
||||
#include "../models/namevariantpairlistmodel.h"
|
||||
#include "../models/atcstationlistmodel.h"
|
||||
#include "../models/aircraftmodellistmodel.h"
|
||||
#include "../models/textmessagelistmodel.h"
|
||||
#include "../models/airportlistmodel.h"
|
||||
#include "../models/airportlistmodel.h"
|
||||
#include "../models/serverlistmodel.h"
|
||||
#include "../models/userlistmodel.h"
|
||||
#include "../models/clientlistmodel.h"
|
||||
#include "../models/simulatedaircraftlistmodel.h"
|
||||
#include "../models/keyboardkeylistmodel.h"
|
||||
#include "blackgui/models/allmodels.h"
|
||||
#include "../guiutility.h"
|
||||
|
||||
#include <QHeaderView>
|
||||
@@ -406,12 +394,17 @@ namespace BlackGui
|
||||
|
||||
template class CViewBase<BlackGui::Models::CAtcStationListModel, BlackMisc::Aviation::CAtcStationList, BlackMisc::Aviation::CAtcStation>;
|
||||
template class CViewBase<BlackGui::Models::CAirportListModel, BlackMisc::Aviation::CAirportList, BlackMisc::Aviation::CAirport>;
|
||||
template class CViewBase<BlackGui::Models::CLiveryListModel, BlackMisc::Aviation::CLiveryList, BlackMisc::Aviation::CLivery>;
|
||||
|
||||
template class CViewBase<BlackGui::Models::CServerListModel, BlackMisc::Network::CServerList, BlackMisc::Network::CServer>;
|
||||
template class CViewBase<BlackGui::Models::CUserListModel, BlackMisc::Network::CUserList, BlackMisc::Network::CUser>;
|
||||
template class CViewBase<BlackGui::Models::CClientListModel, BlackMisc::Network::CClientList, BlackMisc::Network::CClient>;
|
||||
template class CViewBase<BlackGui::Models::CTextMessageListModel, BlackMisc::Network::CTextMessageList, BlackMisc::Network::CTextMessage>;
|
||||
|
||||
template class CViewBase<BlackGui::Models::CSimulatedAircraftListModel, BlackMisc::Simulation::CSimulatedAircraftList, BlackMisc::Simulation::CSimulatedAircraft>;
|
||||
template class CViewBase<BlackGui::Models::CAircraftModelListModel, BlackMisc::Simulation::CAircraftModelList, BlackMisc::Simulation::CAircraftModel>;
|
||||
template class CViewBase<BlackGui::Models::CDistributorListModel, BlackMisc::Simulation::CDistributorList, BlackMisc::Simulation::CDistributor>;
|
||||
|
||||
template class CViewBase<BlackGui::Models::CKeyboardKeyListModel, BlackMisc::Settings::CSettingKeyboardHotkeyList, BlackMisc::Settings::CSettingKeyboardHotkey>;
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user