10 #ifndef smtk_extension_qtAvailableOperations_h
11 #define smtk_extension_qtAvailableOperations_h
13 #include "smtk/extension/qt/Exports.h"
15 #include "smtk/operation/Operation.h"
17 #include "smtk/view/AvailableOperations.h"
19 #include <QListWidget>
20 #include <QVBoxLayout>
43 void setUseLabels(
bool val) { m_useLabels = val; }
44 bool useLabels()
const {
return m_useLabels; }
45 QListWidget* listWidget()
const {
return m_operationList; }
48 void tryOperation(
const smtk::operation::Operation::Index& op);
49 void editOperation(
const smtk::operation::Operation::Index& op);
50 void hoverOperation(
const smtk::operation::Operation::Index& op);
53 QListWidget* m_operationList{
nullptr };
54 QVBoxLayout* m_layout{
nullptr };
56 smtk::view::AvailableOperations::Observers::Key m_operationSourceObserverId;
57 bool m_useLabels{
false };
64 #endif // smtk_extension_qtAvailableOperations_h