Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 5901 → Rev 5902

/branches/Version13x/Scribus/scribus/guidemanager.cpp
96,6 → 96,9
resetMarginsForPage();
clearRestoreHorizontalList();
clearRestoreVerticalList();
// TODO: implement some auto into GUI restore algorithm
horizontalAutoCountSpin_valueChanged(1);
verticalAutoCountSpin_valueChanged(1);
}
 
void GuideManager::unitChange()
321,8 → 324,14
copyGuidesToAllPages(GuideManagerCore::Auto);
}
 
void GuideManager::horizontalAutoCountSpin_valueChanged(int)
void GuideManager::horizontalAutoCountSpin_valueChanged(int val)
{
bool enable = (val == 1) ? false : true;
horizontalAutoGapCheck->setEnabled(enable);
if (enable && horizontalAutoGapCheck->isChecked())
horizontalAutoGapSpin->setEnabled(true);
else
horizontalAutoGapSpin->setEnabled(false);
getAutoHorizontals();
}
 
337,8 → 346,14
getAutoHorizontals();
}
 
void GuideManager::verticalAutoCountSpin_valueChanged(int)
void GuideManager::verticalAutoCountSpin_valueChanged(int val)
{
bool enable = (val == 1) ? false : true;
verticalAutoGapCheck->setEnabled(enable);
if (enable && verticalAutoGapCheck->isChecked())
verticalAutoGapSpin->setEnabled(true);
else
verticalAutoGapSpin->setEnabled(false);
getAutoVerticals();
}
 
/branches/Version13x/Scribus/scribus/guidemanagerbase.ui
335,6 → 335,9
<property name="name">
<cstring>horizontalAutoCountSpin</cstring>
</property>
<property name="specialValueText">
<string>Off</string>
</property>
<property name="minValue">
<number>1</number>
</property>
409,6 → 412,9
<property name="name">
<cstring>verticalAutoCountSpin</cstring>
</property>
<property name="specialValueText">
<string>Off</string>
</property>
<property name="minValue">
<number>1</number>
</property>
686,6 → 692,7
</connections>
<includes>
<include location="local" impldecl="in declaration">scrpalettebase.h</include>
<include location="local" impldecl="in implementation">guidemanagerbase.ui.h</include>
</includes>
<slots>
<slot>addHorButton_clicked()</slot>