mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-19 03:45:30 +08:00
refs #849, model/view for statistics
This commit is contained in:
committed by
Mathew Sutcliffe
parent
cb1e213c64
commit
b35bbd8b81
51
src/blackgui/models/matchingstatisticsmodel.h
Normal file
51
src/blackgui/models/matchingstatisticsmodel.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/* Copyright (C) 2017
|
||||
* 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_MATCHINGSTATISTICSMODEL_H
|
||||
#define BLACKGUI_MATCHINGSTATISTICSMODEL_H
|
||||
|
||||
#include "blackgui/blackguiexport.h"
|
||||
#include "blackgui/models/listmodelbase.h"
|
||||
#include "blackmisc/simulation/matchingstatistics.h"
|
||||
|
||||
class QObject;
|
||||
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Models
|
||||
{
|
||||
//! Matching statistics entry
|
||||
class BLACKGUI_EXPORT CMatchingStatisticsModel : public CListModelBase<BlackMisc::Simulation::CMatchingStatisticsEntry, BlackMisc::Simulation::CMatchingStatistics, true>
|
||||
{
|
||||
public:
|
||||
//! How to display
|
||||
enum MatchingStatisticsMode
|
||||
{
|
||||
NoSet,
|
||||
ForSingleSession,
|
||||
ForMultiSessions
|
||||
};
|
||||
|
||||
//! Constructor
|
||||
explicit CMatchingStatisticsModel(MatchingStatisticsMode mode, QObject *parent = nullptr);
|
||||
|
||||
//! Destructor
|
||||
virtual ~CMatchingStatisticsModel() {}
|
||||
|
||||
//! Set mode
|
||||
void setMode(MatchingStatisticsMode mode);
|
||||
|
||||
private:
|
||||
MatchingStatisticsMode m_mode = NoSet;
|
||||
};
|
||||
} // ns
|
||||
} // ns
|
||||
#endif // guard
|
||||
Reference in New Issue
Block a user