mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 18:55:38 +08:00
refs #368, updated models to reflect changes
* update count with filter * used alternative sortable columns * added classes for SimulatedAircraft * supporting filters
This commit is contained in:
@@ -24,10 +24,10 @@ namespace BlackGui
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//! Constructor
|
||||
explicit CAircraftView(QWidget *parent = nullptr);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace
|
||||
#endif // guard
|
||||
|
||||
31
src/blackgui/views/simulatedaircraftview.cpp
Normal file
31
src/blackgui/views/simulatedaircraftview.cpp
Normal file
@@ -0,0 +1,31 @@
|
||||
/* 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 "simulatedaircraftview.h"
|
||||
#include <QHeaderView>
|
||||
|
||||
using namespace BlackMisc::Simulation;
|
||||
using namespace BlackGui::Models;
|
||||
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Views
|
||||
{
|
||||
CSimulatedAircraftView::CSimulatedAircraftView(QWidget *parent) : CViewBase(parent)
|
||||
{
|
||||
this->standardInit(new CSimulatedAircraftListModel(this));
|
||||
this->m_withMenuItemRefresh = true;
|
||||
}
|
||||
|
||||
void CSimulatedAircraftView::setAircraftMode(CSimulatedAircraftListModel::AircraftMode mode)
|
||||
{
|
||||
this->m_model->setAircraftMode(mode);
|
||||
}
|
||||
}
|
||||
}
|
||||
35
src/blackgui/views/simulatedaircraftview.h
Normal file
35
src/blackgui/views/simulatedaircraftview.h
Normal file
@@ -0,0 +1,35 @@
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
//! \file
|
||||
|
||||
#ifndef BLACKGUI_SIMULATEDAIRCRAFTVIEW_H
|
||||
#define BLACKGUI_SIMULATEDAIRCRAFTVIEW_H
|
||||
|
||||
#include "viewbase.h"
|
||||
#include "../models/simulatedaircraftlistmodel.h"
|
||||
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Views
|
||||
{
|
||||
//! Aircrafts view
|
||||
class CSimulatedAircraftView : public CViewBase<Models::CSimulatedAircraftListModel, BlackMisc::Simulation::CSimulatedAircraftList, BlackMisc::Simulation::CSimulatedAircraft>
|
||||
{
|
||||
|
||||
public:
|
||||
//! Constructor
|
||||
explicit CSimulatedAircraftView(QWidget *parent = nullptr);
|
||||
|
||||
//! Mode
|
||||
void setAircraftMode(Models::CSimulatedAircraftListModel::AircraftMode mode);
|
||||
};
|
||||
}
|
||||
}
|
||||
#endif // guard
|
||||
Reference in New Issue
Block a user