VirtualBox

Ignore:
Timestamp:
May 30, 2014 2:58:02 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
94064
Message:

DnD: API overhaul; now using IDnDTarget + IDnDSource. Renamed DragAndDrop* enumerations to DnD*. Also rewrote some internal code.

Location:
trunk/src/VBox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox

  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageControlVM.cpp

    r48538 r51476  
    55
    66/*
    7  * Copyright (C) 2006-2013 Oracle Corporation
     7 * Copyright (C) 2006-2014 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    198198            }
    199199
    200             DragAndDropMode_T mode;
     200            DnDMode_T mode;
    201201            if (!strcmp(a->argv[2], "disabled"))
    202                 mode = DragAndDropMode_Disabled;
     202                mode = DnDMode_Disabled;
    203203            else if (!strcmp(a->argv[2], "hosttoguest"))
    204                 mode = DragAndDropMode_HostToGuest;
     204                mode = DnDMode_HostToGuest;
    205205            else if (!strcmp(a->argv[2], "guesttohost"))
    206                 mode = DragAndDropMode_GuestToHost;
     206                mode = DnDMode_GuestToHost;
    207207            else if (!strcmp(a->argv[2], "bidirectional"))
    208                 mode = DragAndDropMode_Bidirectional;
     208                mode = DnDMode_Bidirectional;
    209209            else
    210210            {
     
    214214            if (SUCCEEDED(rc))
    215215            {
    216                 CHECK_ERROR_BREAK(sessionMachine, COMSETTER(DragAndDropMode)(mode));
     216                CHECK_ERROR_BREAK(sessionMachine, COMSETTER(DnDMode)(mode));
    217217            }
    218218        }
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp

    r51384 r51476  
    16101610    {
    16111611        const char *psz = "Unknown";
    1612         DragAndDropMode_T enmMode;
    1613         rc = machine->COMGETTER(DragAndDropMode)(&enmMode);
     1612        DnDMode_T enmMode;
     1613        rc = machine->COMGETTER(DnDMode)(&enmMode);
    16141614        switch (enmMode)
    16151615        {
    1616             case DragAndDropMode_Disabled:
     1616            case DnDMode_Disabled:
    16171617                if (details == VMINFO_MACHINEREADABLE)
    16181618                    psz = "disabled";
     
    16201620                    psz = "disabled";
    16211621                break;
    1622             case DragAndDropMode_HostToGuest:
     1622            case DnDMode_HostToGuest:
    16231623                if (details == VMINFO_MACHINEREADABLE)
    16241624                    psz = "hosttoguest";
     
    16261626                    psz = "HostToGuest";
    16271627                break;
    1628             case DragAndDropMode_GuestToHost:
     1628            case DnDMode_GuestToHost:
    16291629                if (details == VMINFO_MACHINEREADABLE)
    16301630                    psz = "guesttohost";
     
    16321632                    psz = "GuestToHost";
    16331633                break;
    1634             case DragAndDropMode_Bidirectional:
     1634            case DnDMode_Bidirectional:
    16351635                if (details == VMINFO_MACHINEREADABLE)
    16361636                    psz = "bidirectional";
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp

    r51259 r51476  
    21682168            case MODIFYVM_DRAGANDDROP:
    21692169            {
    2170                 DragAndDropMode_T mode;
     2170                DnDMode_T mode;
    21712171                if (!RTStrICmp(ValueUnion.psz, "disabled"))
    2172                     mode = DragAndDropMode_Disabled;
     2172                    mode = DnDMode_Disabled;
    21732173                else if (!RTStrICmp(ValueUnion.psz, "hosttoguest"))
    2174                     mode = DragAndDropMode_HostToGuest;
     2174                    mode = DnDMode_HostToGuest;
    21752175                else if (!RTStrICmp(ValueUnion.psz, "guesttohost"))
    2176                     mode = DragAndDropMode_GuestToHost;
     2176                    mode = DnDMode_GuestToHost;
    21772177                else if (!RTStrICmp(ValueUnion.psz, "bidirectional"))
    2178                     mode = DragAndDropMode_Bidirectional;
     2178                    mode = DnDMode_Bidirectional;
    21792179                else
    21802180                {
     
    21842184                if (SUCCEEDED(rc))
    21852185                {
    2186                     CHECK_ERROR(machine, COMSETTER(DragAndDropMode)(mode));
     2186                    CHECK_ERROR(machine, COMSETTER(DnDMode)(mode));
    21872187                }
    21882188                break;
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