1 /* 2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef COLOR_CHECK_BOX_H 6 #define COLOR_CHECK_BOX_H 7 8 #include <CheckBox.h> 9 #include <GroupView.h> 10 11 12 class BCheckBox; 13 14 15 #include <SpaceLayoutItem.h> 16 17 class ColorCheckBox : public BGroupView { 18 public: 19 ColorCheckBox(const char* label, 20 const rgb_color& color, 21 BMessage* message = NULL); 22 23 BCheckBox* CheckBox() const; 24 25 void SetTarget(const BMessenger& target); 26 27 virtual void Draw(BRect updateRect); 28 29 private: 30 BCheckBox* fCheckBox; 31 rgb_color fColor; 32 }; 33 34 35 #endif // COLOR_CHECK_BOX_H 36