VirtualBox

Changeset 79586 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 8, 2019 8:09:34 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
131883
Message:

FE/Qt: bugref:9484: Export Appliance wizard: Expert page: Adding radio-button options for 2 phase'd export, s.a. bugref:9489 (it's for r131837).

Location:
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic2.cpp

    r79566 r79586  
    889889                        m_pSettingsLayout2->addWidget(m_pMachineLabel, 2, 0);
    890890                    }
     891                    /* Create Export Then Ask button: */
     892                    m_pRadioExportThenAsk = new QRadioButton;
     893                    if (m_pRadioExportThenAsk)
     894                    {
     895                        m_pRadioExportThenAsk->setEnabled(false);
     896
     897                        /* Add into layout: */
     898                        m_pSettingsLayout2->addWidget(m_pRadioExportThenAsk, 2, 1);
     899                    }
    891900                    /* Create Ask Then Export button: */
    892901                    m_pRadioAskThenExport = new QRadioButton;
     
    895904                        /* Add into layout: */
    896905                        m_pSettingsLayout2->addWidget(m_pRadioAskThenExport, 3, 1);
    897                     }
    898                     /* Create Export Then Ask button: */
    899                     m_pRadioExportThenAsk = new QRadioButton;
    900                     if (m_pRadioExportThenAsk)
    901                     {
    902                         m_pRadioExportThenAsk->setEnabled(false);
    903 
    904                         /* Add into layout: */
    905                         m_pSettingsLayout2->addWidget(m_pRadioExportThenAsk, 2, 1);
    906906                    }
    907907                    /* Create Do Not Ask button: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic2.h

    r79567 r79586  
    234234    /** Holds the machine label instance. */
    235235    QLabel       *m_pMachineLabel;
     236    /** Holds the export then ask radio button instance. */
     237    QRadioButton *m_pRadioExportThenAsk;
    236238    /** Holds the ask then export radio button instance. */
    237239    QRadioButton *m_pRadioAskThenExport;
    238     /** Holds the export then ask radio button instance. */
    239     QRadioButton *m_pRadioExportThenAsk;
    240240    /** Holds the don't ask radio button instance. */
    241241    QRadioButton *m_pRadioDoNotAsk;
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageExpert.cpp

    r79566 r79586  
    359359                                const int iTotalWidth = 50 * iFontWidth;
    360360                                const int iFontHeight = fm.height();
    361                                 const int iTotalHeight = 4 * iFontHeight;
     361                                const int iTotalHeight = 8 * iFontHeight;
    362362                                m_pAccountPropertyTable->setMinimumSize(QSize(iTotalWidth, iTotalHeight));
    363363                                m_pAccountPropertyTable->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored);
     
    369369                                /* Add into layout: */
    370370                                m_pSettingsLayout2->addWidget(m_pAccountPropertyTable, 1, 1);
     371                            }
     372
     373                            /* Create account label: */
     374                            m_pMachineLabel = new QLabel;
     375                            if (m_pMachineLabel)
     376                            {
     377                                m_pMachineLabel->setAlignment(Qt::AlignRight | Qt::AlignTrailing | Qt::AlignVCenter);
     378
     379                                /* Add into layout: */
     380                                m_pSettingsLayout2->addWidget(m_pMachineLabel, 2, 0);
     381                            }
     382                            /* Create Export Then Ask button: */
     383                            m_pRadioExportThenAsk = new QRadioButton;
     384                            if (m_pRadioExportThenAsk)
     385                            {
     386                                m_pRadioExportThenAsk->setEnabled(false);
     387
     388                                /* Add into layout: */
     389                                m_pSettingsLayout2->addWidget(m_pRadioExportThenAsk, 2, 1);
     390                            }
     391                            /* Create Ask Then Export button: */
     392                            m_pRadioAskThenExport = new QRadioButton;
     393                            if (m_pRadioAskThenExport)
     394                            {
     395                                /* Add into layout: */
     396                                m_pSettingsLayout2->addWidget(m_pRadioAskThenExport, 3, 1);
     397                            }
     398                            /* Create Do Not Ask button: */
     399                            m_pRadioDoNotAsk = new QRadioButton;
     400                            if (m_pRadioDoNotAsk)
     401                            {
     402                                m_pRadioDoNotAsk->setEnabled(false);
     403
     404                                /* Add into layout: */
     405                                m_pSettingsLayout2->addWidget(m_pRadioDoNotAsk, 4, 1);
    371406                            }
    372407                        }
     
    507542    m_pAccountLabel->setText(UIWizardExportApp::tr("&Account:"));
    508543
     544    /* Translate option label: */
     545    m_pMachineLabel->setText(UIWizardExportApp::tr("Machine Creation:"));
     546    m_pRadioExportThenAsk->setText(UIWizardExportApp::tr("Ask me about it &after exporting disk as custom image"));
     547    m_pRadioAskThenExport->setText(UIWizardExportApp::tr("Ask me about it &before exporting disk as custom image"));
     548    m_pRadioDoNotAsk->setText(UIWizardExportApp::tr("Do &not ask me about it, leave custom image for future usage"));
     549
    509550    /* Adjust label widths: */
    510551    QList<QWidget*> labels;
     
    514555    labels << m_pAdditionalLabel;
    515556    labels << m_pAccountLabel;
     557    labels << m_pMachineLabel;
    516558    int iMaxWidth = 0;
    517559    foreach (QWidget *pLabel, labels)
     
    540582    /* Translate page: */
    541583    retranslateUi();
     584
     585    /* Choose default cloud export option: */
     586    m_pRadioAskThenExport->setChecked(true);
    542587}
    543588
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette