Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Public Member Functions | Public Attributes | Protected Attributes
Mdup Class Reference

#include <mdup.h>

List of all members.

Public Member Functions

 Mdup (QWidget *parent, double Dx, double Dy, int Ein)
 ~Mdup ()

Public Attributes

QLabel * TextLabel1_2
QLabel * TextLabel1_2_2
QSpinBox * Ncopies
MSpinBox * ShiftV
QPushButton * PushButton12
QLabel * TextLabel1
MSpinBox * ShiftH
QPushButton * PushButton13

Protected Attributes

QVBoxLayout * MdupLayout
QGridLayout * Layout4
QHBoxLayout * Layout3

Detailed Description

Definition at line 17 of file mdup.h.


Constructor & Destructor Documentation

Mdup::Mdup ( QWidget *  parent,
double  Dx,
double  Dy,
int  Ein 
)

Definition at line 21 of file mdup.cpp.

              : QDialog( parent, "m", true, 0 )
{
       setCaption( tr( "Multiple Duplicate" ) );
       setIcon(loadIcon("AppIcon.png"));
       MdupLayout = new QVBoxLayout( this );
       MdupLayout->setSpacing( 5 );
       MdupLayout->setMargin( 10 );
       Layout4 = new QGridLayout;
       Layout4->setSpacing( 6 );
       Layout4->setMargin( 0 );
       Ncopies = new QSpinBox( this, "Ncopies" );
       Ncopies->setMaxValue( 100 );
       Ncopies->setMinValue( 1 );
       Ncopies->setValue(1);
       Layout4->addWidget( Ncopies, 0, 1 );
       ShiftH = new MSpinBox( -1000, 1000, this, 2 );
       ShiftH->setValue(Dx);
       Layout4->addWidget( ShiftH, 1, 1 );
       ShiftV = new MSpinBox( -1000, 1000, this, 2 );
       ShiftV->setValue(Dy);
       Layout4->addWidget( ShiftV, 2, 1 );
       QString Suffix = unitGetSuffixFromIndex(Ein);
       ShiftH->setSuffix(Suffix);
       ShiftV->setSuffix(Suffix);
       TextLabel1 = new QLabel( Ncopies, tr( "&Number of Copies:" ), this, "TextLabel1" );
       Layout4->addWidget( TextLabel1, 0, 0 );
       TextLabel1_2 = new QLabel( ShiftH, tr( "&Horizontal Shift:" ), this, "TextLabel1_2" );
       Layout4->addWidget( TextLabel1_2, 1, 0 );
       TextLabel1_2_2 = new QLabel( ShiftV, tr( "&Vertical Shift:" ), this, "TextLabel1_2_2" );
       Layout4->addWidget( TextLabel1_2_2, 2, 0 );
       MdupLayout->addLayout( Layout4 );
       Layout3 = new QHBoxLayout;
       Layout3->setSpacing( 6 );
       Layout3->setMargin( 0 );
       QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
       Layout3->addItem( spacer );
       PushButton12 = new QPushButton( CommonStrings::tr_OK, this, "PushButton12" );
       PushButton12->setDefault( true );
       Layout3->addWidget( PushButton12 );
       PushButton13 = new QPushButton( CommonStrings::tr_Cancel, this, "PushButton13" );
       Layout3->addWidget( PushButton13 );
       MdupLayout->addLayout( Layout3 );
       QWidget::setTabOrder ( Ncopies, ShiftH );
       QWidget::setTabOrder ( ShiftH, ShiftV );
       QWidget::setTabOrder ( ShiftV, PushButton12 );
       QWidget::setTabOrder ( PushButton12, PushButton13 );
       QWidget::setTabOrder ( PushButton13, Ncopies );
       Ncopies->setFocus();
       setMaximumSize(sizeHint());

       // signals and slots connections
       connect( PushButton12, SIGNAL( clicked() ), this, SLOT( accept() ) );
       connect( PushButton13, SIGNAL( clicked() ), this, SLOT( reject() ) );
}

Here is the call graph for this function:

Mdup::~Mdup ( ) [inline]

Definition at line 23 of file mdup.h.

{};

Member Data Documentation

QHBoxLayout* Mdup::Layout3 [protected]

Definition at line 37 of file mdup.h.

QGridLayout* Mdup::Layout4 [protected]

Definition at line 36 of file mdup.h.

QVBoxLayout* Mdup::MdupLayout [protected]

Definition at line 35 of file mdup.h.

QSpinBox* Mdup::Ncopies

Definition at line 27 of file mdup.h.

QPushButton* Mdup::PushButton12

Definition at line 29 of file mdup.h.

QPushButton* Mdup::PushButton13

Definition at line 32 of file mdup.h.

MSpinBox* Mdup::ShiftH

Definition at line 31 of file mdup.h.

MSpinBox* Mdup::ShiftV

Definition at line 28 of file mdup.h.

Definition at line 30 of file mdup.h.

Definition at line 23 of file mdup.h.

Definition at line 26 of file mdup.h.


The documentation for this class was generated from the following files: