Changeset 85697 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Aug 11, 2020 4:41:41 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 139835
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIDnDDataObject_win.cpp
r85681 r85697 40 40 UIDnDDataObject::UIDnDDataObject(UIDnDHandler *pDnDHandler, const QStringList &lstFormats) 41 41 : m_pDnDHandler(pDnDHandler) 42 , m_enmStatus( DnDDataObjectStatus_Uninitialized)42 , m_enmStatus(Status_Uninitialized) 43 43 , m_cRefs(1) 44 44 , m_cFormats(0) … … 128 128 #endif 129 129 m_cFormats = cRegisteredFormats; 130 m_enmStatus = DnDDataObjectStatus_Dropping;130 m_enmStatus = Status_Dropping; 131 131 } 132 132 … … 214 214 switch (m_enmStatus) 215 215 { 216 case DnDDataObjectStatus_Dropping:216 case Status_Dropping: 217 217 { 218 218 #if 0 … … 225 225 } 226 226 227 case DnDDataObjectStatus_Dropped:227 case Status_Dropped: 228 228 { 229 229 LogRel3(("DnD: Dropped\n")); … … 578 578 { 579 579 LogFlowFunc(("Aborting ...\n")); 580 m_enmStatus = DnDDataObjectStatus_Aborted;580 m_enmStatus = Status_Aborted; 581 581 return RTSemEventSignal(m_SemEvent); 582 582 } … … 737 737 * @param enmStatus New status to set. 738 738 */ 739 void UIDnDDataObject::SetStatus( DnDDataObjectStatus enmStatus)739 void UIDnDDataObject::SetStatus(Status enmStatus) 740 740 { 741 741 LogFlowFunc(("Setting status to %RU32\n", enmStatus)); … … 745 745 /** 746 746 * Signals that data has been "dropped". 747 *748 ** @todo r=andy Remove?749 747 */ 750 748 void UIDnDDataObject::Signal(void) 751 749 { 752 SetStatus( DnDDataObjectStatus_Dropped);750 SetStatus(Status_Dropped); 753 751 } 754 752 … … 786 784 { 787 785 m_strFormat = strFormat; 788 SetStatus( DnDDataObjectStatus_Dropped);786 SetStatus(Status_Dropped); 789 787 } 790 788 else 791 SetStatus( DnDDataObjectStatus_Aborted);789 SetStatus(Status_Aborted); 792 790 793 791 /* Signal in any case. */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIDnDDataObject_win.h
r85681 r85697 40 40 public: 41 41 42 enum DnDDataObjectStatus42 enum Status 43 43 { 44 DnDDataObjectStatus_Uninitialized = 0,45 DnDDataObjectStatus_Initialized,46 DnDDataObjectStatus_Dropping,47 DnDDataObjectStatus_Dropped,48 DnDDataObjectStatus_Aborted,49 DnDDataObjectStatus_32Bit_Hack = 0x7fffffff44 Status_Uninitialized = 0, 45 Status_Initialized, 46 Status_Dropping, 47 Status_Dropped, 48 Status_Aborted, 49 Status_32Bit_Hack = 0x7fffffff 50 50 }; 51 51 … … 83 83 protected: 84 84 85 void SetStatus( DnDDataObjectStatus enmStatus);85 void SetStatus(Status enmStatus); 86 86 87 87 bool LookupFormatEtc(LPFORMATETC pFormatEtc, ULONG *puIndex); … … 92 92 UIDnDHandler *m_pDnDHandler; 93 93 /** Current drag and drop status. */ 94 DnDDataObjectStatusm_enmStatus;94 Status m_enmStatus; 95 95 /** Internal reference count of this object. */ 96 96 LONG m_cRefs;
Note:
See TracChangeset
for help on using the changeset viewer.