VirtualBox

Changeset 42261 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jul 20, 2012 1:27:47 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
79316
Message:

enabled shared clipboard support for Linux hosts (guest=>host only)

Location:
trunk/src/VBox/Frontends
Files:
1 added
23 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageControlVM.cpp

    r42248 r42261  
    55
    66/*
    7  * Copyright (C) 2006-2011 Oracle Corporation
     7 * Copyright (C) 2006-2012 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    189189            {
    190190                CHECK_ERROR_BREAK(sessionMachine, COMSETTER(ClipboardMode)(mode));
     191            }
     192        }
     193        else if (!strcmp(a->argv[1], "draganddrop"))
     194        {
     195            if (a->argc <= 1 + 1)
     196            {
     197                errorArgument("Missing argument to '%s'. Expected drag'n'drop mode.", a->argv[1]);
     198                rc = E_FAIL;
     199                break;
     200            }
     201
     202            DragAndDropMode_T mode;
     203            if (!strcmp(a->argv[2], "disabled"))
     204                mode = DragAndDropMode_Disabled;
     205            else if (!strcmp(a->argv[2], "hosttoguest"))
     206                mode = DragAndDropMode_HostToGuest;
     207            else if (!strcmp(a->argv[2], "guesttohost"))
     208                mode = DragAndDropMode_GuestToHost;
     209            else if (!strcmp(a->argv[2], "bidirectional"))
     210                mode = DragAndDropMode_Bidirectional;
     211            else
     212            {
     213                errorArgument("Invalid '%s' argument '%s'.", a->argv[1], a->argv[2]);
     214                rc = E_FAIL;
     215            }
     216            if (SUCCEEDED(rc))
     217            {
     218                CHECK_ERROR_BREAK(sessionMachine, COMSETTER(DragAndDropMode)(mode));
    191219            }
    192220        }
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp

    r42248 r42261  
    305305                     "                            [--audiocontroller ac97|hda|sb16]\n"
    306306                     "                            [--clipboard disabled|hosttoguest|guesttohost|\n"
    307                      "                                         bidirectional]\n");
     307                     "                                         bidirectional]\n"
     308                     "                            [--draganddrop disabled|hosttoguest\n");
    308309        RTStrmPrintf(pStrm,
    309310                     "                            [--vrde on|off]\n"
     
    429430                     "                            clipboard disabled|hosttoguest|guesttohost|\n"
    430431                     "                                         bidirectional]\n"
     432                     "                            draganddrop disabled|hosttoguest]\n"
    431433                     "                            vrde on|off |\n"
    432434                     "                            vrdeport <port> |\n"
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp

    r42129 r42261  
    15131513    }
    15141514
     1515    /* Drag'n'drop */
     1516    {
     1517        const char *psz = "Unknown";
     1518        DragAndDropMode_T enmMode;
     1519        rc = machine->COMGETTER(DragAndDropMode)(&enmMode);
     1520        switch (enmMode)
     1521        {
     1522            case DragAndDropMode_Disabled:
     1523                if (details == VMINFO_MACHINEREADABLE)
     1524                    psz = "disabled";
     1525                else
     1526                    psz = "disabled";
     1527                break;
     1528            case DragAndDropMode_HostToGuest:
     1529                if (details == VMINFO_MACHINEREADABLE)
     1530                    psz = "hosttoguest";
     1531                else
     1532                    psz = "HostToGuest";
     1533                break;
     1534            case DragAndDropMode_GuestToHost:
     1535                if (details == VMINFO_MACHINEREADABLE)
     1536                    psz = "guesttohost";
     1537                else
     1538                    psz = "GuestToHost";
     1539                break;
     1540            case DragAndDropMode_Bidirectional:
     1541                if (details == VMINFO_MACHINEREADABLE)
     1542                    psz = "bidirectional";
     1543                else
     1544                    psz = "Bidirectional";
     1545                break;
     1546            default:
     1547                if (details == VMINFO_MACHINEREADABLE)
     1548                    psz = "unknown";
     1549                break;
     1550        }
     1551        if (details == VMINFO_MACHINEREADABLE)
     1552            RTPrintf("draganddrop=\"%s\"\n", psz);
     1553        else
     1554            RTPrintf("Drag'n'drop Mode:  %s\n", psz);
     1555    }
     1556
    15151557    if (console)
    15161558    {
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp

    r42176 r42261  
    140140    MODIFYVM_AUDIO,
    141141    MODIFYVM_CLIPBOARD,
     142    MODIFYVM_DRAGANDDROP,
    142143    MODIFYVM_VRDPPORT,                /* VRDE: deprecated */
    143144    MODIFYVM_VRDPADDRESS,             /* VRDE: deprecated */
     
    286287    { "--audio",                    MODIFYVM_AUDIO,                     RTGETOPT_REQ_STRING },
    287288    { "--clipboard",                MODIFYVM_CLIPBOARD,                 RTGETOPT_REQ_STRING },
     289    { "--draganddrop",              MODIFYVM_DRAGANDDROP,               RTGETOPT_REQ_STRING },
    288290    { "--vrdpport",                 MODIFYVM_VRDPPORT,                  RTGETOPT_REQ_STRING },     /* deprecated */
    289291    { "--vrdpaddress",              MODIFYVM_VRDPADDRESS,               RTGETOPT_REQ_STRING },     /* deprecated */
     
    20022004            }
    20032005
     2006            case MODIFYVM_DRAGANDDROP:
     2007            {
     2008                DragAndDropMode_T mode;
     2009                if (!strcmp(ValueUnion.psz, "disabled"))
     2010                    mode = DragAndDropMode_Disabled;
     2011                else if (!strcmp(ValueUnion.psz, "hosttoguest"))
     2012                    mode = DragAndDropMode_HostToGuest;
     2013                else if (!strcmp(ValueUnion.psz, "guesttohost"))
     2014                    mode = DragAndDropMode_GuestToHost;
     2015                else if (!strcmp(ValueUnion.psz, "bidirectional"))
     2016                    mode = DragAndDropMode_Bidirectional;
     2017                else
     2018                {
     2019                    errorArgument("Invalid --draganddrop argument '%s'", ValueUnion.psz);
     2020                    rc = E_FAIL;
     2021                }
     2022                if (SUCCEEDED(rc))
     2023                {
     2024                    CHECK_ERROR(machine, COMSETTER(DragAndDropMode)(mode));
     2025                }
     2026                break;
     2027            }
     2028
    20042029            case MODIFYVM_VRDE_EXTPACK:
    20052030            {
  • trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk

    r42220 r42261  
    112112        $(if $(VBOX_WITH_EHCI),VBOX_WITH_EHCI) \
    113113        $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP) \
     114        $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH) \
    114115        $(if $(VBOX_WITH_CRHGSMI),VBOX_WITH_CRHGSMI) \
    115116        $(if $(VBOX_WITH_VIRTIO),VBOX_WITH_VIRTIO) \
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMInformationDlg.cpp

    r41927 r42261  
    476476            resolution += QString ("x%1").arg (bpp);
    477477
    478         QString mode = gpConverter->toString(m.GetClipboardMode());
    479 
     478        QString clipboardMode = gpConverter->toString(m.GetClipboardMode());
     479        QString dragAndDropMode = gpConverter->toString(m.GetDragAndDropMode());
    480480
    481481        CMachineDebugger debugger = console.GetDebugger();
     
    518518        result += hdrRow.arg (":/state_running_16px.png").arg (tr ("Runtime Attributes"));
    519519        result += formatValue (tr ("Screen Resolution"), resolution, maxLength);
    520         result += formatValue (tr ("Clipboard Mode"), mode, maxLength);
     520        result += formatValue (tr ("Clipboard Mode"), clipboardMode, maxLength);
     521        result += formatValue (tr ("Drag'n'Drop Mode"), dragAndDropMode, maxLength);
    521522        result += formatValue (VBoxGlobal::tr ("VT-x/AMD-V", "details report"), virtualization, maxLength);
    522523        result += formatValue (VBoxGlobal::tr ("Nested Paging", "details report"), nested, maxLength);
  • trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackend.h

    r41850 r42261  
    5555template<> bool canConvert<KDeviceType>();
    5656template<> bool canConvert<KClipboardMode>();
     57template<> bool canConvert<KDragAndDropMode>();
    5758template<> bool canConvert<KMediumType>();
    5859template<> bool canConvert<KMediumVariant>();
     
    8283template<> QString toString(const KDeviceType &type);
    8384template<> QString toString(const KClipboardMode &mode);
     85template<> QString toString(const KDragAndDropMode &mode);
    8486template<> QString toString(const KMediumType &type);
    8587template<> QString toString(const KMediumVariant &variant);
  • trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendCOM.cpp

    r41888 r42261  
    3434template<> bool canConvert<KDeviceType>() { return true; }
    3535template<> bool canConvert<KClipboardMode>() { return true; }
     36template<> bool canConvert<KDragAndDropMode>() { return true; }
    3637template<> bool canConvert<KMediumType>() { return true; }
    3738template<> bool canConvert<KMediumVariant>() { return true; }
     
    200201}
    201202
     203/* QString <= KDragAndDropMode: */
     204template<> QString toString(const KDragAndDropMode &mode)
     205{
     206    switch (mode)
     207    {
     208        case KDragAndDropMode_Disabled:      return QApplication::translate("VBoxGlobal", "Disabled", "DragAndDropType");
     209        case KDragAndDropMode_HostToGuest:   return QApplication::translate("VBoxGlobal", "Host To Guest", "DragAndDropType");
     210        case KDragAndDropMode_GuestToHost:   return QApplication::translate("VBoxGlobal", "Guest To Host", "DragAndDropType");
     211        case KDragAndDropMode_Bidirectional: return QApplication::translate("VBoxGlobal", "Bidirectional", "DragAndDropType");
     212        default: AssertMsgFailed(("No text for %d", mode)); break;
     213    }
     214    return QString();
     215}
     216
    202217/* QString <= KMediumType: */
    203218template<> QString toString(const KMediumType &type)
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIListView.cpp

    r41689 r42261  
    77
    88/*
    9  * Copyright (C) 2006-2008 Oracle Corporation
     9 * Copyright (C) 2006-2012 Oracle Corporation
    1010 *
    1111 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    9999        aPainter->drawLine (r.left(), r.top() - 1, r.right(), r.top() - 1);
    100100        aPainter->fillRect (r, linearGrad);
    101     }else
     101    }
     102    else
    102103    {
    103104        /* Color for items and no focus on the application at all */
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIMessageBox.cpp

    r41689 r42261  
    77
    88/*
    9  * Copyright (C) 2006-2009 Oracle Corporation
     9 * Copyright (C) 2006-2012 Oracle Corporation
    1010 *
    1111 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    350350        int size = style()->pixelMetric (QStyle::PM_MessageBoxIconSize, 0, this);
    351351        return icon.pixmap (size, size);
    352     }else
     352    }
     353    else
    353354        return QPixmap();
    354355}
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QISplitter.cpp

    r30868 r42261  
    77
    88/*
    9  * Copyright (C) 2009-2010 Oracle Corporation
     9 * Copyright (C) 2009-2012 Oracle Corporation
    1010 *
    1111 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    101101            linearGrad.setColorAt(1, gradientStop);
    102102            painter.fillRect(QRect(QPoint(0,1), size() - QSize(0, 2)), QBrush(linearGrad));
    103         }else
     103        }
     104        else
    104105        {
    105106            painter.setPen(topColor);
     
    248249        return new QSplitterHandle(orientation(), this);
    249250#endif /* RT_OS_DARWIN */
    250     }else
     251    }
     252    else
    251253        return new QIShadeSplitterHandle(orientation(), this);
    252254}
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIStateIndicator.cpp

    r33540 r42261  
    77
    88/*
    9  * Copyright (C) 2006-2007 Oracle Corporation
     9 * Copyright (C) 2006-2012 Oracle Corporation
    1010 *
    1111 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    137137        else
    138138            QFrame::mousePressEvent (aEv);
    139     }else
     139    }
     140    else
    140141        QFrame::mousePressEvent (aEv);
    141142}
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp

    r41833 r42261  
    77
    88/*
    9  * Copyright (C) 2006-2011 Oracle Corporation
     9 * Copyright (C) 2006-2012 Oracle Corporation
    1010 *
    1111 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    23652365                Error,
    23662366                tr("Failed to open appliance."));
    2367     }else
     2367    }
     2368    else
    23682369    {
    23692370        /* Preserve the current error info before calling the object again */
     
    24402441                Error,
    24412442                tr("Failed to create appliance."));
    2442     }else
     2443    }
     2444    else
    24432445    {
    24442446        /* Preserve the current error info before calling the object again */
     
    24622464                Error,
    24632465                tr("Failed to create an appliance."));
    2464     }else
     2466    }
     2467    else
    24652468    {
    24662469        message(pParent ? pParent : mainWindowShown(),
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/UIWindowMenuManager.cpp

    r34401 r42261  
    77
    88/*
    9  * Copyright (C) 2010 Oracle Corporation
     9 * Copyright (C) 2010-2012 Oracle Corporation
    1010 *
    1111 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    108108            if (m_regWindows.contains(pActive->windowTitle()))
    109109                m_regWindows[pActive->windowTitle()]->setChecked(true);
    110         }else
     110        }
     111        else
    111112        {
    112113            if (QAction *pChecked = m_pGroup->checkedAction())
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/VBoxUtils-darwin.cpp

    r36534 r42261  
    55
    66/*
    7  * Copyright (C) 2006-2010 Oracle Corporation
     7 * Copyright (C) 2006-2012 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    531531                break;
    532532            strTarget = QString::fromUtf8(pszPath);
    533         }else
     533        }
     534        else
    534535            strTarget = strFile;
    535536    }while(0);
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp

    r41689 r42261  
    824824
    825825#ifdef VBOX_WITH_DRAG_AND_DROP
     826# ifdef VBOX_WITH_DRAG_AND_DROP_GH
    826827            if (   cpnt.x() < 0
    827828                || cpnt.x() > iCw - 1
     
    836837                }
    837838            }
     839# endif
    838840#endif /* VBOX_WITH_DRAG_AND_DROP */
    839841
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UIVMListView.cpp

    r41689 r42261  
    529529                pEvent->accept();
    530530            }
    531         }else if (   VBoxGlobal::hasAllowedExtension(file, OVFFileExts)
     531        }
     532        else if (   VBoxGlobal::hasAllowedExtension(file, OVFFileExts)
    532533                  && pEvent->possibleActions().testFlag(Qt::CopyAction))
    533534        {
    534535            pEvent->setDropAction(Qt::CopyAction);
    535536            pEvent->accept();
    536         }else if (   VBoxGlobal::hasAllowedExtension(file, VBoxExtPackFileExts)
     537        }
     538        else if (   VBoxGlobal::hasAllowedExtension(file, VBoxExtPackFileExts)
    537539                  && pEvent->possibleActions().testFlag(Qt::CopyAction))
    538540        {
     
    934936                QFontMetrics fm(fontMetric(aIndex, UIVMItemModel::SnapShotFontRole));
    935937                return QRect(QPoint(0, 0), fm.size(0, QString("(%1)").arg(text)));
    936             }else
     938            }
     939            else
    937940                return QRect();
    938941            break;
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/VBoxSettingsSelector.cpp

    r37610 r42261  
    77
    88/*
    9  * Copyright (C) 2008 Oracle Corporation
     9 * Copyright (C) 2008-2012 Oracle Corporation
    1010 *
    1111 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    438438        item->setTabWidget (tabWidget);
    439439        result = tabWidget;
    440     }else
     440    }
     441    else
    441442    {
    442443        SelectorActionItem *parent = findActionItem (aParentId);
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsGeneral.cpp

    r41819 r42261  
    77
    88/*
    9  * Copyright (C) 2006-2011 Oracle Corporation
     9 * Copyright (C) 2006-2012 Oracle Corporation
    1010 *
    1111 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    4343    mCbClipboard->addItem (""); /* KClipboardMode_GuestToHost */
    4444    mCbClipboard->addItem (""); /* KClipboardMode_Bidirectional */
     45
     46    /* Drag'n'drop mode */
     47    mCbDragAndDrop->addItem (""); /* KDragAndDropMode_Disabled */
     48    mCbDragAndDrop->addItem (""); /* KDragAndDropMode_HostToGuest */
     49    mCbDragAndDrop->addItem (""); /* KDragAndDropMode_GuestToHost */
     50    mCbDragAndDrop->addItem (""); /* KDragAndDropMode_Bidirectional */
    4551
    4652#ifdef Q_WS_MAC
     
    99105    generalData.m_strSnapshotsHomeDir = QFileInfo(m_machine.GetSettingsFilePath()).absolutePath();
    100106    generalData.m_clipboardMode = m_machine.GetClipboardMode();
     107    generalData.m_dragAndDropMode = m_machine.GetDragAndDropMode();
    101108    generalData.m_strDescription = m_machine.GetDescription();
    102109
     
    124131    mPsSnapshot->setHomeDir(generalData.m_strSnapshotsHomeDir);
    125132    mCbClipboard->setCurrentIndex(generalData.m_clipboardMode);
     133    mCbDragAndDrop->setCurrentIndex(generalData.m_dragAndDropMode);
    126134    mTeDescription->setPlainText(generalData.m_strDescription);
    127135
     
    149157    generalData.m_strSnapshotsFolder = mPsSnapshot->path();
    150158    generalData.m_clipboardMode = (KClipboardMode)mCbClipboard->currentIndex();
     159    generalData.m_dragAndDropMode = (KDragAndDropMode)mCbDragAndDrop->currentIndex();
    151160    generalData.m_strDescription = mTeDescription->toPlainText().isEmpty() ?
    152161                                   QString::null : mTeDescription->toPlainText();
     
    174183            /* Advanced tab: */
    175184            m_machine.SetClipboardMode(generalData.m_clipboardMode);
     185            m_machine.SetDragAndDropMode(generalData.m_dragAndDropMode);
    176186            m_machine.SetExtraData(GUI_SaveMountedAtRuntime, generalData.m_fSaveMountedAtRuntime ? "yes" : "no");
    177187            m_machine.SetExtraData(GUI_ShowMiniToolBar, generalData.m_fShowMiniToolBar ? "yes" : "no");
     
    221231    setTabOrder (m_pNameAndSystemEditor, mPsSnapshot);
    222232    setTabOrder (mPsSnapshot, mCbClipboard);
    223     setTabOrder (mCbClipboard, mCbSaveMounted);
     233    setTabOrder (mCbClipboard, mCbDragAndDrop);
     234    setTabOrder (mCbDragAndDrop, mCbSaveMounted);
    224235    setTabOrder (mCbSaveMounted, mCbShowToolBar);
    225236    setTabOrder (mCbShowToolBar, mCbToolBarAlignment);
     
    245256    mCbClipboard->setItemText (2, gpConverter->toString (KClipboardMode_GuestToHost));
    246257    mCbClipboard->setItemText (3, gpConverter->toString (KClipboardMode_Bidirectional));
     258
     259    /* Drag'n'drop mode */
     260    mCbDragAndDrop->setItemText (0, gpConverter->toString (KDragAndDropMode_Disabled));
     261    mCbDragAndDrop->setItemText (1, gpConverter->toString (KDragAndDropMode_HostToGuest));
     262    mCbDragAndDrop->setItemText (2, gpConverter->toString (KDragAndDropMode_GuestToHost));
     263    mCbDragAndDrop->setItemText (3, gpConverter->toString (KDragAndDropMode_Bidirectional));
    247264}
    248265
     
    256273    mLbClipboard->setEnabled(isMachineInValidMode());
    257274    mCbClipboard->setEnabled(isMachineInValidMode());
     275    mLbDragAndDrop->setEnabled(isMachineInValidMode());
     276    mCbDragAndDrop->setEnabled(isMachineInValidMode());
    258277    mLbMedia->setEnabled(isMachineInValidMode());
    259278    mCbSaveMounted->setEnabled(isMachineInValidMode());
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsGeneral.h

    r41587 r42261  
    66
    77/*
    8  * Copyright (C) 2006-2011 Oracle Corporation
     8 * Copyright (C) 2006-2012 Oracle Corporation
    99 *
    1010 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    3737        , m_strSnapshotsHomeDir(QString())
    3838        , m_clipboardMode(KClipboardMode_Disabled)
     39        , m_dragAndDropMode(KDragAndDropMode_Disabled)
    3940        , m_strDescription(QString()) {}
    4041    /* Functions: */
     
    4950               (m_strSnapshotsHomeDir == other.m_strSnapshotsHomeDir) &&
    5051               (m_clipboardMode == other.m_clipboardMode) &&
     52               (m_dragAndDropMode == other.m_dragAndDropMode) &&
    5153               (m_strDescription == other.m_strDescription);
    5254    }
     
    6365    QString m_strSnapshotsHomeDir;
    6466    KClipboardMode m_clipboardMode;
     67    KDragAndDropMode m_dragAndDropMode;
    6568    QString m_strDescription;
    6669};
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsGeneral.ui

    r41387 r42261  
    33 VBox frontends: Qt4 GUI ("VirtualBox"):
    44
    5      Copyright (C) 2008 Oracle Corporation
     5     Copyright (C) 2008-2012 Oracle Corporation
    66
    77     This file is part of VirtualBox Open Source Edition (OSE), as
     
    132132          </item>
    133133          <item row="2" column="0" >
     134           <widget class="QLabel" name="mLbDragAndDrop" >
     135            <property name="text" >
     136             <string>&amp;Drag'n'Drop:</string>
     137            </property>
     138            <property name="alignment" >
     139             <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
     140            </property>
     141            <property name="buddy" >
     142             <cstring>mCbDragAndDrop</cstring>
     143            </property>
     144           </widget>
     145          </item>
     146          <item row="2" column="1" >
     147           <widget class="QComboBox" name="mCbDragAndDrop" >
     148            <property name="sizePolicy" >
     149             <sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
     150              <horstretch>0</horstretch>
     151              <verstretch>0</verstretch>
     152             </sizepolicy>
     153            </property>
     154            <property name="whatsThis" >
     155                <string>Selects which data will be copied between the guest and the host OS by drag'n'drop. This feature requires Guest Additions to be installed in the guest OS.</string>
     156            </property>
     157           </widget>
     158          </item>
     159          <item row="2" column="2" >
     160           <spacer name="mSpHor2" >
     161            <property name="orientation" >
     162             <enum>Qt::Horizontal</enum>
     163            </property>
     164            <property name="sizeHint" stdset="0" >
     165             <size>
     166              <width>0</width>
     167              <height>0</height>
     168             </size>
     169            </property>
     170           </spacer>
     171          </item>
     172          <item row="3" column="0" >
    134173           <widget class="QLabel" name="mLbMedia" >
    135174            <property name="text" >
     
    141180           </widget>
    142181          </item>
    143           <item row="2" column="1" >
     182          <item row="3" column="1" >
    144183           <widget class="QCheckBox" name="mCbSaveMounted" >
    145184            <property name="sizePolicy" >
     
    160199           </widget>
    161200          </item>
    162           <item row="3" column="0" >
     201          <item row="4" column="0" >
    163202           <widget class="QLabel" name="mLbToolBar" >
    164203            <property name="text" >
     
    170209           </widget>
    171210          </item>
    172           <item row="3" column="1" >
     211          <item row="4" column="1" >
    173212           <widget class="QCheckBox" name="mCbShowToolBar" >
    174213            <property name="sizePolicy" >
     
    189228           </widget>
    190229          </item>
    191           <item row="4" column="1" >
     230          <item row="5" column="1" >
    192231           <widget class="QCheckBox" name="mCbToolBarAlignment" >
    193232            <property name="sizePolicy" >
     
    212251       </item>
    213252       <item>
    214         <spacer name="mSpVer2" >
     253        <spacer name="mSpVer3" >
    215254         <property name="orientation" >
    216255          <enum>Qt::Vertical</enum>
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIProgressDialog.cpp

    r41587 r42261  
    77
    88/*
    9  * Copyright (C) 2006-2010 Oracle Corporation
     9 * Copyright (C) 2006-2012 Oracle Corporation
    1010 *
    1111 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    277277        }
    278278        m_progressBar->setValue(m_progress.GetPercent());
    279     }else
     279    }
     280    else
    280281        m_pEtaLbl->setText(m_strCancel);
    281282}
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/VBoxFilePathSelectorWidget.cpp

    r41370 r42261  
    77
    88/*
    9  * Copyright (C) 2008 Oracle Corporation
     9 * Copyright (C) 2008-2012 Oracle Corporation
    1010 *
    1111 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    131131        /* Installing necessary event filters */
    132132        lineEdit()->installEventFilter (this);
    133     }else
     133    }
     134    else
    134135    {
    135136        if (lineEdit())
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