[TD]Apply filters to PropertyFile
This commit is contained in:
@@ -102,6 +102,9 @@ DrawGeomHatch::DrawGeomHatch(void)
|
||||
|
||||
getParameters();
|
||||
|
||||
std::string patFilter("pat files (*.pat *.PAT);;All files (*)");
|
||||
FilePattern.setFilter(patFilter);
|
||||
|
||||
}
|
||||
|
||||
DrawGeomHatch::~DrawGeomHatch()
|
||||
|
||||
@@ -75,9 +75,13 @@ DrawHatch::DrawHatch(void)
|
||||
patternFileName = QString::fromStdString(defaultFileName);
|
||||
}
|
||||
QFileInfo tfi(patternFileName);
|
||||
if (tfi.isReadable()) {
|
||||
HatchPattern.setValue(patternFileName.toUtf8().constData());
|
||||
}
|
||||
if (tfi.isReadable()) {
|
||||
HatchPattern.setValue(patternFileName.toUtf8().constData());
|
||||
}
|
||||
|
||||
std::string svgFilter("Svg files (*.svg *.SVG);;All files (*)");
|
||||
HatchPattern.setFilter(svgFilter);
|
||||
|
||||
}
|
||||
|
||||
DrawHatch::~DrawHatch()
|
||||
|
||||
@@ -75,6 +75,9 @@ DrawSVGTemplate::DrawSVGTemplate()
|
||||
Height.setStatus(App::Property::ReadOnly,true);
|
||||
Width.setStatus(App::Property::ReadOnly,true);
|
||||
Orientation.setStatus(App::Property::ReadOnly,true);
|
||||
|
||||
std::string svgFilter("Svg files (*.svg *.SVG);;All files (*)");
|
||||
Template.setFilter(svgFilter);
|
||||
}
|
||||
|
||||
DrawSVGTemplate::~DrawSVGTemplate()
|
||||
|
||||
@@ -56,6 +56,9 @@ DrawViewImage::DrawViewImage(void)
|
||||
ADD_PROPERTY_TYPE(Width ,(100),vgroup,App::Prop_None,"The width of the image view");
|
||||
ADD_PROPERTY_TYPE(Height ,(100),vgroup,App::Prop_None,"The height of the view");
|
||||
ScaleType.setValue("Custom");
|
||||
|
||||
std::string imgFilter("Image files (*.jpg *.jpeg *.png);;All files (*)");
|
||||
ImageFile.setFilter(imgFilter);
|
||||
}
|
||||
|
||||
DrawViewImage::~DrawViewImage()
|
||||
|
||||
@@ -122,6 +122,9 @@ DrawViewSection::DrawViewSection()
|
||||
|
||||
getParameters();
|
||||
|
||||
std::string hatchFilter("Svg files (*.svg *.SVG);;PAT files (*.pat *.PAT);;All files (*)");
|
||||
FileHatchPattern.setFilter(hatchFilter);
|
||||
|
||||
}
|
||||
|
||||
DrawViewSection::~DrawViewSection()
|
||||
|
||||
Reference in New Issue
Block a user