Skip to content

Commit

Permalink
FEM: DataAlongLine: Icon
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhizenz authored and yorikvanhavre committed Dec 21, 2016
1 parent 46d8a64 commit 9e12af3
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 5 deletions.
28 changes: 26 additions & 2 deletions src/Mod/Fem/Gui/Command.cpp
Expand Up @@ -471,7 +471,7 @@ void CmdFemConstraintTransform::activated(int)
Analysis->getNameInDocument(),Analysis->getNameInDocument(),FeatName.c_str());

doCommand(Doc,"%s",gethideMeshShowPartStr(FeatName).c_str()); //OvG: Hide meshes and show parts

updateActive();

doCommand(Gui,"Gui.activeDocument().setEdit('%s')",FeatName.c_str());
Expand Down Expand Up @@ -602,7 +602,7 @@ void CmdFemConstraintFluidBoundary::activated(int)
doCommand(Doc,"App.activeDocument().%s.Member = App.activeDocument().%s.Member + [App.activeDocument().%s]",
Analysis->getNameInDocument(),Analysis->getNameInDocument(),FeatName.c_str());

doCommand(Doc,"%s",gethideMeshShowPartStr(FeatName).c_str()); //OvG: Hide meshes and show parts
doCommand(Doc,"%s",gethideMeshShowPartStr(FeatName).c_str()); //OvG: Hide meshes and show parts
updateActive();

doCommand(Gui,"Gui.activeDocument().setEdit('%s')",FeatName.c_str());
Expand Down Expand Up @@ -1123,6 +1123,29 @@ bool CmdFemPostCreateClipFilter::isActive(void)
return hasActiveDocument();
}

DEF_STD_CMD_A(CmdFemPostCreateDataAlongLineFilter);

CmdFemPostCreateDataAlongLineFilter::CmdFemPostCreateDataAlongLineFilter()
: Command("Fem_PostCreateDataAlongLineFilter")
{
sAppModule = "Fem";
sGroup = QT_TR_NOOP("Fem");
sMenuText = QT_TR_NOOP("Define/create a clip filter which clips a field along a line");
sToolTipText = QT_TR_NOOP("Define/create a clip filter which clips a field along a line");
sWhatsThis = "Fem_PostCreateDataAlongLineFilter";
sStatusTip = sToolTipText;
sPixmap = "fem-DataAlongLine";
}

void CmdFemPostCreateDataAlongLineFilter::activated(int)
{
}

bool CmdFemPostCreateDataAlongLineFilter::isActive(void)
{
return hasActiveDocument();
}

DEF_STD_CMD_A(CmdFemPostCreateScalarClipFilter);

CmdFemPostCreateScalarClipFilter::CmdFemPostCreateScalarClipFilter()
Expand Down Expand Up @@ -1456,6 +1479,7 @@ void CreateFemCommands(void)
rcCmdMgr.addCommand(new CmdFemConstraintTransform());
#ifdef FC_USE_VTK
rcCmdMgr.addCommand(new CmdFemPostCreateClipFilter);
rcCmdMgr.addCommand(new CmdFemPostCreateDataAlongLineFilter);
rcCmdMgr.addCommand(new CmdFemPostCreateScalarClipFilter);
rcCmdMgr.addCommand(new CmdFemPostWarpVectorFilter);
rcCmdMgr.addCommand(new CmdFemPostFunctions);
Expand Down
7 changes: 4 additions & 3 deletions src/Mod/Fem/Gui/Resources/Fem.qrc
@@ -1,5 +1,5 @@
<RCC>
<qresource>
<qresource>
<file>icons/fem-add-fem-mesh.svg</file>
<file>icons/fem-add-material.svg</file>
<file>icons/fem-add-part.svg</file>
Expand Down Expand Up @@ -48,14 +48,15 @@
<file>icons/preferences-fem.svg</file>

<file>icons/fem-clip.png</file>
<file>icons/fem-DataAlongLine.png</file>
<file>icons/fem-clip-scalar.png</file>
<file>icons/fem-cut.png</file>
<file>icons/fem-isosurface.png</file>
<file>icons/fem-warp.png</file>

<file>translations/Fem_af.qm</file>
<file>translations/Fem_de.qm</file>
<file>translations/Fem_fi.qm</file>
<file>translations/Fem_fi.qm</file>
<file>translations/Fem_fr.qm</file>
<file>translations/Fem_hr.qm</file>
<file>translations/Fem_it.qm</file>
Expand All @@ -80,4 +81,4 @@
<file>translations/Fem_el.qm</file>
<file>translations/Fem_sl.qm</file>
</qresource>
</RCC>
</RCC>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/Mod/Fem/Gui/Workbench.cpp
Expand Up @@ -103,6 +103,7 @@ Gui::ToolBarItem* Workbench::setupToolBars() const
<< "Fem_PostCreateScalarClipFilter"
<< "Fem_PostCreateCutFilter"
<< "Fem_PostCreateWarpVectorFilter"
<< "Fem_PostCreateDataAlongLineFilter"
<< "Separator"
<< "Fem_PostCreateFunctions";
#endif
Expand Down

0 comments on commit 9e12af3

Please sign in to comment.