1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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
|