mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 10:45:37 +08:00
refs #785, interface to access selection model
This commit is contained in:
committed by
Mathew Sutcliffe
parent
4b93d0e2d8
commit
988e1b70be
34
src/blackgui/models/selectionmodel.h
Normal file
34
src/blackgui/models/selectionmodel.h
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
/* 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_SELECTIONMODEL_H
|
||||||
|
#define BLACKGUI_SELECTIONMODEL_H
|
||||||
|
|
||||||
|
namespace BlackGui
|
||||||
|
{
|
||||||
|
namespace Models
|
||||||
|
{
|
||||||
|
//! Allow to get and select objects
|
||||||
|
template <typename ContainerType> class ISelectionModel
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
//! Destructor
|
||||||
|
virtual ~ISelectionModel() {}
|
||||||
|
|
||||||
|
//! Selected objects
|
||||||
|
virtual ContainerType selectedObjects() const = 0;
|
||||||
|
|
||||||
|
//! Select
|
||||||
|
virtual void selectObjects(const ContainerType &selectedObjects) = 0;
|
||||||
|
};
|
||||||
|
} // namespace
|
||||||
|
} // namespace
|
||||||
|
#endif // guard
|
||||||
Reference in New Issue
Block a user