Minor cleanup: match indentation level with styleguide.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42654 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Tappe 2011-08-21 10:03:51 +00:00
parent 727c05a5df
commit e32a379a72

View File

@ -19,56 +19,57 @@
class LanguageListItem : public BStringItem {
public:
LanguageListItem(const char* text,
const char* id, const char* langCode,
const char* countryCode = NULL);
LanguageListItem(const LanguageListItem& other);
virtual ~LanguageListItem();
LanguageListItem(const char* text,
const char* id, const char* langCode,
const char* countryCode = NULL);
LanguageListItem(const LanguageListItem& other);
virtual ~LanguageListItem();
const BString& ID() const { return fID; }
const BString& Code() const { return fCode; }
const BString& ID() const { return fID; }
const BString& Code() const { return fCode; }
virtual void DrawItem(BView* owner, BRect frame,
bool complete = false);
virtual void DrawItem(BView* owner, BRect frame,
bool complete = false);
virtual void Update(BView* owner, const BFont* font);
virtual void Update(BView* owner, const BFont* font);
private:
BString fID;
BString fCode;
BBitmap* fIcon;
BString fID;
BString fCode;
BBitmap* fIcon;
};
class LanguageListView : public BOutlineListView {
public:
LanguageListView(const char* name,
list_view_type type);
virtual ~LanguageListView();
LanguageListView(const char* name,
list_view_type type);
virtual ~LanguageListView();
LanguageListItem* ItemForLanguageID(const char* code,
int32* _index = NULL) const;
LanguageListItem* ItemForLanguageCode(const char* code,
int32* _index = NULL) const;
LanguageListItem* ItemForLanguageID(const char* code,
int32* _index = NULL) const;
LanguageListItem* ItemForLanguageCode(const char* code,
int32* _index = NULL) const;
void SetDeleteMessage(BMessage* message);
void SetDragMessage(BMessage* message);
void SetDeleteMessage(BMessage* message);
void SetDragMessage(BMessage* message);
virtual bool InitiateDrag(BPoint point, int32 index,
bool wasSelected);
virtual void MouseMoved(BPoint where, uint32 transit,
const BMessage* dragMessage);
virtual void AttachedToWindow();
virtual void MessageReceived(BMessage* message);
virtual void KeyDown(const char* bytes, int32 numBytes);
virtual bool InitiateDrag(BPoint point, int32 index,
bool wasSelected);
virtual void MouseMoved(BPoint where, uint32 transit,
const BMessage* dragMessage);
virtual void AttachedToWindow();
virtual void MessageReceived(BMessage* message);
virtual void KeyDown(const char* bytes, int32 numBytes);
private:
bool _AcceptsDragMessage(const BMessage* message) const;
bool _AcceptsDragMessage(
const BMessage* message) const;
private:
int32 fDropIndex;
BMessage* fDeleteMessage;
BMessage* fDragMessage;
int32 fDropIndex;
BMessage* fDeleteMessage;
BMessage* fDragMessage;
};