ConfigWizardWindow::ConfigWizardWindow(QWidget *parent) : QWizard(parent) { kdebugf(); setWindowRole("kadu-wizard"); setAttribute(Qt::WA_DeleteOnClose); setWindowTitle(tr("Kadu Wizard")); #ifdef Q_OS_MAC /* MacOSX has it's own QWizard style which requires much more space * than the other ones so we're forcing the ClassicStyle to unify * the window sizes and look. Mac users will love us for that. */ setWizardStyle(QWizard::ClassicStyle); #else #ifdef Q_OS_WIN // NOTE: Workaround for bug #1912. // TODO: Remove this as soon as QTBUG-10478 is fixed in // a release we bundle in the Windows build. setWizardStyle(QWizard::ModernStyle); #endif setMinimumSize(500, 500); #endif setPage(ProfilePage, new ConfigWizardProfilePage(this)); setPage(ChooseNetworkPage, new ConfigWizardChooseNetworkPage(this)); setPage(SetUpAccountPage, new ConfigWizardSetUpAccountPage(this)); setPage(CompletedPage, new ConfigWizardCompletedPage(this)); connect(this, SIGNAL(accepted()), this, SLOT(acceptedSlot())); connect(this, SIGNAL(rejected()), this, SLOT(rejectedSlot())); kdebugf2(); }
OwncloudWizard::OwncloudWizard(QWidget *parent) : QWizard(parent), _configExists(false) { _setupPage = new OwncloudSetupPage; _resultPage = new OwncloudWizardResultPage; setPage(Page_oCSetup, _setupPage ); setPage(Page_Result, _resultPage ); // note: start Id is set by the calling class depending on if the // welcome text is to be shown or not. setWizardStyle( QWizard::ModernStyle ); connect( this, SIGNAL(currentIdChanged(int)), SLOT(slotCurrentPageChanged(int))); connect( _setupPage, SIGNAL(connectToOCUrl(QString)), SIGNAL(connectToOCUrl(QString))); Theme *theme = Theme::instance(); setWizardStyle(QWizard::ModernStyle); setPixmap( QWizard::BannerPixmap, theme->wizardHeaderBanner() ); setPixmap( QWizard::LogoPixmap, theme->wizardHeaderLogo() ); setOption( QWizard::NoBackButtonOnStartPage ); setOption( QWizard::NoBackButtonOnLastPage ); setOption( QWizard::NoCancelButton ); setTitleFormat(Qt::RichText); setSubTitleFormat(Qt::RichText); }
ProfileWizard::ProfileWizard(TKeyhoteeApplication& mainApp) : QWizard(nullptr), _mainApp(mainApp) { setAttribute(Qt::WA_DeleteOnClose); setOption(HaveHelpButton, true); QWizardPage* intro_page = new QWizardPage(this); intro_page->setTitle(tr("Welcome to Keyhotee") ); _profile_intro_ui = new Ui::IntroPage(); _profile_intro_ui->setupUi(intro_page); // _nym_page = new NymPage(this); _profile_edit = new ProfileEditPage(this); connect(this, &ProfileWizard::helpRequested, this, &ProfileWizard::showHelp); connect(this, &ProfileWizard::finished, this, &ProfileWizard::createProfile); setPage(Page_Intro, intro_page); setPage(Page_Profile, _profile_edit); // setPage(Page_FirstNym, _nym_page); setStartId(Page_Intro); #ifndef Q_WS_MAC setWizardStyle(ModernStyle); #else setWizardStyle(MacStyle); #endif }
OwncloudWizard::OwncloudWizard(QWidget *parent) : QWizard(parent) , _account(0) , _setupPage(new OwncloudSetupPage(this)) , _httpCredsPage(new OwncloudHttpCredsPage(this)) , _browserCredsPage(new OwncloudOAuthCredsPage) #ifndef NO_SHIBBOLETH , _shibbolethCredsPage(new OwncloudShibbolethCredsPage) #endif , _advancedSetupPage(new OwncloudAdvancedSetupPage) , _resultPage(new OwncloudWizardResultPage) , _credentialsPage(0) , _setupLog() { setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); setPage(WizardCommon::Page_ServerSetup, _setupPage); setPage(WizardCommon::Page_HttpCreds, _httpCredsPage); setPage(WizardCommon::Page_OAuthCreds, _browserCredsPage); #ifndef NO_SHIBBOLETH setPage(WizardCommon::Page_ShibbolethCreds, _shibbolethCredsPage); #endif setPage(WizardCommon::Page_AdvancedSetup, _advancedSetupPage); setPage(WizardCommon::Page_Result, _resultPage); connect(this, &QDialog::finished, this, &OwncloudWizard::basicSetupFinished); // note: start Id is set by the calling class depending on if the // welcome text is to be shown or not. setWizardStyle(QWizard::ModernStyle); connect(this, &QWizard::currentIdChanged, this, &OwncloudWizard::slotCurrentPageChanged); connect(_setupPage, &OwncloudSetupPage::determineAuthType, this, &OwncloudWizard::determineAuthType); connect(_httpCredsPage, &OwncloudHttpCredsPage::connectToOCUrl, this, &OwncloudWizard::connectToOCUrl); connect(_browserCredsPage, &OwncloudOAuthCredsPage::connectToOCUrl, this, &OwncloudWizard::connectToOCUrl); #ifndef NO_SHIBBOLETH connect(_shibbolethCredsPage, &OwncloudShibbolethCredsPage::connectToOCUrl, this, &OwncloudWizard::connectToOCUrl); #endif connect(_advancedSetupPage, &OwncloudAdvancedSetupPage::createLocalAndRemoteFolders, this, &OwncloudWizard::createLocalAndRemoteFolders); connect(this, &QWizard::customButtonClicked, this, &OwncloudWizard::skipFolderConfiguration); Theme *theme = Theme::instance(); setWindowTitle(tr("%1 Connection Wizard").arg(theme->appNameGUI())); setWizardStyle(QWizard::ModernStyle); setPixmap(QWizard::BannerPixmap, theme->wizardHeaderBanner()); setPixmap(QWizard::LogoPixmap, theme->wizardHeaderLogo()); setOption(QWizard::NoBackButtonOnStartPage); setOption(QWizard::NoBackButtonOnLastPage); setOption(QWizard::NoCancelButton); setTitleFormat(Qt::RichText); setSubTitleFormat(Qt::RichText); setButtonText(QWizard::CustomButton1, tr("Skip folders configuration")); }
OwncloudWizard::OwncloudWizard(QWidget *parent) : QWizard(parent), _account(0), _setupPage(new OwncloudSetupPage(this)), _httpCredsPage(new OwncloudHttpCredsPage(this)), _shibbolethCredsPage(new OwncloudShibbolethCredsPage), _advancedSetupPage(new OwncloudAdvancedSetupPage), _resultPage(new OwncloudWizardResultPage), _credentialsPage(0), _configFile(), _oCUser(), _setupLog(), _configExists(false) { setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); setPage(WizardCommon::Page_ServerSetup, _setupPage); setPage(WizardCommon::Page_HttpCreds, _httpCredsPage); setPage(WizardCommon::Page_ShibbolethCreds, _shibbolethCredsPage); setPage(WizardCommon::Page_AdvancedSetup, _advancedSetupPage); setPage(WizardCommon::Page_Result, _resultPage); connect(this, SIGNAL(finished(int)), SIGNAL(basicSetupFinished(int))); // note: start Id is set by the calling class depending on if the // welcome text is to be shown or not. setWizardStyle( QWizard::ModernStyle ); connect( this, SIGNAL(currentIdChanged(int)), SLOT(slotCurrentPageChanged(int))); connect( _setupPage, SIGNAL(determineAuthType(QString)), SIGNAL(determineAuthType(QString))); connect( _httpCredsPage, SIGNAL(connectToOCUrl(QString)), SIGNAL(connectToOCUrl(QString))); connect( _shibbolethCredsPage, SIGNAL(connectToOCUrl(QString)), SIGNAL(connectToOCUrl(QString))); connect( _advancedSetupPage, SIGNAL(createLocalAndRemoteFolders(QString, QString)), SIGNAL(createLocalAndRemoteFolders(QString, QString))); connect(this, SIGNAL(customButtonClicked(int)), this, SIGNAL(skipFolderConfiguration())); Theme *theme = Theme::instance(); setWindowTitle( tr("%1 Connection Wizard").arg(theme->appNameGUI())); setWizardStyle(QWizard::ModernStyle); setPixmap( QWizard::BannerPixmap, theme->wizardHeaderBanner() ); setPixmap( QWizard::LogoPixmap, theme->wizardHeaderLogo() ); setOption( QWizard::NoBackButtonOnStartPage ); setOption( QWizard::NoBackButtonOnLastPage ); setOption( QWizard::NoCancelButton ); setTitleFormat(Qt::RichText); setSubTitleFormat(Qt::RichText); setButtonText(QWizard::CustomButton1, tr("Skip folders configuration")); }
MatDBAboutDialog::MatDBAboutDialog(QWidget *parent) : QWizard(parent) { #ifdef Q_WS_MAC this->setParent(qApp->focusWidget()); this->setWindowModality(Qt::WindowModal); this->setWindowFlags(Qt::Sheet); setWizardStyle(ModernStyle); #endif setFixedWidth(900); setFixedHeight(450); setSizeGripEnabled(false); setPage(Page_Version, new VersionPage); setPage(Page_License, new LicensePage); setStartId(Page_Version); QList<QWizard::WizardButton> layout; layout << QWizard::Stretch << QWizard::FinishButton << QWizard::NextButton; setButtonLayout(layout); QPixmap pix(":/artwork/MatDBAbout.png"); setPixmap(QWizard::WatermarkPixmap, pix); setPixmap(QWizard::LogoPixmap, pix); setPixmap(QWizard::BannerPixmap, pix); setPixmap(QWizard::BackgroundPixmap, pix); }
/** * Constructor. Sets up the wizard and loads the wizard pages. * Each wizard page has its own class. * @param doc the UML document */ ClassWizard::ClassWizard(UMLDoc* doc) : QWizard( (QWidget*)doc->parent()) { m_doc = doc; //create a unique class to start with UMLObject * pTemp = 0; QString name = i18n("new_class"); QString newName = name; QString num; int i = 0; m_pClass = new UMLClassifier( newName ); do { m_pClass->setName( newName ); pTemp = m_doc->findUMLObject( newName ); num.setNum( ++i); newName = name; newName.append("_").append( num ); } while( pTemp ); setWizardStyle(QWizard::ModernStyle); setPixmap(QWizard::LogoPixmap, Icon_Utils::UserIcon(Icon_Utils::it_Code_Gen_Wizard)); setWindowTitle(i18n("Class Wizard")); setOption(QWizard::NoBackButtonOnStartPage, true); setOption(QWizard::HaveHelpButton, true); connect(this, SIGNAL(helpRequested()), this, SLOT(showHelp())); addPage(createGeneralPage()); addPage(createAttributesPage()); addPage(createOperationsPage()); }
ProblemZipper::ProblemZipper(QWidget *parent) : QWizard(parent) { addPage(new ClassInfoPage); setWizardStyle(QWizard::ModernStyle); setWindowTitle(tr("Problem Zipper")); m_FolderCopyFilterOut << "Debug" << "Release" << "Release with Debug" << "_UpgradeReport_Files" << "Backup" << "ipch";// << "GeneratedFiles"; m_ExtensionCopyFilterOut << "ncb" << "suo" << "sdf" << "htm" << "XML" << "gitignore" << "user" << "filters";// << "sln"; // sets some variable for a specific porject to copy m_ToReplaceWithDeviceName = "StoreCredit"; m_ToReplaceWithProblemName = "VisualProblemSolver"; m_ToReplaceWithProjectName = "VisualProblemSolver"; // try to find the directory of the project to copy m_FromDir = QDir("../"); m_ToDir = QDir("../Problems"); if(!m_FromDir.cd(m_ToReplaceWithProjectName)) qWarning() << "couldn't find the source project: " << m_ToReplaceWithProjectName; if(!m_FromDir.exists() || !m_ToDir.exists()) { qWarning() << "couldn't find the directories. " << m_FromDir << "or" << m_ToDir; } }
void NewGalleryWizard::setupUi() { setWindowTitle(tr("Create a new gallery")); setDefaultProperty("QComboBox", "currentText", "currentIndexChanged()"); setOption(QWizard::DisabledBackButtonOnLastPage); addPage(new GWidgets::GWizard::WelcomePage); m_selectionPage = addPage(new GWidgets::GWizard::SelectionPage); addPage(new GWidgets::GWizard::SummaryPage); m_copyPage = addPage(new GWidgets::GWizard::CopyPage); addPage(new GWidgets::GWizard::FinishPage); setPixmap(QWizard::LogoPixmap, QPixmap(":/images/galerist.png").scaled(55, 55, Qt::KeepAspectRatio)); setPixmap(QWizard::BannerPixmap, QPixmap(":/images/newgallerywizard-banner.png")); setPixmap(QWizard::BackgroundPixmap, QPixmap(":/images/galerist-big.png")); #ifdef Q_WS_X11 setWizardStyle(QWizard::ModernStyle); #endif if (wizardStyle() == QWizard::MacStyle) setFixedSize(770, 570); else setFixedSize(580, 570); }
AddFeedWizard::AddFeedWizard(QWidget *parent, int curFolderId) : QWizard(parent), curFolderId_(curFolderId) { setWindowFlags (windowFlags() & ~Qt::WindowContextHelpButtonHint); setWindowTitle(tr("Add Feed")); setWizardStyle(QWizard::ModernStyle); setOptions(QWizard::HaveFinishButtonOnEarlyPages | QWizard::NoBackButtonOnStartPage); addPage(createUrlFeedPage()); addPage(createNameFeedPage()); updateFeeds_ = new UpdateFeeds(this, true); connect(button(QWizard::BackButton), SIGNAL(clicked()), this, SLOT(backButtonClicked())); connect(button(QWizard::NextButton), SIGNAL(clicked()), this, SLOT(nextButtonClicked())); connect(button(QWizard::FinishButton), SIGNAL(clicked()), this, SLOT(finishButtonClicked())); connect(this, SIGNAL(currentIdChanged(int)), SLOT(slotCurrentIdChanged(int)), Qt::QueuedConnection); resize(400, 300); Settings settings; restoreGeometry(settings.value("addFeedWizard/geometry").toByteArray()); }
//! [0] //! [1] //! [2] LicenseWizard::LicenseWizard(QWidget *parent) : QWizard(parent) { //! [0] setPage(Page_Intro, new IntroPage); setPage(Page_Evaluate, new EvaluatePage); setPage(Page_Register, new RegisterPage); setPage(Page_Details, new DetailsPage); setPage(Page_Conclusion, new ConclusionPage); //! [1] setStartId(Page_Intro); //! [2] //! [3] #ifndef Q_WS_MAC //! [3] //! [4] setWizardStyle(ModernStyle); #endif //! [4] //! [5] setOption(HaveHelpButton, true); //! [5] //! [6] setPixmap(QWizard::LogoPixmap, QPixmap(":/images/logo.png")); //! [7] connect(this, SIGNAL(helpRequested()), this, SLOT(showHelp())); //! [7] setWindowTitle(tr("License Wizard")); //! [8] }
NewWizard::NewWizard(QWidget* parent) : QWizard(parent) { setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint); setWizardStyle(QWizard::ClassicStyle); setPixmap(QWizard::LogoPixmap, QPixmap(":/data/mscore.png")); setPixmap(QWizard::WatermarkPixmap, QPixmap()); setWindowTitle(tr("MuseScore: Create New Score")); setOption(QWizard::NoCancelButton, false); setOption(QWizard::CancelButtonOnLeft, true); setOption(QWizard::HaveFinishButtonOnEarlyPages, true); setOption(QWizard::HaveNextButtonOnLastPage, true); p1 = new NewWizardPage1; p2 = new NewWizardPage2; p3 = new NewWizardPage3; p4 = new NewWizardPage4; p5 = new NewWizardPage5; setPage(int(Page::Type), p1); setPage(int(Page::Template), p4); setPage(int(Page::Instruments), p2); setPage(int(Page::Timesig), p3); setPage(int(Page::Keysig), p5); p2->setFinalPage(true); p3->setFinalPage(true); p4->setFinalPage(true); p5->setFinalPage(true); resize(840, 560); }
FirstRunDlg::FirstRunDlg(QWidget* const parent) : QWizard(parent), d(new Private) { setWizardStyle(QWizard::ClassicStyle); setButtonLayout(QList<QWizard::WizardButton>() << QWizard::HelpButton << QWizard::BackButton << QWizard::CancelButton << QWizard::NextButton << QWizard::FinishButton); d->welcomePage = new WelcomePage(this); // First assistant page d->collectionPage = new CollectionPage(this); d->databasePage = new DatabasePage(this); d->rawPage = new RawPage(this); d->metadataPage = new MetadataPage(this); d->previewPage = new PreviewPage(this); d->openFilePage = new OpenFilePage(this); d->tooltipsPage = new TooltipsPage(this); // NOTE: Added here new assistant pages... d->startScanPage = new StartScanPage(this); // Last assistant page resize(600, 600); connect(button(QWizard::FinishButton), SIGNAL(clicked()), this, SLOT(slotFinishPressed())); connect(this, SIGNAL(helpRequested()), this, SLOT(slotHelp())); }
NewTorrentWizard::NewTorrentWizard (QWidget *parent) : QWizard (parent) { setWindowTitle (tr ("New torrent wizard")); setWizardStyle (QWizard::ModernStyle); setPage (PageIntro, new IntroPage); setPage (PageFirstStep, new FirstStep); setPage (PageSecondStep, new ThirdStep); }
/** * Constructor. Sets up the wizard and loads the wizard pages. * Each wizard page has its own class. * @param classList the list of classes, which have to be generated */ CodeImportingWizard::CodeImportingWizard() : QWizard((QWidget*)UMLApp::app()) { setWizardStyle(QWizard::ModernStyle); setPixmap(QWizard::LogoPixmap, Icon_Utils::UserIcon(Icon_Utils::it_Code_Gen_Wizard)); setWindowTitle(i18n("Code Importing Wizard")); setOption(QWizard::NoBackButtonOnStartPage, true); setPage(SelectionPage, createSelectionPage()); setPage(StatusPage, createStatusPage()); }
/** Constructeur @param parent QWidget parent de ce dialogue @param f flags pour le dialogue */ NewElementWizard::NewElementWizard(QWidget *parent, Qt::WindowFlags f) : QWizard(parent, f), chosen_category(0) { setOptions(options() & ~QWizard::NoCancelButton); #ifdef Q_WS_WIN setWizardStyle(QWizard::AeroStyle); #elif defined(Q_WS_MAC) setWizardStyle(QWizard::MacStyle); #endif setPixmap(LogoPixmap, QPixmap(":/ico/256x256/qelectrotech.png").scaled(64, 64, Qt::KeepAspectRatio, Qt::SmoothTransformation)); setWindowTitle(tr("Cr\351er un nouvel \351l\351ment : Assistant", "window title")); setButtonText(QWizard::NextButton, tr("&Suivant >")); addPage(buildStep1()); addPage(buildStep2()); addPage(buildStep3()); setFixedSize(705, 325); }
/** * Constructor. Sets up the wizard and loads the wizard pages. * Each wizard page has its own class. * @param classList the list of classes, which have to be generated */ CodeGenerationWizard::CodeGenerationWizard(UMLClassifierList *classList) : QWizard((QWidget*)UMLApp::app()) { setWizardStyle(QWizard::ModernStyle); setPixmap(QWizard::LogoPixmap, Icon_Utils::UserIcon(Icon_Utils::it_Code_Gen_Wizard)); setWindowTitle(i18n("Code Generation Wizard")); setOption(QWizard::NoBackButtonOnStartPage, true); setPage(SelectionPage, createSelectionPage(classList)); setPage(OptionsPage, createOptionsPage()); setPage(StatusPage, createStatusPage()); }
ConnectFriendWizard::ConnectFriendWizard(QWidget *parent) : QWizard(parent), ui(new Ui::ConnectFriendWizard) { ui->setupUi(this); mTitleFontSize = 0; // Standard mTitleFontWeight = 0; // Standard // this define comes from Qt example. I don't have mac, so it wasn't tested #ifndef Q_OS_MAC setWizardStyle(ModernStyle); #endif setStartId(Page_Intro); // at this moment I don't know, what information should be in help // setOption(HaveHelpButton, true); // connect(this, SIGNAL(helpRequested()), this, SLOT(showHelp())); setPixmap(QWizard::LogoPixmap, QPixmap(":/images/connect/connectFriendLogo.png")); // we have no good pictures for watermarks // setPixmap(QWizard::WatermarkPixmap, QPixmap(":/images/connectFriendWatermark.png")); /* register global fields */ ui->ErrorMessagePage->registerField("errorMessage", ui->messageLabel, "text"); /* disable not used pages */ ui->foffRadioButton->hide(); ui->rsidRadioButton->hide(); ui->fr_label->hide(); ui->requestinfolabel->hide(); connect(ui->acceptNoSignGPGCheckBox,SIGNAL(toggled(bool)), ui->_options_GB,SLOT(setEnabled(bool))) ; connect(ui->addKeyToKeyring_CB,SIGNAL(toggled(bool)), ui->acceptNoSignGPGCheckBox,SLOT(setChecked(bool))) ; connect(ui->gmailButton, SIGNAL(clicked()), this, SLOT(inviteGmail())); connect(ui->yahooButton, SIGNAL(clicked()), this, SLOT(inviteYahoo())); connect(ui->outlookButton, SIGNAL(clicked()), this, SLOT(inviteOutlook())); connect(ui->aolButton, SIGNAL(clicked()), this, SLOT(inviteAol())); connect(ui->yandexButton, SIGNAL(clicked()), this, SLOT(inviteYandex())); connect(ui->emailButton, SIGNAL(clicked()), this, SLOT(runEmailClient2())); subject = tr("RetroShare Invitation"); body = GetStartedDialog::GetInviteText(); body += "\n" + GetStartedDialog::GetCutBelowText(); body += "\n\n" + QString::fromUtf8(rsPeers->GetRetroshareInvite(false).c_str()); updateStylesheet(); }
EulaDialog::EulaDialog(QWidget* parent) : QWizard(parent) { setWindowTitle(trEulaTitle); setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); //// First page QWizardPage* firstPage = new QWizardPage; QRadioButton* agreeButton = new QRadioButton(trIAgree); VERIFY(connect(agreeButton, &QRadioButton::clicked, this, &EulaDialog::agreeButtonClicked)); QRadioButton* notAgreeButton = new QRadioButton(trIDontAgree); notAgreeButton->setChecked(true); VERIFY(connect(notAgreeButton, &QRadioButton::clicked, this, &EulaDialog::notAgreeButtonClicked)); QHBoxLayout* radioButtonsLay = new QHBoxLayout; radioButtonsLay->setAlignment(Qt::AlignHCenter); radioButtonsLay->setSpacing(30); radioButtonsLay->addWidget(agreeButton); radioButtonsLay->addWidget(notAgreeButton); QTextEdit* textBrowser = new QTextEdit; QFile file(":" PROJECT_NAME_LOWERCASE "/LICENSE"); if (file.open(QFile::ReadOnly | QFile::Text)) { textBrowser->setHtml(file.readAll()); } QVBoxLayout* mainLayout1 = new QVBoxLayout; mainLayout1->addWidget(new QLabel("<h3>" + trEndUserAgr + "</h3>")); mainLayout1->addWidget(textBrowser); mainLayout1->addLayout(radioButtonsLay, Qt::AlignCenter); firstPage->setLayout(mainLayout1); addPage(firstPage); //// Buttons setButtonText(QWizard::CustomButton1, trBack); setButtonText(QWizard::CustomButton2, trNext); setButtonText(QWizard::CustomButton3, trFinish); VERIFY(connect(button(QWizard::CustomButton1), &QAbstractButton::clicked, this, &EulaDialog::backButtonClicked)); VERIFY(connect(button(QWizard::CustomButton2), &QAbstractButton::clicked, this, &EulaDialog::nextButtonClicked)); VERIFY(connect(button(QWizard::CustomButton3), &QAbstractButton::clicked, this, &EulaDialog::finishButtonClicked)); setButtonLayout(QList<WizardButton>{QWizard::Stretch, QWizard::CustomButton1, QWizard::CustomButton2, QWizard::CancelButton, QWizard::CustomButton3}); button(QWizard::CustomButton1)->setHidden(true); button(QWizard::CustomButton2)->setHidden(true); button(QWizard::CustomButton3)->setDisabled(true); setWizardStyle(QWizard::ModernStyle); }
WizardInstaller::WizardInstaller(QWidget* parent) : QWizard(parent) { setWindowFlags(Qt::FramelessWindowHint); setOption(NoBackButtonOnStartPage); setOption(NoBackButtonOnLastPage); setWizardStyle(MacStyle); // create all wizard page now. WizardPage_Welcome * page_welcome = new WizardPage_Welcome; WizardPage_Licence * page_licence = new WizardPage_Licence; WizardPage_installmode * page_install_mode = new WizardPage_installmode; WizardPage_Partition_Advanced * page_partition_advanced = new WizardPage_Partition_Advanced; WizardPage_chooseGroup * page_choosegroup = new WizardPage_chooseGroup; WizardPage_Summary * page_summary = new WizardPage_Summary; WizardPage_Progress * page_progress = new WizardPage_Progress; WizardPage_UserAdd * page_useradd = new WizardPage_UserAdd; WizardPage_Finish * page_finish = new WizardPage_Finish; setPage(Page_Welcome, page_welcome); setPage(Page_Licence, page_licence); setPage(Page_InstallMode, page_install_mode); setPage(Page_Partition_Advanced, page_partition_advanced); setPage(Page_ChooseGroup, page_choosegroup); setPage(Page_Summary, page_summary); setPage(Page_Progress, page_progress); setPage(Page_UserAdd, page_useradd); setPage(Page_Finish, page_finish); connect( page_welcome, SIGNAL( localeChanged() ), this, SLOT( reTranslateUi() ) ); connect( page_progress, SIGNAL( exitstate(bool) ), this, SLOT( setExitState(bool) ) ); connect( page_finish, SIGNAL( exitstate(bool) ), this, SLOT( setExitState(bool) ) ); m_exitstate = true; reTranslateUi(); QPixmap background( g_appImgPath + "/installer-background.png" ); setPixmap( QWizard::BackgroundPixmap, background ); _indicator = new StageIndicator(this); _indicator->move(80, 80); _indicator->show(); connect(this, SIGNAL(currentIdChanged(int)), this, SLOT(updateIndicator(int))); _board = new DashBoard(0); _board->move(0, 0); _board->show(); _board->lower(); }
FirstRunDlg::FirstRunDlg(QWidget* const parent) : QWizard(parent), d(new Private) { setWizardStyle(QWizard::ClassicStyle); setButtonLayout(QList<QWizard::WizardButton>() << QWizard::HelpButton << QWizard::BackButton << QWizard::CancelButton << QWizard::NextButton << QWizard::FinishButton); bool migrateAvailable; #ifdef Q_OS_LINUX ::Kdelibs4Migration migration; // If there's a digikamrc file in $KDEHOME/share/config, // then we create the migration page in the wizard migrateAvailable = !migration.locateLocal("config", QLatin1String("digikamrc")).isEmpty(); #else migrateAvailable = false; #endif d->welcomePage = new WelcomePage(this); // First assistant page if (migrateAvailable) d->migrateFromDigikam4Page = new MigrateFromDigikam4Page(this); d->collectionPage = new CollectionPage(this); d->databasePage = new DatabasePage(this); d->rawPage = new RawPage(this); d->metadataPage = new MetadataPage(this); d->previewPage = new PreviewPage(this); d->openFilePage = new OpenFilePage(this); d->tooltipsPage = new TooltipsPage(this); // NOTE: Added here new assistant pages... d->startScanPage = new StartScanPage(this); // Last assistant page resize(600, 600); connect(button(QWizard::FinishButton), SIGNAL(clicked()), this, SLOT(slotFinishPressed())); connect(this, SIGNAL(helpRequested()), this, SLOT(slotHelp())); }
OwncloudWizard::OwncloudWizard(QWidget *parent) : QWizard(parent) { setPage(Page_SelectType, new OwncloudWizardSelectTypePage() ); setPage(Page_Create_OC, new CreateAnOwncloudPage() ); setPage(Page_FTP, new OwncloudFTPAccessPage() ); setPage(Page_OC_Credentials, new OwncloudCredentialsPage() ); setPage(Page_Install, new OwncloudWizardResultPage() ); #ifdef Q_WS_MAC setWizardStyle( QWizard::ModernStyle ); #endif connect( this, SIGNAL(currentIdChanged(int)), SLOT(slotCurrentPageChanged(int))); }
SetupWizard::SetupWizard(QWidget *parent) : QWizard(parent), VehicleConfigurationSource(), m_controllerType(CONTROLLER_UNKNOWN), m_vehicleType(VEHICLE_UNKNOWN), m_inputType(INPUT_UNKNOWN), m_escType(ESC_UNKNOWN), m_levellingPerformed(false), m_restartNeeded(false), m_connectionManager(0) { setWindowTitle(tr("OpenPilot Setup Wizard")); setOption(QWizard::IndependentPages, false); for(quint16 i = 0; i < ActuatorSettings::CHANNELMAX_NUMELEM; i++) { m_actuatorSettings << actuatorChannelSettings(); } setWizardStyle(QWizard::ModernStyle); setMinimumSize(600, 450); resize(600, 450); createPages(); }
Wizard::Wizard(QWidget *parent, std::vector<std::vector<double> > *all_coef, std::vector<double> *all_coef_corr, std::vector<Curve>* curves) : QWizard(parent) { all_coeficientes = all_coef; all_coef_correlacao = all_coef_corr; _curves = curves; setAttribute(Qt::WA_DeleteOnClose); configInitialPage = new ConfigInitialPage; addPage(new IntroPage); addPage(configInitialPage); setWindowTitle(tr("Mínimos Quadrados")); setWizardStyle(QWizard::ClassicStyle); }
FolderWizard::FolderWizard( QWidget *parent, Theme *theme ) : QWizard(parent), _folderWizardSourcePage(0) { _folderWizardSourcePage = new FolderWizardSourcePage(); setPage(Page_Source, _folderWizardSourcePage ); setPage(Page_Target, new FolderWizardTargetPage()); // setPage(Page_Network, new FolderWizardNetworkPage()); // setPage(Page_Owncloud, new FolderWizardOwncloudPage()); setWindowTitle( tr( "%1 Folder Wizard") .arg( theme ? theme->appName() : QLatin1String("Mirall") ) ); #ifdef Q_WS_MAC setWizardStyle( QWizard::ModernStyle ); #endif }
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() ); }
FolderWizard::FolderWizard( QWidget *parent ) : QWizard(parent), _folderWizardSourcePage(new FolderWizardSourcePage), _folderWizardTargetPage(0) { setPage(Page_Source, _folderWizardSourcePage ); if (!Theme::instance()->singleSyncFolder()) { _folderWizardTargetPage = new FolderWizardTargetPage(); setPage(Page_Target, _folderWizardTargetPage ); } setWindowTitle( tr( "%1 Folder Wizard" ).arg( Theme::instance()->appNameGUI() ) ); #ifdef Q_WS_MAC setWizardStyle( QWizard::ModernStyle ); #endif }
StartupWizard::StartupWizard (QWidget *parent) : QWizard (parent) , TypeChoseID_ (-10) , Type_ (TBasic) { setWindowTitle (tr ("Startup wizard")); setWizardStyle (QWizard::ModernStyle); handleTypeChanged (Type_); QList<IStartupWizard*> wizards = Core::Instance () .GetPluginManager ()->GetAllCastableTo<IStartupWizard*> (); Q_FOREACH (IStartupWizard *wizard, wizards) { QList<QWizardPage*> tp = wizard->GetWizardPages (); Pages_ += tp; }
NewWizard::NewWizard(QWidget* p) : QWizard(p) { this->setPage(Page_New, new NewPage(this)); m_matrix_page = new MatrixPage(this); this->setPage(Page_Matrix, m_matrix_page); this->setStartId(Page_New); #ifndef Q_WS_MAC setWizardStyle(ModernStyle); #endif setOption(HaveHelpButton, true); setPixmap(QWizard::LogoPixmap, QPixmap(":/images/logo.png")); connect(this, SIGNAL(helpRequested()), this, SLOT(showHelp())); setWindowTitle(tr("New Session Wizard")); vec.clear(); }
FirstRunWizard::FirstRunWizard(QWidget *parent) : QWizard(parent), _locale(new LocaleManager()) { setPage(Intro, new IntroPage); setPage(Settings, new SettingsPage); setPage(Conclusion, new ConclusionPage); setStartId(Intro); #ifndef Q_WS_MAC setWizardStyle(ModernStyle); #endif setPixmap(QWizard::LogoPixmap, QPixmap(":/logo/48x48/logo.png")); setWindowTitle(tr("First Run Wizard")); }