[TD]Add parameters to control drawing update
This commit is contained in:
@@ -7,12 +7,15 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>558</width>
|
||||
<height>935</height>
|
||||
<height>1095</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>TechDraw General</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Default value for new Page</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_5">
|
||||
<item row="0" column="0">
|
||||
<widget class="QGroupBox" name="gbMisc">
|
||||
@@ -141,25 +144,6 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0">
|
||||
<widget class="Gui::PrefCheckBox" name="cb_PageUpdate">
|
||||
<property name="toolTip">
|
||||
<string>Update Pages as scheduled or skip</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Keep Pages Up to Date</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>KeepPagesUpToDate</cstring>
|
||||
</property>
|
||||
<property name="prefPath" stdset="0">
|
||||
<cstring>Mod/TechDraw/General</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="0">
|
||||
<widget class="Gui::PrefCheckBox" name="cb_AutoDist">
|
||||
<property name="toolTip">
|
||||
<string>Automatically distribute secondary views.</string>
|
||||
@@ -178,6 +162,76 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="0">
|
||||
<widget class="QLabel" name="label_12">
|
||||
<property name="font">
|
||||
<font>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Drawing Updates</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="0">
|
||||
<widget class="Gui::PrefCheckBox" name="cb_Global">
|
||||
<property name="toolTip">
|
||||
<string>Update drawings with changes in 3D model</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Update with 3D (Global Policy)</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>GlobalUpdateDrawings</cstring>
|
||||
</property>
|
||||
<property name="prefPath" stdset="0">
|
||||
<cstring>Mod/TechDraw/General</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="7" column="0">
|
||||
<widget class="Gui::PrefCheckBox" name="cb_Override">
|
||||
<property name="toolTip">
|
||||
<string>Allow Page to override Global update setting</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Allow Page Override</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>AllowPageOverride</cstring>
|
||||
</property>
|
||||
<property name="prefPath" stdset="0">
|
||||
<cstring>Mod/TechDraw/General</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="8" column="0">
|
||||
<widget class="Gui::PrefCheckBox" name="cb_PageUpdate">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>Update Pages as scheduled or skip updates. This is the default setting for new Pages.</p></body></html></string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Keep Page Up to Date (default)</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>KeepPagesUpToDate</cstring>
|
||||
</property>
|
||||
<property name="prefPath" stdset="0">
|
||||
<cstring>Mod/TechDraw/General</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
|
||||
@@ -50,6 +50,8 @@ void DlgPrefsTechDrawImp::saveSettings()
|
||||
cb_Faces->onSave();
|
||||
cb_SectionEdges->onSave();
|
||||
cb_PageUpdate->onSave();
|
||||
cb_Global->onSave();
|
||||
cb_Override->onSave();
|
||||
cb_AutoDist->onSave();
|
||||
|
||||
pcb_Normal->onSave();
|
||||
@@ -81,6 +83,8 @@ void DlgPrefsTechDrawImp::loadSettings()
|
||||
cb_Faces->onRestore();
|
||||
cb_SectionEdges->onRestore();
|
||||
cb_PageUpdate->onRestore();
|
||||
cb_Global->onRestore();
|
||||
cb_Override->onRestore();
|
||||
cb_AutoDist->onRestore();
|
||||
|
||||
pcb_Normal->onRestore();
|
||||
|
||||
@@ -259,8 +259,8 @@ bool ViewProviderPage::showMDIViewPage()
|
||||
Gui::getMainWindow()->addWindow(m_mdiView);
|
||||
m_mdiView->viewAll(); //this is empty function
|
||||
m_mdiView->showMaximized();
|
||||
if(!getDrawPage()->KeepUpdated.getValue())
|
||||
getDrawPage()->KeepUpdated.setValue(true);
|
||||
// if(!getDrawPage()->KeepUpdated.getValue())
|
||||
// getDrawPage()->KeepUpdated.setValue(true);
|
||||
} else {
|
||||
m_mdiView->updateDrawing(true);
|
||||
m_mdiView->redrawAllViews();
|
||||
|
||||
Reference in New Issue
Block a user