Changeset 210
- Timestamp:
- 04/28/08 07:56:49 (8 months ago)
- Files:
-
- packages/vanilla/trunk/Lib/vanilla/vanillaList.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
packages/vanilla/trunk/Lib/vanilla/vanillaList.py
r206 r210 105 105 settings = vanillaWrapper._selfDropSettings 106 106 return self._handleDropBasedOnSettings(settings, vanillaWrapper, dropOnRow, draggingInfo, dropInformation) 107 # drag from same window 108 window = tableView.window() 109 if window is not None and window == draggingSource.window() and vanillaWrapper._selfWindowDropSettings is not None: 110 if vanillaWrapper._selfWindowDropSettings is None: 111 return NSDragOperationNone 112 settings = vanillaWrapper._selfWindowDropSettings 113 return self._handleDropBasedOnSettings(settings, vanillaWrapper, dropOnRow, draggingInfo, dropInformation) 107 114 # drag from same document 108 115 document = tableView.window().document() 109 if document is not None and document != draggingSource.window().document():116 if document is not None and document == draggingSource.window().document(): 110 117 if vanillaWrapper._selfDocumentDropSettings is None: 111 118 return NSDragOperationNone … … 288 295 autohidesScrollers=True, drawFocusRing=True, rowHeight=17.0, 289 296 selfDropSettings=None, 297 selfWindowDropSettings=None, 290 298 selfDocumentDropSettings=None, 291 299 selfApplicationDropSettings=None, … … 343 351 *selfDropSettings* A dictionary defining the drop settings when the source of the drop is this list. The dictionary form is described below. 344 352 345 *selfDocumentDropSettings* A dictionary defining the drop settings when the source of the drop is contained the same document as this list. The dictionary form is described below. 353 *selfWindowDropSettings* A dictionary defining the drop settings when the source of the drop is contained the same document as this list. The dictionary form is described below. 354 355 *selfDocumentDropSettings* A dictionary defining the drop settings when the source of the drop is contained the same window as this list. The dictionary form is described below. 346 356 347 357 *selfApplicationDropSettings* A dictionary defining the drop settings when the source of the drop is contained the same application as this list. The dictionary form is described below. … … 445 455 # set the drop data 446 456 self._selfDropSettings = selfDropSettings 457 self._selfWindowDropSettings = selfWindowDropSettings 447 458 self._selfDocumentDropSettings = selfDocumentDropSettings 448 459 self._otherApplicationDropSettings = selfApplicationDropSettings 449 460 self._otherApplicationDropSettings = otherApplicationDropSettings 450 461 allDropTypes = [] 451 for settings in (selfDropSettings, self DocumentDropSettings, selfApplicationDropSettings, otherApplicationDropSettings):462 for settings in (selfDropSettings, selfWindowDropSettings, selfDocumentDropSettings, selfApplicationDropSettings, otherApplicationDropSettings): 452 463 if settings is None: 453 464 continue … … 506 517 self._doubleClickTarget.callback = None 507 518 self._selfDropSettings = None 519 self._selfWindowDropSettings = None 508 520 self._selfDocumentDropSettings = None 509 521 self._otherApplicationDropSettings = None
