[TD]Add welding symbol directory preference
This commit is contained in:
@@ -454,6 +454,23 @@
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||
<item>
|
||||
<layout class="QGridLayout" name="gridLayout_3">
|
||||
<item row="0" column="1">
|
||||
<widget class="Gui::PrefFileChooser" name="pfc_DefTemp">
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>TemplateFile</cstring>
|
||||
</property>
|
||||
<property name="prefPath" stdset="0">
|
||||
<cstring>/Mod/TechDraw/Files</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0">
|
||||
<widget class="QLabel" name="label_11">
|
||||
<property name="text">
|
||||
<string>Welding Directory</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
@@ -468,7 +485,7 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="2">
|
||||
<item row="1" column="1">
|
||||
<widget class="Gui::PrefFileChooser" name="pfc_DefDir">
|
||||
<property name="mode">
|
||||
<enum>Gui::FileChooser::Directory</enum>
|
||||
@@ -495,17 +512,7 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2">
|
||||
<widget class="Gui::PrefFileChooser" name="pfc_DefTemp">
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>TemplateFile</cstring>
|
||||
</property>
|
||||
<property name="prefPath" stdset="0">
|
||||
<cstring>/Mod/TechDraw/Files</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="2">
|
||||
<item row="2" column="1">
|
||||
<widget class="Gui::PrefFileChooser" name="pfc_HatchFile">
|
||||
<property name="toolTip">
|
||||
<string>Location of default svg/png fill file</string>
|
||||
@@ -518,14 +525,14 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0">
|
||||
<item row="5" column="0">
|
||||
<widget class="QLabel" name="label_9">
|
||||
<property name="text">
|
||||
<string>PAT File</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="2">
|
||||
<item row="5" column="1">
|
||||
<widget class="Gui::PrefFileChooser" name="pfc_FilePattern">
|
||||
<property name="toolTip">
|
||||
<string>Default location for PAT file</string>
|
||||
@@ -538,7 +545,7 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="2">
|
||||
<item row="3" column="1">
|
||||
<widget class="Gui::PrefFileChooser" name="pfc_LineGroup">
|
||||
<property name="toolTip">
|
||||
<string>Alternate Line Group file</string>
|
||||
@@ -551,6 +558,22 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="1">
|
||||
<widget class="Gui::PrefFileChooser" name="pfc_Welding">
|
||||
<property name="toolTip">
|
||||
<string>Default directory for welding symbols</string>
|
||||
</property>
|
||||
<property name="mode">
|
||||
<enum>Gui::FileChooser::Directory</enum>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>WeldingDir</cstring>
|
||||
</property>
|
||||
<property name="prefPath" stdset="0">
|
||||
<cstring>/Mod/TechDraw/Files</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
|
||||
@@ -68,6 +68,8 @@ void DlgPrefsTechDrawImp::saveSettings()
|
||||
pfc_DefDir->onSave();
|
||||
pfc_HatchFile->onSave();
|
||||
pfc_LineGroup->onSave();
|
||||
pfc_Welding->onSave();
|
||||
|
||||
pfc_FilePattern->onSave();
|
||||
le_NamePattern->onSave();
|
||||
}
|
||||
@@ -97,6 +99,7 @@ void DlgPrefsTechDrawImp::loadSettings()
|
||||
pfc_DefDir->onRestore();
|
||||
pfc_HatchFile->onRestore();
|
||||
pfc_LineGroup->onRestore();
|
||||
pfc_Welding->onRestore();
|
||||
|
||||
pfc_FilePattern->onRestore();
|
||||
le_NamePattern->onRestore();
|
||||
|
||||
@@ -69,6 +69,8 @@ void SymbolChooser::setUiPrimary()
|
||||
loadSymbolNames(m_symbolDir);
|
||||
} else {
|
||||
std::string resourceDir = App::Application::getResourceDir();
|
||||
std::string defPath = "Mod/TechDraw/Symbols/Welding/AWS/";
|
||||
resourceDir = resourceDir + defPath;
|
||||
QString defDir = QString::fromUtf8(resourceDir.c_str());
|
||||
ui->fcSymbolDir->setFileName(defDir);
|
||||
loadSymbolNames(defDir);
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
id="svg3085"
|
||||
height="64"
|
||||
width="64"
|
||||
version="1.1">
|
||||
<defs
|
||||
id="defs3087" />
|
||||
<metadata
|
||||
id="metadata3090">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<path
|
||||
id="path1016"
|
||||
d="M 58.663735,60 H 2.6637352 V 4 Z"
|
||||
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1.88976383;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 938 B |
Reference in New Issue
Block a user