Source Code (Use browser search to find items of interest.)
Class Index
killustrator'BlendDialog (./koffice/killustrator/share/BlendDialog.h:31)
class BlendDialog : public QDialog {
Q_OBJECT
public:
BlendDialog (QWidget* parent = 0L, const char* name = 0L);
static int getNumOfSteps ();
protected:
QWidget *createWidget (QWidget *parent);
private slots:
void helpPressed ();
private:
QSpinBox *spinbox;
};
killustrator'BlendDialog::BlendDialog() (./koffice/killustrator/share/BlendDialog.cc:41)
BlendDialog::BlendDialog (QWidget* parent, const char* name) :
QDialog (parent, name, true) {
QPushButton* button;
QWidget* widget;
setCaption (i18n ("Blend"));
QVBoxLayout *vl = new QVBoxLayout (this, 2);
widget = createWidget (this);
vl->addWidget (widget);
KSeparator* sep = new KSeparator (this);
vl->addWidget (sep);
// the standard buttons
KButtonBox *bbox = new KButtonBox (this);
button = bbox->addButton (i18n ("OK"));
connect (button, SIGNAL (clicked ()), SLOT (accept ()));
button = bbox->addButton (i18n ("Cancel"));
connect (button, SIGNAL (clicked ()), SLOT (reject ()));
bbox->addStretch (1);
button = bbox->addButton (i18n ("Help"));
connect (button, SIGNAL (clicked ()), SLOT (helpPressed ()));
bbox->layout ();
bbox->setMinimumSize (bbox->sizeHint ());
vl->addWidget (bbox);
vl->activate ();
setMinimumSize (280, 220);
setMaximumSize (290, 220);
}
killustrator'BlendDialog::createWidget() (./koffice/killustrator/share/BlendDialog.cc:76)
QWidget* BlendDialog::createWidget (QWidget* parent) {
QWidget* w;
QGroupBox* box;
w = new QWidget (parent);
box = new QGroupBox (w);
box->setTitle (i18n ("Blend Objects"));
box->setGeometry (10, 10, 240, 80);
QLabel* label = new QLabel (box);
label->setAlignment (AlignLeft | AlignVCenter);
label->setText (i18n ("Steps"));
label->move (20, 20);
spinbox = new QSpinBox (box);
spinbox->setValue (10);
// spinbox->setStep (1);
spinbox->setRange (0, 1000);
spinbox->move (100, 20);
w->setMinimumSize (230, 140);
w->setMaximumSize (330, 140);
return w;
}
killustrator'BlendDialog::helpPressed() (./koffice/killustrator/share/BlendDialog.cc:102)
void BlendDialog::helpPressed () {
}
killustrator'BlendDialog::getNumOfSteps() (./koffice/killustrator/share/BlendDialog.cc:105)
int BlendDialog::getNumOfSteps () {
BlendDialog dialog (0L, "Blend");
int result = dialog.exec ();
if (result == Accepted)
return dialog.spinbox->value ();
else
return 0;
}