11 #if !defined(Q_MOC_RUN)
19 #include <QtWidgets/QItemDelegate>
21 #include <boost/function.hpp>
22 #include <boost/signals2.hpp>
52 void setTags(
const std::vector<std::string>&);
59 std::vector<DtSystemFilterFunction> myFilterFunctions;
68 virtual QVariant data(
int column,
int role)
const override;
71 bool isInMasterSMS()
const;
74 virtual DtFilename systemFilename()
const;
78 virtual void setShowWarning(
bool);
84 virtual void setWarning(
const QString&);
118 virtual void setShowIncluded(
bool);
121 return myShowIncluded;
125 virtual void setShowAllTags(
bool);
128 return myShowAllTags;
131 virtual bool selectSystem(
const DtFilename&,
bool forceReselect =
true);
135 virtual void setRightClickEnabled(
bool);
138 return myRightClickEnabled;
141 virtual QString textFilter()
const;
142 virtual void setTextFilter(
const QString&);
143 virtual void selectCategory(
const QString&);
144 virtual void copyListContentsToClipboard();
146 virtual bool selectedIsInMasterSMS()
const;
148 virtual void clear();
150 bool executingFilter()
const;
151 virtual QSize sizeHint()
const override;
152 virtual QSize minimumSizeHint()
const override;
153 virtual QStringList selectedNames()
const;
154 virtual void selectNames(
const QStringList&);
155 virtual int selectedItemsCount()
const;
157 virtual QString selectedPath()
const;
158 virtual void selectPath(
const QString& path);
160 virtual bool canRevertExisting()
const;
161 virtual void revertExisting();
164 virtual void fillInList();
165 virtual std::vector<std::string> selectedCategories()
const;
168 bool hasSelection()
const;
171 virtual bool canDeleteExisting(
bool any =
false)
const;
173 virtual std::vector<DtComponentSystemDefinition*> selectedSystems()
const;
174 virtual std::vector<DtComponentSystemDefinition*> getRevertableSystems()
const;
176 virtual std::vector<QTreeWidgetItem*> itemsFor(
const std::vector<DtComponentSystemDefinition*>&)
const;
191 virtual void runHealthCheck();
192 virtual void updateHealthResults();
193 virtual void addAllItems();
195 virtual void resetParentVisibility();
199 virtual void executeFilter();
200 virtual void executeTextFilter();
201 virtual void selectionChanged();
202 virtual void deleteExisting();
208 void healthCheckResults(
const QString&);
226 typedef std::map<const DtComponentSystemDefinition*, QTreeWidgetItem*>
PaletteItems;
277 virtual void paint(QPainter* painter,
const QStyleOptionViewItem& option,
const QModelIndex& index)
const override;
bool showAllTags() const
Definition: simulationObjectEditorSystemList.h:126
std::set< std::string > myTags
Definition: simulationObjectEditorSystemList.h:60
DtSimulationObjectEditorSystemListItemDelegate(QWidget *parent)
Definition: simulationObjectEditorSystemList.h:273
makVrv::DtDe & myDe
Definition: simulationObjectEditorSystemList.h:256
bool rightClickEnabled() const
Definition: simulationObjectEditorSystemList.h:136
bool myRightClickEnabled
Definition: simulationObjectEditorSystemList.h:224
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
std::map< const DtComponentSystemDefinition *, QTreeWidgetItem * > PaletteItems
Definition: simulationObjectEditorSystemList.h:226
Definition: simulationObjectEditorSystemList.h:45
makVrv::DtDe & myDe
Definition: simulationObjectEditorSystemList.h:230
const QString & warning() const
Definition: simulationObjectEditorSystemList.h:85
QSplitter * mySplitter
Definition: simulationObjectEditorSystemList.h:217
DtSystemPaletteFilter * myFilter
Definition: simulationObjectEditorSystemList.h:213
virtual ~DtSimulationObjectEditorSystemListItemDelegate() override
Definition: simulationObjectEditorSystemList.h:274
bool showWarning() const
Definition: simulationObjectEditorSystemList.h:79
bool hasSelection() const
Definition: simulationObjectEditorSystemList.h:265
virtual DtSystemPaletteFilter * clone() const
Definition: simulationObjectEditorSystemList.h:54
bool myShowAllTags
Definition: simulationObjectEditorSystemList.h:223
QString myWarning
Definition: simulationObjectEditorSystemList.h:93
bool myExecutingFilter
Definition: simulationObjectEditorSystemList.h:221
makVrf::DtTreeWidget * mySystems
Definition: simulationObjectEditorSystemList.h:211
bool executingFilter() const
Definition: simulationObjectEditorSystemList.h:260
DtSimulationObjectEditorSystemList * myPaletteParent
Definition: simulationObjectEditorSystemList.h:91
void setPaletteParent(DtSimulationObjectEditorSystemList *p)
Definition: simulationObjectEditorSystemList.h:70
std::map< std::string, QTreeWidgetItem * > myTopLevelItems
Definition: simulationObjectEditorSystemList.h:232
bool myShowIncluded
Definition: simulationObjectEditorSystemList.h:222
DtFilename mySelectSystemIfAvailable
Definition: simulationObjectEditorSystemList.h:228
DtComponentSystemDefinition.
Definition: componentSystemDefinition.h:27
const int DtSystemFilenameRole
Definition: simulationObjectEditorSystemList.h:36
makVrv::DtDe & myDe
Definition: simulationObjectEditorSystemList.h:61
DtSimulationObjectEditorTagSelectorWidget * myTags
Definition: simulationObjectEditorSystemList.h:212
Contains makVrv::DtVirtualBaseClass class.
makVrv::DtDe & myDe
Definition: simulationObjectEditorSystemList.h:92
makVrf::DtTreeWidget * systemsList()
Definition: simulationObjectEditorSystemList.h:112
QWidget * myControlsWidget
Definition: simulationObjectEditorSystemList.h:218
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
bool myShowWarning
Definition: simulationObjectEditorSystemList.h:94
boost::function< bool(const DtComponentSystemDefinition *)> DtSystemFilterFunction
Definition: simulationObjectEditorSystemList.h:38
makVrv::DtSignalConnectionManager myConnections
Definition: simulationObjectEditorSystemList.h:231
Definition: simulationObjectEditorSystemList.h:64
Creator for the list.
Definition: simulationObjectEditorSystemList.h:237
std::map< DtString, bool > myExpandedStates
Definition: simulationObjectEditorSystemList.h:233
makVrf::DtSearchWidget * mySearchWidget
Definition: simulationObjectEditorSystemList.h:215
Definition: simulationObjectEditorSystemList.h:270
Base class to provide boost signal/slot management.
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
boost::signals2::signal< void()> signal_itemSelectionChanged
Definition: simulationObjectEditorSystemList.h:179
The DtUiElement class is the base for which all UI elements are defined. If you wish to create a new ...
Definition: uiElement.h:97
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
Definition: simulationObjectEditorSystemList.h:97
PaletteItems myPaletteItems
Definition: simulationObjectEditorSystemList.h:227
bool showIncluded() const
Definition: simulationObjectEditorSystemList.h:119
#define DT_DLL_simulationObjectEditorimpl
This file is used to determine how to build.
Definition: simulationObjectEditorImplDefines.h:33
const int DtSystemDefinitionRole
Definition: simulationObjectEditorSystemList.h:35