connect (ui.buttonLeftRight, SIGNAL (clicked()), this , SLOT ( slotSetMoveX() ) );
connect (ui.buttonUpDown, SIGNAL (clicked()), this , SLOT ( slotSetMoveY() ) );
connect (ui.buttonShowInTimeline, SIGNAL (clicked()), this , SLOT ( slotShowInTimeline() ) );
- connect (ui.buttonNew, SIGNAL (clicked()), this , SLOT ( slotSetNew() ) );
+ connect (ui.buttonNewPoints, SIGNAL (clicked()), this , SLOT ( slotSetNew() ) );
connect (ui.buttonHelp, SIGNAL (clicked()), this , SLOT ( slotSetHelp() ) );
-
+ connect (ui.parameterList, SIGNAL (currentIndexChanged ( const QString & ) ), this, SLOT( slotParameterChanged(const QString&) ) );
ui.infoBox->hide();
updateButtonStatus();
data1[300]=133;
QPair<QString,QMap<int,QVariant> > testpair1("dx",data1);
points.append(testpair1);
+ ui.parameterList->addItem("all");
+ ui.parameterList->addItem("gray");
+ ui.parameterList->addItem("dx");
ui.kplotwidget->setPointLists(points,0,305);
}
void EffectStackView::slotSetNew(){
-
+ ui.kplotwidget->setNewPoints(!ui.kplotwidget->isNewPoints());
+ updateButtonStatus();
}
void EffectStackView::slotSetHelp(){
ui.buttonShowInTimeline->setEnabled( ui.kplotwidget->isMoveX() || ui.kplotwidget->isMoveY () );
ui.buttonShowInTimeline->setDown(ui.kplotwidget->isMoveTimeline());
+
+ ui.buttonNewPoints->setEnabled(ui.parameterList->currentText()!="all");
+ ui.buttonNewPoints->setDown(ui.kplotwidget->isNewPoints());
+}
+void EffectStackView::slotParameterChanged(const QString& text){
+
+ //ui.buttonNewPoints->setEnabled(text!="all");
+ updateButtonStatus();
}
+
#include "effectstackview.moc"
m_moveX=false;
m_moveY=true;
m_moveTimeline=true;
+ m_newPoints=false;
}
void ParameterPlotter::setPointLists(const QList< QPair<QString, QMap< int , QVariant > > >& params,int startframe, int endframe){
m_moveTimeline=b;
}
+void ParameterPlotter::setNewPoints(bool b){
+ m_newPoints=b;
+}
+
bool ParameterPlotter::isMoveX(){
return m_moveX;
}
bool ParameterPlotter::isMoveTimeline(){
return m_moveTimeline;
}
+
+bool ParameterPlotter::isNewPoints(){
+ return m_newPoints;
+}
\ No newline at end of file
void setMoveX(bool);
void setMoveY(bool);
void setMoveTimeLine(bool);
+ void setNewPoints(bool);
bool isMoveX();
bool isMoveY();
bool isMoveTimeline();
+ bool isNewPoints();
private:
KPlotPoint* movepoint;
- bool m_moveX,m_moveY,m_moveTimeline;
+ bool m_moveX,m_moveY,m_moveTimeline,m_newPoints;
QPoint oldmousepoint;
int maxx,maxy;
QStringList parameterNameList;