PrefColor.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * The contents of this file are subject to the Mozilla Public
  3. * License Version 1.1 (the "License"); you may not use this file
  4. * except in compliance with the License. You may obtain a copy of
  5. * the License at http://www.mozilla.org/MPL/
  6. *
  7. * Software distributed under the License is distributed on an "AS
  8. * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  9. * implied. See the License for the specific language governing
  10. * rights and limitations under the License.
  11. *
  12. * The Original Code is Vision.
  13. *
  14. * The Initial Developer of the Original Code is The Vision Team.
  15. * Portions created by The Vision Team are
  16. * Copyright (C) 1999, 2000, 2001 The Vision Team. All Rights
  17. * Reserved.
  18. *
  19. * Contributor(s): Rene Gollent
  20. */
  21. #ifndef _PREFCOLOR_H
  22. #define _PREFCOLOR_H
  23. #include <View.h>
  24. #include <Messenger.h>
  25. #include "VisionBase.h"
  26. class ColorSelector;
  27. class BButton;
  28. class ColorPrefsView : public BView
  29. {
  30. public:
  31. ColorPrefsView (BRect);
  32. virtual ~ColorPrefsView (void);
  33. virtual void MessageReceived (BMessage *);
  34. virtual void AttachedToWindow (void);
  35. virtual void AllAttached (void);
  36. private:
  37. rgb_color fColors [MAX_COLORS];
  38. ColorSelector *fSelector;
  39. BButton *fRevert;
  40. };
  41. #endif // _PREFCOLOR_H