2010-05-07 04:47:10 -05:00
|
|
|
/*
|
|
|
|
* Copyright 2009, Pier Luigi Fiorini. All rights reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _ROSTER_LIST_VIEW_H
|
|
|
|
#define _ROSTER_LIST_VIEW_H
|
|
|
|
|
|
|
|
#include <ListView.h>
|
|
|
|
|
|
|
|
class BPopUpMenu;
|
|
|
|
|
2012-03-11 10:11:29 -05:00
|
|
|
class ContactLinker;
|
2010-05-07 04:47:10 -05:00
|
|
|
class RosterItem;
|
|
|
|
|
|
|
|
class RosterListView : public BListView
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
RosterListView(const char* name);
|
|
|
|
|
|
|
|
virtual void MessageReceived(BMessage* msg);
|
|
|
|
virtual void MouseMoved(BPoint where, uint32 code, const BMessage*);
|
|
|
|
virtual void MouseDown(BPoint where);
|
|
|
|
virtual void Draw(BRect updateRect);
|
2012-03-11 10:11:29 -05:00
|
|
|
virtual void AttachedToWindow();
|
2010-05-07 04:47:10 -05:00
|
|
|
void Sort();
|
|
|
|
|
|
|
|
private:
|
2012-03-11 10:11:29 -05:00
|
|
|
|
|
|
|
void _InfoWindow(ContactLinker* linker);
|
|
|
|
|
2010-05-07 04:47:10 -05:00
|
|
|
BPopUpMenu* fPopUp;
|
|
|
|
RosterItem* fPrevItem;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _ROSTER_LIST_VIEW_H
|