Skip to content
Snippets Groups Projects
Commit f39d10dc authored by Leyla Farazha's avatar Leyla Farazha
Browse files

LLNameBox -> LLTextBox

parent d8f2e1d8
No related branches found
No related tags found
No related merge requests found
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
#include "llfloaterreg.h" #include "llfloaterreg.h"
#include "llnotificationsutil.h" #include "llnotificationsutil.h"
#include "llvoiceclient.h" #include "llvoiceclient.h"
#include "llnamebox.h" #include "lltextbox.h"
#include "lltrans.h" #include "lltrans.h"
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...@@ -573,8 +573,7 @@ void LLPanelAvatarProfile::resetData() ...@@ -573,8 +573,7 @@ void LLPanelAvatarProfile::resetData()
childSetValue("homepage_edit",LLStringUtil::null); childSetValue("homepage_edit",LLStringUtil::null);
childSetValue("register_date",LLStringUtil::null); childSetValue("register_date",LLStringUtil::null);
childSetValue("acc_status_text",LLStringUtil::null); childSetValue("acc_status_text",LLStringUtil::null);
childSetTextArg("partner_text", "[FIRST]", LLStringUtil::null); childSetValue("partner_text", LLStringUtil::null);
childSetTextArg("partner_text", "[LAST]", LLStringUtil::null);
} }
void LLPanelAvatarProfile::processProperties(void* data, EAvatarProcessorType type) void LLPanelAvatarProfile::processProperties(void* data, EAvatarProcessorType type)
...@@ -665,15 +664,14 @@ void LLPanelAvatarProfile::fillCommonData(const LLAvatarData* avatar_data) ...@@ -665,15 +664,14 @@ void LLPanelAvatarProfile::fillCommonData(const LLAvatarData* avatar_data)
void LLPanelAvatarProfile::fillPartnerData(const LLAvatarData* avatar_data) void LLPanelAvatarProfile::fillPartnerData(const LLAvatarData* avatar_data)
{ {
LLNameBox* name_box = getChild<LLNameBox>("partner_text"); LLTextBox* partner_text = getChild<LLTextBox>("partner_text");
if (avatar_data->partner_id.notNull()) if (avatar_data->partner_id.notNull())
{ {
name_box->setNameID(avatar_data->partner_id, FALSE); partner_text->setText(LLSLURL("agent", avatar_data->partner_id, "inspect").getSLURLString());
} }
else else
{ {
name_box->setNameID(LLUUID::null, FALSE); partner_text->setText(getString("no_partner_text"));
name_box->setText(getString("no_partner_text"));
} }
} }
......
...@@ -46,7 +46,6 @@ ...@@ -46,7 +46,6 @@
#include "llavataractions.h" #include "llavataractions.h"
#include "llgroupactions.h" #include "llgroupactions.h"
#include "lllineeditor.h" #include "lllineeditor.h"
#include "llnamebox.h"
#include "llnamelistctrl.h" #include "llnamelistctrl.h"
#include "llnotificationsutil.h" #include "llnotificationsutil.h"
#include "llscrolllistitem.h" #include "llscrolllistitem.h"
...@@ -213,7 +212,7 @@ void LLPanelGroupGeneral::setupCtrls(LLPanel* panel_group) ...@@ -213,7 +212,7 @@ void LLPanelGroupGeneral::setupCtrls(LLPanel* panel_group)
{ {
mInsignia->setCommitCallback(onCommitAny, this); mInsignia->setCommitCallback(onCommitAny, this);
} }
mFounderName = getChild<LLNameBox>("founder_name"); mFounderName = getChild<LLTextBox>("founder_name");
mGroupNameEditor = panel_group->getChild<LLLineEditor>("group_name_editor"); mGroupNameEditor = panel_group->getChild<LLLineEditor>("group_name_editor");
...@@ -646,7 +645,7 @@ void LLPanelGroupGeneral::update(LLGroupChange gc) ...@@ -646,7 +645,7 @@ void LLPanelGroupGeneral::update(LLGroupChange gc)
if (mEditCharter) mEditCharter->setEnabled(mAllowEdit && can_change_ident); if (mEditCharter) mEditCharter->setEnabled(mAllowEdit && can_change_ident);
if (mGroupNameEditor) mGroupNameEditor->setVisible(FALSE); if (mGroupNameEditor) mGroupNameEditor->setVisible(FALSE);
if (mFounderName) mFounderName->setNameID(gdatap->mFounderID,FALSE); if (mFounderName) mFounderName->setText(LLSLURL("agent", gdatap->mFounderID, "inspect").getSLURLString());
if (mInsignia) if (mInsignia)
{ {
if (gdatap->mInsigniaID.notNull()) if (gdatap->mInsigniaID.notNull())
......
...@@ -43,7 +43,6 @@ class LLButton; ...@@ -43,7 +43,6 @@ class LLButton;
class LLNameListCtrl; class LLNameListCtrl;
class LLCheckBoxCtrl; class LLCheckBoxCtrl;
class LLComboBox; class LLComboBox;
class LLNameBox;
class LLSpinCtrl; class LLSpinCtrl;
class LLPanelGroupGeneral : public LLPanelGroupTab class LLPanelGroupGeneral : public LLPanelGroupTab
...@@ -98,7 +97,7 @@ class LLPanelGroupGeneral : public LLPanelGroupTab ...@@ -98,7 +97,7 @@ class LLPanelGroupGeneral : public LLPanelGroupTab
// Group information (include any updates in updateChanged) // Group information (include any updates in updateChanged)
LLLineEditor *mGroupNameEditor; LLLineEditor *mGroupNameEditor;
LLNameBox *mFounderName; LLTextBox *mFounderName;
LLTextureCtrl *mInsignia; LLTextureCtrl *mInsignia;
LLTextEditor *mEditCharter; LLTextEditor *mEditCharter;
......
...@@ -95,11 +95,11 @@ ...@@ -95,11 +95,11 @@
<columns <columns
label="Name" label="Name"
name="name" name="name"
width="100" /> width="150" />
<columns <columns
label="Username" label="Username"
name="username" name="username"
width="100" /> width="150" />
</scroll_list> </scroll_list>
</panel> </panel>
<panel <panel
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
</button> </button>
<scroll_list <scroll_list
follows="all" follows="all"
height="100" height="120"
border="false" border="false"
layout="topleft" layout="topleft"
left="0" left="0"
...@@ -204,7 +204,8 @@ ...@@ -204,7 +204,8 @@
width="28" width="28"
name="Refresh" name="Refresh"
image_overlay="Refresh_Off" /> image_overlay="Refresh_Off" />
<scroll_list <scroll_list
draw_heading="true"
follows="all" follows="all"
height="100" height="100"
border="false" border="false"
...@@ -212,8 +213,17 @@ ...@@ -212,8 +213,17 @@
left="0" left="0"
name="NearMe" name="NearMe"
sort_column="0" sort_column="0"
top="50" top="52"
width="132" /> width="132">
<columns
label="Name"
name="name"
width="150" />
<columns
label="Username"
name="username"
width="150" />
</scroll_list>
</panel> </panel>
</tab_container> </tab_container>
<button <button
......
...@@ -328,7 +328,7 @@ ...@@ -328,7 +328,7 @@
left="10" left="10"
name="partner_data_panel" name="partner_data_panel"
width="200"> width="200">
<name_box <text
follows="left|top|right" follows="left|top|right"
height="30" height="30"
initial_value="(retrieving)" initial_value="(retrieving)"
......
...@@ -54,17 +54,15 @@ Hover your mouse over the options for more help. ...@@ -54,17 +54,15 @@ Hover your mouse over the options for more help.
top_delta="0"> top_delta="0">
Founder: Founder:
</text> </text>
<name_box <text
follows="left|top" follows="left|top"
height="16" height="16"
initial_value="(retrieving)"
layout="topleft" layout="topleft"
left_delta="0" left_delta="0"
link="true"
name="founder_name" name="founder_name"
top_pad="2" top_pad="2"
use_ellipses="true" use_ellipses="true"
width="190" /> width="185" />
<text <text
font="SansSerifMedium" font="SansSerifMedium"
text_color="EmphasisColor" text_color="EmphasisColor"
......
...@@ -284,7 +284,7 @@ ...@@ -284,7 +284,7 @@
name="partner_data_panel" name="partner_data_panel"
top_pad="0" top_pad="0"
width="300"> width="300">
<name_box <text
follows="left|top" follows="left|top"
height="10" height="10"
initial_value="(retrieving)" initial_value="(retrieving)"
......
...@@ -263,7 +263,7 @@ ...@@ -263,7 +263,7 @@
name="partner_data_panel" name="partner_data_panel"
top_pad="0" top_pad="0"
width="300"> width="300">
<name_box <text
follows="left|top" follows="left|top"
height="10" height="10"
initial_value="(retrieving)" initial_value="(retrieving)"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment