DataImporterImportPage::DataImporterImportPage(DbUiManager *uiManager, QWidget *parent) :
    ConnectionPageWizardPage(uiManager, parent), queryScheduler(0), workerThread(0)
{
    setTitle(tr("Importing..."));
    setSubTitle(tr("Data import is in progress"));
    setFinalPage(true);

    QHBoxLayout *mainLayout = new QHBoxLayout();

    QVBoxLayout *centerLayout = new QVBoxLayout();

    statusLabel = new QLabel(tr("Starting..."));
    centerLayout->addWidget(statusLabel);

    stopButton = new QPushButton(IconUtil::getIcon("stop"), tr("Stop"));
    centerLayout->addWidget(stopButton);
    stopButton->setVisible(false);

    mainLayout->addLayout(centerLayout);
    mainLayout->setAlignment(centerLayout, Qt::AlignCenter);
    setLayout(mainLayout);

    setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);

    connect(stopButton, SIGNAL(clicked()), this, SLOT(stopButtonPressed()));
}
Esempio n. 2
0
LIntroPage::LIntroPage(QWidget *parent)
    : QWizardPage(parent)
{
    setTitle(tr("CLS Startup Wizard"));
    //setPixmap(QWizard::WatermarkPixmap, QPixmap(":/images/watermark.png"));

    setSubTitle(tr("This wizard will help you start the <i>Compact Light Source (CLS)</i>.<br>"
                   "To get started, select the current state of the CLS:"));

    m_hardwareOffRadioButton = new QRadioButton(tr("CLS &Hardware is Off"));
    m_clsNotWarmedUpRadioButton = new QRadioButton(tr("Hardware is on, but CLS is &Not warmed up"));
    m_clsNotConfiguredRadioButton = new QRadioButton(tr("CLS is &Warmed up, but not configured"));
    m_ebeamOnFirstScreenRadioButton = new QRadioButton(tr("E-beam is on &1st screen"));
    m_ebeamOnThirdScreenRadioButton = new QRadioButton(tr("E-beam is on &3rd screen"));
    m_ebeamInStorageRingRadioButton = new QRadioButton(tr("E-beam is stored in ring, optical cavity is off."));
    m_xrayNotTunedRadioButton = new QRadioButton(tr("CLS is on, x-ray are generated. but x-ray characteristics need to be tuned"));
    m_xrayTunedRadioButton = new QRadioButton(tr("CLS is on, x-ray are generated, x-ray are tuned"));
    m_hardwareOffRadioButton->setChecked(true);

    QVBoxLayout *layout = new QVBoxLayout;
    layout->addWidget(m_hardwareOffRadioButton);
    layout->addWidget(m_clsNotWarmedUpRadioButton);
    layout->addWidget(m_clsNotConfiguredRadioButton);
    layout->addWidget(m_ebeamOnFirstScreenRadioButton);
    layout->addWidget(m_ebeamOnThirdScreenRadioButton);
    layout->addWidget(m_ebeamInStorageRingRadioButton);
    layout->addWidget(m_xrayNotTunedRadioButton);
    layout->addWidget(m_xrayTunedRadioButton);
    setLayout(layout);
}
Esempio n. 3
0
//BEGIN ExportOutputPage
ExportOutputPage::ExportOutputPage(QWidget *parent)
: QWizardPage(parent)
{
  setTitle(i18nc("@title Wizard page title", "Output Target"));
  setSubTitle(i18nc("@title Wizard page subtitle", "Select the output target."));

  QVBoxLayout *layout = new QVBoxLayout();

  documentRadioButton = new QRadioButton(i18nc("@option:radio Output target", "Current document"), this);
  clipboardRadioButton = new QRadioButton(i18nc("@option:radio Output target", "Clipboard"), this);
  fileRadioButton = new QRadioButton(i18nc("@option:radio Output target", "File"), this);

  QHBoxLayout *fileLayout = new QHBoxLayout();
  fileLayout->setContentsMargins(20, 0, 0, 0);

  fileUrl = new KUrlRequester(this);
  fileUrl->setMode(KFile::File);
  fileUrl->setFilter(i18n("*.csv|Comma Separated Values\n*|All files"));

  fileLayout->addWidget(fileUrl);

  layout->addWidget(documentRadioButton);
  layout->addWidget(clipboardRadioButton);
  layout->addWidget(fileRadioButton);
  layout->addLayout(fileLayout);

  setLayout(layout);

  registerField(QLatin1String("outDocument"), documentRadioButton);
  registerField(QLatin1String("outClipboard"), clipboardRadioButton);
  registerField(QLatin1String("outFile"), fileRadioButton);
  registerField(QLatin1String("outFileUrl"), fileUrl, "text");

  connect(fileRadioButton, SIGNAL(toggled(bool)), fileUrl, SLOT(setEnabled(bool)));
}
CloneWizardPage::CloneWizardPage(QWidget *parent) :
    VCSBase::BaseCheckoutWizardPage(parent),
    d(new CloneWizardPagePrivate)
{
    setSubTitle(tr("Specify repository URL, checkout directory and path."));
    setRepositoryLabel(tr("Clone URL:"));
}
Esempio n. 5
0
LPowerHardwareOnPage::LPowerHardwareOnPage(QWidget *parent)
    : QWizardPage(parent)
{
    setTitle(tr("Power on the CLS hardware"));
    setSubTitle(tr("The CLS hardware is about to be turned on.<br>"
                   ""));

    m_fuseBoxCheckBox = new QCheckBox(tr("All circuit breakers on"));
    m_enclosureSignsOnCheckBox = new QCheckBox(tr("Enclosure signs are displayed"));
    m_chillersOnCheckBox = new QCheckBox(tr("All chillers are on"));
    m_racksOnCheckBox = new QCheckBox(tr("Equipment in racks is on"));
    m_ipsEnabledCheckBox = new QCheckBox(tr("IPs enabled and latched alarms are cleared"));

    QGridLayout *layout = new QGridLayout;
    layout->addWidget(m_fuseBoxCheckBox, 0, 0);
    layout->addWidget(m_enclosureSignsOnCheckBox, 1, 0);
    layout->addWidget(m_chillersOnCheckBox,2,0);
    layout->addWidget(m_racksOnCheckBox,3,0);
    layout->addWidget(m_ipsEnabledCheckBox,4,0);
    setLayout(layout);

    connect(m_fuseBoxCheckBox, SIGNAL(toggled(bool)), this, SLOT(slotCheckBoxChanged()));
    connect(m_enclosureSignsOnCheckBox, SIGNAL(toggled(bool)), this, SLOT(slotCheckBoxChanged()));
    connect(m_chillersOnCheckBox, SIGNAL(toggled(bool)), this, SLOT(slotCheckBoxChanged()));
    connect(m_racksOnCheckBox, SIGNAL(toggled(bool)), this, SLOT(slotCheckBoxChanged()));
    connect(m_ipsEnabledCheckBox, SIGNAL(toggled(bool)), this, SLOT(slotCheckBoxChanged()));
}
// UnitColorView
//---------------------------------------------------------------------------
UnitColorView::UnitColorView() : View()
{
    setSearchName("UnitColorView");
    setTitle("Selects Your Unit Color");
    setSubTitle("");

    setAllowResize(false);
    setAllowMove(false);
    setVisible(false);

    Surface unitSurface;

    moveTo(400, 200);

    packedBody.load("units/pics/pak/TitaHNSD.pak");
    packedBody.setFPS(12);

    packedTurret.load("units/pics/pak/TitaTNSD.pak");
    packedTurret.setFPS(8);

    grassSurface.loadBMP("pics/grass.bmp");

    fuckingSurface.create(packedTurret.getWidth(), packedTurret.getHeight(), 1);
    fuckingSurface.fill(0);

    resizeClientArea(packedTurret.getWidth(), packedTurret.getHeight());

    int size = packedTurret.getWidth() / 2;
    addButtonCenterText(iXY(0, 0), size, "Up", "", bIncreaseBrightness);
    addButtonCenterText(iXY(size, 0), size, "Down", "", bDecreaseBrightness);

    setGrayColorTable();
    rebuildGrayColorTable();

} // end UnitColorView::UnitColorView
// AreYouSureExitView
//---------------------------------------------------------------------------
AreYouSureExitView::AreYouSureExitView() : SpecialButtonView()
{
    setSearchName("AreYouSureExitView");
    setTitle("Exit netPanzer");
    setSubTitle("");

} // end AreYouSureExitView::AreYouSureExitView
void icdCommunicationPage::retranslateUi()
{
    setWindowTitle(QApplication::translate("icdCommunicationPage", "WizardPage", 0, QApplication::UnicodeUTF8));
    setTitle(QApplication::translate("icdCommunicationPage", "ICD Communication Setting", 0, QApplication::UnicodeUTF8));
    setSubTitle(QApplication::translate("icdCommunicationPage", "This page can set the attributes of communication segment, if needed.", 0, QApplication::UnicodeUTF8));
    communicationGroupBox->setTitle(QApplication::translate("icdCommunicationPage", "Communication", 0, QApplication::UnicodeUTF8));
    subNetworkGroupBox->setTitle(QApplication::translate("icdCommunicationPage", "SubNetwork", 0, QApplication::UnicodeUTF8));
    subNetworkTypeLabel->setText(QApplication::translate("icdCommunicationPage", "type", 0, QApplication::UnicodeUTF8));
    subNetworkDescCheckBox->setText(QString());
    subNetworkTypeCheckBox->setText(QString());
    subNetworkDescLabel->setText(QApplication::translate("icdCommunicationPage", "desc", 0, QApplication::UnicodeUTF8));
    bitRateGroupBox->setTitle(QApplication::translate("icdCommunicationPage", "BitRate", 0, QApplication::UnicodeUTF8));
    bitRateComboBox->clear();
    bitRateComboBox->insertItems(0, QStringList()
     << QApplication::translate("icdCommunicationPage", "10", 0, QApplication::UnicodeUTF8)
     << QApplication::translate("icdCommunicationPage", "100", 0, QApplication::UnicodeUTF8)
     << QApplication::translate("icdCommunicationPage", "1000", 0, QApplication::UnicodeUTF8)
    );
    bitRateLabel->setText(QApplication::translate("icdCommunicationPage", "Setting BitRate of this subNetwork:", 0, QApplication::UnicodeUTF8));
    bitRateUnitLabel->setText(QApplication::translate("icdCommunicationPage", "(unit : Mb/s)", 0, QApplication::UnicodeUTF8));
    connectedAPGroupBox->setTitle(QApplication::translate("icdCommunicationPage", "ConnectedAP", 0, QApplication::UnicodeUTF8));
    connectedIedNameLabel->setText(QApplication::translate("icdCommunicationPage", "iedName", 0, QApplication::UnicodeUTF8));
    connectedApNameLabel->setText(QApplication::translate("icdCommunicationPage", "apName", 0, QApplication::UnicodeUTF8));
    addressGroupBox->setTitle(QApplication::translate("icdCommunicationPage", "Address", 0, QApplication::UnicodeUTF8));
    ipAddressLabel->setText(tr("IP"));
    ipSubMaskLabel->setText(tr("Mask"));
    ipGateLabel->setText(tr("Gate"));
    subNetworkNamelabel->setText(QApplication::translate("icdCommunicationPage", "name", 0, QApplication::UnicodeUTF8));
    subNetworkNameText->setText(tr("LAN1"));

}
CheckoutWizardPage::CheckoutWizardPage(QWidget *parent) :
    VCSBase::BaseCheckoutWizardPage(parent)
{
    setTitle(tr("Location"));
    setSubTitle(tr("Specify repository URL, checkout directory and path."));
    setRepositoryLabel(tr("Repository:"));
}
Esempio n. 10
0
OwncloudWizardResultPage::OwncloudWizardResultPage()
{
    _ui.setupUi(this);
    // no fields to register.

    Theme *theme = Theme::instance();
    setTitle( tr("<font color=\"%1\" size=\"5\">Everything set up!</font>")
              .arg(theme->wizardHeaderTitleColor().name()));
    // required to show header in QWizard's modern style
    setSubTitle( QLatin1String(" ") );

    _ui.pbOpenLocal->setText("Open local folder");
    _ui.pbOpenServer->setText(tr("Open %1").arg(Theme::instance()->appNameGUI()));

    _ui.pbOpenLocal->setIcon(QIcon(":/mirall/resources/folder-sync.png"));
    _ui.pbOpenLocal->setText(tr("Open Local Folder"));
    _ui.pbOpenLocal->setIconSize(QSize(48, 48));
    connect(_ui.pbOpenLocal, SIGNAL(clicked()), SLOT(slotOpenLocal()));

    _ui.pbOpenLocal->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);

    QIcon appIcon = theme->applicationIcon();
    _ui.pbOpenServer->setIcon(appIcon.pixmap(48));
    _ui.pbOpenServer->setText(tr("Open %1").arg(theme->appNameGUI()));
    _ui.pbOpenServer->setIconSize(QSize(48, 48));
    _ui.pbOpenServer->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
    connect(_ui.pbOpenServer, SIGNAL(clicked()), SLOT(slotOpenServer()));
    setupCustomization();
}
Esempio n. 11
0
OutputFilesPage::OutputFilesPage(QWidget *parent)
    : QWizardPage(parent)
{
    setTitle(tr("Output Files"));
    setSubTitle(tr("Specify where you want the wizard to put the generated "
                   "skeleton code."));
    setPixmap(QWizard::LogoPixmap, QPixmap(":/images/logo3.png"));

    outputDirLabel = new QLabel(tr("&Output directory:"));
    outputDirLineEdit = new QLineEdit;
    outputDirLabel->setBuddy(outputDirLineEdit);

    headerLabel = new QLabel(tr("&Header file name:"));
    headerLineEdit = new QLineEdit;
    headerLabel->setBuddy(headerLineEdit);

    implementationLabel = new QLabel(tr("&Implementation file name:"));
    implementationLineEdit = new QLineEdit;
    implementationLabel->setBuddy(implementationLineEdit);

    registerField("outputDir*", outputDirLineEdit);
    registerField("header*", headerLineEdit);
    registerField("implementation*", implementationLineEdit);

    QGridLayout *layout = new QGridLayout;
    layout->addWidget(outputDirLabel, 0, 0);
    layout->addWidget(outputDirLineEdit, 0, 1);
    layout->addWidget(headerLabel, 1, 0);
    layout->addWidget(headerLineEdit, 1, 1);
    layout->addWidget(implementationLabel, 2, 0);
    layout->addWidget(implementationLineEdit, 2, 1);
    setLayout(layout);
}
Esempio n. 12
0
DetailsPage::DetailsPage(QWidget *parent)
    : QWizardPage(parent)
{
    setTitle(tr("Fill In Your Details"));
    setSubTitle(tr("Please fill all three fields. Make sure to provide a valid "
                   "email address (e.g., [email protected])."));

    companyLabel = new QLabel(tr("&Company name:"));
    companyLineEdit = new QLineEdit;
    companyLabel->setBuddy(companyLineEdit);

    emailLabel = new QLabel(tr("&Email address:"));
    emailLineEdit = new QLineEdit;
    emailLineEdit->setValidator(new QRegExpValidator(QRegExp(".*@.*"), this));
    emailLabel->setBuddy(emailLineEdit);

    postalLabel = new QLabel(tr("&Postal address:"));
    postalLineEdit = new QLineEdit;
    postalLabel->setBuddy(postalLineEdit);

    registerField("details.company*", companyLineEdit);
    registerField("details.email*", emailLineEdit);
    registerField("details.postal*", postalLineEdit);

    QGridLayout *layout = new QGridLayout;
    layout->addWidget(companyLabel, 0, 0);
    layout->addWidget(companyLineEdit, 0, 1);
    layout->addWidget(emailLabel, 1, 0);
    layout->addWidget(emailLineEdit, 1, 1);
    layout->addWidget(postalLabel, 2, 0);
    layout->addWidget(postalLineEdit, 2, 1);
    setLayout(layout);
}
Esempio n. 13
0
RegisterPage::RegisterPage(QWidget *parent)
    : QWizardPage(parent)
{
    setTitle(tr("Register Your Copy of <i>Super Product One</i>&trade;"));
    setSubTitle(tr("If you have an upgrade key, please fill in "
                   "the appropriate field."));

    nameLabel = new QLabel(tr("N&ame:"));
    nameLineEdit = new QLineEdit;
    nameLabel->setBuddy(nameLineEdit);

    upgradeKeyLabel = new QLabel(tr("&Upgrade key:"));
    upgradeKeyLineEdit = new QLineEdit;
    upgradeKeyLabel->setBuddy(upgradeKeyLineEdit);

    registerField("register.name*", nameLineEdit);
    registerField("register.upgradeKey", upgradeKeyLineEdit);

    QGridLayout *layout = new QGridLayout;
    layout->addWidget(nameLabel, 0, 0);
    layout->addWidget(nameLineEdit, 0, 1);
    layout->addWidget(upgradeKeyLabel, 1, 0);
    layout->addWidget(upgradeKeyLineEdit, 1, 1);
    setLayout(layout);
}
Esempio n. 14
0
//! [20]
EvaluatePage::EvaluatePage(QWidget *parent)
    : QWizardPage(parent)
{
    setTitle(tr("Evaluate <i>Super Product One</i>&trade;"));
    setSubTitle(tr("Please fill both fields. Make sure to provide a valid "
                   "email address (e.g., [email protected])."));

    nameLabel = new QLabel(tr("N&ame:"));
    nameLineEdit = new QLineEdit;
//! [20]
    nameLabel->setBuddy(nameLineEdit);

    emailLabel = new QLabel(tr("&Email address:"));
    emailLineEdit = new QLineEdit;
    emailLineEdit->setValidator(new QRegExpValidator(QRegExp(".*@.*"), this));
    emailLabel->setBuddy(emailLineEdit);

//! [21]
    registerField("evaluate.name*", nameLineEdit);
    registerField("evaluate.email*", emailLineEdit);
//! [21]

    QGridLayout *layout = new QGridLayout;
    layout->addWidget(nameLabel, 0, 0);
    layout->addWidget(nameLineEdit, 0, 1);
    layout->addWidget(emailLabel, 1, 0);
    layout->addWidget(emailLineEdit, 1, 1);
    setLayout(layout);
//! [22]
}
Esempio n. 15
0
ModelNamePage::ModelNamePage(QWidget *parent) :
QWizardPage(parent)
{
    setTitle("Enter model class information");
    setSubTitle("The header and source file names will be derived from the class name");
    ui.setupUi(this);
}
Esempio n. 16
0
OwncloudAdvancedSetupPage::OwncloudAdvancedSetupPage()
  : QWizardPage(),
    _ui(),
    _checking(false),
    _created(false),
    _configExists(false),
    _multipleFoldersExist(false),
    _progressIndi(new QProgressIndicator (this)),
    _oldLocalFolder(),
    _remoteFolder()
{
    _ui.setupUi(this);

    Theme *theme = Theme::instance();
    setTitle(WizardCommon::titleTemplate().arg(tr("Connect to %1").arg(theme->appNameGUI())));
    setSubTitle(WizardCommon::subTitleTemplate().arg(tr("Setup local folder options")));

    registerField( QLatin1String("OCSyncFromScratch"), _ui.cbSyncFromScratch);

    _ui.resultLayout->addWidget( _progressIndi );
    stopSpinner();
    setupCustomization();

    connect( _ui.pbSelectLocalFolder, SIGNAL(clicked()), SLOT(slotSelectFolder()));
}
// UnitSelectionView
//---------------------------------------------------------------------------
UnitSelectionView::UnitSelectionView() : View()
{
	setSearchName("UnitSelectionView");
	setTitle("Selects Your Units");
	setSubTitle("");

	setAllowResize(false);
	setAllowMove(false);
	setDisplayStatusBar(true);
	setVisible(false);

	moveTo(bodyTextRect.min);

	resize(bodyTextRect.getSize());

	//setScrollBar(true);

	maxYOffset =  0;

	// Define the scrollBar fot this view.
	scrollBar = new ScrollBar(HORIZONTAL, 0, 1, 0, 100);

	add(scrollBar);

} // end UnitSelectionView::UnitSelectionView
OwncloudWizardResultPage::OwncloudWizardResultPage()
  : QWizardPage(),
    _localFolder(),
    _remoteFolder(),
    _complete(false),
    _ui()
{
    _ui.setupUi(this);
    // no fields to register.

    setTitle(WizardCommon::subTitleTemplate().arg(tr("Everything set up!")));
    // required to show header in QWizard's modern style
    setSubTitle( QLatin1String(" ") );

    _ui.pbOpenLocal->setText(tr("Open Local Folder"));
    _ui.pbOpenLocal->setIcon(QIcon(":/mirall/resources/folder-sync.png"));
    _ui.pbOpenLocal->setIconSize(QSize(48, 48));
    _ui.pbOpenLocal->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
    connect(_ui.pbOpenLocal, SIGNAL(clicked()), SLOT(slotOpenLocal()));

    Theme* theme = Theme::instance();
    QIcon appIcon = theme->applicationIcon();
    _ui.pbOpenServer->setText(tr("Open %1 in Browser").arg(theme->appNameGUI()));
    _ui.pbOpenServer->setIcon(appIcon.pixmap(48));
    _ui.pbOpenServer->setIconSize(QSize(48, 48));
    _ui.pbOpenServer->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
    connect(_ui.pbOpenServer, SIGNAL(clicked()), SLOT(slotOpenServer()));
    setupCustomization();
}
Esempio n. 19
0
NewWizardPage4::NewWizardPage4(QWidget* parent)
   : QWizardPage(parent)
      {
      setFinalPage(true);
      setTitle(tr("Create New Score"));
      setSubTitle(tr("Choose template file:"));
      setAccessibleName(title());
      setAccessibleDescription(subTitle());

      templateFileBrowser = new ScoreBrowser;
      templateFileBrowser->setStripNumbers(true);
      templateFileBrowser->setShowCustomCategory(true);
      templateFileBrowser->setSizePolicy(QSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored));
      buildTemplatesList();

      QVBoxLayout* layout = new QVBoxLayout;
      QHBoxLayout* searchLayout = new QHBoxLayout;
      QLineEdit* search = new QLineEdit;
      search->setPlaceholderText(tr("Search"));
      search->setClearButtonEnabled(true);
      search->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
      searchLayout->addSpacerItem(new QSpacerItem(0, 0, QSizePolicy::MinimumExpanding, QSizePolicy::Maximum));
      searchLayout->addWidget(search);

      layout->addLayout(searchLayout);
      layout->addWidget(templateFileBrowser);
      setLayout(layout);

      connect(templateFileBrowser, SIGNAL(scoreSelected(const QString&)), SLOT(templateChanged(const QString&)));
      connect(templateFileBrowser, SIGNAL(scoreActivated(const QString&)), SLOT(fileAccepted(const QString&)));
      connect(search, &QLineEdit::textChanged, [this] (const QString& searchString) {
            this->templateFileBrowser->filter(searchString);
            });
      }
Esempio n. 20
0
Page1DW::Page1DW(QWidget *parent) : QWizardPage(parent)
{
    setupUi(this);
    setTitle("DW Analysis");
    setSubTitle("Please fill information about the data source and specification. "
                "Also, please choose an imaging model.");
    bValueEdit->setValidator(new QIntValidator(0, 10000, this));

    connect(DataSourceEdit,SIGNAL(textChanged(QString)),this,SLOT(onDataSourceEditChange(QString)));
    connect(DataSourceButton,SIGNAL(clicked()),this,SLOT(onDataSourceButtonPress()));
    connect(gTableListBox,SIGNAL(currentIndexChanged(int)),this,SLOT(ongTableListBoxChange(int)));
    connect(EditTableButton,SIGNAL(clicked()),this,SLOT(onEditTableButtonPress()));
    connect(ModelBox,SIGNAL(currentIndexChanged(int)),this,SLOT(onModelBoxChange(int)));
    connect(SaveFolderButton,SIGNAL(clicked()),this,SLOT(onSaveFolderButtonPress()));

    registerField("page1dw.dataType",DataTypeBox);
    registerField("page1dw.dataSource*",DataSourceEdit);
    registerField("page1dw.gTable",gTableListBox);
    registerField("page1dw.bValue*",bValueEdit);
    registerField("page1dw.nGradients",nGradientsEdit);
    registerField("page1dw.nB0",nb0ImagesEdit);
    registerField("page1dw.imagingModel",ModelBox);
    registerField("page1dw.computeMetricsDTI",ComputeDTIMetricsCheck);
    registerField("page1dw.computeMetricsTDF",ComputeTDFMetricsCheck);
    registerField("page1dw.saveMetricFormat",MetricFormatBox);
    registerField("page1dw.saveFolder*",SaveFolderEdit);

    // scan current folder for gtbl files
    // read all gradient tables, add their file names to the box
    gTableList = new QList<mat>();
    QStringList *namesList = new QStringList();
    if (readGradientTablesFile(gTableList,namesList))
        gTableListBox->addItems(*namesList);
}
Esempio n. 21
0
OwncloudSetupPage::OwncloudSetupPage()
  : QWizardPage(),
    _ui(),
    _oCUrl(),
    _ocUser(),
    _authTypeKnown(false),
    _checking(false),
    _authType(WizardCommon::HttpCreds),
    _progressIndi(new QProgressIndicator (this))
{
    _ui.setupUi(this);

    Theme *theme = Theme::instance();
    setTitle(WizardCommon::titleTemplate().arg(tr("Connect to %1").arg(theme->appNameGUI())));
    setSubTitle(WizardCommon::subTitleTemplate().arg(tr("Setup ownCloud server")));

    registerField( QLatin1String("OCUrl*"), _ui.leUrl );

    _ui.resultLayout->addWidget( _progressIndi );
    stopSpinner();

    setupCustomization();

    connect(_ui.leUrl, SIGNAL(textChanged(QString)), SLOT(slotUrlChanged(QString)));
}
Esempio n. 22
0
Page2DW::Page2DW(QWidget *parent) : QWizardPage(parent)
{
    setupUi(this);
    setTitle("DW Analysis");
    setSubTitle("Please examine a sample of the data, fill Eddy Current "
                "Corretion options and fill tractography parameters (optional).");
    NoiseLevelEdit->setValidator(new QIntValidator(0, 10000, this));

    connect(ECCBox,SIGNAL(clicked(bool)),this,SLOT(onECCBoxCheck(bool)));
    connect(AlgorithmBox,SIGNAL(currentIndexChanged(int)),this,SLOT(onAlgorithmBoxChange(int)));  

    registerField("page2dw.doECC",ECCBox);
    registerField("page2dw.referenceImage",ECCReferenceBox);
    registerField("page2dw.noiseLevel",NoiseLevelEdit);
    registerField("page2dw.costFunction1",CostFunction1);
    registerField("page2dw.costFunction2",CostFunction2);
    registerField("page2dw.costFunction3",CostFunction3);
    registerField("page2dw.doTractography",TractographyBox);
    registerField("page2dw.tractPerVoxel",TractsPerSeedSpinner);
    registerField("page2dw.maxBendingAngle",MaxBendAngleSpinner);
    registerField("page2dw.stepSize",StepSizeSpinner);
    registerField("page2dw.minFiber",MinLengthSpinner);
    registerField("page2dw.startFA",StartMetricSpinner);
    registerField("page2dw.stopFA",StopMetricSpinner);
    registerField("page2dw.smoothFibers",SmoothFibersCheck);
    registerField("page2dw.smoothQuality",SmoothQualSpinner);
}
Esempio n. 23
0
void BtBookshelfTaskPage::retranslateUi() {
    setTitle(QApplication::translate("BookshelfWizard",
                                     "Bookshelf Manager"));
    setSubTitle(QApplication::translate("BookshelfWizard",
                                        "Install, update, or remove works on your bookshelf."));
    m_warningLabel->setText(
            QApplication::translate(
                    "BookshelfWizard",
                    "<html><head/><body><p><span style=\" font-weight:600;\">"
                    "WARNING</span>: Installing or updating works uses the "
                    "internet. If you live in a persecuted country you may not "
                    "want to do this.</p></body></html>"));
    m_groupBox->setTitle(QApplication::translate("BookshelfWizard",
                                                 "Bookshelf task"));
    m_installRadioButton->setText(
            QApplication::translate(
                    "BookshelfWizard",
                    "Install additional works (uses internet)"));
    m_updateRadioButton->setText(
            QApplication::translate("BookshelfWizard",
                                    "Update installed works (uses internet)"));
    m_removeRadioButton->setText(
            QApplication::translate("BookshelfWizard",
                                    "Remove installed works"));
}
Esempio n. 24
0
OwncloudAdvancedSetupPage::OwncloudAdvancedSetupPage()
  : QWizardPage(),
    _ui(),
    _checking(false),
    _created(false),
    _localFolderValid(false),
    _progressIndi(new QProgressIndicator (this)),
    _oldLocalFolder(),
    _remoteFolder()
{
    _ui.setupUi(this);

    Theme *theme = Theme::instance();
    setTitle(WizardCommon::titleTemplate().arg(tr("Connect to %1").arg(theme->appNameGUI())));
    setSubTitle(WizardCommon::subTitleTemplate().arg(tr("Setup local folder options")));

    registerField( QLatin1String("OCSyncFromScratch"), _ui.cbSyncFromScratch);

    _ui.resultLayout->addWidget( _progressIndi );
    stopSpinner();
    setupCustomization();

    connect( _ui.pbSelectLocalFolder, SIGNAL(clicked()), SLOT(slotSelectFolder()));
    setButtonText(QWizard::NextButton, tr("Connect..."));

    connect( _ui.rSyncEverything, SIGNAL(clicked()), SLOT(slotSyncEverythingClicked()));
    connect( _ui.rSelectiveSync, SIGNAL(clicked()), SLOT(slotSelectiveSyncClicked()));
    connect( _ui.bSelectiveSync, SIGNAL(clicked()), SLOT(slotSelectiveSyncClicked()));

    QIcon appIcon = theme->applicationIcon();
    _ui.lServerIcon->setText(QString());
    _ui.lServerIcon->setPixmap(appIcon.pixmap(48));
    _ui.lLocalIcon->setText(QString());
    _ui.lLocalIcon->setPixmap(QPixmap(Theme::hidpiFileName(":/client/resources/folder-sync.png")));
}
Esempio n. 25
0
//------------------------------------------------------
LStoreEbeamPage::LStoreEbeamPage(QWidget *parent)
    : QWizardPage(parent)
{
    setTitle(tr("Store electron-beam"));
    setSubTitle(tr("Now that the electron beam has be brought to the third screen, <br>"
                   "we will inject and store the bunches in the ring"));

    m_conditionRingCheckBox = new QCheckBox(tr("Condition the ring (Set kicker, enable L-band RF )"));
    m_injectEbeamCheckBox = new QCheckBox(tr("Retract screens and inject in ring"));
    m_refineEbeamInjectionCheckBox = new QCheckBox(tr("Fine tune electron beam injection (Optimize injected charge, reduce transients, improve matching, inject on golden oribt)"));

    m_injectEbeamCheckBox->setEnabled(false);
    m_refineEbeamInjectionCheckBox->setEnabled(false);

    QGridLayout *layout = new QGridLayout;
    layout->addWidget(m_conditionRingCheckBox, 0, 0);
    layout->addWidget(m_injectEbeamCheckBox, 1, 0);
    layout->addWidget(m_refineEbeamInjectionCheckBox, 2, 0);
    setLayout(layout);

    connect(m_conditionRingCheckBox, SIGNAL(toggled(bool)), this, SLOT(slotCheckBoxChanged()));
    connect(m_injectEbeamCheckBox, SIGNAL(toggled(bool)), this, SLOT(slotCheckBoxChanged()));
    connect(m_refineEbeamInjectionCheckBox, SIGNAL(toggled(bool)), this, SLOT(slotCheckBoxChanged()));

}
Esempio n. 26
0
void GitoriousRepositoryWizardPage::initializePage()
{
    // Populate the model
    ui->repositoryTreeView->selectionModel()->clearSelection();
    if (const int oldRowCount = m_model->rowCount())
        m_model->removeRows(0, oldRowCount);
    ui->filterLineEdit->clear();
    // fill model
    const QSharedPointer<GitoriousProject> proj = m_projectPage->project();
    setSubTitle(tr("Choose a repository of the project '%1'.").arg(proj->name));
    // Create a hierarchical list by repository type, sort by type
    QList<GitoriousRepository> repositories = proj->repositories;
    QStandardItem *firstEntry = 0;
    if (!repositories.empty()) {
        int lastRepoType = -1;
        QStandardItem *header = 0;
        qStableSort(repositories.begin(), repositories.end(), gitRepoLessThanByType);
        const QString types[GitoriousRepository::PersonalRepository + 1] =
            { tr("Mainline Repositories"), tr("Clones"), tr("Baseline Repositories"), tr("Shared Project Repositories"), tr("Personal Repositories") };
        foreach(const GitoriousRepository &r, repositories) {
            // New Header?
            if (r.type != lastRepoType || !header) {
                lastRepoType = r.type;
                const QList<QStandardItem *> headerRow = headerEntry(types[r.type]);
                m_model->appendRow(headerRow);
                header = headerRow.front();
            }
            // Repository row
            const QList<QStandardItem *> row = repositoryEntry(r);
            header->appendRow(row);
            if (!firstEntry)
                firstEntry = row.front();
        }
    }
// GameTemplateView
//---------------------------------------------------------------------------
GameTemplateView::GameTemplateView() : View()
{
	setSearchName("GameTemplateView");
	setTitle("Game Template");
	setSubTitle("");

} // end GameTemplateView::GameTemplateView
Esempio n. 28
0
FirstRunHolidayAppInfo::FirstRunHolidayAppInfo(QWidget *parent)
    :QWizardPage(parent)
{
    setTitle(tr("Basic Information"));
    setSubTitle(tr("Please enter some basic information about your holiday apartment."));

    label_app_name=new QLabel(tr("Name of the holiday apartment:"));
    label_app_street=new QLabel(tr("Street"));
    label_app_place=new QLabel(tr("City"));
    label_app_zip=new QLabel(tr("ZIP"));
    edit_app_name=new QLineEdit();
    edit_app_street=new QLineEdit();
    edit_app_place=new QLineEdit();
    edit_app_zip=new QLineEdit();

    QGridLayout * gridlayout=new QGridLayout();
    gridlayout->addWidget(label_app_name,0,0);
    gridlayout->addWidget(edit_app_name,0,1);
    gridlayout->addWidget(label_app_street,1,0);
    gridlayout->addWidget(edit_app_street,1,1);
    gridlayout->addWidget(label_app_place,2,0);
    gridlayout->addWidget(edit_app_place,2,1);
    gridlayout->addWidget(label_app_zip,3,0);
    gridlayout->addWidget(edit_app_zip,3,1);

    registerField("app_name",edit_app_name);
    registerField("app_street",edit_app_street);
    registerField("app_place",edit_app_place);
    registerField("app_zip",edit_app_zip);

    setLayout(gridlayout);
}
Esempio n. 29
0
/*!
  Default Constructor for NewPage class
*/
NewPage::NewPage(QWidget *parent) : QWizardPage(parent)
{
     setTitle(tr("Configuration Wizard"));
     setSubTitle(tr("Please complete the following details..."));

     nameLabel = new QLabel(tr("Character N&ame:"));
     nameLineEdit = new QLineEdit;
     nameLabel->setBuddy(nameLineEdit);

     emailLabel = new QLabel(tr("&Email address:"));
     emailLineEdit = new QLineEdit;
     emailLineEdit->setValidator(new QRegExpValidator(QRegExp(".*@.*"), this));
     emailLabel->setBuddy(emailLineEdit);

     passLabel = new QLabel(tr("&Password:"******"evaluate.name*", nameLineEdit);
     registerField("evaluate.email*", emailLineEdit);
     registerField("evaluate.pass*", passLineEdit);

     QGridLayout *layout = new QGridLayout;
     layout->addWidget(nameLabel, 0, 0);
     layout->addWidget(nameLineEdit, 0, 1);
     layout->addWidget(emailLabel, 1, 0);
     layout->addWidget(emailLineEdit, 1, 1);
     layout->addWidget(passLabel, 2, 0);
     layout->addWidget(passLineEdit, 2, 1);
     setLayout(layout);
}
ClassNamePage::ClassNamePage(QWidget *parent)
    : QWizardPage(parent)
    , m_isValid(false)
{
    setTitle(tr("Enter Class Name"));
    setSubTitle(tr("The source file name will be derived from the class name"));

    m_newClassWidget.reset(new Utils::NewClassWidget);
    // Order, set extensions first before suggested name is derived
    m_newClassWidget->setClassTypeComboVisible(true);
    m_newClassWidget->setBaseClassChoices(QStringList()
            << QString()
            << QLatin1String("QObject")
            << QLatin1String("QWidget")
            << QLatin1String("QMainWindow")
            << QLatin1String("QDeclarativeItem"));

    m_newClassWidget->setBaseClassEditable(true);
    m_newClassWidget->setFormInputVisible(false);
    m_newClassWidget->setHeaderInputVisible(false);
    m_newClassWidget->setNamespacesEnabled(true);
    m_newClassWidget->setBaseClassInputVisible(true);
    m_newClassWidget->setNamesDelimiter(QLatin1String("."));
    m_newClassWidget->setAllowDirectories(true);

    connect(m_newClassWidget.data(), SIGNAL(validChanged()), this, SLOT(slotValidChanged()));

    QVBoxLayout *pageLayout = new QVBoxLayout(this);
    pageLayout->addWidget(m_newClassWidget.data());
    QSpacerItem *vSpacer = new QSpacerItem(0, 0, QSizePolicy::Ignored, QSizePolicy::Expanding);
    pageLayout->addItem(vSpacer);

    initParameters();
}