11 #if !defined(Q_MOC_RUN)
19 #include <QtWidgets/QItemDelegate>
21 #include <boost/function.hpp>
22 #include <boost/signals2.hpp>
47 void setTags(
const std::vector<std::string>&);
54 std::vector<DtSystemFilterFunction> myFilterFunctions;
63 virtual QVariant data(
int column,
int role)
const;
66 bool isInMasterSMS()
const;
69 virtual DtFilename systemFilename()
const;
73 virtual void setShowWarning(
bool);
79 virtual void setWarning(
const QString&);
113 virtual void setShowIncluded(
bool);
116 return myShowIncluded;
120 virtual void setShowAllTags(
bool);
123 return myShowAllTags;
126 virtual bool selectSystem(
const DtFilename&,
bool forceReselect =
true);
130 virtual void setRightClickEnabled(
bool);
133 return myRightClickEnabled;
136 virtual QString textFilter()
const;
137 virtual void setTextFilter(
const QString&);
138 virtual void selectCategory(
const QString&);
139 virtual void copyListContentsToClipboard();
141 virtual bool selectedIsInMasterSMS()
const;
143 virtual void clear();
145 bool executingFilter()
const;
146 virtual QSize sizeHint()
const;
147 virtual QSize minimumSizeHint()
const;
148 virtual QStringList selectedNames()
const;
149 virtual void selectNames(
const QStringList&);
150 virtual int selectedItemsCount()
const;
152 virtual QString selectedPath()
const;
153 virtual void selectPath(
const QString& path);
155 virtual bool canRevertExisting()
const;
156 virtual void revertExisting();
159 virtual void fillInList();
160 virtual std::vector<std::string> selectedCategories()
const;
163 bool hasSelection()
const;
166 virtual bool canDeleteExisting(
bool any =
false)
const;
168 virtual std::vector<DtComponentSystemDefinition*> selectedSystems()
const;
169 virtual std::vector<DtComponentSystemDefinition*> getRevertableSystems()
const;
171 virtual std::vector<QTreeWidgetItem*> itemsFor(
const std::vector<DtComponentSystemDefinition*>&)
const;
186 virtual void runHealthCheck();
187 virtual void updateHealthResults();
190 virtual void executeFilter();
191 virtual void executeTextFilter();
192 virtual void selectionChanged();
193 virtual void deleteExisting();
196 virtual void resetTextFilter();
200 void healthCheckResults(
const QString&);
221 typedef std::map<const DtComponentSystemDefinition*, QTreeWidgetItem*>
PaletteItems;
270 virtual void paint(QPainter *painter,
271 const QStyleOptionViewItem &option,
272 const QModelIndex &index)
const;
bool showAllTags() const
Definition: simulationObjectEditorSystemList.h:121
std::set< std::string > myTags
Definition: simulationObjectEditorSystemList.h:55
DtSimulationObjectEditorSystemListItemDelegate(QWidget *parent)
Definition: simulationObjectEditorSystemList.h:266
makVrv::DtDe & myDe
Definition: simulationObjectEditorSystemList.h:249
bool rightClickEnabled() const
Definition: simulationObjectEditorSystemList.h:131
bool myRightClickEnabled
Definition: simulationObjectEditorSystemList.h:219
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:221
Definition: simulationObjectEditorSystemList.h:40
makVrv::DtDe & myDe
Definition: simulationObjectEditorSystemList.h:225
const QString & warning() const
Definition: simulationObjectEditorSystemList.h:80
QSplitter * mySplitter
Definition: simulationObjectEditorSystemList.h:212
DtSystemPaletteFilter * myFilter
Definition: simulationObjectEditorSystemList.h:205
bool showWarning() const
Definition: simulationObjectEditorSystemList.h:74
QGridLayout * myControlsLayout
Definition: simulationObjectEditorSystemList.h:206
bool hasSelection() const
Definition: simulationObjectEditorSystemList.h:258
QToolButton * myResetButton
Definition: simulationObjectEditorSystemList.h:210
virtual DtSystemPaletteFilter * clone() const
Definition: simulationObjectEditorSystemList.h:49
virtual ~DtSimulationObjectEditorSystemListItemDelegate()
Definition: simulationObjectEditorSystemList.h:267
QLineEdit * mySearch
Definition: simulationObjectEditorSystemList.h:209
bool myShowAllTags
Definition: simulationObjectEditorSystemList.h:218
QString myWarning
Definition: simulationObjectEditorSystemList.h:88
bool myExecutingFilter
Definition: simulationObjectEditorSystemList.h:216
makVrf::DtTreeWidget * mySystems
Definition: simulationObjectEditorSystemList.h:203
bool executingFilter() const
Definition: simulationObjectEditorSystemList.h:253
DtSimulationObjectEditorSystemList * myPaletteParent
Definition: simulationObjectEditorSystemList.h:86
void setPaletteParent(DtSimulationObjectEditorSystemList *p)
Definition: simulationObjectEditorSystemList.h:65
bool myShowIncluded
Definition: simulationObjectEditorSystemList.h:217
DtFilename mySelectSystemIfAvailable
Definition: simulationObjectEditorSystemList.h:223
DtComponentSystemDefinition.
Definition: componentSystemDefinition.h:25
const int DtSystemFilenameRole
Definition: simulationObjectEditorSystemList.h:36
makVrv::DtDe & myDe
Definition: simulationObjectEditorSystemList.h:56
DtSimulationObjectEditorTagSelectorWidget * myTags
Definition: simulationObjectEditorSystemList.h:204
Contains makVrv::DtVirtualBaseClass class.
makVrv::DtDe & myDe
Definition: simulationObjectEditorSystemList.h:87
makVrf::DtTreeWidget * systemsList()
Definition: simulationObjectEditorSystemList.h:107
QWidget * myControlsWidget
Definition: simulationObjectEditorSystemList.h:213
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
QLabel * mySearchLabel
Definition: simulationObjectEditorSystemList.h:208
bool myShowWarning
Definition: simulationObjectEditorSystemList.h:89
boost::function< bool(const DtComponentSystemDefinition *)> DtSystemFilterFunction
Definition: simulationObjectEditorSystemList.h:38
makVrv::DtSignalConnectionManager myConnections
Definition: simulationObjectEditorSystemList.h:226
Definition: simulationObjectEditorSystemList.h:59
Creator for the list.
Definition: simulationObjectEditorSystemList.h:230
Definition: simulationObjectEditorSystemList.h:263
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:174
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:70
Definition: simulationObjectEditorSystemList.h:92
PaletteItems myPaletteItems
Definition: simulationObjectEditorSystemList.h:222
bool showIncluded() const
Definition: simulationObjectEditorSystemList.h:114
#define DT_DLL_simulationObjectEditorimpl
This file is used to determine how to build.
Definition: simulationObjectEditorImplDefines.h:33
const int DtSystemDefinitionRole
Definition: simulationObjectEditorSystemList.h:35