VirtualBox

Ignore:
Timestamp:
Nov 29, 2011 10:57:46 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
75096
Message:

Additions-X11: initial DnD support

Location:
trunk/src/VBox/Additions/x11/VBoxClient
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/Makefile.kmk

    r38152 r39454  
    5151        Xrandr \
    5252        Xt
     53#       Xtst
    5354# These are static replacements for gcc-specific parts of libstdc++
    5455VBoxClient_LIBS += \
     
    6970ifdef VBOX_WITH_GUEST_PROPS
    7071 VBoxClient_DEFS += VBOX_WITH_GUEST_PROPS
     72endif
     73ifdef VBOX_WITH_DRAG_AND_DROP
     74 VBoxClient_DEFS += VBOX_WITH_DRAG_AND_DROP
     75 VBoxClient_SOURCES += \
     76        draganddrop.cpp
    7177endif
    7278
  • trunk/src/VBox/Additions/x11/VBoxClient/VBoxClient.h

    r36529 r39454  
    4343extern Service *GetDisplayService();
    4444extern Service *GetHostVersionService();
     45#ifdef VBOX_WITH_DRAG_AND_DROP
     46extern Service *GetDragAndDropService();
     47#endif /* VBOX_WITH_DRAG_AND_DROP */
    4548
    4649extern void CleanUp();
  • trunk/src/VBox/Additions/x11/VBoxClient/main.cpp

    r38720 r39454  
    141141void vboxClientUsage(const char *pcszFileName)
    142142{
    143     RTPrintf("Usage: %s --clipboard|--display|--checkhostversion|--seamless [-d|--nodaemon]\n", pcszFileName);
     143    RTPrintf("Usage: %s --clipboard|"
     144#ifdef VBOX_WITH_DRAG_AND_DROP
     145             "--draganddrop|"
     146#endif
     147             "--display|"
     148# ifdef VBOX_WITH_GUEST_PROPS
     149             "--checkhostversion|"
     150#endif
     151             "--seamless [-d|--nodaemon]\n", pcszFileName);
    144152    RTPrintf("Start the VirtualBox X Window System guest services.\n\n");
    145153    RTPrintf("Options:\n");
    146154    RTPrintf("  --clipboard        start the shared clipboard service\n");
     155#ifdef VBOX_WITH_DRAG_AND_DROP
     156    RTPrintf("  --draganddrop      start the drag and drop service\n");
     157#endif
    147158    RTPrintf("  --display          start the display management service\n");
    148 # ifdef VBOX_WITH_GUEST_PROPS
     159#ifdef VBOX_WITH_GUEST_PROPS
    149160    RTPrintf("  --checkhostversion start the host version notifier service\n");
    150 # endif
     161#endif
    151162    RTPrintf("  --seamless         start the seamless windows service\n");
    152163    RTPrintf("  -d, --nodaemon     continue running as a system service\n");
     
    219230                fSuccess = false;
    220231        }
     232#ifdef VBOX_WITH_DRAG_AND_DROP
     233        else if (!strcmp(argv[i], "--draganddrop"))
     234        {
     235            if (g_pService == NULL)
     236                g_pService = VBoxClient::GetDragAndDropService();
     237            else
     238                fSuccess = false;
     239        }
     240#endif /* VBOX_WITH_DRAG_AND_DROP */
    221241        else if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help"))
    222242        {
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