1 /* 2 * Copyright 2001-2008, Haiku. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * DarkWyrm, bpmagic@columbus.rr.com 7 * Rene Gollent, rene@gollent.com 8 * Ryan Leavengood, leavengood@gmail.com 9 * John Scipione, jscipione@gmail.com 10 */ 11 #ifndef COLORWHICH_ITEM_H 12 #define COLORWHICH_ITEM_H 13 14 15 #include <InterfaceDefs.h> 16 #include <ListItem.h> 17 #include <View.h> 18 19 20 class ColorWhichItem : public BStringItem 21 { 22 public: 23 ColorWhichItem(const char* text, color_which which, 24 rgb_color color); 25 26 virtual void DrawItem(BView* owner, BRect frame, bool complete); 27 color_which ColorWhich(void); 28 void SetColor(rgb_color color); 29 30 private: 31 color_which fColorWhich; 32 rgb_color fColor; 33 }; 34 35 36 #endif 37