traverso-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Traverso-commit] traverso/src/core FadeCurve.cpp


From: Nicola Doebelin
Subject: [Traverso-commit] traverso/src/core FadeCurve.cpp
Date: Thu, 14 Feb 2008 19:58:43 +0000

CVSROOT:        /sources/traverso
Module name:    traverso
Changes by:     Nicola Doebelin <n_doebelin>    08/02/14 19:58:43

Modified files:
        src/core       : FadeCurve.cpp 

Log message:
        fixes bug#22302

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/core/FadeCurve.cpp?cvsroot=traverso&r1=1.33&r2=1.34

Patches:
Index: FadeCurve.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/core/FadeCurve.cpp,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -b -r1.33 -r1.34
--- FadeCurve.cpp       21 Jan 2008 16:22:13 -0000      1.33
+++ FadeCurve.cpp       14 Feb 2008 19:58:42 -0000      1.34
@@ -17,7 +17,7 @@
 along with this program; if not, write to the Free Software
 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA.
 
-$Id: FadeCurve.cpp,v 1.33 2008/01/21 16:22:13 r_sijrier Exp $
+$Id: FadeCurve.cpp,v 1.34 2008/02/14 19:58:42 n_doebelin Exp $
 */
  
 #include "FadeCurve.h"
@@ -60,18 +60,18 @@
        m_controlPoints.append(QPointF(0.75, 0.75));
        m_controlPoints.append(QPointF(1.0, 1.0));
        
-       m_bendFactor = 0.5;
-       m_strenghtFactor = 1;
+       m_bendFactor = 0.0;
+       m_strenghtFactor = 0.5;
        m_mode = 2;
        m_raster = 0;
        m_bypass = false;
        
-       init();
-       
        connect(this, SIGNAL(stateChanged()), this, 
SLOT(solve_node_positions()));
        connect(this, SIGNAL(bendValueChanged()), this, SIGNAL(stateChanged()));
        connect(this, SIGNAL(strengthValueChanged()), this, 
SIGNAL(stateChanged()));
        connect(this, SIGNAL(modeChanged()), this, SIGNAL(stateChanged()));
+
+       init();
 }
 
 FadeCurve::~ FadeCurve( )
@@ -126,10 +126,10 @@
 int FadeCurve::set_state( const QDomNode & node )
 {
        QDomElement e = node.toElement();
-       m_bendFactor = e.attribute( "bendfactor", "0.5" ).toDouble();
+       m_bendFactor = e.attribute( "bendfactor", "0.0" ).toDouble();
        m_strenghtFactor = e.attribute( "strengthfactor", "0.5" ).toDouble();
        m_bypass = e.attribute( "bypassed", "0" ).toInt();
-       m_mode = e.attribute( "mode", "0" ).toInt();
+       m_mode = e.attribute( "mode", "2" ).toInt();
        m_raster = e.attribute( "raster", "0" ).toInt();
        
        QStringList controlPointsList = e.attribute( "controlpoints", 
"0.0,0.0;0.25,0.25;0.75,0.75;1.0,1.0" ).split(";");
@@ -205,7 +205,7 @@
 
 
 void FadeCurve::set_shape(QString shapeName)
-{
+{/*
        QDomDocument doc("FadeShapes");
        
        if (defaultShapes.contains(shapeName)) {
@@ -253,7 +253,7 @@
        }
        
        emit stateChanged();
-}
+*/}
 
 void FadeCurve::solve_node_positions( )
 {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]