Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 1194 → Rev 1195

/branches/Version13x/Scribus/scribus/tabtypography.cpp
8,7 → 8,7
#include "mspinbox.h"
#include "scribusstructs.h"
 
TabTypograpy::TabTypograpy( QWidget* parent, struct typoPrefs *prefsData, double unitBase, QString unit) : QWidget( parent, "tabtypo", 0 )
TabTypograpy::TabTypograpy( QWidget* parent, struct typoPrefs *prefsData) : QWidget( parent, "tabtypo", 0 )
{
tabTypoLayout = new QGridLayout( this, 1, 1, 11, 6, "tabTypoLayout");
groupBox1a = new QGroupBox( this, "groupBox1a" );
73,38 → 73,10
textLabel5a = new QLabel(capsScaling, tr( "Sc&aling:" ), groupBox3a, "textLabel5a" );
groupBox3aLayout->addWidget( textLabel5a, 0, 0 );
tabTypoLayout->addWidget( groupBox3a, 2, 0 );
groupBox4a = new QGroupBox( this, "groupBox4a" );
groupBox4a->setColumnLayout(0, Qt::Vertical );
groupBox4a->layout()->setSpacing( 6 );
groupBox4a->layout()->setMargin( 11 );
groupBox4a->setTitle( tr( "Other" ) );
groupBox4aLayout = new QGridLayout( groupBox4a->layout() );
groupBox4aLayout->setAlignment( Qt::AlignTop );
baseGrid = new MSpinBox( 1, 1000, groupBox4a, 1 );
baseGrid->setSuffix( unit );
baseGrid->setValue(prefsData->valueBaseGrid * unitBase);
groupBox4aLayout->addWidget( baseGrid, 0, 1, Qt::AlignLeft );
textLabel6a = new QLabel(baseGrid, tr( "Baseline &Grid:" ),groupBox4a, "textLabel6a" );
groupBox4aLayout->addWidget( textLabel6a, 0, 0 );
baseOffset = new MSpinBox( 0, 1000, groupBox4a, 1 );
baseOffset->setSuffix( unit );
baseOffset->setValue(prefsData->offsetBaseGrid * unitBase);
groupBox4aLayout->addWidget( baseOffset, 1, 1, Qt::AlignLeft );
textLabel7a = new QLabel(baseOffset, tr( "Baseline &Offset:" ),groupBox4a, "textLabel7a" );
groupBox4aLayout->addWidget( textLabel7a, 1, 0 );
autoLine = new QSpinBox( groupBox4a, "autoLine" );
autoLine->setMaxValue( 100 );
autoLine->setMinValue( 1 );
autoLine->setValue( prefsData->autoLineSpacing );
autoLine->setSuffix( tr( " %" ) );
groupBox4aLayout->addWidget( autoLine, 2, 1, Qt::AlignLeft );
textLabel8a = new QLabel( autoLine, tr( "Automatic &Line Spacing:" ), groupBox4a, "textLabel8a" );
groupBox4aLayout->addWidget( textLabel8a, 2, 0 );
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" ) );
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" ) );
}