X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fvaluenode.h;h=62940c3fbeeb6bd2770ffcf560d3529c3f51a114;hb=ee0fd97e97433501befb38b88478ab4eb7487ff5;hp=4f9187394e34052d1151b5fa80d25355ada196fa;hpb=dc50b6218db21e69ba37a1c76d791dc2271370a5;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/valuenode.h b/synfig-core/trunk/src/synfig/valuenode.h index 4f91873..62940c3 100644 --- a/synfig-core/trunk/src/synfig/valuenode.h +++ b/synfig-core/trunk/src/synfig/valuenode.h @@ -69,11 +69,11 @@ if (get_type() != ValueBase::TYPE_NIL && \ !(ValueBase::same_type_as(value->get_type(), type)) && \ !PlaceholderValueNode::Handle::cast_dynamic(value)) { \ - error("%s:%d wrong type for %s: need %s but got %s", \ + error(_("%s:%d wrong type for %s: need %s but got %s"), \ __FILE__, __LINE__, \ link_local_name(i).c_str(), \ - ValueBase::type_name(type).c_str(), \ - ValueBase::type_name(value->get_type()).c_str()); \ + ValueBase::type_local_name(type).c_str(), \ + ValueBase::type_local_name(value->get_type()).c_str()); \ return false; \ } \ variable = value; \ @@ -212,6 +212,9 @@ public: //! Returns the localized name of the ValueNode type virtual String get_local_name()const=0; + //! Return a full description of the ValueNode and its parentage + virtual String get_description(bool show_exported_name = true)const; + //! \writeme virtual ValueNode* clone(const GUID& deriv_guid=GUID())const=0; @@ -346,6 +349,9 @@ public: ValueNode::LooseHandle get_link(int i)const; ValueNode::LooseHandle get_link(const String &name)const { return get_link(get_link_index_from_name(name)); } + String + get_description(int index, bool show_exported_name = true)const; + protected: //! Sets the type of the ValueNode void set_type(ValueBase::Type t) { ValueNode::set_type(t); }