Skip to content

Commit

Permalink
Surface: [skip ci] add icon for sections command
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Sep 28, 2020
1 parent a6c55ac commit a4176fa
Show file tree
Hide file tree
Showing 5 changed files with 312 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Mod/Surface/Gui/Command.cpp
Expand Up @@ -272,7 +272,7 @@ CmdSurfaceSections::CmdSurfaceSections()
sToolTipText = QT_TR_NOOP("Creates a surface from a series of section curves");
sStatusTip = QT_TR_NOOP("Creates a surface from a series of section curves");
sWhatsThis = "Surface_Sections";
//sPixmap = "Surface_Sections";
sPixmap = "Surface_Sections";
}

void CmdSurfaceSections::activated(int iMsg)
Expand Down
1 change: 1 addition & 0 deletions src/Mod/Surface/Gui/Resources/Surface.qrc
Expand Up @@ -4,6 +4,7 @@
<file>icons/BSplineSurf.svg</file>
<file>icons/Surface_Cut.svg</file>
<file>icons/Surface_Filling.svg</file>
<file>icons/Surface_Sections.svg</file>
<file>icons/Sewing.svg</file>
</qresource>
</RCC>
307 changes: 307 additions & 0 deletions src/Mod/Surface/Gui/Resources/icons/Surface_Sections.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/Mod/Surface/Gui/TaskSections.cpp
Expand Up @@ -553,7 +553,7 @@ TaskSections::TaskSections(ViewProviderSections* vp, Surface::Sections* obj)
// first task box
widget1 = new SectionsPanel(vp, obj);
Gui::TaskView::TaskBox* taskbox1 = new Gui::TaskView::TaskBox(
Gui::BitmapFactory().pixmap("BezSurf"),
Gui::BitmapFactory().pixmap("Surface_Sections"),
widget1->windowTitle(), true, 0);
taskbox1->groupLayout()->addWidget(widget1);
Content.push_back(taskbox1);
Expand Down
3 changes: 2 additions & 1 deletion src/Mod/Surface/Gui/Workbench.cpp
Expand Up @@ -70,7 +70,8 @@ Gui::ToolBarItem* Workbench::setupToolBars() const
Gui::ToolBarItem* surface = new Gui::ToolBarItem(root);
surface->setCommand( "Surface" );
*surface << "Surface_Filling"
<< "Surface_GeomFillSurface";
<< "Surface_GeomFillSurface"
<< "Surface_Sections";
/* *surface << "Surface_Cut"; */

return root;
Expand Down

0 comments on commit a4176fa

Please sign in to comment.