llnamebox.h

Go to the documentation of this file.
00001 
00032 #ifndef LL_LLNAMEBOX_H
00033 #define LL_LLNAMEBOX_H
00034 
00035 #include <set>
00036 
00037 #include "llview.h"
00038 #include "llstring.h"
00039 #include "llfontgl.h"
00040 #include "lltextbox.h"
00041 
00042 class LLNameBox
00043 :       public LLTextBox
00044 {
00045 public:
00046         LLNameBox(const std::string& name, const LLRect& rect, const LLUUID& name_id = LLUUID::null, BOOL is_group = FALSE, const LLFontGL* font = NULL, BOOL mouse_opaque = TRUE );
00047                 // By default, follows top and left and is mouse-opaque.
00048                 // If no text, text = name.
00049                 // If no font, uses default system font.
00050         virtual ~LLNameBox();
00051 
00052         void setNameID(const LLUUID& name_id, BOOL is_group);
00053 
00054         void refresh(const LLUUID& id, const char* first, const char* last,
00055                                  BOOL is_group);
00056 
00057         static void refreshAll(const LLUUID& id, const char* firstname,
00058                                                    const char* lastname, BOOL is_group);
00059 
00060 private:
00061         static std::set<LLNameBox*> sInstances;
00062 
00063 private:
00064         LLUUID mNameID;
00065 
00066 };
00067 
00068 #endif

Generated on Fri May 16 08:33:48 2008 for SecondLife by  doxygen 1.5.5