fix confusing class name
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace TechDraw
|
||||
{
|
||||
class DrawProjGroupItem;
|
||||
class DrawGeomHatch;
|
||||
class HatchLine;
|
||||
class PATLineSpec;
|
||||
class LineSet;
|
||||
class DashSet;
|
||||
|
||||
@@ -88,7 +88,7 @@ public:
|
||||
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[];
|
||||
|
||||
|
||||
@@ -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()));
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user