Unified UI for Bezier and b-spline surfaces

I have unified the user interface for Bezier and b-spline surfaces.
Based on the selection contents the CmdSurfaceBSurf::isActive method
determines which one can be created, and marks it for the activate
method.

For any sort of inappropriate selection contents, including foreign
shapes or mixture of Bezier and b-spline curves, the tool remains
disabled.
This commit is contained in:
balazs-bamer
2015-01-27 10:22:29 +01:00
committed by wmayer
parent 23067d60f2
commit 512671b1e2
3 changed files with 99 additions and 98 deletions

View File

@@ -53,8 +53,7 @@ Gui::MenuItem* Workbench::setupMenuBar() const
Gui::MenuItem* surface = new Gui::MenuItem;
root->insertItem( item, surface );
surface->setCommand("Surface");
*surface << "Surface_Bezier";
*surface << "Surface_BSpline";
*surface << "Surface_BSurf";
/* *surface << "Surface_Filling";
*surface << "Surface_Cut";*/
@@ -67,8 +66,7 @@ Gui::ToolBarItem* Workbench::setupToolBars() const
Gui::ToolBarItem* surface = new Gui::ToolBarItem(root);
surface->setCommand( "Surface" );
*surface << "Surface_Bezier";
*surface << "Surface_BSpline";
*surface << "Surface_BSurf";
/* *surface << "Surface_Filling";
*surface << "Surface_Cut"; */