Exemplo n.º 1
0
void ConfigWizardCompletedPage::createGui()
{
	formLayout()->addRow(new QLabel(tr("<h3>Configuration Wizard Completed</h3>"), this));

	ConfigureAccouuntsCheckBox = new QCheckBox(tr("Go to Accounts Setting after closing this window"), this);

	formLayout()->addRow(QString(), ConfigureAccouuntsCheckBox);
}
void ConfigWizardSetUpAccountPage::initializePage()
{
    ProtocolFactory *pf = field("choose-network.protocol-factory").value<ProtocolFactory *>();
    if (!pf)
        return;

    if (field("choose-network.new").toBool())
        AccountWidget = pf->newCreateAccountWidget(false, this);
    else if (field("choose-network.existing").toBool())
        AccountWidget = pf->newAddAccountWidget(false, this);

    if (AccountWidget)
    {
        formLayout()->addRow(QString(), AccountWidget.data());

        if (AccountWidget.data()->stateNotifier())
            connect(
                AccountWidget.data()->stateNotifier(), SIGNAL(stateChanged(ConfigurationValueState)), this,
                SIGNAL(completeChanged()));
        // NOTE: This signal is declared by AccountCreateWidget and AccountCreateWidget
        // but not by ModalConfigurationWidget. It will work correctly with Qt meta-object system, though.
        connect(AccountWidget.data(), SIGNAL(accountCreated(Account)), this, SLOT(accountCreated(Account)));
        // Same as above, window() is QWizard.
        connect(AccountWidget.data(), SIGNAL(destroyed()), window(), SLOT(back()));
    }
}
Exemplo n.º 3
0
void ConfigWizardProfilePage::createGui()
{
	formLayout()->addRow(new QLabel(tr("<h3>Profile setup</h3>"), this));

	LanguagesCombo = new QComboBox(this);
	setLanguages();
	formLayout()->addRow(tr("Language") + ':', LanguagesCombo);

	QLabel *restartInfo = new QLabel("<font size='-1'><i>" + (qApp->translate("@default",
			// NOTE: it's the same string as in varia/configuration/dialog.ui
			"Kadu needs to be restarted before changes to the language settings will take effect.")) +
			"</i></font>", this);
	formLayout()->addRow(QString(), restartInfo);

	NickNameEdit = new QLineEdit(this);
	NickNameEdit->setMaximumWidth(300);
	formLayout()->addRow(tr("Nickname") + ':', NickNameEdit);
}
void ConfigWizardSetUpAccountPage::createGui()
{
    formLayout()->addRow(new QLabel(tr("<h3>Account Setup</h3>"), this));
}