summaryrefslogtreecommitdiff
path: root/indra/newview/llnamebox.h
diff options
context:
space:
mode:
authorJames Cook <james@lindenlab.com>2007-01-02 08:33:20 +0000
committerJames Cook <james@lindenlab.com>2007-01-02 08:33:20 +0000
commit420b91db29485df39fd6e724e782c449158811cb (patch)
treeb471a94563af914d3ed3edd3e856d21cb1b69945 /indra/newview/llnamebox.h
Print done when done.
Diffstat (limited to 'indra/newview/llnamebox.h')
-rw-r--r--indra/newview/llnamebox.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/indra/newview/llnamebox.h b/indra/newview/llnamebox.h
new file mode 100644
index 0000000000..7af4b82f2d
--- /dev/null
+++ b/indra/newview/llnamebox.h
@@ -0,0 +1,46 @@
+/**
+ * @file llnamebox.h
+ * @brief display and refresh a name from the name cache
+ *
+ * Copyright (c) 2003-$CurrentYear$, Linden Research, Inc.
+ * $License$
+ */
+
+#ifndef LL_LLNAMEBOX_H
+#define LL_LLNAMEBOX_H
+
+#include <set>
+
+#include "llview.h"
+#include "llstring.h"
+#include "llfontgl.h"
+#include "linked_lists.h"
+#include "lltextbox.h"
+
+class LLNameBox
+: public LLTextBox
+{
+public:
+ 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 );
+ // By default, follows top and left and is mouse-opaque.
+ // If no text, text = name.
+ // If no font, uses default system font.
+ virtual ~LLNameBox();
+
+ void setNameID(const LLUUID& name_id, BOOL is_group);
+
+ void refresh(const LLUUID& id, const char* first, const char* last,
+ BOOL is_group);
+
+ static void refreshAll(const LLUUID& id, const char* firstname,
+ const char* lastname, BOOL is_group);
+
+private:
+ static std::set<LLNameBox*> sInstances;
+
+private:
+ LLUUID mNameID;
+
+};
+
+#endif