Surface: new icon for existing Surface_CurveOnMesh command
Add this command to the Surface toolbar.
This commit is contained in:
@@ -63,7 +63,6 @@
|
||||
#include <App/PropertyLinks.h>
|
||||
#include "Mod/Part/App/PartFeature.h"
|
||||
|
||||
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
//===========================================================================
|
||||
// CmdSurfaceCut THIS IS THE SURFACE CUT COMMAND
|
||||
@@ -199,6 +198,7 @@ CmdSurfaceCurveOnMesh::CmdSurfaceCurveOnMesh()
|
||||
sToolTipText = QT_TR_NOOP("Curve on mesh");
|
||||
sWhatsThis = "Surface_CurveOnMesh";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "Surface_CurveOnMesh";
|
||||
}
|
||||
|
||||
void CmdSurfaceCurveOnMesh::activated(int)
|
||||
@@ -294,11 +294,12 @@ bool CmdSurfaceSections::isActive(void)
|
||||
void CreateSurfaceCommands(void)
|
||||
{
|
||||
Gui::CommandManager &rcCmdMgr = Gui::Application::Instance->commandManager();
|
||||
/* rcCmdMgr.addCommand(new CmdSurfaceFilling());
|
||||
rcCmdMgr.addCommand(new CmdSurfaceCut());*/
|
||||
/*
|
||||
rcCmdMgr.addCommand(new CmdSurfaceCut());
|
||||
*/
|
||||
rcCmdMgr.addCommand(new CmdSurfaceFilling());
|
||||
rcCmdMgr.addCommand(new CmdSurfaceGeomFillSurface());
|
||||
rcCmdMgr.addCommand(new CmdSurfaceCurveOnMesh());
|
||||
rcCmdMgr.addCommand(new CmdSurfaceExtendFace());
|
||||
rcCmdMgr.addCommand(new CmdSurfaceSections());
|
||||
rcCmdMgr.addCommand(new CmdSurfaceExtendFace());
|
||||
rcCmdMgr.addCommand(new CmdSurfaceCurveOnMesh());
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
<qresource>
|
||||
<file>icons/Surface_BezierSurface.svg</file>
|
||||
<file>icons/Surface_BSplineSurface.svg</file>
|
||||
<file>icons/Surface_CurveOnMesh.svg</file>
|
||||
<file>icons/Surface_Cut.svg</file>
|
||||
<file>icons/Surface_Extend.svg</file>
|
||||
<file>icons/Surface_Filling.svg</file>
|
||||
|
||||
2208
src/Mod/Surface/Gui/Resources/icons/Surface_CurveOnMesh.svg
Normal file
2208
src/Mod/Surface/Gui/Resources/icons/Surface_CurveOnMesh.svg
Normal file
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 71 KiB |
@@ -52,13 +52,14 @@ Gui::MenuItem* Workbench::setupMenuBar() const
|
||||
Gui::MenuItem* surface = new Gui::MenuItem;
|
||||
root->insertItem( item, surface );
|
||||
surface->setCommand("Surface");
|
||||
*surface << "Surface_CurveOnMesh"
|
||||
<< "Surface_ExtendFace"
|
||||
<< "Surface_Filling"
|
||||
*surface << "Surface_Filling"
|
||||
<< "Surface_GeomFillSurface"
|
||||
<< "Surface_Sections";
|
||||
/* *surface << "Surface_Filling";
|
||||
*surface << "Surface_Cut";*/
|
||||
<< "Surface_Sections"
|
||||
<< "Surface_ExtendFace"
|
||||
<< "Surface_CurveOnMesh";
|
||||
/*
|
||||
*surface << "Surface_Cut";
|
||||
*/
|
||||
|
||||
return root;
|
||||
}
|
||||
@@ -68,12 +69,15 @@ Gui::ToolBarItem* Workbench::setupToolBars() const
|
||||
Gui::ToolBarItem* root = StdWorkbench::setupToolBars();
|
||||
|
||||
Gui::ToolBarItem* surface = new Gui::ToolBarItem(root);
|
||||
surface->setCommand( "Surface" );
|
||||
surface->setCommand("Surface");
|
||||
*surface << "Surface_Filling"
|
||||
<< "Surface_GeomFillSurface"
|
||||
<< "Surface_Sections"
|
||||
<< "Surface_ExtendFace";
|
||||
/* *surface << "Surface_Cut"; */
|
||||
<< "Surface_ExtendFace"
|
||||
<< "Surface_CurveOnMesh";
|
||||
/*
|
||||
*surface << "Surface_Cut";
|
||||
*/
|
||||
|
||||
return root;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user