Chat-O-Matic/application/views/RosterListView.h

40 lines
813 B
C
Raw Normal View History

/*
* 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 <OutlineListView.h>
class BPopUpMenu;
2021-05-23 14:39:07 -05:00
class Contact;
class RosterItem;
class RosterListView : public BOutlineListView
{
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);
virtual void AttachedToWindow();
bool AddRosterItem(RosterItem* item);
RosterItem* RosterItemAt(int32 index);
void Sort();
private:
2021-05-23 14:39:07 -05:00
void _InfoWindow(Contact* linker);
BPopUpMenu* fPopUp;
RosterItem* fPrevItem;
};
#endif // _ROSTER_LIST_VIEW_H