Skip to content

Commit

Permalink
fix confusing class name
Browse files Browse the repository at this point in the history
  • Loading branch information
WandererFan authored and wwmayer committed May 10, 2017
1 parent 75397d9 commit eb34dc5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Mod/TechDraw/App/DrawViewSection.cpp
Expand Up @@ -173,13 +173,13 @@ void DrawViewSection::onChanged(const App::Property* prop)
prop == &NameGeomPattern ) {
if ((!FileHatchPattern.isEmpty()) &&
(!NameGeomPattern.isEmpty())) {
std::vector<HatchLine> specs =
std::vector<PATLineSpec> specs =
DrawGeomHatch::getDecodedSpecsFromFile(FileHatchPattern.getValue(),NameGeomPattern.getValue());
m_lineSets.clear();
for (auto& hl: specs) {
//hl.dump("hl from section");
LineSet ls;
ls.setHatchLine(hl);
ls.setPATLineSpec(hl);
m_lineSets.push_back(ls);
}

Expand Down
4 changes: 2 additions & 2 deletions src/Mod/TechDraw/App/DrawViewSection.h
Expand Up @@ -46,7 +46,7 @@ namespace TechDraw
{
class DrawProjGroupItem;
class DrawGeomHatch;
class HatchLine;
class PATLineSpec;
class LineSet;
class DashSet;

Expand Down Expand Up @@ -88,7 +88,7 @@ class TechDrawExport DrawViewSection : public DrawViewPart
std::vector<TopoDS_Wire> getSectionFaceWires(void) { return sectionFaceWires; }

std::vector<LineSet> getDrawableLines(int i = 0);
std::vector<HatchLine> getDecodedSpecsFromFile(std::string fileSpec, std::string myPattern);
std::vector<PATLineSpec> getDecodedSpecsFromFile(std::string fileSpec, std::string myPattern);

static const char* SectionDirEnums[];

Expand Down
4 changes: 2 additions & 2 deletions src/Mod/TechDraw/Gui/TaskGeomHatch.cpp
Expand Up @@ -75,7 +75,7 @@ TaskGeomHatch::~TaskGeomHatch()
void TaskGeomHatch::initUi()
{
ui->fcFile->setFileName(QString::fromUtf8(m_file.data(), m_file.size()));
std::vector<std::string> names = HatchLine::getPatternList(m_file);
std::vector<std::string> names = PATLineSpec::getPatternList(m_file);
QStringList qsNames = listToQ(names);
ui->cbName->addItems(qsNames);
int nameIndex = ui->cbName->findText(QString::fromUtf8(m_name.data(),m_name.size()));
Expand Down Expand Up @@ -118,7 +118,7 @@ QStringList TaskGeomHatch::listToQ(std::vector<std::string> in)
void TaskGeomHatch::onFileChanged(void)
{
m_file = ui->fcFile->fileName().toUtf8().constData();
std::vector<std::string> names = HatchLine::getPatternList(m_file);
std::vector<std::string> names = PATLineSpec::getPatternList(m_file);
QStringList qsNames = listToQ(names);
ui->cbName->clear();
ui->cbName->addItems(qsNames);
Expand Down

0 comments on commit eb34dc5

Please sign in to comment.