void GUI::createObjects()
{
kdebugf();
editBox
= new QGroupBox(1,Qt
::Horizontal,tr
("Message Data (max 2000 chars)"),
this);
spinsBox
= new QGroupBox(1,Qt
::Horizontal,tr
("Messages Options"),
this);
progressBox
= new QGroupBox(1,Qt
::Horizontal,tr
("Progress"),
this);
buttonsBox
= new QGroupBox(1,Qt
::Horizontal,
this);
labelAmount
= new QLabel(tr
("Messages Amount:"),
this);
labelDelay
= new QLabel(tr
("Messages Delay (msecs):"),
this);
labelStep
= new QLabel(tr
("Sent message <b>0</b> from <b>0</b>"),
this);
messagesAmount->setMinValue(1);
messagesDelay->setMaxValue(9999999);
messagesAmount->setMaxValue(9999999);
Go->setDefault(true);
Go->setEnabled(false);
kdebugf2();
}
void GUI::layoutsInOrder()
{
kdebugf()
amountLayout->addWidget(labelAmount);
amountLayout->addWidget(messagesAmount);
delayLayout->addWidget(labelDelay);
delayLayout->addWidget(messagesDelay);
spinsLayout->addLayout(amountLayout);
spinsLayout->addLayout(delayLayout);
buttonsLayout->addWidget(Go);
buttonsLayout->addWidget(Cancel);
buttonsLayout->addWidget(Reset);
mainLayout->addWidget(editBox);
mainLayout->addWidget(spinsBox);
mainLayout->addWidget(buttonsBox);
mainLayout->addWidget(progressBox);
spinsLayout->setSpacing(10);
buttonsLayout->setSpacing(3);
mainLayout->setMargin(11);
mainLayout->setSpacing(2);
kdebugf2();
void GUI::createObjects()
{
kdebugf();
editBox = new QGroupBox(1,Qt::Horizontal,tr("Message Data (max 2000 chars)"),this);
spinsBox = new QGroupBox(1,Qt::Horizontal,tr("Messages Options"),this);
progressBox = new QGroupBox(1,Qt::Horizontal,tr("Progress"),this);
buttonsBox = new QGroupBox(1,Qt::Horizontal,this);
labelAmount = new QLabel(tr("Messages Amount:"), this);
labelDelay = new QLabel(tr("Messages Delay (msecs):"), this);
labelStep = new QLabel(tr("Sent message <b>0</b> from <b>0</b>"),this);
messageData = new QTextEdit(editBox);
messagesAmount = new QSpinBox(this);
messagesDelay = new QSpinBox(this);
messagesAmount->setMinValue(1);
messagesDelay->setMaxValue(9999999);
messagesAmount->setMaxValue(9999999);
progressBar = new QProgressBar(progressBox);
Cancel = new QPushButton(tr("Close"), this);
Reset = new QPushButton("Reset", this);
Go = new QPushButton(tr("Go"), this);
Go->setDefault(true);
Go->setEnabled(false);
mainLayout = new QVBoxLayout(this);
amountLayout = new QHBoxLayout;
delayLayout = new QHBoxLayout;
spinsLayout = new QVBoxLayout(spinsBox);
buttonsLayout = new QHBoxLayout(buttonsBox);
kdebugf2();
}
void GUI::layoutsInOrder()
{
kdebugf()
amountLayout->addWidget(labelAmount);
amountLayout->addWidget(messagesAmount);
delayLayout->addWidget(labelDelay);
delayLayout->addWidget(messagesDelay);
spinsLayout->addLayout(amountLayout);
spinsLayout->addLayout(delayLayout);
buttonsLayout->addWidget(Go);
buttonsLayout->addWidget(Cancel);
buttonsLayout->addWidget(Reset);
mainLayout->addWidget(editBox);
mainLayout->addWidget(spinsBox);
mainLayout->addWidget(buttonsBox);
mainLayout->addWidget(progressBox);
spinsLayout->setSpacing(10);
buttonsLayout->setSpacing(3);
mainLayout->setMargin(11);
mainLayout->setSpacing(2);
kdebugf2();
To copy to clipboard, switch view to plain text mode
}
Bookmarks