UserPopUp.h 741 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Copyright 2009, Pier Luigi Fiorini. All rights reserved.
  3. * Distributed under the terms of the MIT License.
  4. */
  5. #ifndef _USER_POPUP_H
  6. #define _USER_POPUP_H
  7. #include <Window.h>
  8. #include "Observer.h"
  9. class BTextControl;
  10. class BStringView;
  11. class BitmapView;
  12. class User;
  13. class UserPopUp : public BWindow, public Observer {
  14. public:
  15. UserPopUp(User* user);
  16. virtual void MessageReceived(BMessage* msg);
  17. void MoveTo(BPoint where);
  18. protected:
  19. void ObserveString(int32 what, BString str);
  20. void ObservePointer(int32 what, void* ptr);
  21. void ObserveInteger(int32 what, int32 val);
  22. private:
  23. BPoint fCoords;
  24. BTextControl* fNickBox;
  25. BStringView* fLabel;
  26. BitmapView* fAvatarView;
  27. };
  28. #endif // _USER_POPUP_H