documented node view classes

This commit is contained in:
itsmattkc
2019-07-17 15:31:34 -04:00
parent 845288f513
commit 9633028f99
7 changed files with 184 additions and 4 deletions
+10
View File
@@ -5,6 +5,11 @@
#include "node/node.h"
/**
* @brief An undoable commnd for connecting two NodeParams together
*
* Can be considered a QUndoCommand wrapper for NodeParam::ConnectEdge()/
*/
class NodeEdgeAddCommand : public QUndoCommand {
public:
NodeEdgeAddCommand(NodeOutput* output, NodeInput* input, QUndoCommand* parent = nullptr);
@@ -21,6 +26,11 @@ private:
bool done_;
};
/**
* @brief An undoable commnd for disconnecting two NodeParams
*
* Can be considered a QUndoCommand wrapper for NodeParam::DisonnectEdge()/
*/
class NodeEdgeRemoveCommand : public QUndoCommand {
public:
NodeEdgeRemoveCommand(NodeOutput* output, NodeInput* input, QUndoCommand* parent = nullptr);