projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not use get_param_vocab().size() as link counter. It is too slow.
[synfig.git]
/
synfig-core
/
src
/
synfig
/
valuenode.h
diff --git
a/synfig-core/src/synfig/valuenode.h
b/synfig-core/src/synfig/valuenode.h
index
379b3f0
..
61b5d6a
100644
(file)
--- a/
synfig-core/src/synfig/valuenode.h
+++ b/
synfig-core/src/synfig/valuenode.h
@@
-39,6
+39,7
@@
#include <sigc++/signal.h>
#include "guid.h"
#include <ETL/angle>
#include <sigc++/signal.h>
#include "guid.h"
#include <ETL/angle>
+#include "paramdesc.h"
#include "node.h"
#include "node.h"
@@
-77,6
+78,7
@@
namespace synfig {
class Canvas;
class LinkableValueNode;
class Layer;
class Canvas;
class LinkableValueNode;
class Layer;
+class ParamVocab;
/*! \class ValueNode
** \brief Base class for all Value Nodes
/*! \class ValueNode
** \brief Base class for all Value Nodes
@@
-335,6
+337,11
@@
public:
*/
typedef std::map<String,BookEntry> Book;
*/
typedef std::map<String,BookEntry> Book;
+ //! The vocabulary of the children
+ /*! \see synfig::Paramdesc
+ */
+ typedef ParamVocab Vocab;
+
static Book& book();
//! Creates a Linkable Value Node based on the name and the returned
static Book& book();
//! Creates a Linkable Value Node based on the name and the returned
@@
-389,6
+396,9
@@
public:
//! Return a full description of the linked ValueNode given by the index
String get_description(int index = -1, bool show_exported_name = true)const;
//! Return a full description of the linked ValueNode given by the index
String get_description(int index = -1, bool show_exported_name = true)const;
+ //! Gets the parameter vocabulary for linkable value nodes
+ virtual Vocab get_param_vocab()const=0;
+
protected:
//! Sets the type of the ValueNode
void set_type(ValueBase::Type t) { ValueNode::set_type(t); }
protected:
//! Sets the type of the ValueNode
void set_type(ValueBase::Type t) { ValueNode::set_type(t); }