Update header and other style fixes
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2002-2008, Haiku. All rights reserved.
|
* Copyright 2002-2013 Haiku, Inc. All rights reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*
|
*
|
||||||
* Authors:
|
* Authors:
|
||||||
* DarkWyrm ([email protected])
|
* DarkWyrm, [email protected]
|
||||||
* Rene Gollent ([email protected])
|
* Rene Gollent, [email protected]
|
||||||
* Ryan Leavengood <[email protected]>
|
* Ryan Leavengood, [email protected]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@ ColorWhichItem::ColorWhichItem(const char* text, color_which which,
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
ColorWhichItem::DrawItem(BView *owner, BRect frame, bool complete)
|
ColorWhichItem::DrawItem(BView* owner, BRect frame, bool complete)
|
||||||
{
|
{
|
||||||
rgb_color highColor = owner->HighColor();
|
rgb_color highColor = owner->HighColor();
|
||||||
rgb_color lowColor = owner->LowColor();
|
rgb_color lowColor = owner->LowColor();
|
||||||
@@ -85,4 +85,3 @@ ColorWhichItem::SetColor(rgb_color color)
|
|||||||
{
|
{
|
||||||
fColor = color;
|
fColor = color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,31 +3,34 @@
|
|||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*
|
*
|
||||||
* Authors:
|
* Authors:
|
||||||
* DarkWyrm <[email protected]>
|
* DarkWyrm, [email protected]
|
||||||
* Rene Gollent ([email protected])
|
* Rene Gollent, [email protected]
|
||||||
* Ryan Leavengood <[email protected]>
|
* Ryan Leavengood, [email protected]
|
||||||
|
* John Scipione, [email protected]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#ifndef COLORWHICH_ITEM_H
|
#ifndef COLORWHICH_ITEM_H
|
||||||
#define COLORWHICH_ITEM_H
|
#define COLORWHICH_ITEM_H
|
||||||
|
|
||||||
|
|
||||||
#include <InterfaceDefs.h>
|
#include <InterfaceDefs.h>
|
||||||
#include <ListItem.h>
|
#include <ListItem.h>
|
||||||
#include <View.h>
|
#include <View.h>
|
||||||
|
|
||||||
|
|
||||||
class ColorWhichItem : public BStringItem
|
class ColorWhichItem : public BStringItem
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ColorWhichItem(const char* text, color_which which, rgb_color color);
|
ColorWhichItem(const char* text, color_which which,
|
||||||
|
rgb_color color);
|
||||||
|
|
||||||
virtual void DrawItem(BView *owner, BRect frame, bool complete);
|
virtual void DrawItem(BView* owner, BRect frame, bool complete);
|
||||||
color_which ColorWhich(void);
|
color_which ColorWhich(void);
|
||||||
void SetColor(rgb_color color);
|
void SetColor(rgb_color color);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
color_which fColorWhich;
|
color_which fColorWhich;
|
||||||
rgb_color fColor;
|
rgb_color fColor;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user