From 3ef2ca714e79988d13c52c4ec0c6657e1130fb42 Mon Sep 17 00:00:00 2001 From: vsv Date: Tue, 2 Dec 2014 16:44:35 +0300 Subject: [PATCH] Icon for placement operation --- src/FeaturesPlugin/plugin-Features.xml | 2 +- src/PartSet/PartSet_Module.cpp | 2 +- src/PartSet/PartSet_icons.qrc | 1 + src/PartSet/icons/placement.png | Bin 0 -> 982 bytes 4 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 src/PartSet/icons/placement.png diff --git a/src/FeaturesPlugin/plugin-Features.xml b/src/FeaturesPlugin/plugin-Features.xml index cbe584eab..5177058f3 100644 --- a/src/FeaturesPlugin/plugin-Features.xml +++ b/src/FeaturesPlugin/plugin-Features.xml @@ -7,7 +7,7 @@ - + diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index 3cb8ce247..490ffdfd9 100644 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -310,7 +310,7 @@ void PartSet_Module::onMousePressed(ModuleBase_IViewWindow* theWnd, QMouseEvent* QList aObjects = aSelect->getHighlighted(); myEditingFeatures.clear(); myEditingAttr.clear(); - if (aObjects.size() > 0) { + if (aObjects.size() == 1) { foreach(ModuleBase_ViewerPrs aPrs, aObjects) { FeaturePtr aFeature = ModelAPI_Feature::feature(aObjects.first().object()); if (aFeature) { diff --git a/src/PartSet/PartSet_icons.qrc b/src/PartSet/PartSet_icons.qrc index d0985d40c..b0bffcc5a 100644 --- a/src/PartSet/PartSet_icons.qrc +++ b/src/PartSet/PartSet_icons.qrc @@ -27,5 +27,6 @@ icons/radius_constr.png icons/shape_group.png icons/fixed.png + icons/placement.png diff --git a/src/PartSet/icons/placement.png b/src/PartSet/icons/placement.png new file mode 100644 index 0000000000000000000000000000000000000000..906a1ad49c4b73878a09e25e68a502da6fa80cba GIT binary patch literal 982 zcmV;{11bE8P)004R=004l4008;_004mL004C`008P>0026e000+nl3&F}00009 za7bBm000XT000XT0n*)m`~Uy|7<5HgbW?9;ba!ELWdLwtX>N2bZe?^JG%heMGmPe! zPyhe}C`m*?R5(wi)5%X$Q4|JnmMj>;7zPOiEd>#%-~dvpC=o*`O_kC~paoJ|v4EAJ z1hLS9l!DPHVWASEfmA^k7~_V8JO2nJq6@_#4snXCKJU4GEiFS>c#^a%LB}kZ*g(JdRMwrE7LEkkW$84U5I5jYbSQ=2U6V#@@gH}S=j>q`~&Q7nPj&+ zggnJLKR7rz2&dD@&y(G5hfb%1UayDIXoOa)g-WFgbS;(1WT?M9&pWHRI1ii6hJB{% zDAWwDfmpf;yb|(e6!>liR%=-lC@Cp{L?R)umPH~Ki}^FF=$b`E=PXLC(=Zqe40Iwl z2)+yfmp#C@R*n@E6mU2-HI+aEOC}u+y2S%+Q#fe3#nC!;x{8d+1`$2k68jS{Zb#*gt}cOqYP0g@AT$mMd@q0osx3S?$x0)Og(Us@I&5)u+ZL7FxV zNFNs$$2%j829k5!hHQCLD5wDbD*fQ+PT*5F@X-P4CIqAkLunW}>5RHwEg}BOs>?0b-Hf%kpDyMCmlrLh6s z2u_~5U>nziR6#T*CI;Dun+0%*Hm?Enq6a=xr~|fXGmt6_&5}1VFtAxT;M9@-Y_g-o zuF((KhOI!VFjN4AE*TIV9qs=E;ZLHXqP7F61T;eb4;jOBxsD?xG5`Po07*qoM6N<$ Eg8u5Cc>n+a literal 0 HcmV?d00001 -- 2.39.2