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 "linked_lists.h"
00041 #include "lltextbox.h"
00042 
00043 class LLNameBox
00044 :       public LLTextBox
00045 {
00046 public:
00047         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 );
00048                 // By default, follows top and left and is mouse-opaque.
00049                 // If no text, text = name.
00050                 // If no font, uses default system font.
00051         virtual ~LLNameBox();
00052 
00053         void setNameID(const LLUUID& name_id, BOOL is_group);
00054 
00055         void refresh(const LLUUID& id, const char* first, const char* last,
00056                                  BOOL is_group);
00057 
00058         static void refreshAll(const LLUUID& id, const char* firstname,
00059                                                    const char* lastname, BOOL is_group);
00060 
00061 private:
00062         static std::set<LLNameBox*> sInstances;
00063 
00064 private:
00065         LLUUID mNameID;
00066 
00067 };
00068 
00069 #endif

Generated on Thu Jul 1 06:08:54 2010 for Second Life Viewer by  doxygen 1.4.7