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 <QtCore/QObject>
18 #include <QtCore/QPointer>
19 #include <QtWidgets/QLayout>
23 class QAbstractItemModel;
24 class QSortFilterProxyModel;
86 bool isEmpty()
const override;
92 QSortFilterProxyModel* model()
const;
99 QTableView* workletView()
const;
102 QLineEdit* searchTextWidget()
const;
105 void emplaceWorklet(
const std::string& workletName,
const std::array<double, 2>& location);
113 void childrenResized()
override {}
116 void enableShowBy(
int )
override {}
118 void onInfo()
override;
120 void onShowCategory()
override {}
122 virtual void instantiateTopWorklet();
123 virtual void toggleFiltering(
int filterState);
128 void buildUI()
override;
131 void createWidget()
override;
134 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:146
void updateUI() override
Have the view update its contents.
Definition: qtWorkletPalette.h:112
Container for managers whose content is presented via Qt widgets.
Definition: qtUIManager.h:57
QPointer< QSortFilterProxyModel > m_filter
A proxy model for users to search by worklet name.
Definition: qtWorkletPalette.h:139
A base class for all view types implemented using Qt.
Definition: qtBaseView.h:46
QPointer< QLineEdit > m_search
An optional search bar for users.
Definition: qtWorkletPalette.h:144
QPointer< QVBoxLayout > m_layout
The central widget's layout.
Definition: qtWorkletPalette.h:142
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:115
An SMTK view that lists worklets which can be added to a project's workflow.
Definition: qtWorkletPalette.h:55
#define smtkSuperclassMacro(...)
Add a typedef to the superclass of this class.
Definition: SharedFromThis.h:147
QPointer< qtWorkletModel > m_model
A QAbstractListModel that lists all registered worklets.
Definition: qtWorkletPalette.h:137
#define smtkTypenameMacro(...)
Add typedefs to a class for identifcation.
Definition: SharedFromThis.h:98