TupExportWizardPage *TupExportWizard::addPage(TupExportWizardPage *newPage) { QString tag = newPage->getTag(); newPage->setParent(k->history); newPage->show(); k->history->addWidget(newPage); if (k->history->count() == 1) { // First Page newPage->setFocus(); k->backButton->setEnabled(false); k->nextButton->setDefault(true); } // k->nextButton->setEnabled(newPage->isComplete()); connect(newPage, SIGNAL(completed()), this, SLOT(pageCompleted())); connect(newPage, SIGNAL(emptyField()), this, SLOT(disableButton())); if (tag.compare("PLUGIN") == 0) { // connect(newPage, SIGNAL(formatSelected(int, const QString &)), this, SLOT(setFormat(int, const QString &))); connect(newPage, SIGNAL(animatedImageFormatSelected(int, const QString &)), this, SLOT(setFormat(int, const QString &))); connect(newPage, SIGNAL(imagesArrayFormatSelected(int, const QString &)), this, SLOT(setFormat(int, const QString &))); connect(newPage, SIGNAL(animationFormatSelected(int, const QString &)), this, SLOT(setFormat(int, const QString &))); }
BlockOps::BlockOps() : useTarget (false), blocknr (0), rot (0), color (0) { field = new Block*[COLUMNS]; posx = COLUMNS / 2; posy = 0; for (int i = 0; i < COLUMNS; ++i) field[i] = new Block[LINES]; emptyField(); }
void BlockOps::emptyField(void) { emptyField(0,5); }