Source Code (Use browser search to find items of interest.)
Class Index
kimage'KZoomFactorDialog (./koffice/kimage/zoomfactordlg.h:28)
class KZoomFactorDialog : public KDialog
{
Q_OBJECT
public:
KZoomFactorDialog( QWidget* parent = 0, const char* name = 0, WFlags f = 0 );
~KZoomFactorDialog();
void setValue( const QPoint& theValue );
int getValue( QPoint& theValue );
private:
KIntNumInput* m_pLineEditXFactor;
KIntNumInput* m_pLineEditYFactor;
};
kimage'KZoomFactorDialog::KZoomFactorDialog() (./koffice/kimage/kzoomfactordialog.cc:35)
KZoomFactorDialog::KZoomFactorDialog( QWidget* parent, const char* name, WFlags f )
: KDialog( parent, name, TRUE, f )
{
// Layout
QGridLayout* grid = new QGridLayout( this, 6, 4, 15, 7 );
// Inputline X
m_pLineEditXFactor = new KIntNumInput(i18n("Zoom factor for width"),
1, 1000, 25, 100,
"%", 10, false, this,
"inputZoomX" );
grid->addMultiCellWidget( m_pLineEditXFactor, 0, 1, 0, 3 );
// Inputline Y
m_pLineEditYFactor = new KIntNumInput(i18n("Zoom factor for height"),
1, 1000, 25, 100,
"%", 10, false, this,
"inputZoomY" );
grid->addMultiCellWidget( m_pLineEditYFactor, 2, 3, 0, 3 );
// OK-Button
QPushButton* buttonOK = new QPushButton( this, "ButtonOK" );
buttonOK->setText( i18n( "OK" ) );
connect( buttonOK, SIGNAL( clicked() ), this, SLOT( accept() ) );
grid->addWidget( buttonOK, 5, 2 );
// Cancel-Button
QPushButton* buttonCancel = new QPushButton( this, "ButtonCancel" );
buttonCancel->setText( i18n( "Cancel" ) );
connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
grid->addWidget( buttonCancel, 5, 3 );
// Dialog
grid->setRowStretch( 4, 1 );
grid->setColStretch( 1, 1 );
setMinimumSize( label->sizeHint().width() + m_pLineEditXFactor->sizeHint().width() + buttonOK->sizeHint().width() + 30,
label->sizeHint().height() + buttonOK->sizeHint().height() + buttonCancel->sizeHint().height() + 40);
}
kimage'KZoomFactorDialog::~KZoomFactorDialog() (./koffice/kimage/kzoomfactordialog.cc:75)
KZoomFactorDialog::~KZoomFactorDialog()
{
}
kimage'KZoomFactorDialog::setValue() (./koffice/kimage/kzoomfactordialog.cc:79)
void KZoomFactorDialog::setValue( const QPoint& theValue )
{
m_pLineEditXFactor->setValue( theValue.x() );
m_pLineEditYFactor->setValue( theValue.y() );
}
kimage'KZoomFactorDialog::getValue() (./koffice/kimage/kzoomfactordialog.cc:85)
int KZoomFactorDialog::getValue( QPoint& theValue)
{
int result;
setValue( theValue );
result = exec();
if( result == Accepted )
theValue = QPoint( m_pLineEditXFactor->value(), m_pLineEditYFactor->value() );
return result;
}
kimage'KZoomFactorDialog::KZoomFactorDialog() (./koffice/kimage/zoomfactordlg.cc:32)
KZoomFactorDialog::KZoomFactorDialog( QWidget* parent, const char* name, WFlags f )
: KDialog( parent, name, TRUE, f )
{
// Layout
QGridLayout* grid = new QGridLayout( this, 6, 4, 15, 7 );
m_pLineEditXFactor = new KIntNumInput(0, this, 10, "inputZoomX");
grid->addMultiCellWidget( m_pLineEditXFactor, 1, 1, 0, 3 );
QLabel* label = new QLabel( m_pLineEditXFactor, i18n( "Zoom factor for width in % (1x = 100)" ), this );
grid->addWidget( label, 0, 0 );
// Inputline Y
//m_pLineEditYFactor = new KIntNumInput(QString::null, -INT_MAX, INT_MAX, 1,
// 0,
// QString::null, 10, false,
// this, "inputZoomX" );
m_pLineEditYFactor = new KIntNumInput(0, this, 10, "inputZoomY");
m_pLineEditYFactor->setRange(-INT_MAX, INT_MAX, 1);
grid->addMultiCellWidget( m_pLineEditYFactor, 3, 3, 0, 3 );
label = new QLabel( m_pLineEditYFactor, i18n( "Zoom factor for height in % (1x = 100)" ), this );
grid->addWidget( label, 2, 0 );
// OK-Button
QPushButton* buttonOK = new QPushButton( this, "ButtonOK" );
buttonOK->setText( i18n( "OK" ) );
connect( buttonOK, SIGNAL( clicked() ), this, SLOT( accept() ) );
grid->addWidget( buttonOK, 5, 2 );
// Cancel-Button
QPushButton* buttonCancel = new QPushButton( this, "ButtonCancel" );
buttonCancel->setText( i18n( "Cancel" ) );
connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
grid->addWidget( buttonCancel, 5, 3 );
// Dialog
grid->setRowStretch( 4, 1 );
grid->setColStretch( 1, 1 );
setMinimumSize( label->sizeHint().width() + m_pLineEditXFactor->sizeHint().width() + buttonOK->sizeHint().width() + 30,
label->sizeHint().height() + buttonOK->sizeHint().height() + buttonCancel->sizeHint().height() + 40);
}
kimage'KZoomFactorDialog::~KZoomFactorDialog() (./koffice/kimage/zoomfactordlg.cc:74)
KZoomFactorDialog::~KZoomFactorDialog()
{
}
kimage'KZoomFactorDialog::setValue() (./koffice/kimage/zoomfactordlg.cc:78)
void KZoomFactorDialog::setValue( const QPoint& theValue )
{
m_pLineEditXFactor->setValue( theValue.x() );
m_pLineEditYFactor->setValue( theValue.y() );
}
kimage'KZoomFactorDialog::getValue() (./koffice/kimage/zoomfactordlg.cc:84)
int KZoomFactorDialog::getValue( QPoint& theValue)
{
int result;
setValue( theValue );
result = exec();
if( result == Accepted )
theValue = QPoint( m_pLineEditXFactor->value(), m_pLineEditYFactor->value() );
return result;
}