void SurfaceDialog::accept() { if (boxType->currentIndex()) acceptParametricSurface(); else acceptFunction(); }
void FunctionDialog::accept() { switch (boxType->currentIndex()) { case 0: acceptFunction(); break; case 1: acceptParametric(); break; case 2: acceptPolar(); break; } close(); }