SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
10 #ifndef smtk_extension_qtTaskEditor_h
11 #define smtk_extension_qtTaskEditor_h
13 #include "smtk/extension/qt/diagram/qtDiagramGenerator.h"
15 #include "smtk/project/Project.h"
16 #include "smtk/task/Manager.h"
17 #include "smtk/view/Configuration.h"
19 #include "smtk/common/Managers.h"
20 #include "smtk/common/TypeContainer.h"
24 #include "nlohmann/json.hpp"
54 void updateSceneNodes(
55 std::unordered_set<smtk::resource::PersistentObject*>& created,
56 std::unordered_set<smtk::resource::PersistentObject*>& modified,
57 std::unordered_set<smtk::resource::PersistentObject*>& expunged,
59 const smtk::operation::Operation::Result& result)
override;
62 std::unordered_set<smtk::resource::PersistentObject*>& created,
63 std::unordered_set<smtk::resource::PersistentObject*>& modified,
64 std::unordered_set<smtk::resource::PersistentObject*>& expunged,
66 const smtk::operation::Operation::Result& result)
override;
69 static std::shared_ptr<smtk::view::Configuration> defaultConfiguration();
72 bool addWorklet(
const std::string& workletName, std::array<double, 2> location);
75 bool acceptDropProposal(QDragEnterEvent* event)
override;
78 void moveDropPoint(QDragMoveEvent* event)
override;
81 void abortDrop(QDragLeaveEvent* event)
override;
84 bool acceptDrop(QDropEvent* event)
override;
90 template<
bool RemoveUnusedArcs>
101 #endif // smtk_extension_qtTaskEditor_h
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition: doc.h:33
Definition: qtTaskEditor.cxx:104
std::unordered_map< smtk::string::Token, qtDiagramLegendEntry * > ArcLegendEntries
Subclasses may use this to pass information about arc types registered with the legend.
Definition: qtDiagramGenerator.h:51
Operation is a base class for all SMTK operations.
Definition: Operation.h:62
A widget that displays diagrams of SMTK resources.
Definition: qtDiagram.h:70
A widget that displays SMTK tasks available to users in a diagram.
Definition: qtTaskEditor.h:40
A Graphical Item that represents a task as a node in a scene.
Definition: qtBaseTaskNode.h:43
#define smtkSuperclassMacro(...)
Add a typedef to the superclass of this class.
Definition: SharedFromThis.h:147
Configure one item in a view, which may contain children.
Definition: Configuration.h:32
Task is a base class for all SMTK tasks.
Definition: Task.h:70
A base class that maintains a diagram in the face of operations which modify the state of the diagram...
Definition: qtDiagramGenerator.h:43
An abstract base class for SMTK resources and their components.
Definition: PersistentObject.h:39
#define smtkTypenameMacro(...)
Add typedefs to a class for identifcation.
Definition: SharedFromThis.h:98