2#include <Gui/RaGui.hpp>
4#include <Engine/Scene/ItemEntry.hpp>
5#include <Gui/TreeModel/EntityTreeModel.hpp>
6#include <QItemSelectionModel>
11class RA_GUI_API SelectionManager :
public QItemSelectionModel
15 explicit SelectionManager( ItemModel* model, QObject* parent =
nullptr );
25 bool isSelected(
const Engine::Scene::ItemEntry& ent )
const;
35 const Engine::Scene::ItemEntry& currentItem()
const;
42 virtual void select(
const Engine::Scene::ItemEntry& ent,
43 QItemSelectionModel::SelectionFlags command );
50 void setCurrentEntry(
const Engine::Scene::ItemEntry& ent,
51 QItemSelectionModel::SelectionFlags command );
54 void onModelRebuilt();
57 void printSelection()
const;
60 const ItemModel* itemModel()
const {
return static_cast<const ItemModel*
>( model() ); }
hepler function to manage enum as underlying types in VariableSet