bool hasPrevPoint = movingPointIndex > 0;
bool hasNextPoint = movingPointIndex < showedColorPoints.size()-1;
- pColorPoint * prevPoint = hasPrevPoint? showedColorPoints[movingPointIndex-1]: NULL;
+ pColorPoint * prevPoint = hasPrevPoint? showedColorPoints[movingPointIndex-1]: NULL;
pColorPoint * nextPoint = hasNextPoint ? showedColorPoints[movingPointIndex+1]: NULL;
if ( hasPrevPoint && prevPoint!=NULL )
*/
void pColorBar :: onDeleteColorPoint ( wxCommandEvent& anEvent )
{
- bool deletedPoint = false;
- double real_x = getOrientation() ? convertToRealValue( clickedX ) : convertToRealValue( clickedY );
- deletedPoint = deleteColorPoint(real_x);
+ bool deletedPoint = false;
+ double real_x = getOrientation() ? convertToRealValue( clickedX ) : convertToRealValue( clickedY );
+ deletedPoint = deleteColorPoint(real_x);
// Inform deletedPoint event
if ( deletedPoint )
{
//RefreshForce();
createAndSendEvent( wxEVT_REMOVED_POINT );
- }
+ } //if
}
/**
{
//RefreshForce();
createAndSendEvent( wxEVT_CHANGED_POINT );
- }
+ } // if
}
+
+
/**
* Reacts to the cntID_TRIANGLES_UP wxCommandEvent and changes the assigned figure to -triangles up- for the color points of the color bar.
* param & anEvent The wxCommandEvent actioned event