Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 3618 → Rev 3619

/branches/Version13x/Scribus/scribus/marginWidget.cpp
200,7 → 200,7
PresetLayout::PresetLayout(QWidget *parent, const char * name) : QComboBox(parent, name)
{
insertItem(tr("None"), PresetLayout::none);
insertItem(tr("Book"), PresetLayout::book);
insertItem(tr("Guttenberg"), PresetLayout::guttenberg);
insertItem(tr("Magazine"), PresetLayout::magazine);
insertItem(tr("Fibonacci"), PresetLayout::fibonacci);
insertItem(tr("Golden Mean"), PresetLayout::goldencut);
207,7 → 207,7
insertItem(tr("Nine Parts"), PresetLayout::nineparts);
setCurrentItem(PresetLayout::none);
 
QToolTip::add(this, "<qt>" +tr("You can select predefined page layout here. 'None' leave margins as is, 'Book' sets margins classically (Gutenberg). 'Book' is proposed for two-sided documents. 'Magazine' sets all margins for same value. Leading is Left/Inside value.") + "</qt>");
QToolTip::add(this, "<qt>" +tr("You can select predefined page layout here. 'None' leave margins as is, Guttenberg sets margins classically. 'Magazine' sets all margins for same value. Leading is Left/Inside value.") + "</qt>");
}
 
MarginStruct PresetLayout::getMargins(int index, double pageWidth, double pageHeight, double leftMargin)
221,7 → 221,7
case PresetLayout::magazine:
ret.Top = ret.Bottom = ret.Left = ret.Right = leftMargin;
break;
case PresetLayout::book:
case PresetLayout::guttenberg:
{
double ratio = pageHeight / pageWidth;
ret.Left = leftMargin;
/branches/Version13x/Scribus/scribus/marginWidget.h
37,7 → 37,7
enum presetID
{
none = 0,
book = 1,
guttenberg = 1,
magazine = 2,
fibonacci = 3,
goldencut = 4,