2010-05-07 04:47:10 -05:00
|
|
|
/*
|
|
|
|
* Copyright 2009, Pier Luigi Fiorini. All rights reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
2021-05-23 15:10:14 -05:00
|
|
|
#ifndef _USER_POPUP_H
|
|
|
|
#define _USER_POPUP_H
|
2010-05-07 04:47:10 -05:00
|
|
|
|
|
|
|
#include <Window.h>
|
|
|
|
|
|
|
|
#include "Observer.h"
|
|
|
|
|
|
|
|
class BTextControl;
|
|
|
|
class BStringView;
|
|
|
|
|
|
|
|
class BitmapView;
|
2021-05-23 15:10:14 -05:00
|
|
|
class User;
|
2010-05-07 04:47:10 -05:00
|
|
|
|
2021-05-23 15:10:14 -05:00
|
|
|
class UserPopUp : public BWindow, public Observer {
|
2010-05-07 04:47:10 -05:00
|
|
|
public:
|
2021-05-23 15:10:14 -05:00
|
|
|
UserPopUp(User* user);
|
2010-05-07 04:47:10 -05:00
|
|
|
|
|
|
|
virtual void MessageReceived(BMessage* msg);
|
|
|
|
|
|
|
|
void MoveTo(BPoint where);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void ObserveString(int32 what, BString str);
|
|
|
|
void ObservePointer(int32 what, void* ptr);
|
|
|
|
void ObserveInteger(int32 what, int32 val);
|
|
|
|
|
|
|
|
private:
|
|
|
|
BPoint fCoords;
|
|
|
|
BTextControl* fNickBox;
|
|
|
|
BStringView* fLabel;
|
|
|
|
BitmapView* fAvatarView;
|
|
|
|
};
|
|
|
|
|
2021-05-23 15:10:14 -05:00
|
|
|
|
|
|
|
#endif // _USER_POPUP_H
|
|
|
|
|