diff options
Diffstat (limited to 'linden/indra/newview/llfloaterpermissionsmgr.cpp')
-rw-r--r-- | linden/indra/newview/llfloaterpermissionsmgr.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/linden/indra/newview/llfloaterpermissionsmgr.cpp b/linden/indra/newview/llfloaterpermissionsmgr.cpp index cd9a1de..14ec7cd 100644 --- a/linden/indra/newview/llfloaterpermissionsmgr.cpp +++ b/linden/indra/newview/llfloaterpermissionsmgr.cpp | |||
@@ -72,15 +72,16 @@ void LLFloaterPermissionsMgr::processPermissionsList(LLMessageSystem* msg, void* | |||
72 | { | 72 | { |
73 | } | 73 | } |
74 | 74 | ||
75 | LLFloaterPermissionsMgr::LLFloaterPermissionsMgr() : LLFloater("floater_perm_mgr", "PermissionsManagerRect", "Permissions Manager", TRUE, MIN_PERM_MGR_WIDTH, | 75 | LLFloaterPermissionsMgr::LLFloaterPermissionsMgr() : |
76 | MIN_PERM_MGR_HEIGHT) | 76 | LLFloater(std::string("floater_perm_mgr"), std::string("PermissionsManagerRect"), std::string("Permissions Manager"), |
77 | TRUE, MIN_PERM_MGR_WIDTH, MIN_PERM_MGR_HEIGHT) | ||
77 | { | 78 | { |
78 | S32 y = getRect().getHeight() - VPAD - LINE; | 79 | S32 y = getRect().getHeight() - VPAD - LINE; |
79 | LLRect scrollable_container_rect(0, y, getRect().getWidth(), 0); | 80 | LLRect scrollable_container_rect(0, y, getRect().getWidth(), 0); |
80 | LLRect permissions_rect(0, 0, getRect().getWidth() - HPAD - HPAD, 0); | 81 | LLRect permissions_rect(0, 0, getRect().getWidth() - HPAD - HPAD, 0); |
81 | mPermissions = new LLPermissionsView(permissions_rect); | 82 | mPermissions = new LLPermissionsView(permissions_rect); |
82 | mScroller = new LLScrollableContainerView( | 83 | mScroller = new LLScrollableContainerView( |
83 | "permissions container", | 84 | std::string("permissions container"), |
84 | scrollable_container_rect, | 85 | scrollable_container_rect, |
85 | mPermissions | 86 | mPermissions |
86 | ); | 87 | ); |
@@ -98,7 +99,7 @@ LLFloaterPermissionsMgr::~LLFloaterPermissionsMgr() | |||
98 | // LLPermissionsView | 99 | // LLPermissionsView |
99 | // | 100 | // |
100 | 101 | ||
101 | LLPermissionsView::LLPermissionsView(const LLRect &rect) : LLView("permissions_view", rect, TRUE, FOLLOWS_NONE) | 102 | LLPermissionsView::LLPermissionsView(const LLRect &rect) : LLView(std::string("permissions_view"), rect, TRUE, FOLLOWS_NONE) |
102 | { | 103 | { |
103 | } | 104 | } |
104 | 105 | ||
@@ -109,7 +110,7 @@ void LLPermissionsView::clearPermissionsData() | |||
109 | mPermData.clear(); | 110 | mPermData.clear(); |
110 | } | 111 | } |
111 | 112 | ||
112 | void LLPermissionsView::addPermissionsData(const LLString& object_name, const LLUUID& object_id, U32 permissions_flags) | 113 | void LLPermissionsView::addPermissionsData(const std::string& object_name, const LLUUID& object_id, U32 permissions_flags) |
113 | { | 114 | { |
114 | // grow to make room for new element | 115 | // grow to make room for new element |
115 | LLPermissionsData* perm_datap = new LLPermissionsData(object_id, permissions_flags); | 116 | LLPermissionsData* perm_datap = new LLPermissionsData(object_id, permissions_flags); |
@@ -117,19 +118,19 @@ void LLPermissionsView::addPermissionsData(const LLString& object_name, const LL | |||
117 | reshape(getRect().getWidth(), getRect().getHeight() + LINE + VPAD + BTN_HEIGHT + VPAD); | 118 | reshape(getRect().getWidth(), getRect().getHeight() + LINE + VPAD + BTN_HEIGHT + VPAD); |
118 | S32 y = getRect().getHeight() - LINE - VPAD; | 119 | S32 y = getRect().getHeight() - LINE - VPAD; |
119 | LLRect label_rect(HPAD, y + LINE, getRect().getWidth(), y); | 120 | LLRect label_rect(HPAD, y + LINE, getRect().getWidth(), y); |
120 | LLTextBox* text = new LLTextBox("perm_label", label_rect, object_name.c_str()); | 121 | LLTextBox* text = new LLTextBox(std::string("perm_label"), label_rect, object_name); |
121 | text->setFollows(FOLLOWS_LEFT | FOLLOWS_RIGHT | FOLLOWS_BOTTOM); | 122 | text->setFollows(FOLLOWS_LEFT | FOLLOWS_RIGHT | FOLLOWS_BOTTOM); |
122 | addChild(text); | 123 | addChild(text); |
123 | 124 | ||
124 | y -= LINE + VPAD; | 125 | y -= LINE + VPAD; |
125 | 126 | ||
126 | LLRect btn_rect(HPAD, y + BTN_HEIGHT, 120, y); | 127 | LLRect btn_rect(HPAD, y + BTN_HEIGHT, 120, y); |
127 | LLButton* button = new LLButton("Revoke permissions", btn_rect, "", revokePermissions, (void*)perm_datap); | 128 | LLButton* button = new LLButton(std::string("Revoke permissions"), btn_rect, LLStringUtil::null, revokePermissions, (void*)perm_datap); |
128 | button->setFollows(FOLLOWS_LEFT | FOLLOWS_BOTTOM); | 129 | button->setFollows(FOLLOWS_LEFT | FOLLOWS_BOTTOM); |
129 | addChild(button); | 130 | addChild(button); |
130 | 131 | ||
131 | btn_rect.set(HPAD + 120 + HPAD, y + BTN_HEIGHT, HPAD + 120 + HPAD + 120, y); | 132 | btn_rect.set(HPAD + 120 + HPAD, y + BTN_HEIGHT, HPAD + 120 + HPAD + 120, y); |
132 | button = new LLButton("Find in world", btn_rect, "", findObject, (void*)perm_datap); | 133 | button = new LLButton(std::string("Find in world"), btn_rect, LLStringUtil::null, findObject, (void*)perm_datap); |
133 | button->setFollows(FOLLOWS_LEFT | FOLLOWS_BOTTOM); | 134 | button->setFollows(FOLLOWS_LEFT | FOLLOWS_BOTTOM); |
134 | addChild(button); | 135 | addChild(button); |
135 | 136 | ||