+ Add new SVG icons
This commit is contained in:
@@ -38,10 +38,10 @@ using namespace std;
|
||||
|
||||
PROPERTY_SOURCE(PartGui::ViewProviderPrism, PartGui::ViewProviderPart)
|
||||
|
||||
|
||||
|
||||
ViewProviderPrism::ViewProviderPrism()
|
||||
{
|
||||
//sPixmap = "Tree_Part_Cone_Parametric.svg";
|
||||
sPixmap = "Tree_Part_Prism.svg";
|
||||
}
|
||||
|
||||
ViewProviderPrism::~ViewProviderPrism()
|
||||
@@ -49,8 +49,6 @@ ViewProviderPrism::~ViewProviderPrism()
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
// **********************************************************************************
|
||||
|
||||
std::vector<std::string> ViewProviderPrism::getDisplayModes(void) const
|
||||
@@ -66,3 +64,35 @@ std::vector<std::string> ViewProviderPrism::getDisplayModes(void) const
|
||||
|
||||
return StrList;
|
||||
}
|
||||
|
||||
//**************************************************************************
|
||||
// Construction/Destruction
|
||||
|
||||
PROPERTY_SOURCE(PartGui::ViewProviderWedge, PartGui::ViewProviderPart)
|
||||
|
||||
|
||||
ViewProviderWedge::ViewProviderWedge()
|
||||
{
|
||||
sPixmap = "Tree_Part_Wedge.svg";
|
||||
}
|
||||
|
||||
ViewProviderWedge::~ViewProviderWedge()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// **********************************************************************************
|
||||
|
||||
std::vector<std::string> ViewProviderWedge::getDisplayModes(void) const
|
||||
{
|
||||
// get the modes of the father
|
||||
std::vector<std::string> StrList;
|
||||
|
||||
// add your own modes
|
||||
StrList.push_back("Flat Lines");
|
||||
StrList.push_back("Shaded");
|
||||
StrList.push_back("Wireframe");
|
||||
StrList.push_back("Points");
|
||||
|
||||
return StrList;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user