Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 2174 → Rev 2173

/branches/Version13x/Scribus/scribus/tabtypography.cpp
20,6 → 20,7
groupBox1aLayout->setAlignment( Qt::AlignTop );
subDisplacement = new QSpinBox( groupBox1a, "subDisplacement" );
subDisplacement->setMaxValue( 100 );
subDisplacement->setValue( prefsData->valueSubScript );
subDisplacement->setSuffix( tr( " %" ) );
groupBox1aLayout->addWidget( subDisplacement, 0, 1, Qt::AlignLeft );
textLabel1a = new QLabel(subDisplacement, tr( "&Displacement:" ), groupBox1a, "textLabel1a" );
27,6 → 28,7
subScaling = new QSpinBox( groupBox1a, "subScaling" );
subScaling->setMaxValue( 100 );
subScaling->setMinValue( 1 );
subScaling->setValue( prefsData->scalingSubScript );
subScaling->setSuffix( tr( " %" ) );
groupBox1aLayout->addWidget( subScaling, 0, 3, Qt::AlignLeft );
textLabel2a = new QLabel(subScaling, tr( "&Scaling:" ), groupBox1a, "textLabel2a" );
41,6 → 43,7
groupBox2aLayout->setAlignment( Qt::AlignTop );
superDisplacement = new QSpinBox( groupBox2a, "superDisplacement" );
superDisplacement->setMaxValue( 100 );
superDisplacement->setValue( prefsData->valueSuperScript );
superDisplacement->setSuffix( tr( " %" ) );
groupBox2aLayout->addWidget( superDisplacement, 0, 1, Qt::AlignLeft );
textLabel3a = new QLabel(superDisplacement, tr( "D&isplacement:" ), groupBox2a, "textLabel3a" );
48,6 → 51,7
superScaling = new QSpinBox( groupBox2a, "superScaling" );
superScaling->setMaxValue( 100 );
superScaling->setMinValue( 1 );
superScaling->setValue( prefsData->scalingSuperScript );
superScaling->setSuffix( tr( " %" ) );
groupBox2aLayout->addWidget( superScaling, 0, 3, Qt::AlignLeft );
textLabel4a = new QLabel(superScaling, tr( "S&caling:" ), groupBox2a, "textLabel4a" );
63,43 → 67,13
capsScaling = new QSpinBox( groupBox3a, "capsScaling" );
capsScaling->setMaxValue( 100 );
capsScaling->setMinValue( 1 );
capsScaling->setValue( prefsData->valueSmallCaps );
capsScaling->setSuffix( tr( " %" ) );
groupBox3aLayout->addWidget( capsScaling, 0, 1, Qt::AlignLeft );
textLabel5a = new QLabel(capsScaling, tr( "Sc&aling:" ), groupBox3a, "textLabel5a" );
groupBox3aLayout->addWidget( textLabel5a, 0, 0 );
tabTypoLayout->addWidget( groupBox3a, 2, 0 );
 
underlineGroup = new QGroupBox( this, "underlineGroup" );
underlineGroup->setTitle( tr( "Underline" ) );
underlineGroup->setColumnLayout(0, Qt::Vertical );
underlineGroup->layout()->setSpacing( 6 );
underlineGroup->layout()->setMargin( 11 );
underlineGroupLayout = new QGridLayout( underlineGroup->layout() );
underlineGroupLayout->setAlignment( Qt::AlignTop );
 
textLabel1 = new QLabel( underlineGroup, "textLabel1" );
textLabel1->setText( tr( "Displacement:" ) );
underlineGroupLayout->addWidget( textLabel1, 0, 0 );
 
underlinePos = new QSpinBox( underlineGroup, "underlinePos" );
underlinePos->setMaxValue( 100 );
underlinePos->setMinValue( -1 );
underlinePos->setSuffix( tr( " %" ) );
underlinePos->setSpecialValueText( tr( "Auto" ) );
underlineGroupLayout->addWidget( underlinePos, 0, 1 );
 
textLabel2 = new QLabel( underlineGroup, "textLabel2" );
textLabel2->setText( tr( "Line Width:" ) );
underlineGroupLayout->addWidget( textLabel2, 0, 2 );
 
underlineWidth = new QSpinBox( underlineGroup, "underlineWidth" );
underlineWidth->setMaxValue( 100 );
underlineWidth->setMinValue( -1 );
underlineWidth->setSuffix( tr( " %" ) );
underlineWidth->setSpecialValueText( tr( "Auto" ) );
underlineGroupLayout->addWidget( underlineWidth, 0, 3 );
tabTypoLayout->addWidget( underlineGroup, 3, 0 );
 
groupBox4a = new QGroupBox( this, "groupBox3a" );
groupBox4a->setColumnLayout(0, Qt::Vertical );
groupBox4a->layout()->setSpacing( 6 );
110,12 → 84,13
autoLine = new QSpinBox( groupBox4a, "autoLine" );
autoLine->setMaxValue( 100 );
autoLine->setMinValue( 1 );
autoLine->setValue( prefsData->autoLineSpacing );
autoLine->setSuffix( tr( " %" ) );
groupBox4aLayout->addWidget( autoLine, 1, 1 );
textLabel8a = new QLabel( autoLine, tr( "Line Spacing:" ), groupBox4a, "textLabel8a" );
groupBox4aLayout->addWidget( textLabel8a, 1, 0 );
tabTypoLayout->addWidget( groupBox4a, 4, 0 );
restoreDefaults(prefsData);
tabTypoLayout->addWidget( groupBox4a, 3, 0 );
 
QToolTip::add( superDisplacement, tr( "Displacement above the baseline of the font on a line" ) );
QToolTip::add( superScaling, tr( "Relative size of the superscript compared to the normal font" ) );
QToolTip::add( subDisplacement, tr( "Displacement below the baseline of the normal font on a line" ) );
122,8 → 97,6
QToolTip::add( subScaling, tr( "Relative size of the subscript compared to the normal font" ) );
QToolTip::add( capsScaling, tr( "Relative size of the small caps font compared to the normal font" ) );
QToolTip::add( autoLine, tr( "Percentage increase over the font size for the line spacing" ) );
QToolTip::add( underlinePos, tr( "Displacement below the baseline of the normal font expressed as a percentage of the fonts descender" ) );
QToolTip::add( underlineWidth, tr( "Line width expressed as a percentage of the font size" ) );
}
 
void TabTypograpy::restoreDefaults(struct typoPrefs *prefsData)
133,6 → 106,4
superScaling->setValue( prefsData->scalingSuperScript );
subScaling->setValue( prefsData->scalingSubScript );
autoLine->setValue( prefsData->autoLineSpacing );
underlinePos->setValue(prefsData->valueUnderlinePos);
underlineWidth->setValue(prefsData->valueUnderlineWidth);
}