Back to index

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

#include <multipleduplicate.h>

List of all members.

Public Member Functions

 MultipleDuplicate (int unitIndex, QWidget *parent, const char *name="", WFlags fl=0)
 ~MultipleDuplicate ()
void getMultiplyData (ItemMultipleDuplicateData &)

Protected Slots

void setCopiesShiftGap (int)

Protected Attributes

int m_unitIndex
double m_unitRatio

Detailed Description

Definition at line 13 of file multipleduplicate.h.


Constructor & Destructor Documentation

MultipleDuplicate::MultipleDuplicate ( int  unitIndex,
QWidget *  parent,
const char *  name = "",
WFlags  fl = 0 
)

Definition at line 20 of file multipleduplicate.cpp.

       : MultipleDuplicateBase(parent, name, fl),
       m_unitIndex(unitIndex)
{

       //set tab order
       QWidget::setTabOrder(createGapRadioButton, horizShiftMSpinBox);
       QWidget::setTabOrder(horizShiftMSpinBox, vertShiftMSpinBox);
       QWidget::setTabOrder(gridColsSpinBox, horizRCGapMSpinBox);
       QWidget::setTabOrder(horizRCGapMSpinBox, vertRCGapMSpinBox);
       QWidget::setTabOrder(vertRCGapMSpinBox, rotationMSpinBox);
       
       //set up mspinboxes
       int decimals = unitGetDecimalsFromIndex(unitIndex);
       QString unitSuffix(unitGetSuffixFromIndex(unitIndex));
       horizShiftMSpinBox->setValues(-1000.0, 1000.0, decimals, 0.0);
       vertShiftMSpinBox->setValues(-1000.0, 1000.0, decimals, 0.0);
       horizRCGapMSpinBox->setValues(-1000.0, 1000.0, decimals, 0.0);
       vertRCGapMSpinBox->setValues(-1000.0, 1000.0, decimals, 0.0);
       rotationMSpinBox->setValues(-180.0, 180.0, 10, 0.0);
       horizShiftMSpinBox->setSuffix(unitSuffix);
       vertShiftMSpinBox->setSuffix(unitSuffix);
       horizRCGapMSpinBox->setSuffix(unitSuffix);
       vertRCGapMSpinBox->setSuffix(unitSuffix);
       
       copiesCreateButtonGroup->setButton(0);
       // signals and slots connections
       connect(copiesCreateButtonGroup, SIGNAL(clicked(int)), this, SLOT(setCopiesShiftGap(int)));
}

Here is the call graph for this function:

Definition at line 50 of file multipleduplicate.cpp.

{
}

Member Function Documentation

Definition at line 68 of file multipleduplicate.cpp.

{
       mdData.type = tabWidget->currentPageIndex();
       mdData.copyCount = numberOfCopiesSpinBox->value();
       mdData.copyShiftOrGap = copiesCreateButtonGroup->selectedId();
       mdData.copyShiftGapH = horizShiftMSpinBox->value();
       mdData.copyShiftGapV = vertShiftMSpinBox->value();
       mdData.copyRotation = rotationMSpinBox->value();
       mdData.gridRows = gridRowsSpinBox->value();
       mdData.gridCols = gridColsSpinBox->value();
       mdData.gridGapH = horizRCGapMSpinBox->value();
       mdData.gridGapV = vertRCGapMSpinBox->value();
}
void MultipleDuplicate::setCopiesShiftGap ( int  sel) [protected, slot]

Definition at line 54 of file multipleduplicate.cpp.

{
       if (sel==0)
       {
              horizShiftLabel->setText( tr("&Horizontal Shift:"));
              vertShiftLabel->setText( tr("&Vertical Shift:"));
       }
       else
       {
              horizShiftLabel->setText( tr("&Horizontal Gap:"));
              vertShiftLabel->setText( tr("&Vertical Gap:"));
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 21 of file multipleduplicate.h.

double MultipleDuplicate::m_unitRatio [protected]

Definition at line 22 of file multipleduplicate.h.


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