VirtualBox

Changeset 46411 in vbox for trunk/src


Ignore:
Timestamp:
Jun 6, 2013 1:38:34 PM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: VM settings: Display page: Overall cleanup (part 1): Variables/slots renaming.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp

    r46406 r46411  
    5252
    5353UIMachineSettingsDisplay::UIMachineSettingsDisplay()
    54     : mValidator(0)
    55     , m_minVRAM(0)
    56     , m_maxVRAM(0)
    57     , m_maxVRAMVisible(0)
    58     , m_initialVRAM(0)
     54    : m_pValidator(0)
     55    , m_iMinVRAM(0)
     56    , m_iMaxVRAM(0)
     57    , m_iMaxVRAMVisible(0)
     58    , m_iInitialVRAM(0)
    5959#ifdef VBOX_WITH_VIDEOHWACCEL
    6060    , m_f2DVideoAccelerationSupported(false)
     
    6969    /* Setup constants */
    7070    CSystemProperties sys = vboxGlobal().virtualBox().GetSystemProperties();
    71     m_minVRAM = sys.GetMinGuestVRAM();
    72     m_maxVRAM = sys.GetMaxGuestVRAM();
    73     m_maxVRAMVisible = m_maxVRAM;
    74     const uint MinMonitors = 1;
     71    m_iMinVRAM = sys.GetMinGuestVRAM();
     72    m_iMaxVRAM = sys.GetMaxGuestVRAM();
     73    m_iMaxVRAMVisible = m_iMaxVRAM;
     74    const uint cMinGuestScreens = 1;
    7575#if (QT_VERSION >= 0x040600)
    7676    const uint cHostScreens = QApplication::desktop()->screenCount();
     
    7878    const uint cHostScreens = QApplication::desktop()->numScreens();
    7979#endif /* !(QT_VERSION >= 0x040600) */
    80     const uint MaxMonitors = sys.GetMaxGuestMonitors();
     80    const uint cMaxGuestScreens = sys.GetMaxGuestMonitors();
    8181
    8282    /* Setup validators */
    83     mLeMemory->setValidator (new QIntValidator (m_minVRAM, m_maxVRAMVisible, this));
    84     mLeMonitors->setValidator (new QIntValidator (MinMonitors, MaxMonitors, this));
    85     mLeVRDEPort->setValidator (new QRegExpValidator (QRegExp ("(([0-9]{1,5}(\\-[0-9]{1,5}){0,1}),)*([0-9]{1,5}(\\-[0-9]{1,5}){0,1})"), this));
    86     mLeVRDETimeout->setValidator (new QIntValidator (this));
     83    m_pEditorMemory->setValidator (new QIntValidator (m_iMinVRAM, m_iMaxVRAMVisible, this));
     84    m_pEditorScreens->setValidator (new QIntValidator (cMinGuestScreens, cMaxGuestScreens, this));
     85    m_pEditorRemoteDisplayPort->setValidator (new QRegExpValidator (QRegExp("(([0-9]{1,5}(\\-[0-9]{1,5}){0,1}),)*([0-9]{1,5}(\\-[0-9]{1,5}){0,1})"), this));
     86    m_pEditorRemoteDisplayTimeout->setValidator (new QIntValidator (this));
    8787
    8888    /* Setup connections */
    89     connect (mSlMemory, SIGNAL (valueChanged (int)), this, SLOT (valueChangedVRAM (int)));
    90     connect (mLeMemory, SIGNAL (textChanged (const QString&)), this, SLOT (textChangedVRAM (const QString&)));
    91     connect (mSlMonitors, SIGNAL (valueChanged (int)), this, SLOT (valueChangedMonitors (int)));
    92     connect (mLeMonitors, SIGNAL (textChanged (const QString&)), this, SLOT (textChangedMonitors (const QString&)));
     89    connect (m_pSliderMemory, SIGNAL (valueChanged (int)), this, SLOT (sltValueChangedVRAM (int)));
     90    connect (m_pEditorMemory, SIGNAL (textChanged (const QString&)), this, SLOT (sltTextChangedVRAM (const QString&)));
     91    connect (m_pSliderScreeens, SIGNAL (valueChanged (int)), this, SLOT (sltValueChangedScreens (int)));
     92    connect (m_pEditorScreens, SIGNAL (textChanged (const QString&)), this, SLOT (sltTextChangedScreens (const QString&)));
    9393
    9494    /* Setup initial values */
    95     mSlMemory->setPageStep (calcPageStep (m_maxVRAMVisible));
    96     mSlMemory->setSingleStep (mSlMemory->pageStep() / 4);
    97     mSlMemory->setTickInterval (mSlMemory->pageStep());
    98     mSlMonitors->setPageStep (1);
    99     mSlMonitors->setSingleStep (1);
    100     mSlMonitors->setTickInterval (1);
     95    m_pSliderMemory->setPageStep (calcPageStep (m_iMaxVRAMVisible));
     96    m_pSliderMemory->setSingleStep (m_pSliderMemory->pageStep() / 4);
     97    m_pSliderMemory->setTickInterval (m_pSliderMemory->pageStep());
     98    m_pSliderScreeens->setPageStep (1);
     99    m_pSliderScreeens->setSingleStep (1);
     100    m_pSliderScreeens->setTickInterval (1);
    101101    /* Setup the scale so that ticks are at page step boundaries */
    102     mSlMemory->setMinimum ((m_minVRAM / mSlMemory->pageStep()) * mSlMemory->pageStep());
    103     mSlMemory->setMaximum (m_maxVRAMVisible);
    104     mSlMemory->setSnappingEnabled (true);
    105     mSlMemory->setErrorHint (0, 1);
    106     mSlMonitors->setMinimum (MinMonitors);
    107     mSlMonitors->setMaximum (MaxMonitors);
    108     mSlMonitors->setErrorHint (0, MinMonitors);
    109     mSlMonitors->setOptimalHint (MinMonitors, cHostScreens);
    110     mSlMonitors->setWarningHint (cHostScreens, MaxMonitors);
     102    m_pSliderMemory->setMinimum ((m_iMinVRAM / m_pSliderMemory->pageStep()) * m_pSliderMemory->pageStep());
     103    m_pSliderMemory->setMaximum (m_iMaxVRAMVisible);
     104    m_pSliderMemory->setSnappingEnabled (true);
     105    m_pSliderMemory->setErrorHint (0, 1);
     106    m_pSliderScreeens->setMinimum (cMinGuestScreens);
     107    m_pSliderScreeens->setMaximum (cMaxGuestScreens);
     108    m_pSliderScreeens->setErrorHint (0, cMinGuestScreens);
     109    m_pSliderScreeens->setOptimalHint (cMinGuestScreens, cHostScreens);
     110    m_pSliderScreeens->setWarningHint (cHostScreens, cMaxGuestScreens);
    111111    /* Limit min/max. size of QLineEdit */
    112     mLeMemory->setFixedWidthByText (QString().fill ('8', 4));
    113     mLeMonitors->setFixedWidthByText (QString().fill ('8', 4));
     112    m_pEditorMemory->setFixedWidthByText (QString().fill ('8', 4));
     113    m_pEditorScreens->setFixedWidthByText (QString().fill ('8', 4));
    114114    /* Ensure value and validation is updated */
    115     valueChangedVRAM (mSlMemory->value());
    116     valueChangedMonitors (mSlMonitors->value());
     115    sltValueChangedVRAM (m_pSliderMemory->value());
     116    sltValueChangedScreens (m_pSliderScreeens->value());
    117117    /* Setup VRDE widget */
    118     mCbVRDEMethod->insertItem (0, ""); /* KAuthType_Null */
    119     mCbVRDEMethod->insertItem (1, ""); /* KAuthType_External */
    120     mCbVRDEMethod->insertItem (2, ""); /* KAuthType_Guest */
    121     /* Initially disabled */
    122     mCbVRDE->setChecked (false);
     118    m_pComboRemoteDisplayAuthMethod->insertItem (0, ""); /* KAuthType_Null */
     119    m_pComboRemoteDisplayAuthMethod->insertItem (1, ""); /* KAuthType_External */
     120    m_pComboRemoteDisplayAuthMethod->insertItem (2, ""); /* KAuthType_Guest */
    123121
    124122#ifndef VBOX_WITH_VIDEOHWACCEL
    125123    mCb2DVideo->setVisible (false);
    126 #endif
     124#endif /* VBOX_WITH_VIDEOHWACCEL */
    127125
    128126    /* Applying language settings */
     
    176174    /* Gather display data: */
    177175    displayData.m_iCurrentVRAM = m_machine.GetVRAMSize();
    178     displayData.m_cMonitorCount = m_machine.GetMonitorCount();
     176    displayData.m_cGuestScreenCount = m_machine.GetMonitorCount();
    179177    displayData.m_f3dAccelerationEnabled = m_machine.GetAccelerate3DEnabled();
    180178#ifdef VBOX_WITH_VIDEOHWACCEL
     
    182180#endif /* VBOX_WITH_VIDEOHWACCEL */
    183181    /* Check if VRDE server is valid: */
    184     CVRDEServer vrdeServer = m_machine.GetVRDEServer();
    185     displayData.m_fVRDEServerSupported = !vrdeServer.isNull();
    186     if (!vrdeServer.isNull())
    187     {
    188         displayData.m_fVRDEServerEnabled = vrdeServer.GetEnabled();
    189         displayData.m_strVRDEPort = vrdeServer.GetVRDEProperty("TCP/Ports");
    190         displayData.m_VRDEAuthType = vrdeServer.GetAuthType();
    191         displayData.m_uVRDETimeout = vrdeServer.GetAuthTimeout();
    192         displayData.m_fMultipleConnectionsAllowed = vrdeServer.GetAllowMultiConnection();
     182    CVRDEServer remoteDisplayServer = m_machine.GetVRDEServer();
     183    displayData.m_fRemoteDisplayServerSupported = !remoteDisplayServer.isNull();
     184    if (!remoteDisplayServer.isNull())
     185    {
     186        displayData.m_fRemoteDisplayServerEnabled = remoteDisplayServer.GetEnabled();
     187        displayData.m_strRemoteDisplayPort = remoteDisplayServer.GetVRDEProperty("TCP/Ports");
     188        displayData.m_remoteDisplayAuthType = remoteDisplayServer.GetAuthType();
     189        displayData.m_uRemoteDisplayTimeout = remoteDisplayServer.GetAuthTimeout();
     190        displayData.m_fRemoteDisplayMultiConnAllowed = remoteDisplayServer.GetAllowMultiConnection();
    193191    }
    194192
    195193    /* Initialize other variables: */
    196     m_initialVRAM = RT_MIN(displayData.m_iCurrentVRAM, m_maxVRAM);
     194    m_iInitialVRAM = RT_MIN(displayData.m_iCurrentVRAM, m_iMaxVRAM);
    197195
    198196    /* Cache display data: */
     
    211209
    212210    /* Load display data to page: */
    213     mSlMonitors->setValue(displayData.m_cMonitorCount);
     211    m_pSliderScreeens->setValue(displayData.m_cGuestScreenCount);
    214212    mCb3D->setChecked(displayData.m_f3dAccelerationEnabled);
    215213#ifdef VBOX_WITH_VIDEOHWACCEL
     
    217215#endif /* VBOX_WITH_VIDEOHWACCEL */
    218216    checkVRAMRequirements();
    219     mSlMemory->setValue(displayData.m_iCurrentVRAM);
    220     if (displayData.m_fVRDEServerSupported)
    221     {
    222         mCbVRDE->setChecked(displayData.m_fVRDEServerEnabled);
    223         mLeVRDEPort->setText(displayData.m_strVRDEPort);
    224         mCbVRDEMethod->setCurrentIndex(mCbVRDEMethod->findText(gpConverter->toString(displayData.m_VRDEAuthType)));
    225         mLeVRDETimeout->setText(QString::number(displayData.m_uVRDETimeout));
    226         mCbMultipleConn->setChecked(displayData.m_fMultipleConnectionsAllowed);
     217    m_pSliderMemory->setValue(displayData.m_iCurrentVRAM);
     218    if (displayData.m_fRemoteDisplayServerSupported)
     219    {
     220        m_pCheckboxRemoteDisplay->setChecked(displayData.m_fRemoteDisplayServerEnabled);
     221        m_pEditorRemoteDisplayPort->setText(displayData.m_strRemoteDisplayPort);
     222        m_pComboRemoteDisplayAuthMethod->setCurrentIndex(m_pComboRemoteDisplayAuthMethod->findText(gpConverter->toString(displayData.m_remoteDisplayAuthType)));
     223        m_pEditorRemoteDisplayTimeout->setText(QString::number(displayData.m_uRemoteDisplayTimeout));
     224        m_pCheckboxMultipleConn->setChecked(displayData.m_fRemoteDisplayMultiConnAllowed);
    227225    }
    228226
     
    231229
    232230    /* Revalidate if possible: */
    233     if (mValidator)
    234         mValidator->revalidate();
     231    if (m_pValidator)
     232        m_pValidator->revalidate();
    235233}
    236234
     
    243241
    244242    /* Gather display data: */
    245     displayData.m_iCurrentVRAM = mSlMemory->value();
    246     displayData.m_cMonitorCount = mSlMonitors->value();
     243    displayData.m_iCurrentVRAM = m_pSliderMemory->value();
     244    displayData.m_cGuestScreenCount = m_pSliderScreeens->value();
    247245    displayData.m_f3dAccelerationEnabled = mCb3D->isChecked();
    248246#ifdef VBOX_WITH_VIDEOHWACCEL
    249247    displayData.m_f2dAccelerationEnabled = mCb2DVideo->isChecked();
    250248#endif /* VBOX_WITH_VIDEOHWACCEL */
    251     if (displayData.m_fVRDEServerSupported)
    252     {
    253         displayData.m_fVRDEServerEnabled = mCbVRDE->isChecked();
    254         displayData.m_strVRDEPort = mLeVRDEPort->text();
    255         displayData.m_VRDEAuthType = gpConverter->fromString<KAuthType>(mCbVRDEMethod->currentText());
    256         displayData.m_uVRDETimeout = mLeVRDETimeout->text().toULong();
    257         displayData.m_fMultipleConnectionsAllowed = mCbMultipleConn->isChecked();
     249    if (displayData.m_fRemoteDisplayServerSupported)
     250    {
     251        displayData.m_fRemoteDisplayServerEnabled = m_pCheckboxRemoteDisplay->isChecked();
     252        displayData.m_strRemoteDisplayPort = m_pEditorRemoteDisplayPort->text();
     253        displayData.m_remoteDisplayAuthType = gpConverter->fromString<KAuthType>(m_pComboRemoteDisplayAuthMethod->currentText());
     254        displayData.m_uRemoteDisplayTimeout = m_pEditorRemoteDisplayTimeout->text().toULong();
     255        displayData.m_fRemoteDisplayMultiConnAllowed = m_pCheckboxMultipleConn->isChecked();
    258256    }
    259257
     
    280278            /* Video tab: */
    281279            m_machine.SetVRAMSize(displayData.m_iCurrentVRAM);
    282             m_machine.SetMonitorCount(displayData.m_cMonitorCount);
     280            m_machine.SetMonitorCount(displayData.m_cGuestScreenCount);
    283281            m_machine.SetAccelerate3DEnabled(displayData.m_f3dAccelerationEnabled);
    284282#ifdef VBOX_WITH_VIDEOHWACCEL
     
    287285        }
    288286        /* Check if VRDE server still valid: */
    289         CVRDEServer vrdeServer = m_machine.GetVRDEServer();
    290         if (!vrdeServer.isNull())
     287        CVRDEServer remoteDisplayServer = m_machine.GetVRDEServer();
     288        if (!remoteDisplayServer.isNull())
    291289        {
    292290            /* Store VRDE data: */
    293291            if (isMachineInValidMode())
    294292            {
    295                 vrdeServer.SetEnabled(displayData.m_fVRDEServerEnabled);
    296                 vrdeServer.SetVRDEProperty("TCP/Ports", displayData.m_strVRDEPort);
    297                 vrdeServer.SetAuthType(displayData.m_VRDEAuthType);
    298                 vrdeServer.SetAuthTimeout(displayData.m_uVRDETimeout);
     293                remoteDisplayServer.SetEnabled(displayData.m_fRemoteDisplayServerEnabled);
     294                remoteDisplayServer.SetVRDEProperty("TCP/Ports", displayData.m_strRemoteDisplayPort);
     295                remoteDisplayServer.SetAuthType(displayData.m_remoteDisplayAuthType);
     296                remoteDisplayServer.SetAuthTimeout(displayData.m_uRemoteDisplayTimeout);
    299297            }
    300298            if (isMachineOffline() || isMachineSaved())
    301299            {
    302                 vrdeServer.SetAllowMultiConnection(displayData.m_fMultipleConnectionsAllowed);
     300                remoteDisplayServer.SetAllowMultiConnection(displayData.m_fRemoteDisplayMultiConnAllowed);
    303301            }
    304302        }
     
    309307}
    310308
    311 void UIMachineSettingsDisplay::setValidator (QIWidgetValidator *aVal)
    312 {
    313     mValidator = aVal;
     309void UIMachineSettingsDisplay::setValidator(QIWidgetValidator *pValidator)
     310{
     311    m_pValidator = pValidator;
    314312    connect (mCb3D, SIGNAL (stateChanged (int)),
    315              mValidator, SLOT (revalidate()));
     313             m_pValidator, SLOT (revalidate()));
    316314#ifdef VBOX_WITH_VIDEOHWACCEL
    317315    connect (mCb2DVideo, SIGNAL (stateChanged (int)),
    318              mValidator, SLOT (revalidate()));
    319 #endif
    320     connect (mCbVRDE, SIGNAL (toggled (bool)),
    321              mValidator, SLOT (revalidate()));
    322     connect (mLeVRDEPort, SIGNAL (textChanged (const QString&)),
    323              mValidator, SLOT (revalidate()));
    324     connect (mLeVRDETimeout, SIGNAL (textChanged (const QString&)),
    325              mValidator, SLOT (revalidate()));
    326 }
    327 
    328 bool UIMachineSettingsDisplay::revalidate(QString &strWarning, QString & /* strTitle */)
     316             m_pValidator, SLOT (revalidate()));
     317#endif /* VBOX_WITH_VIDEOHWACCEL */
     318    connect (m_pCheckboxRemoteDisplay, SIGNAL (toggled (bool)),
     319             m_pValidator, SLOT (revalidate()));
     320    connect (m_pEditorRemoteDisplayPort, SIGNAL (textChanged (const QString&)),
     321             m_pValidator, SLOT (revalidate()));
     322    connect (m_pEditorRemoteDisplayTimeout, SIGNAL (textChanged (const QString&)),
     323             m_pValidator, SLOT (revalidate()));
     324}
     325
     326bool UIMachineSettingsDisplay::revalidate(QString &strWarning, QString& /* strTitle */)
    329327{
    330328    /* Check if video RAM requirement changed first: */
     
    342340    if (shouldWeWarnAboutLowVideoMemory() && !m_guestOSType.isNull())
    343341    {
    344         quint64 uNeedBytes = VBoxGlobal::requiredVideoMemory(m_guestOSType.GetId(), mSlMonitors->value());
     342        quint64 uNeedBytes = VBoxGlobal::requiredVideoMemory(m_guestOSType.GetId(), m_pSliderScreeens->value());
    345343
    346344        /* Basic video RAM amount test: */
    347         if ((quint64)mSlMemory->value() * _1M < uNeedBytes)
     345        if ((quint64)m_pSliderMemory->value() * _1M < uNeedBytes)
    348346        {
    349347            strWarning = tr("you have assigned less than <b>%1</b> of video memory which is "
     
    358356        {
    359357            uNeedBytes += VBoxGlobal::required2DOffscreenVideoMemory();
    360             if ((quint64)mSlMemory->value() * _1M < uNeedBytes)
     358            if ((quint64)m_pSliderMemory->value() * _1M < uNeedBytes)
    361359            {
    362360                strWarning = tr("you have assigned less than <b>%1</b> of video memory which is "
     
    371369        if (mCb3D->isChecked() && m_fWddmModeSupported)
    372370        {
    373             int cMonitorsCount = mSlMonitors->value();
    374             uNeedBytes += VBoxGlobal::required3DWddmOffscreenVideoMemory(m_guestOSType.GetId(), cMonitorsCount);
     371            int cGuestScreenCount = m_pSliderScreeens->value();
     372            uNeedBytes += VBoxGlobal::required3DWddmOffscreenVideoMemory(m_guestOSType.GetId(), cGuestScreenCount);
    375373            uNeedBytes = RT_MAX(uNeedBytes, 128 * _1M);
    376374            uNeedBytes = RT_MIN(uNeedBytes, 256 * _1M);
    377             if ((quint64)mSlMemory->value() * _1M < uNeedBytes)
     375            if ((quint64)m_pSliderMemory->value() * _1M < uNeedBytes)
    378376            {
    379377                strWarning = tr("you have 3D Acceleration enabled for a operation system which uses the WDDM video driver. "
     
    401399}
    402400
    403 void UIMachineSettingsDisplay::setOrderAfter (QWidget *aWidget)
     401void UIMachineSettingsDisplay::setOrderAfter (QWidget *pWidget)
    404402{
    405403    /* Video tab-order */
    406     setTabOrder (aWidget, mTwDisplay->focusProxy());
    407     setTabOrder (mTwDisplay->focusProxy(), mSlMemory);
    408     setTabOrder (mSlMemory, mLeMemory);
    409     setTabOrder (mLeMemory, mSlMonitors);
    410     setTabOrder (mSlMonitors, mLeMonitors);
    411     setTabOrder (mLeMonitors, mCb3D);
     404    setTabOrder (pWidget, m_pTabWidget->focusProxy());
     405    setTabOrder (m_pTabWidget->focusProxy(), m_pSliderMemory);
     406    setTabOrder (m_pSliderMemory, m_pEditorMemory);
     407    setTabOrder (m_pEditorMemory, m_pSliderScreeens);
     408    setTabOrder (m_pSliderScreeens, m_pEditorScreens);
     409    setTabOrder (m_pEditorScreens, mCb3D);
    412410#ifdef VBOX_WITH_VIDEOHWACCEL
    413411    setTabOrder (mCb3D, mCb2DVideo);
    414     setTabOrder (mCb2DVideo, mCbVRDE);
    415 #else
    416     setTabOrder (mCb3D, mCbVRDE);
    417 #endif
     412    setTabOrder (mCb2DVideo, m_pCheckboxRemoteDisplay);
     413#else /* VBOX_WITH_VIDEOHWACCEL */
     414    setTabOrder (mCb3D, m_pCheckboxRemoteDisplay);
     415#endif /* !VBOX_WITH_VIDEOHWACCEL */
    418416
    419417    /* Remote display tab-order */
    420     setTabOrder (mCbVRDE, mLeVRDEPort);
    421     setTabOrder (mLeVRDEPort, mCbVRDEMethod);
    422     setTabOrder (mCbVRDEMethod, mLeVRDETimeout);
    423     setTabOrder (mLeVRDETimeout, mCbMultipleConn);
     418    setTabOrder (m_pCheckboxRemoteDisplay, m_pEditorRemoteDisplayPort);
     419    setTabOrder (m_pEditorRemoteDisplayPort, m_pComboRemoteDisplayAuthMethod);
     420    setTabOrder (m_pComboRemoteDisplayAuthMethod, m_pEditorRemoteDisplayTimeout);
     421    setTabOrder (m_pEditorRemoteDisplayTimeout, m_pCheckboxMultipleConn);
    424422}
    425423
     
    430428
    431429    CSystemProperties sys = vboxGlobal().virtualBox().GetSystemProperties();
    432     mLbMemoryMin->setText (tr ("<qt>%1&nbsp;MB</qt>").arg (m_minVRAM));
    433     mLbMemoryMax->setText (tr ("<qt>%1&nbsp;MB</qt>").arg (m_maxVRAMVisible));
    434     mLbMonitorsMin->setText (tr ("<qt>%1</qt>").arg (1));
    435     mLbMonitorsMax->setText (tr ("<qt>%1</qt>").arg (sys.GetMaxGuestMonitors()));
    436 
    437     mCbVRDEMethod->setItemText (0,
     430    m_pLabelMemoryMin->setText (tr ("<qt>%1&nbsp;MB</qt>").arg (m_iMinVRAM));
     431    m_pLabelMemoryMin->setText (tr ("<qt>%1&nbsp;MB</qt>").arg (m_iMaxVRAMVisible));
     432    m_pLabelScreensMin->setText (tr ("<qt>%1</qt>").arg (1));
     433    m_pLabelScreensMax->setText (tr ("<qt>%1</qt>").arg (sys.GetMaxGuestMonitors()));
     434
     435    m_pComboRemoteDisplayAuthMethod->setItemText (0,
    438436        gpConverter->toString (KAuthType_Null));
    439     mCbVRDEMethod->setItemText (1,
     437    m_pComboRemoteDisplayAuthMethod->setItemText (1,
    440438        gpConverter->toString (KAuthType_External));
    441     mCbVRDEMethod->setItemText (2,
     439    m_pComboRemoteDisplayAuthMethod->setItemText (2,
    442440        gpConverter->toString (KAuthType_Guest));
    443441}
    444442
    445 void UIMachineSettingsDisplay::valueChangedVRAM (int aVal)
    446 {
    447     mLeMemory->setText (QString().setNum (aVal));
    448 }
    449 
    450 void UIMachineSettingsDisplay::textChangedVRAM (const QString &aText)
    451 {
    452     mSlMemory->setValue (aText.toInt());
    453 }
    454 
    455 void UIMachineSettingsDisplay::valueChangedMonitors (int aVal)
    456 {
    457     mLeMonitors->setText (QString().setNum (aVal));
     443void UIMachineSettingsDisplay::sltValueChangedVRAM (int iValue)
     444{
     445    m_pEditorMemory->setText (QString::number (iValue));
     446}
     447
     448void UIMachineSettingsDisplay::sltTextChangedVRAM (const QString &strText)
     449{
     450    m_pSliderMemory->setValue (strText.toInt());
     451}
     452
     453void UIMachineSettingsDisplay::sltValueChangedScreens (int iValue)
     454{
     455    m_pEditorScreens->setText (QString::number (iValue));
    458456    checkVRAMRequirements();
    459457}
    460458
    461 void UIMachineSettingsDisplay::textChangedMonitors (const QString &aText)
    462 {
    463     mSlMonitors->setValue (aText.toInt());
     459void UIMachineSettingsDisplay::sltTextChangedScreens (const QString &strText)
     460{
     461    m_pSliderScreeens->setValue (strText.toInt());
    464462}
    465463
     
    470468
    471469    /* Get monitors count and base video memory requirements: */
    472     int cMonitorsCount = mSlMonitors->value();
    473     quint64 uNeedMBytes = VBoxGlobal::requiredVideoMemory(m_guestOSType.GetId(), cMonitorsCount) / _1M;
     470    int cGuestScreenCount = m_pSliderScreeens->value();
     471    quint64 uNeedMBytes = VBoxGlobal::requiredVideoMemory(m_guestOSType.GetId(), cGuestScreenCount) / _1M;
    474472
    475473    /* Initial values: */
    476     m_maxVRAMVisible = cMonitorsCount * 32;
    477     if (m_maxVRAMVisible < 128)
    478         m_maxVRAMVisible = 128;
    479     if (m_maxVRAMVisible < m_initialVRAM)
    480         m_maxVRAMVisible = m_initialVRAM;
     474    m_iMaxVRAMVisible = cGuestScreenCount * 32;
     475    if (m_iMaxVRAMVisible < 128)
     476        m_iMaxVRAMVisible = 128;
     477    if (m_iMaxVRAMVisible < m_iInitialVRAM)
     478        m_iMaxVRAMVisible = m_iInitialVRAM;
    481479
    482480#ifdef VBOX_WITH_VIDEOHWACCEL
     
    490488    {
    491489# if 0
    492         uNeedMBytes += VBoxGlobal::required3DWddmOffscreenVideoMemory(m_guestOSType.GetId(), cMonitorsCount) / _1M;
     490        uNeedMBytes += VBoxGlobal::required3DWddmOffscreenVideoMemory(m_guestOSType.GetId(), cGuestScreenCount) / _1M;
    493491        uNeedMBytes = RT_MAX(uNeedMBytes, 128);
    494492        uNeedMBytes = RT_MIN(uNeedMBytes, 256);
    495493# endif
    496         m_maxVRAMVisible = 256;
     494        m_iMaxVRAMVisible = 256;
    497495    }
    498496#endif /* VBOX_WITH_CRHGSMI */
    499497
    500     mSlMemory->setWarningHint(1, uNeedMBytes);
    501     mSlMemory->setPageStep(calcPageStep(m_maxVRAMVisible));
    502     mSlMemory->setMaximum(m_maxVRAMVisible);
    503     mSlMemory->setOptimalHint(uNeedMBytes, m_maxVRAMVisible);
    504     mLeMemory->setValidator(new QIntValidator(m_minVRAM, m_maxVRAMVisible, this));
    505     mLbMemoryMax->setText(tr("<qt>%1&nbsp;MB</qt>").arg(m_maxVRAMVisible));
     498    m_pSliderMemory->setWarningHint(1, uNeedMBytes);
     499    m_pSliderMemory->setPageStep(calcPageStep(m_iMaxVRAMVisible));
     500    m_pSliderMemory->setMaximum(m_iMaxVRAMVisible);
     501    m_pSliderMemory->setOptimalHint(uNeedMBytes, m_iMaxVRAMVisible);
     502    m_pEditorMemory->setValidator(new QIntValidator(m_iMinVRAM, m_iMaxVRAMVisible, this));
     503    m_pLabelMemoryMin->setText(tr("<qt>%1&nbsp;MB</qt>").arg(m_iMaxVRAMVisible));
    506504}
    507505
     
    524522
    525523    /* Video tab: */
    526     mWtVideo->setEnabled(isMachineOffline());
     524    m_pContainerVideo->setEnabled(isMachineOffline());
    527525#ifdef VBOX_WITH_VIDEOHWACCEL
    528526    mCb2DVideo->setEnabled(VBoxGlobal::isAcceleration2DVideoAvailable());
    529527#endif /* VBOX_WITH_VIDEOHWACCEL */
    530528
    531     /* VRDE tab: */
    532     mTwDisplay->setTabEnabled(1, displayData.m_fVRDEServerSupported);
    533     mWtVRDP->setEnabled(isMachineInValidMode());
    534     mWtVRDPServer->setEnabled(mCbVRDE->isChecked());
    535     mLbOptions2->setEnabled(isMachineOffline() || isMachineSaved());
    536     mCbMultipleConn->setEnabled(isMachineOffline() || isMachineSaved());
    537 }
    538 
     529    /* Remote Display tab: */
     530    m_pTabWidget->setTabEnabled(1, displayData.m_fRemoteDisplayServerSupported);
     531    m_pContainerRemoteDisplay->setEnabled(isMachineInValidMode());
     532    m_pContainerRemoteDisplayOptions->setEnabled(m_pCheckboxRemoteDisplay->isChecked());
     533    m_pLabelRemoteDisplayOptions->setEnabled(isMachineOffline() || isMachineSaved());
     534    m_pCheckboxMultipleConn->setEnabled(isMachineOffline() || isMachineSaved());
     535}
     536
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.h

    r44528 r46411  
    66
    77/*
    8  * Copyright (C) 2008-2012 Oracle Corporation
     8 * Copyright (C) 2008-2013 Oracle Corporation
    99 *
    1010 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    3333    UIDataSettingsMachineDisplay()
    3434        : m_iCurrentVRAM(0)
    35         , m_cMonitorCount(0)
     35        , m_cGuestScreenCount(0)
    3636        , m_f3dAccelerationEnabled(false)
    3737#ifdef VBOX_WITH_VIDEOHWACCEL
    3838        , m_f2dAccelerationEnabled(false)
    3939#endif /* VBOX_WITH_VIDEOHWACCEL */
    40         , m_fVRDEServerSupported(false)
    41         , m_fVRDEServerEnabled(false)
    42         , m_strVRDEPort(QString())
    43         , m_VRDEAuthType(KAuthType_Null)
    44         , m_uVRDETimeout(0)
    45         , m_fMultipleConnectionsAllowed(false) {}
     40        , m_fRemoteDisplayServerSupported(false)
     41        , m_fRemoteDisplayServerEnabled(false)
     42        , m_strRemoteDisplayPort(QString())
     43        , m_remoteDisplayAuthType(KAuthType_Null)
     44        , m_uRemoteDisplayTimeout(0)
     45        , m_fRemoteDisplayMultiConnAllowed(false) {}
    4646    /* Functions: */
    4747    bool equal(const UIDataSettingsMachineDisplay &other) const
    4848    {
    4949        return (m_iCurrentVRAM == other.m_iCurrentVRAM) &&
    50                (m_cMonitorCount == other.m_cMonitorCount) &&
     50               (m_cGuestScreenCount == other.m_cGuestScreenCount) &&
    5151               (m_f3dAccelerationEnabled == other.m_f3dAccelerationEnabled) &&
    5252#ifdef VBOX_WITH_VIDEOHWACCEL
    5353               (m_f2dAccelerationEnabled == other.m_f2dAccelerationEnabled) &&
    5454#endif /* VBOX_WITH_VIDEOHWACCEL */
    55                (m_fVRDEServerSupported == other.m_fVRDEServerSupported) &&
    56                (m_fVRDEServerEnabled == other.m_fVRDEServerEnabled) &&
    57                (m_strVRDEPort == other.m_strVRDEPort) &&
    58                (m_VRDEAuthType == other.m_VRDEAuthType) &&
    59                (m_uVRDETimeout == other.m_uVRDETimeout) &&
    60                (m_fMultipleConnectionsAllowed == other.m_fMultipleConnectionsAllowed);
     55               (m_fRemoteDisplayServerSupported == other.m_fRemoteDisplayServerSupported) &&
     56               (m_fRemoteDisplayServerEnabled == other.m_fRemoteDisplayServerEnabled) &&
     57               (m_strRemoteDisplayPort == other.m_strRemoteDisplayPort) &&
     58               (m_remoteDisplayAuthType == other.m_remoteDisplayAuthType) &&
     59               (m_uRemoteDisplayTimeout == other.m_uRemoteDisplayTimeout) &&
     60               (m_fRemoteDisplayMultiConnAllowed == other.m_fRemoteDisplayMultiConnAllowed);
    6161    }
    6262    /* Operators: */
     
    6565    /* Variables: */
    6666    int m_iCurrentVRAM;
    67     int m_cMonitorCount;
     67    int m_cGuestScreenCount;
    6868    bool m_f3dAccelerationEnabled;
    6969#ifdef VBOX_WITH_VIDEOHWACCEL
    7070    bool m_f2dAccelerationEnabled;
    7171#endif /* VBOX_WITH_VIDEOHWACCEL */
    72     bool m_fVRDEServerSupported;
    73     bool m_fVRDEServerEnabled;
    74     QString m_strVRDEPort;
    75     KAuthType m_VRDEAuthType;
    76     ulong m_uVRDETimeout;
    77     bool m_fMultipleConnectionsAllowed;
     72    bool m_fRemoteDisplayServerSupported;
     73    bool m_fRemoteDisplayServerEnabled;
     74    QString m_strRemoteDisplayPort;
     75    KAuthType m_remoteDisplayAuthType;
     76    ulong m_uRemoteDisplayTimeout;
     77    bool m_fRemoteDisplayMultiConnAllowed;
    7878};
    7979typedef UISettingsCache<UIDataSettingsMachineDisplay> UICacheSettingsMachineDisplay;
     
    114114    bool changed() const { return m_cache.wasChanged(); }
    115115
    116     void setValidator (QIWidgetValidator *aVal);
    117     bool revalidate (QString &aWarning, QString &aTitle);
     116    void setValidator(QIWidgetValidator *pValidator);
     117    bool revalidate(QString &strWarning, QString &strTitle);
    118118
    119     void setOrderAfter (QWidget *aWidget);
     119    void setOrderAfter(QWidget *pWidget);
    120120
    121121    void retranslateUi();
     
    123123private slots:
    124124
    125     void valueChangedVRAM (int aVal);
    126     void textChangedVRAM (const QString &aText);
    127     void valueChangedMonitors (int aVal);
    128     void textChangedMonitors (const QString &aText);
     125    void sltValueChangedVRAM(int iValue);
     126    void sltTextChangedVRAM(const QString &strText);
     127    void sltValueChangedScreens(int iValue);
     128    void sltTextChangedScreens(const QString &strText);
    129129
    130130private:
     
    135135    void polishPage();
    136136
    137     QIWidgetValidator *mValidator;
     137    QIWidgetValidator *m_pValidator;
    138138
    139139    /* Guest OS type id: */
    140140    CGuestOSType m_guestOSType;
    141141    /* System minimum lower limit of VRAM (MiB). */
    142     int m_minVRAM;
     142    int m_iMinVRAM;
    143143    /* System maximum limit of VRAM (MiB). */
    144     int m_maxVRAM;
     144    int m_iMaxVRAM;
    145145    /* Upper limit of VRAM in MiB for this dialog. This value is lower than
    146146     * m_maxVRAM to save careless users from setting useless big values. */
    147     int m_maxVRAMVisible;
     147    int m_iMaxVRAMVisible;
    148148    /* Initial VRAM value when the dialog is opened. */
    149     int m_initialVRAM;
     149    int m_iInitialVRAM;
    150150#ifdef VBOX_WITH_VIDEOHWACCEL
    151151    /* Specifies whether the guest OS supports 2D video-acceleration: */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.ui

    r46406 r46411  
    2323   </rect>
    2424  </property>
    25   <layout class="QVBoxLayout" name="mLtMain">
     25  <layout class="QVBoxLayout" name="m_pLayoutMain">
    2626   <item>
    27     <widget class="QITabWidget" name="mTwDisplay">
    28      <widget class="QWidget" name="mTabVideo">
     27    <widget class="QITabWidget" name="m_pTabWidget">
     28     <widget class="QWidget" name="m_pTabVideo">
    2929      <attribute name="title">
    3030       <string>&amp;Video</string>
    3131      </attribute>
    32       <layout class="QVBoxLayout" name="mLtVideoPage">
     32      <layout class="QVBoxLayout" name="m_pLayoutTabVideo">
    3333       <item>
    34         <widget class="QWidget" name="mWtVideo">
    35          <layout class="QGridLayout" name="mLtVideoItems">
     34        <widget class="QWidget" name="m_pContainerVideo">
     35         <layout class="QGridLayout" name="m_pLayoutContainerVideo">
    3636          <item row="0" column="0">
    37            <widget class="QLabel" name="mLbMemory">
     37           <widget class="QLabel" name="m_pLabelMemory">
    3838            <property name="text">
    3939             <string>Video &amp;Memory:</string>
     
    4343            </property>
    4444            <property name="buddy">
    45              <cstring>mLeMemory</cstring>
     45             <cstring>m_pEditorMemory</cstring>
    4646            </property>
    4747           </widget>
    4848          </item>
    4949          <item row="0" column="1" rowspan="2">
    50            <layout class="QVBoxLayout" name="mLtMemorySlider">
     50           <layout class="QVBoxLayout" name="m_pLayoutSliderMemory">
    5151            <property name="spacing">
    5252             <number>0</number>
    5353            </property>
    5454            <item>
    55              <widget class="QIAdvancedSlider" name="mSlMemory">
     55             <widget class="QIAdvancedSlider" name="m_pSliderMemory">
    5656              <property name="whatsThis">
    5757               <string>Controls the amount of video memory provided to the virtual machine.</string>
     
    6666            </item>
    6767            <item>
    68              <layout class="QHBoxLayout" name="mLtMemoryLegend">
    69               <item>
    70                <widget class="QLabel" name="mLbMemoryMin">
     68             <layout class="QHBoxLayout" name="m_pLayoutLegendMemory">
     69              <item>
     70               <widget class="QLabel" name="m_pLabelMemoryMin">
    7171                <property name="sizePolicy">
    7272                 <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
     
    7878              </item>
    7979              <item>
    80                <spacer name="mSpHor1">
     80               <spacer name="m_pSpacerLegendMemory">
    8181                <property name="orientation">
    8282                 <enum>Qt::Horizontal</enum>
     
    9191              </item>
    9292              <item>
    93                <widget class="QLabel" name="mLbMemoryMax">
     93               <widget class="QLabel" name="m_pLabelMemoryMax">
    9494                <property name="sizePolicy">
    9595                 <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
     
    105105          </item>
    106106          <item row="0" column="2">
    107            <layout class="QHBoxLayout" name="mLtMemorySize">
    108             <item>
    109              <widget class="QILineEdit" name="mLeMemory">
     107           <layout class="QHBoxLayout" name="m_pLayoutEditorMemory">
     108            <item>
     109             <widget class="QILineEdit" name="m_pEditorMemory">
    110110              <property name="sizePolicy">
    111111               <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
     
    120120            </item>
    121121            <item>
    122              <widget class="QLabel" name="mLbMemoryUnit">
     122             <widget class="QLabel" name="m_pLabelMemoryUnit">
    123123              <property name="sizePolicy">
    124124               <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
     
    135135          </item>
    136136          <item row="2" column="0">
    137            <widget class="QLabel" name="mLbMonitors">
     137           <widget class="QLabel" name="m_pLabelScreens">
    138138            <property name="text">
    139139             <string>Mo&amp;nitor Count:</string>
     
    143143            </property>
    144144            <property name="buddy">
    145              <cstring>mLeMonitors</cstring>
     145             <cstring>m_pEditorScreens</cstring>
    146146            </property>
    147147           </widget>
    148148          </item>
    149149          <item row="2" column="1" rowspan="2">
    150            <layout class="QVBoxLayout" name="mLtMonitorsSlider">
     150           <layout class="QVBoxLayout" name="m_pLayoutSliderScreens">
    151151            <property name="spacing">
    152152             <number>0</number>
    153153            </property>
    154154            <item>
    155              <widget class="QIAdvancedSlider" name="mSlMonitors">
     155             <widget class="QIAdvancedSlider" name="m_pSliderScreeens">
    156156              <property name="whatsThis">
    157157               <string>Controls the amount of virtual monitors provided to the virtual machine.</string>
     
    166166            </item>
    167167            <item>
    168              <layout class="QHBoxLayout" name="mLtMonitorsLegend">
    169               <item>
    170                <widget class="QLabel" name="mLbMonitorsMin">
     168             <layout class="QHBoxLayout" name="m_pLayoutLegendScreens">
     169              <item>
     170               <widget class="QLabel" name="m_pLabelScreensMin">
    171171                <property name="sizePolicy">
    172172                 <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
     
    178178              </item>
    179179              <item>
    180                <spacer name="mSpHor2">
     180               <spacer name="m_pSpacerLegendScreens">
    181181                <property name="orientation">
    182182                 <enum>Qt::Horizontal</enum>
     
    191191              </item>
    192192              <item>
    193                <widget class="QLabel" name="mLbMonitorsMax">
     193               <widget class="QLabel" name="m_pLabelScreensMax">
    194194                <property name="sizePolicy">
    195195                 <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
     
    205205          </item>
    206206          <item row="2" column="2">
    207            <layout class="QHBoxLayout" name="mLtMonitorsSize">
    208             <item>
    209              <widget class="QILineEdit" name="mLeMonitors">
     207           <layout class="QHBoxLayout" name="m_pLayoutEditorScreens">
     208            <item>
     209             <widget class="QILineEdit" name="m_pEditorScreens">
    210210              <property name="sizePolicy">
    211211               <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
     
    220220            </item>
    221221            <item>
    222              <widget class="QLabel" name="mLbMonitorsUnit"/>
     222             <widget class="QLabel" name="m_pLabelScreensUnit"/>
    223223            </item>
    224224           </layout>
    225225          </item>
    226226          <item row="4" column="0">
    227            <widget class="QLabel" name="mLbOptions">
     227           <widget class="QLabel" name="m_pLabelVideoOptions">
    228228            <property name="text">
    229229             <string>Extended Features:</string>
     
    270270       </item>
    271271       <item>
    272         <spacer name="mSpVer1">
     272        <spacer name="m_pStretchVideo">
    273273         <property name="orientation">
    274274          <enum>Qt::Vertical</enum>
     
    284284      </layout>
    285285     </widget>
    286      <widget class="QWidget" name="mTabVRDP">
     286     <widget class="QWidget" name="m_pTabRemoteDisplay">
    287287      <attribute name="title">
    288288       <string>&amp;Remote Display</string>
    289289      </attribute>
    290       <layout class="QVBoxLayout" name="mLtVRDPPage">
     290      <layout class="QVBoxLayout" name="m_pLayoutTabRemoteDisplay">
    291291       <item>
    292         <widget class="QWidget" name="mWtVRDP">
    293          <layout class="QGridLayout" name="mLtVRDPItems">
     292        <widget class="QWidget" name="m_pContainerRemoteDisplay">
     293         <layout class="QGridLayout" name="m_pLayoutContainerRemoteDisplay">
    294294          <item row="0" column="0" colspan="2">
    295            <widget class="QCheckBox" name="mCbVRDE">
     295           <widget class="QCheckBox" name="m_pCheckboxRemoteDisplay">
    296296            <property name="whatsThis">
    297297             <string>When checked, the VM will act as a Remote Desktop Protocol (RDP) server, allowing remote clients to connect and operate the VM (when it is running) using a standard RDP client.</string>
     
    306306          </item>
    307307          <item row="1" column="0">
    308            <spacer name="mSpHor3">
     308           <spacer name="m_pSpacerContainerRemoteDisplay">
    309309            <property name="orientation">
    310310             <enum>Qt::Horizontal</enum>
     
    322322          </item>
    323323          <item row="1" column="1">
    324            <widget class="QWidget" name="mWtVRDPServer">
    325             <layout class="QGridLayout" name="mLtVRDPServerItems">
     324           <widget class="QWidget" name="m_pContainerRemoteDisplayOptions">
     325            <layout class="QGridLayout" name="m_pLayoutContainerRemoteDisplayServer">
    326326             <item row="0" column="0">
    327               <widget class="QLabel" name="mLbVRDPPort">
     327              <widget class="QLabel" name="m_pLabelRemoteDisplayPort">
    328328               <property name="text">
    329329                <string>Server &amp;Port:</string>
     
    333333               </property>
    334334               <property name="buddy">
    335                 <cstring>mLeVRDEPort</cstring>
     335                <cstring>m_pEditorRemoteDisplayPort</cstring>
    336336               </property>
    337337              </widget>
    338338             </item>
    339339             <item row="0" column="1">
    340               <widget class="QLineEdit" name="mLeVRDEPort">
     340              <widget class="QLineEdit" name="m_pEditorRemoteDisplayPort">
    341341               <property name="whatsThis">
    342342                <string>The VRDP Server port number. You may specify &lt;tt&gt;0&lt;/tt&gt; (zero), to select port 3389, the standard port for RDP.</string>
     
    345345             </item>
    346346             <item row="1" column="0">
    347               <widget class="QLabel" name="mLbVRDPMethod">
     347              <widget class="QLabel" name="m_pLabelRemoteDisplayAuthMethod">
    348348               <property name="text">
    349349                <string>Authentication &amp;Method:</string>
     
    353353               </property>
    354354               <property name="buddy">
    355                 <cstring>mCbVRDEMethod</cstring>
     355                <cstring>m_pComboRemoteDisplayAuthMethod</cstring>
    356356               </property>
    357357              </widget>
    358358             </item>
    359359             <item row="1" column="1">
    360               <widget class="QComboBox" name="mCbVRDEMethod">
     360              <widget class="QComboBox" name="m_pComboRemoteDisplayAuthMethod">
    361361               <property name="whatsThis">
    362362                <string>Defines the VRDP authentication method.</string>
     
    365365             </item>
    366366             <item row="2" column="0">
    367               <widget class="QLabel" name="mLbVRDPTimeout">
     367              <widget class="QLabel" name="m_pLabelRemoteDisplayTimeout">
    368368               <property name="text">
    369369                <string>Authentication &amp;Timeout:</string>
     
    373373               </property>
    374374               <property name="buddy">
    375                 <cstring>mLeVRDETimeout</cstring>
     375                <cstring>m_pEditorRemoteDisplayTimeout</cstring>
    376376               </property>
    377377              </widget>
    378378             </item>
    379379             <item row="2" column="1">
    380               <widget class="QLineEdit" name="mLeVRDETimeout">
     380              <widget class="QLineEdit" name="m_pEditorRemoteDisplayTimeout">
    381381               <property name="whatsThis">
    382382                <string>Specifies the timeout for guest authentication, in milliseconds.</string>
     
    385385             </item>
    386386             <item row="3" column="0">
    387               <widget class="QLabel" name="mLbOptions2">
     387              <widget class="QLabel" name="m_pLabelRemoteDisplayOptions">
    388388               <property name="text">
    389389                <string>Extended Features:</string>
     
    395395             </item>
    396396             <item row="3" column="1">
    397               <widget class="QCheckBox" name="mCbMultipleConn">
     397              <widget class="QCheckBox" name="m_pCheckboxMultipleConn">
    398398               <property name="sizePolicy">
    399399                <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
     
    417417       </item>
    418418       <item>
    419         <spacer name="mSpVer2">
     419        <spacer name="m_pStretchRemoteDisplay">
    420420         <property name="orientation">
    421421          <enum>Qt::Vertical</enum>
     
    455455 <connections>
    456456  <connection>
    457    <sender>mCbVRDE</sender>
     457   <sender>m_pCheckboxRemoteDisplay</sender>
    458458   <signal>toggled(bool)</signal>
    459    <receiver>mWtVRDPServer</receiver>
     459   <receiver>m_pContainerRemoteDisplayOptions</receiver>
    460460   <slot>setEnabled(bool)</slot>
    461461  </connection>
Note: See TracChangeset for help on using the changeset viewer.

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