|
|
|
@ -42,14 +42,14 @@ NumberDialog::NumberDialog(TQValueList<int> & n,TQWidget *parent )
|
|
|
|
|
{
|
|
|
|
|
TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
|
|
|
|
|
|
|
|
|
|
TQVBoxLayout* tqlayout = new TQVBoxLayout( plainPage(), 6, 6 );
|
|
|
|
|
TQVBoxLayout* layout = new TQVBoxLayout( plainPage(), 6, 6 );
|
|
|
|
|
|
|
|
|
|
TQGroupBox* group1 = new TQGroupBox( plainPage() );
|
|
|
|
|
group1->setTitle( i18n("&Numbering") );
|
|
|
|
|
group1->setColumnLayout(0, Qt::Vertical );
|
|
|
|
|
group1->tqlayout()->setSpacing( 6 );
|
|
|
|
|
group1->tqlayout()->setMargin( 11 );
|
|
|
|
|
TQVBoxLayout* group1Layout = new TQVBoxLayout( group1->tqlayout() );
|
|
|
|
|
group1->layout()->setSpacing( 6 );
|
|
|
|
|
group1->layout()->setMargin( 11 );
|
|
|
|
|
TQVBoxLayout* group1Layout = new TQVBoxLayout( group1->layout() );
|
|
|
|
|
group1Layout->setAlignment( TQt::AlignTop );
|
|
|
|
|
|
|
|
|
|
spinIndex = new KIntNumInput( group1 );
|
|
|
|
@ -66,9 +66,9 @@ NumberDialog::NumberDialog(TQValueList<int> & n,TQWidget *parent )
|
|
|
|
|
TQGroupBox* group2 = new TQGroupBox( plainPage() );
|
|
|
|
|
group2->setTitle( i18n("S&kip Numbers") );
|
|
|
|
|
group2->setColumnLayout(0, Qt::Horizontal );
|
|
|
|
|
group2->tqlayout()->setSpacing( 6 );
|
|
|
|
|
group2->tqlayout()->setMargin( 11 );
|
|
|
|
|
TQHBoxLayout* group2Layout = new TQHBoxLayout( group2->tqlayout() );
|
|
|
|
|
group2->layout()->setSpacing( 6 );
|
|
|
|
|
group2->layout()->setMargin( 11 );
|
|
|
|
|
TQHBoxLayout* group2Layout = new TQHBoxLayout( group2->layout() );
|
|
|
|
|
group2Layout->setAlignment( TQt::AlignTop );
|
|
|
|
|
|
|
|
|
|
listNumbers = new KListBox( group2 );
|
|
|
|
@ -85,21 +85,21 @@ NumberDialog::NumberDialog(TQValueList<int> & n,TQWidget *parent )
|
|
|
|
|
spinNumber->setValue( 0 );
|
|
|
|
|
spinNumber->setFocus();
|
|
|
|
|
|
|
|
|
|
TQVBoxLayout* tqlayout2 = new TQVBoxLayout( 0, 6, 6 );
|
|
|
|
|
tqlayout2->addWidget( buttonAdd );
|
|
|
|
|
tqlayout2->addWidget( buttonRemove );
|
|
|
|
|
tqlayout2->addWidget( spinNumber );
|
|
|
|
|
tqlayout2->addItem( spacer );
|
|
|
|
|
TQVBoxLayout* layout2 = new TQVBoxLayout( 0, 6, 6 );
|
|
|
|
|
layout2->addWidget( buttonAdd );
|
|
|
|
|
layout2->addWidget( buttonRemove );
|
|
|
|
|
layout2->addWidget( spinNumber );
|
|
|
|
|
layout2->addItem( spacer );
|
|
|
|
|
|
|
|
|
|
group1Layout->addWidget( spinIndex );
|
|
|
|
|
group1Layout->addWidget( spinStep );
|
|
|
|
|
group1Layout->addWidget( checkResetCounter );
|
|
|
|
|
|
|
|
|
|
group2Layout->addWidget( listNumbers );
|
|
|
|
|
group2Layout->addLayout( tqlayout2 );
|
|
|
|
|
group2Layout->addLayout( layout2 );
|
|
|
|
|
|
|
|
|
|
tqlayout->addWidget( group1 );
|
|
|
|
|
tqlayout->addWidget( group2 );
|
|
|
|
|
layout->addWidget( group1 );
|
|
|
|
|
layout->addWidget( group2 );
|
|
|
|
|
|
|
|
|
|
TQToolTip::add( spinIndex, i18n( "Number of the first file." ) );
|
|
|
|
|
TQToolTip::add( spinStep, i18n( "The counter is increased/decreased by this value." ) );
|
|
|
|
|