1 /* 2 * Copyright 2016 Haiku, Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * John Scipione, jscipione@gmail.com 7 */ 8 #ifndef COLORWHICH_LIST_VIEW_H 9 #define COLORWHICH_LIST_VIEW_H 10 11 12 #include <ListView.h> 13 14 15 class ColorWhichListView : public BListView 16 { 17 public: 18 ColorWhichListView(const char* name, 19 list_view_type type 20 = B_SINGLE_SELECTION_LIST, 21 uint32 flags = B_WILL_DRAW 22 | B_FRAME_EVENTS | B_NAVIGABLE); 23 virtual ~ColorWhichListView(); 24 25 virtual bool InitiateDrag(BPoint where, int32 index, 26 bool wasSelected); 27 virtual void MessageReceived(BMessage* message); 28 }; 29 30 31 #endif // COLORWHICH_LIST_VIEW_H 32