mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 19:35:32 +08:00
refactor: Rename blackgui to swift::gui
This commit is contained in:
44
src/gui/models/matchingstatisticsmodel.h
Normal file
44
src/gui/models/matchingstatisticsmodel.h
Normal file
@@ -0,0 +1,44 @@
|
||||
// SPDX-FileCopyrightText: Copyright (C) 2017 swift Project Community / Contributors
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
|
||||
|
||||
//! \file
|
||||
|
||||
#ifndef SWIFT_GUI_MATCHINGSTATISTICSMODEL_H
|
||||
#define SWIFT_GUI_MATCHINGSTATISTICSMODEL_H
|
||||
|
||||
#include "gui/swiftguiexport.h"
|
||||
#include "gui/models/listmodelbase.h"
|
||||
#include "misc/simulation/matchingstatistics.h"
|
||||
|
||||
class QObject;
|
||||
|
||||
namespace swift::gui::models
|
||||
{
|
||||
//! Matching statistics entry
|
||||
class SWIFT_GUI_EXPORT CMatchingStatisticsModel : public CListModelBase<swift::misc::simulation::CMatchingStatistics, true>
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
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
|
||||
#endif // guard
|
||||
Reference in New Issue
Block a user