1 /* === S Y N F I G ========================================================= */
2 /*! \file valuedesclink.h
3 ** \brief Template File
8 ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
9 ** Copyright (c) 2007 Chris Moore
10 ** Copyright (c) 2010 Carlos López
12 ** This package is free software; you can redistribute it and/or
13 ** modify it under the terms of the GNU General Public License as
14 ** published by the Free Software Foundation; either version 2 of
15 ** the License, or (at your option) any later version.
17 ** This package is distributed in the hope that it will be useful,
18 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 ** General Public License for more details.
23 /* ========================================================================= */
25 /* === S T A R T =========================================================== */
27 #ifndef __SYNFIG_APP_ACTION_VALUEDESCLINK_H
28 #define __SYNFIG_APP_ACTION_VALUEDESCLINK_H
30 /* === H E A D E R S ======================================================= */
32 #include <synfigapp/action.h>
33 #include <synfigapp/value_desc.h>
36 /* === M A C R O S ========================================================= */
38 /* === T Y P E D E F S ===================================================== */
40 /* === C L A S S E S & S T R U C T S ======================================= */
50 friend class ValueDescLinkOpposite;
51 //! List of Value Descriptions retrieved from the action Parameters list
53 std::list<ValueDesc> value_desc_list;
54 //! Selected value node from the Value Descriptions (maybe none)
55 //! to which the others would link
56 synfig::ValueNode::Handle link_value_node;
57 //! If poison is true then Link is not possible (two exported value nodes found)
59 //! Used to monitorize the tie decision when selecting the link value node
61 //! Message to inform the status of the tie decision when selecting the link value node
62 synfig::String status_message;
63 //! Time where the value nodes are evaluated
65 //! Scalar value of the link value node. It is used for linking tangents.
66 //! In the synfig::ParamDesc list there is a value used to draw the tangents on the
67 //! canvas that is called scalar
68 synfig::Real link_scalar;
69 //! If true then link opposite is being called.
75 static ParamVocab get_param_vocab();
76 static bool is_candidate(const ParamList &x);
78 virtual bool set_param(const synfig::String& name, const Param &);
79 virtual bool is_ready()const;
81 virtual void prepare();
86 class ValueDescLinkOpposite :
91 ValueDescLinkOpposite();
93 static ParamVocab get_param_vocab();
94 static bool is_candidate(const ParamList &x);
96 virtual bool set_param(const synfig::String& name, const Param &);
97 virtual bool is_ready()const;
99 virtual void prepare();
104 }; // END of namespace action
105 }; // END of namespace studio
107 /* === E N D =============================================================== */