void ArbRamp::chooseAction(QAction *action) { if(action==addAction) addPoint(); else if(action==delAction) delPoint(); else curLine=-1; wasModified(); }
void VtkColorTable::setupSignals() { connect(mainTable, SIGNAL(cellDoubleClicked(int,int)), this, SLOT(cellEditingSlot(int,int))); connect(mainTable, SIGNAL(cellChanged(int,int)), this, SLOT(updateCell(int,int))); connect(clampCheckBox, SIGNAL(stateChanged(int)), this, SLOT(updateClamp(int))); connect(newButton, SIGNAL(clicked()), this, SLOT(newPoint())); connect(delButton, SIGNAL(clicked()), this, SLOT(delPoint())); }