Ejemplo n.º 1
0
ExistingProjectWizard::ExistingProjectWizard() :
        gitCommand(new GitCommand),
        path()
{
    path << "";

    //creating widgets that are data members because I can't figure out how to changed a widget from other pages
    pathDisplay = new QLineEdit("", this);
    hiddenComment = new QLabel("");
    userRemotePath = new QLineEdit;
    userLocalDirectory = new QLineEdit("", this);
    localButton = new QRadioButton( "Local" );
    remoteButton = new QRadioButton("Remote");
    remoteOption = new QComboBox;

    createIntroPage();
    createGetLocalPath();
    createGetRemotePath();
    createGetLocalDirectory();
    createEndNew();

    this->addPage( introPage);
    this->addPage( localPath);
    this->addPage( remotePath);
    this->addPage( localDirectory);
    this->addPage( conclusion);

    hiddenComment->setWordWrap(true);
    connect(this,SIGNAL(accepted()),this,SLOT(createRepo()));

}
Ejemplo n.º 2
0
TrainingsWizard::TrainingsWizard(QWidget *parent) : SimonWizard(parent)
{
  addPage(createIntroPage());

  if (SoundServer::getCalibrateVolume())
    addPage(createVolumePage());

  setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
  setBanner("training");
}
Ejemplo n.º 3
0
FirstRunWizard::FirstRunWizard(QWidget* parent, Qt::WFlags flags)
: SimonWizard(parent, flags)
{
  addPage(createIntroPage());
  addPage(createScenariosConfigPage());
  addPage(createBaseModelConfigPage());
  addPage(createSimondConfigPage());
  addPage(createSoundConfigPage());
  addPage(createSoundVolumePage());
  setBanner("firstrun");
}
Ejemplo n.º 4
0
FirstRunWizard::FirstRunWizard(QWidget *parent)
 : QWizard(parent)
{
	// Use default style on other platforms
	// but force ModernStyle on UNIX
#ifdef Q_OS_UNIX
	setWizardStyle( QWizard::ModernStyle );
#endif

	setWindowTitle( tr("First Run Wizard") );

	addPage( createIntroPage() );
	addPage( createSetupDatabasePage() );
	addPage( createArtistInformationPage() );
	addPage( createFinalPage() );
}
Ejemplo n.º 5
0
AuthenticationWizard::AuthenticationWizard(
        KTp::ChannelAdapter *chAdapter,
        const QString &contact,
        QWidget *parent,
        bool initiate,
        const QString &question)
    : QWizard(parent),
    chAdapter(chAdapter),
    contact(contact),
    question(question),
    initiate(initiate)
{

	wizardList.append(this);
	setAttribute(Qt::WA_DeleteOnClose);

	setPage(Page_SelectMethod, createIntroPage());
	setPage(Page_QuestionAnswer, createQAPage());
	setPage(Page_SharedSecret, createSSPage());
	setPage(Page_ManualVerification, createMVPage());
	setPage(Page_Wait1, new WaitPage(i18n("Waiting for <b>%1</b>...", contact)));
	setPage(Page_Wait2, new WaitPage(i18n("Checking if answers match...")));
	setPage(Page_Final, createFinalPage());

	if(!initiate) {
		if(question.isEmpty()) {
			setStartId(Page_SharedSecret);
		} else {
			setStartId(Page_QuestionAnswer);
		}
	}

	connect(this, SIGNAL(rejected()), this, SLOT(cancelVerification()));
	connect(rbQA, SIGNAL(clicked()), this, SLOT(updateInfoBox()));
	connect(rbSS, SIGNAL(clicked()), this, SLOT(updateInfoBox()));
	connect(rbMV, SIGNAL(clicked()), this, SLOT(updateInfoBox()));

	updateInfoBox();

	resize(rbMV->width() * 1.05, rbMV->width() * 0.5);
	show();
}
Ejemplo n.º 6
0
//! [9] //! [10]
int main(int argc, char *argv[])
//! [9] //! [11]
{
    QApplication app(argc, argv);

    QString translatorFileName = QLatin1String("qt_");
    translatorFileName += QLocale::system().name();
    QTranslator *translator = new QTranslator(&app);
    if (translator->load(translatorFileName, QLibraryInfo::location(QLibraryInfo::TranslationsPath)))
        app.installTranslator(translator);


    QWizard wizard;
    wizard.addPage(createIntroPage());
    wizard.addPage(createRegistrationPage());
    wizard.addPage(createConclusionPage());

    wizard.setWindowTitle("Trivial Wizard");
    wizard.show();

    return app.exec();
}
MobileConnectionWizard::MobileConnectionWizard(Knm::Connection::Type connectionType, QWidget * parent): QWizard(parent)
{
    if (connectionType == Knm::Connection::Unknown) {
        mInitialMethodType = false;
    } else {
        mInitialMethodType = true;

        if (connectionType == Knm::Connection::Bluetooth) {
            mType = Knm::Connection::Gsm;
        } else {
            mType = connectionType;
        }
    }

    mProviders = new MobileProviders();
    setWindowTitle(i18nc("Mobile Connection Wizard", "New Mobile Broadband Connection"));
    addPage(createIntroPage());
    addPage(createCountryPage());
    addPage(createProvidersPage());
    addPage(createPlansPage());
    addPage(createConfirmPage());
    setOptions(QWizard::NoBackButtonOnStartPage);
}