1 /* 2 * Copyright 2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef DROP_TARGET_LIST_VIEW_H 6 #define DROP_TARGET_LIST_VIEW_H 7 8 9 #include <ListView.h> 10 11 12 class DropTargetListView : public BListView { 13 public: 14 DropTargetListView(const char* name, 15 list_view_type type = B_SINGLE_SELECTION_LIST, 16 uint32 flags = B_WILL_DRAW | B_FRAME_EVENTS | B_NAVIGABLE); 17 virtual ~DropTargetListView(); 18 19 virtual void Draw(BRect updateRect); 20 virtual void MouseMoved(BPoint where, uint32 transit, 21 const BMessage* dragMessage); 22 23 virtual bool AcceptsDrag(const BMessage* message); 24 25 private: 26 void _InvalidateFrame(); 27 28 bool fDropTarget; 29 }; 30 31 #endif // DROP_TARGET_LIST_VIEW_H 32