SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
10 #ifndef smtk_extension_qtResourceBrowser_h
11 #define smtk_extension_qtResourceBrowser_h
13 #include "smtk/extension/qt/Exports.h"
14 #include "smtk/extension/qt/qtBaseView.h"
16 #include "smtk/common/TypeContainer.h"
22 class QAbstractItemModel;
31 class qtDescriptivePhraseModel;
63 static QTreeView* createDefaultView(QWidget* parent);
64 QTreeView* view()
const;
73 void setDescriptivePhraseModel(QAbstractItemModel* qmodel);
75 bool highlightOnHover()
const;
76 void setHighlightOnHover(
bool highlight);
82 virtual void sendPanelSelectionToSMTK(
83 const QItemSelection& selected,
84 const QItemSelection& deselected);
91 virtual void hoverRow(
const QModelIndex& idx);
92 virtual void resetHover();
102 bool eventFilter(QObject*, QEvent*)
override;
107 static std::string s_configurationJSON;
111 #endif // smtk_extension_qtResourceBrowser_h
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition: doc.h:33
smtk::shared_ptr< smtk::view::Selection > SelectionPtr
Definition: PublicPointerDefs.h:641
A base class for all view types implemented using Qt.
Definition: qtBaseView.h:46
A panel that displays SMTK resources available to the application/user.
Definition: qtResourceBrowser.h:51
std::set< smtk::resource::ComponentPtr > ComponentSet
Definition: PublicPointerDefs.h:326
smtk::shared_ptr< smtk::view::PhraseModel > PhraseModelPtr
Definition: PublicPointerDefs.h:637
smtk::shared_ptr< smtk::view::SubphraseGenerator > SubphraseGeneratorPtr
Definition: PublicPointerDefs.h:645
static const std::string & getJSONConfiguration()
Return the string that represents the configuration for browser components.
Definition: qtResourceBrowser.h:79
Adapt an smtk::view::PhraseModel instance into a hierarchical Qt model.
Definition: qtDescriptivePhraseModel.h:40
#define smtkTypenameMacro(...)
Add typedefs to a class for identifcation.
Definition: SharedFromThis.h:98
A container for caching and retrieving instances of types.
Definition: TypeContainer.h:42