SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
11 #ifndef smtk_extension_qtWorkletPalette_h
12 #define smtk_extension_qtWorkletPalette_h
15 #include "smtk/extension/qt/qtBaseView.h"
17 #include "smtk/common/Categories.h"
19 #include <QtCore/QObject>
20 #include <QtCore/QPointer>
21 #include <QtWidgets/QLayout>
25 class QAbstractItemModel;
26 class QSortFilterProxyModel;
88 bool isEmpty()
const override;
94 QSortFilterProxyModel* model()
const;
101 QTableView* workletView()
const;
104 QLineEdit* searchTextWidget()
const;
117 void emplaceWorklet(
const std::string& workletName,
const std::array<double, 2>& location);
125 void childrenResized()
override {}
128 void enableShowBy(
int )
override {}
130 void onInfo()
override;
132 void onShowCategory()
override {}
134 virtual void instantiateTopWorklet();
135 virtual void toggleFiltering(
int filterState);
140 void buildUI()
override;
143 void createWidget()
override;
146 void setInfoToBeDisplayed()
override;
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition: doc.h:33
QPointer< QTableView > m_list
The list-view of worklets.
Definition: qtWorkletPalette.h:158
void updateUI() override
Have the view update its contents.
Definition: qtWorkletPalette.h:124
Container for managers whose content is presented via Qt widgets.
Definition: qtUIManager.h:56
QPointer< QSortFilterProxyModel > m_filter
A proxy model for users to search by worklet name.
Definition: qtWorkletPalette.h:151
A base class for all view types implemented using Qt.
Definition: qtBaseView.h:46
Definition: Categories.h:166
QPointer< QLineEdit > m_search
An optional search bar for users.
Definition: qtWorkletPalette.h:156
QPointer< QVBoxLayout > m_layout
The central widget's layout.
Definition: qtWorkletPalette.h:154
A QAbstractListModel populated with SMTK worklets.
Definition: qtWorkletModel.h:37
void showAdvanceLevel(int) override
Have the view update its contents based on a new advance level.
Definition: qtWorkletPalette.h:127
An SMTK view that lists worklets which can be added to a project's workflow.
Definition: qtWorkletPalette.h:57
#define smtkSuperclassMacro(...)
Add a typedef to the superclass of this class.
Definition: SharedFromThis.h:167
QPointer< qtWorkletModel > m_model
A QAbstractListModel that lists all registered worklets.
Definition: qtWorkletPalette.h:149
smtk::shared_ptr< smtk::task::Task > TaskPtr
Definition: PublicPointerDefs.h:729
#define smtkTypenameMacro(...)
Add typedefs to a class for identifcation.
Definition: SharedFromThis.h:115