Merge branch 'master' of D:/Dev/phoenix-firestorm-legacy-profiles
commit
ddc7fc297b
|
|
@ -224,6 +224,7 @@ Ansariel Hiller
|
|||
MAINT-8723
|
||||
SL-10385
|
||||
SL-10891
|
||||
SL-10675
|
||||
Aralara Rajal
|
||||
Arare Chantilly
|
||||
CHUIBUG-191
|
||||
|
|
@ -791,6 +792,7 @@ Jonathan Yap
|
|||
Kadah Coba
|
||||
STORM-1060
|
||||
STORM-1843
|
||||
SL-10675
|
||||
Jondan Lundquist
|
||||
Joosten Briebers
|
||||
MAINT-7074
|
||||
|
|
|
|||
|
|
@ -269,6 +269,7 @@ LLFloater::LLFloater(const LLSD& key, const LLFloater::Params& p)
|
|||
mMinHeight(p.min_height),
|
||||
mHeaderHeight(p.header_height),
|
||||
mLegacyHeaderHeight(p.legacy_header_height),
|
||||
mDefaultRectForGroup(true),
|
||||
mMinimized(FALSE),
|
||||
mForeground(FALSE),
|
||||
mFirstLook(TRUE),
|
||||
|
|
@ -978,7 +979,10 @@ bool LLFloater::applyRectControl()
|
|||
// </FS:Ansariel>
|
||||
|
||||
// other floaters in our group, position ourselves relative to them and don't save the rect
|
||||
mRectControl.clear();
|
||||
if (mDefaultRectForGroup)
|
||||
{
|
||||
mRectControl.clear();
|
||||
}
|
||||
mPositioning = LLFloaterEnums::POSITIONING_CASCADE_GROUP;
|
||||
}
|
||||
else
|
||||
|
|
@ -3676,8 +3680,15 @@ void LLFloater::stackWith(LLFloater& other)
|
|||
}
|
||||
next_rect.translate(floater_offset, -floater_offset);
|
||||
|
||||
next_rect.setLeftTopAndSize(next_rect.mLeft, next_rect.mTop, getRect().getWidth(), getRect().getHeight());
|
||||
|
||||
const LLRect& rect = getControlGroup()->getRect(mRectControl);
|
||||
if (rect.notEmpty() && !mDefaultRectForGroup && mResizable)
|
||||
{
|
||||
next_rect.setLeftTopAndSize(next_rect.mLeft, next_rect.mTop, llmax(mMinWidth, rect.getWidth()), llmax(mMinHeight, rect.getHeight()));
|
||||
}
|
||||
else
|
||||
{
|
||||
next_rect.setLeftTopAndSize(next_rect.mLeft, next_rect.mTop, getRect().getWidth(), getRect().getHeight());
|
||||
}
|
||||
setShape(next_rect);
|
||||
|
||||
if (!other.getHost())
|
||||
|
|
|
|||
|
|
@ -454,6 +454,7 @@ public:
|
|||
|
||||
protected:
|
||||
bool mSaveRect;
|
||||
bool mDefaultRectForGroup;
|
||||
std::string mRectControl;
|
||||
std::string mPosXControl;
|
||||
std::string mPosYControl;
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ void LLMenuButton::MenuPositions::declareValues()
|
|||
declare("topleft", MP_TOP_LEFT);
|
||||
declare("topright", MP_TOP_RIGHT);
|
||||
declare("bottomleft", MP_BOTTOM_LEFT);
|
||||
declare("bottomright", MP_BOTTOM_RIGHT);
|
||||
}
|
||||
|
||||
LLMenuButton::Params::Params()
|
||||
|
|
@ -212,6 +213,13 @@ void LLMenuButton::updateMenuOrigin()
|
|||
mY = rect.mBottom;
|
||||
break;
|
||||
}
|
||||
case MP_BOTTOM_RIGHT:
|
||||
{
|
||||
const LLRect& menu_rect = menu->getRect();
|
||||
mX = rect.mRight - menu_rect.getWidth();
|
||||
mY = rect.mBottom;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -41,7 +41,8 @@ public:
|
|||
{
|
||||
MP_TOP_LEFT,
|
||||
MP_TOP_RIGHT,
|
||||
MP_BOTTOM_LEFT
|
||||
MP_BOTTOM_LEFT,
|
||||
MP_BOTTOM_RIGHT
|
||||
} EMenuPosition;
|
||||
|
||||
struct MenuPositions
|
||||
|
|
|
|||
|
|
@ -422,12 +422,13 @@ void LLTabContainer::draw()
|
|||
S32 cur_scroll_pos = getScrollPos();
|
||||
if (cur_scroll_pos > 0)
|
||||
{
|
||||
// S32 available_width_with_arrows = getRect().getWidth() - mRightTabBtnOffset - 2 * (LLPANEL_BORDER_WIDTH + tabcntr_arrow_btn_size + tabcntr_arrow_btn_size + 1);
|
||||
if (!mIsVertical)
|
||||
if (mIsVertical)
|
||||
{
|
||||
target_pixel_scroll = cur_scroll_pos * (BTN_HEIGHT + tabcntrv_pad);
|
||||
}
|
||||
else
|
||||
{
|
||||
// [SL:KB] - Patch: Control-TabContainer | Checked: 2014-03-17 (Catznip-3.6)
|
||||
S32 available_width_with_arrows = getRect().getWidth() - mRightTabBtnOffset - 2 * (LLPANEL_BORDER_WIDTH + tabcntr_arrow_btn_size + tabcntr_arrow_btn_size + 1);
|
||||
// [/SL:KB]
|
||||
for(tuple_list_t::iterator iter = mTabList.begin(); iter != mTabList.end(); ++iter)
|
||||
{
|
||||
if (cur_scroll_pos == 0)
|
||||
|
|
@ -446,12 +447,6 @@ void LLTabContainer::draw()
|
|||
// clamp so that rightmost tab never leaves right side of screen
|
||||
target_pixel_scroll = llmin(mTotalTabWidth - available_width_with_arrows, target_pixel_scroll);
|
||||
}
|
||||
// [SL:KB] - Patch: Control-TabContainer | Checked: 2014-03-17 (Catznip-3.6)
|
||||
else
|
||||
{
|
||||
target_pixel_scroll = cur_scroll_pos * (BTN_HEIGHT + tabcntrv_pad);
|
||||
}
|
||||
// [/SL:KB]
|
||||
}
|
||||
|
||||
// [SL:KB] - Patch: Control-TabContainer | Checked: 2014-03-17 (Catznip-3.6)
|
||||
|
|
@ -1326,16 +1321,15 @@ void LLTabContainer::addTabPanel(const TabPanelParams& panel)
|
|||
sendChildToFront(mNextArrowBtn);
|
||||
sendChildToFront(mJumpPrevArrowBtn);
|
||||
sendChildToFront(mJumpNextArrowBtn);
|
||||
|
||||
if( select )
|
||||
{
|
||||
// [SL:KB] - Patch: Control-TabContainer | Checked: 2012-08-10 (Catznip-3.3)
|
||||
selectTabPanel(child);
|
||||
// [/SL:KB]
|
||||
// selectLastTab();
|
||||
}
|
||||
|
||||
updateMaxScrollPos();
|
||||
|
||||
if( select )
|
||||
{
|
||||
selectLastTab();
|
||||
mScrollPos = mMaxScrollPos;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void LLTabContainer::addPlaceholder(LLPanel* child, const std::string& label)
|
||||
|
|
@ -2316,9 +2310,9 @@ void LLTabContainer::updateMaxScrollPos()
|
|||
if( tab_total_height > available_height )
|
||||
{
|
||||
static LLUICachedControl<S32> tabcntrv_arrow_btn_size ("UITabCntrvArrowBtnSize", 0);
|
||||
S32 available_height_with_arrows = getRect().getHeight() - 2*(tabcntrv_arrow_btn_size + 3*tabcntrv_pad);
|
||||
S32 available_height_with_arrows = getRect().getHeight() - 2*(tabcntrv_arrow_btn_size + 3*tabcntrv_pad) - mNextArrowBtn->getRect().mBottom;
|
||||
S32 additional_needed = tab_total_height - available_height_with_arrows;
|
||||
setMaxScrollPos((S32) ceil(additional_needed / float(BTN_HEIGHT) ) );
|
||||
setMaxScrollPos((S32) ceil(additional_needed / float(BTN_HEIGHT + tabcntrv_pad) ) );
|
||||
no_scroll = FALSE;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -182,6 +182,7 @@ LLTextBase::Params::Params()
|
|||
font_shadow("font_shadow"),
|
||||
wrap("wrap"),
|
||||
trusted_content("trusted_content", true),
|
||||
always_show_icons("always_show_icons", false),
|
||||
use_ellipses("use_ellipses", false),
|
||||
// <FS:Ansariel> Optional icon position
|
||||
icon_positioning("icon_positioning", LLTextBaseEnums::RIGHT),
|
||||
|
|
@ -236,6 +237,7 @@ LLTextBase::LLTextBase(const LLTextBase::Params &p)
|
|||
mClip(p.clip),
|
||||
mClipPartial(p.clip_partial && !p.allow_scroll),
|
||||
mTrustedContent(p.trusted_content),
|
||||
mAlwaysShowIcons(p.always_show_icons),
|
||||
mTrackEnd( p.track_end ),
|
||||
mScrollIndex(-1),
|
||||
mSelectionStart( 0 ),
|
||||
|
|
@ -522,8 +524,48 @@ void LLTextBase::drawHighlightsBackground(const highlight_list_t& highlights, co
|
|||
++rect_it)
|
||||
{
|
||||
LLRect selection_rect = *rect_it;
|
||||
selection_rect = *rect_it;
|
||||
selection_rect.translate(mVisibleTextRect.mLeft - content_display_rect.mLeft, mVisibleTextRect.mBottom - content_display_rect.mBottom);
|
||||
if (mScroller)
|
||||
{
|
||||
// If scroller is On content_display_rect has correct rect and safe to use as is
|
||||
// Note: we might need to account for border
|
||||
selection_rect.translate(mVisibleTextRect.mLeft - content_display_rect.mLeft, mVisibleTextRect.mBottom - content_display_rect.mBottom);
|
||||
}
|
||||
else
|
||||
{
|
||||
// If scroller is Off content_display_rect will have rect from document, adjusted to text width, heigh and position
|
||||
// and we have to acount for offset depending on position
|
||||
S32 v_delta = 0;
|
||||
S32 h_delta = 0;
|
||||
switch (mVAlign)
|
||||
{
|
||||
case LLFontGL::TOP:
|
||||
v_delta = mVisibleTextRect.mTop - content_display_rect.mTop - mVPad;
|
||||
break;
|
||||
case LLFontGL::VCENTER:
|
||||
v_delta = (llmax(mVisibleTextRect.getHeight() - content_display_rect.mTop, -content_display_rect.mBottom) + (mVisibleTextRect.mBottom - content_display_rect.mBottom)) / 2;
|
||||
break;
|
||||
case LLFontGL::BOTTOM:
|
||||
v_delta = mVisibleTextRect.mBottom - content_display_rect.mBottom;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
switch (mHAlign)
|
||||
{
|
||||
case LLFontGL::LEFT:
|
||||
h_delta = mVisibleTextRect.mLeft - content_display_rect.mLeft + mHPad;
|
||||
break;
|
||||
case LLFontGL::HCENTER:
|
||||
h_delta = (llmax(mVisibleTextRect.getWidth() - content_display_rect.mLeft, -content_display_rect.mRight) + (mVisibleTextRect.mRight - content_display_rect.mRight)) / 2;
|
||||
break;
|
||||
case LLFontGL::RIGHT:
|
||||
h_delta = mVisibleTextRect.mRight - content_display_rect.mRight;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
selection_rect.translate(h_delta, v_delta);
|
||||
}
|
||||
gl_rect_2d(selection_rect, selection_color);
|
||||
}
|
||||
}
|
||||
|
|
@ -2247,7 +2289,7 @@ void LLTextBase::appendTextImpl(const std::string &new_text, const LLStyle::Para
|
|||
LLUrlMatch match;
|
||||
std::string text = new_text;
|
||||
while ( LLUrlRegistry::instance().findUrl(text, match,
|
||||
boost::bind(&LLTextBase::replaceUrl, this, _1, _2, _3),isContentTrusted()))
|
||||
boost::bind(&LLTextBase::replaceUrl, this, _1, _2, _3),isContentTrusted() || mAlwaysShowIcons))
|
||||
{
|
||||
start = match.getStart();
|
||||
end = match.getEnd()+1;
|
||||
|
|
@ -2275,14 +2317,14 @@ void LLTextBase::appendTextImpl(const std::string &new_text, const LLStyle::Para
|
|||
|
||||
// add icon before url if need
|
||||
// <FS:Ansariel> Optional icon position
|
||||
//LLTextUtil::processUrlMatch(&match, this, isContentTrusted() || match.isTrusted());
|
||||
//LLTextUtil::processUrlMatch(&match, this, isContentTrusted() || match.isTrusted() || mAlwaysShowIcons);
|
||||
//if ((isContentTrusted() || match.isTrusted()) && !match.getIcon().empty() )
|
||||
//{
|
||||
// setLastSegmentToolTip(LLTrans::getString("TooltipSLIcon"));
|
||||
//}
|
||||
if (mIconPositioning == LLTextBaseEnums::LEFT || match.isTrusted())
|
||||
if (mIconPositioning == LLTextBaseEnums::LEFT || match.isTrusted() || mAlwaysShowIcons)
|
||||
{
|
||||
LLTextUtil::processUrlMatch(&match, this, isContentTrusted() || match.isTrusted());
|
||||
LLTextUtil::processUrlMatch(&match, this, isContentTrusted() || match.isTrusted() || mAlwaysShowIcons);
|
||||
if ((isContentTrusted() || match.isTrusted()) && !match.getIcon().empty() )
|
||||
{
|
||||
setLastSegmentToolTip(LLTrans::getString("TooltipSLIcon"));
|
||||
|
|
@ -2326,7 +2368,7 @@ void LLTextBase::appendTextImpl(const std::string &new_text, const LLStyle::Para
|
|||
}
|
||||
|
||||
// <FS:Ansariel> Optional icon position
|
||||
if (mIconPositioning == LLTextBaseEnums::RIGHT && !match.isTrusted())
|
||||
if (mIconPositioning == LLTextBaseEnums::RIGHT && !match.isTrusted() && !mAlwaysShowIcons)
|
||||
{
|
||||
LLTextUtil::processUrlMatch(&match,this,isContentTrusted());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -345,7 +345,8 @@ public:
|
|||
parse_highlights,
|
||||
clip,
|
||||
clip_partial,
|
||||
trusted_content;
|
||||
trusted_content,
|
||||
always_show_icons;
|
||||
|
||||
Optional<S32> v_pad,
|
||||
h_pad;
|
||||
|
|
@ -396,9 +397,7 @@ public:
|
|||
virtual void onFocusReceived();
|
||||
virtual void onFocusLost();
|
||||
|
||||
//<FS:KC - expose ParseHTML setting>
|
||||
void setParseHTML(bool parse_html) { mParseHTML = parse_html; }
|
||||
//</FS:KC - expose ParseHTML setting>
|
||||
void setParseHTML(bool parse_html) { mParseHTML = parse_html; }
|
||||
|
||||
// LLSpellCheckMenuHandler overrides
|
||||
/*virtual*/ bool getSpellCheck() const;
|
||||
|
|
@ -761,6 +760,7 @@ protected:
|
|||
bool mPlainText; // didn't use Image or Icon segments
|
||||
bool mAutoIndent;
|
||||
S32 mMaxTextByteLength; // Maximum length mText is allowed to be in bytes
|
||||
bool mAlwaysShowIcons;
|
||||
|
||||
bool mSkipLinkUnderline;
|
||||
|
||||
|
|
|
|||
|
|
@ -406,6 +406,7 @@ set(viewer_SOURCE_FILES
|
|||
llfloaterpay.cpp
|
||||
llfloaterperms.cpp
|
||||
llfloaterpostprocess.cpp
|
||||
llfloaterprofile.cpp
|
||||
llfloaterpreference.cpp
|
||||
llfloaterpreviewtrash.cpp
|
||||
llfloaterproperties.cpp
|
||||
|
|
@ -441,7 +442,6 @@ set(viewer_SOURCE_FILES
|
|||
llfloatervoiceeffect.cpp
|
||||
llfloatervoicevolume.cpp
|
||||
llfloaterwebcontent.cpp
|
||||
llfloaterwebprofile.cpp
|
||||
llfloaterwhitelistentry.cpp
|
||||
llfloaterwindowsize.cpp
|
||||
llfloaterworldmap.cpp
|
||||
|
|
@ -548,7 +548,6 @@ set(viewer_SOURCE_FILES
|
|||
llpanelavatar.cpp
|
||||
llpanelavatartag.cpp
|
||||
llpanelblockedlist.cpp
|
||||
llpanelclassified.cpp
|
||||
llpanelcontents.cpp
|
||||
llpaneleditwearable.cpp
|
||||
llpanelexperiencelisteditor.cpp
|
||||
|
|
@ -581,7 +580,6 @@ set(viewer_SOURCE_FILES
|
|||
llpanelmediasettingsgeneral.cpp
|
||||
llpanelmediasettingspermissions.cpp
|
||||
llpanelmediasettingssecurity.cpp
|
||||
llpanelme.cpp
|
||||
llpanelnearbymedia.cpp
|
||||
llpanelobject.cpp
|
||||
llpanelobjectinventory.cpp
|
||||
|
|
@ -592,7 +590,6 @@ set(viewer_SOURCE_FILES
|
|||
llpanelpeoplemenus.cpp
|
||||
llpanelpermissions.cpp
|
||||
llpanelpick.cpp
|
||||
llpanelpicks.cpp
|
||||
llpanelplaceinfo.cpp
|
||||
llpanelplaceprofile.cpp
|
||||
llpanelplaces.cpp
|
||||
|
|
@ -600,6 +597,8 @@ set(viewer_SOURCE_FILES
|
|||
llpanelpresetspulldown.cpp
|
||||
llpanelprimmediacontrols.cpp
|
||||
llpanelprofile.cpp
|
||||
llpanelprofileclassifieds.cpp
|
||||
llpanelprofilepicks.cpp
|
||||
llpanelsnapshot.cpp
|
||||
llpanelsnapshotinventory.cpp
|
||||
llpanelsnapshotlocal.cpp
|
||||
|
|
@ -1171,6 +1170,7 @@ set(viewer_HEADER_FILES
|
|||
llfloaterpay.h
|
||||
llfloaterperms.h
|
||||
llfloaterpostprocess.h
|
||||
llfloaterprofile.h
|
||||
llfloaterpreference.h
|
||||
llfloaterpreviewtrash.h
|
||||
llfloaterproperties.h
|
||||
|
|
@ -1206,7 +1206,6 @@ set(viewer_HEADER_FILES
|
|||
llfloatervoiceeffect.h
|
||||
llfloatervoicevolume.h
|
||||
llfloaterwebcontent.h
|
||||
llfloaterwebprofile.h
|
||||
llfloaterwhitelistentry.h
|
||||
llfloaterwindowsize.h
|
||||
llfloaterworldmap.h
|
||||
|
|
@ -1303,7 +1302,6 @@ set(viewer_HEADER_FILES
|
|||
llpanelavatar.h
|
||||
llpanelavatartag.h
|
||||
llpanelblockedlist.h
|
||||
llpanelclassified.h
|
||||
llpanelcontents.h
|
||||
llpaneleditwearable.h
|
||||
llpanelexperiencelisteditor.h
|
||||
|
|
@ -1337,7 +1335,6 @@ set(viewer_HEADER_FILES
|
|||
llpanelmediasettingsgeneral.h
|
||||
llpanelmediasettingspermissions.h
|
||||
llpanelmediasettingssecurity.h
|
||||
llpanelme.h
|
||||
llpanelnearbymedia.h
|
||||
llpanelobject.h
|
||||
llpanelobjectinventory.h
|
||||
|
|
@ -1348,7 +1345,6 @@ set(viewer_HEADER_FILES
|
|||
llpanelpeoplemenus.h
|
||||
llpanelpermissions.h
|
||||
llpanelpick.h
|
||||
llpanelpicks.h
|
||||
llpanelplaceinfo.h
|
||||
llpanelplaceprofile.h
|
||||
llpanelplaces.h
|
||||
|
|
@ -1356,6 +1352,8 @@ set(viewer_HEADER_FILES
|
|||
llpanelpresetspulldown.h
|
||||
llpanelprimmediacontrols.h
|
||||
llpanelprofile.h
|
||||
llpanelprofileclassifieds.h
|
||||
llpanelprofilepicks.h
|
||||
llpanelsnapshot.h
|
||||
llpanelteleporthistory.h
|
||||
llpaneltiptoast.h
|
||||
|
|
|
|||
|
|
@ -177,10 +177,8 @@
|
|||
icon="Command_Picks_Icon"
|
||||
label_ref="Command_Picks_Label"
|
||||
tooltip_ref="Command_Picks_Tooltip"
|
||||
execute_function="Floater.Toggle"
|
||||
execute_parameters="picks"
|
||||
is_running_function="Floater.IsOpen"
|
||||
is_running_parameters="picks"
|
||||
execute_function="Avatar.TogglePicks"
|
||||
is_running_function="Avatar.IsPicksTabOpen"
|
||||
/>
|
||||
<command name="places"
|
||||
available_in_toybox="true"
|
||||
|
|
|
|||
|
|
@ -353,17 +353,6 @@
|
|||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<key>FSUseWebProfiles</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Shows web profiles instead of the v1-style profile floater</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<key>FSTPHistoryTZ</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
|
@ -25292,6 +25281,17 @@ Change of this parameter will affect the layout of buttons in notification toast
|
|||
<key>Value</key>
|
||||
<integer>1</integer>
|
||||
</map>
|
||||
<key>FSUseOwnProfiles</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Selects if the Firestorm legacy profiles should be used or the LL ones</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
</map>
|
||||
</llsd>
|
||||
|
||||
|
|
|
|||
|
|
@ -243,18 +243,6 @@
|
|||
<integer>1</integer>
|
||||
</map>
|
||||
|
||||
<key>FSUseWebProfiles</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Shows web profiles instead of the v1-style profile floater</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
|
||||
<key>FSFolderViewItemHeight</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
|
|
|||
|
|
@ -219,18 +219,6 @@
|
|||
<integer>1</integer>
|
||||
</map>
|
||||
|
||||
<key>FSUseWebProfiles</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Shows web profiles instead of the v1-style profile floater</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
|
||||
<key>FSFolderViewItemHeight</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
|
|
|||
|
|
@ -231,18 +231,6 @@
|
|||
<integer>1</integer>
|
||||
</map>
|
||||
|
||||
<key>FSUseWebProfiles</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Shows web profiles instead of the v1-style profile floater</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
|
||||
<key>FSFolderViewItemHeight</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
|
|
|||
|
|
@ -207,18 +207,6 @@
|
|||
<integer>1</integer>
|
||||
</map>
|
||||
|
||||
<key>FSUseWebProfiles</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Shows web profiles instead of the v1-style profile floater</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
|
||||
<key>FSFolderViewItemHeight</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
|
|
|||
|
|
@ -254,18 +254,6 @@
|
|||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
|
||||
<key>FSUseWebProfiles</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Shows web profiles instead of the v1-style profile floater</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>1</integer>
|
||||
</map>
|
||||
|
||||
<key>FSFontChatLineSpacingPixels</key>
|
||||
<map>
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@
|
|||
#include "llviewerinventory.h"
|
||||
|
||||
static LLDefaultChildRegistry::Register<FSCopyTransInventoryDropTarget> r1("fs_copytrans_inventory_drop_target");
|
||||
static LLDefaultChildRegistry::Register<FSDropTarget> r2("profile_drop_target");
|
||||
static LLDefaultChildRegistry::Register<FSEmbeddedItemDropTarget> r3("fs_embedded_item_drop_target");
|
||||
|
||||
|
||||
|
|
@ -70,29 +69,6 @@ BOOL FSCopyTransInventoryDropTarget::handleDragAndDrop(S32 x, S32 y, MASK mask,
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
FSDropTarget::FSDropTarget(const FSDropTarget::Params& p)
|
||||
: LLView(p),
|
||||
mAgentID(p.agent_id)
|
||||
{}
|
||||
|
||||
BOOL FSDropTarget::handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop,
|
||||
EDragAndDropType cargo_type,
|
||||
void* cargo_data,
|
||||
EAcceptance* accept,
|
||||
std::string& tooltip_msg)
|
||||
{
|
||||
if (getParent())
|
||||
{
|
||||
LLToolDragAndDrop::handleGiveDragAndDrop(mAgentID, LLUUID::null, drop,
|
||||
cargo_type, cargo_data, accept);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
BOOL FSEmbeddedItemDropTarget::handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop,
|
||||
EDragAndDropType cargo_type,
|
||||
void* cargo_data,
|
||||
|
|
|
|||
|
|
@ -70,37 +70,6 @@ private:
|
|||
};
|
||||
|
||||
|
||||
class FSDropTarget : public LLView
|
||||
{
|
||||
public:
|
||||
struct Params : public LLInitParam::Block<Params, LLView::Params>
|
||||
{
|
||||
Optional<LLUUID> agent_id;
|
||||
Params()
|
||||
: agent_id("agent_id")
|
||||
{
|
||||
changeDefault(mouse_opaque, false);
|
||||
changeDefault(follows.flags, FOLLOWS_ALL);
|
||||
}
|
||||
};
|
||||
|
||||
FSDropTarget(const Params&);
|
||||
~FSDropTarget() {}
|
||||
|
||||
// LLView functionality
|
||||
virtual BOOL handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop,
|
||||
EDragAndDropType cargo_type,
|
||||
void* cargo_data,
|
||||
EAcceptance* accept,
|
||||
std::string& tooltip_msg);
|
||||
|
||||
void setAgentID(const LLUUID &agent_id) { mAgentID = agent_id; }
|
||||
|
||||
protected:
|
||||
LLUUID mAgentID;
|
||||
};
|
||||
|
||||
|
||||
class FSEmbeddedItemDropTarget : public LLTextBox
|
||||
{
|
||||
public:
|
||||
|
|
|
|||
|
|
@ -51,8 +51,7 @@ FSFloaterProfile::~FSFloaterProfile()
|
|||
|
||||
void FSFloaterProfile::onOpen(const LLSD& key)
|
||||
{
|
||||
FSPanelProfile* panel_profile = findChild<FSPanelProfile>(PANEL_PROFILE_VIEW);
|
||||
panel_profile->onOpen(mAvatarId);
|
||||
mPanelProfile->onOpen(mAvatarId);
|
||||
|
||||
if (mAvatarId == gAgentID)
|
||||
{
|
||||
|
|
@ -66,12 +65,29 @@ void FSFloaterProfile::onOpen(const LLSD& key)
|
|||
|
||||
BOOL FSFloaterProfile::postBuild()
|
||||
{
|
||||
mPanelProfile = findChild<FSPanelProfile>(PANEL_PROFILE_VIEW);
|
||||
|
||||
childSetAction("ok_btn", boost::bind(&FSFloaterProfile::onOKBtn, this));
|
||||
childSetAction("cancel_btn", boost::bind(&FSFloaterProfile::onCancelBtn, this));
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void FSFloaterProfile::showPick(const LLUUID& pick_id)
|
||||
{
|
||||
mPanelProfile->showPick(pick_id);
|
||||
}
|
||||
|
||||
bool FSFloaterProfile::isPickTabSelected()
|
||||
{
|
||||
return mPanelProfile->isPickTabSelected();
|
||||
}
|
||||
|
||||
void FSFloaterProfile::showClassified(const LLUUID& classified_id, bool edit)
|
||||
{
|
||||
mPanelProfile->showClassified(classified_id, edit);
|
||||
}
|
||||
|
||||
void FSFloaterProfile::onOKBtn()
|
||||
{
|
||||
if (mAvatarId == gAgentID)
|
||||
|
|
|
|||
|
|
@ -31,6 +31,8 @@
|
|||
#include "llavatarnamecache.h"
|
||||
#include "llfloater.h"
|
||||
|
||||
class FSPanelProfile;
|
||||
|
||||
class FSFloaterProfile : public LLFloater
|
||||
{
|
||||
LOG_CLASS(FSFloaterProfile);
|
||||
|
|
@ -41,6 +43,11 @@ public:
|
|||
/*virtual*/ void onOpen(const LLSD& key);
|
||||
/*virtual*/ BOOL postBuild();
|
||||
|
||||
void showPick(const LLUUID& pick_id = LLUUID::null);
|
||||
bool isPickTabSelected();
|
||||
|
||||
void showClassified(const LLUUID& classified_id = LLUUID::null, bool edit = false);
|
||||
|
||||
protected:
|
||||
void onOKBtn();
|
||||
void onCancelBtn();
|
||||
|
|
@ -49,6 +56,8 @@ private:
|
|||
LLAvatarNameCache::callback_connection_t mNameCallbackConnection;
|
||||
void onAvatarNameCache(const LLUUID& agent_id, const LLAvatarName& av_name);
|
||||
|
||||
FSPanelProfile* mPanelProfile;
|
||||
|
||||
LLUUID mAvatarId;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@
|
|||
#include "fsavatarsearchmenu.h"
|
||||
#include "fsdispatchclassifiedclickthrough.h"
|
||||
#include "fspanelclassified.h"
|
||||
#include "fspanelprofile.h"
|
||||
#include "fsscrolllistctrl.h"
|
||||
#include "lfsimfeaturehandler.h"
|
||||
#include "llagent.h"
|
||||
|
|
@ -53,7 +52,8 @@
|
|||
#include "llloadingindicator.h"
|
||||
#include "lllogininstance.h"
|
||||
#include "llnotificationsutil.h"
|
||||
#include "llpanelclassified.h"
|
||||
#include "llpanelprofile.h"
|
||||
#include "llpanelprofileclassifieds.h"
|
||||
#include "llparcel.h"
|
||||
#include "llproductinforequest.h"
|
||||
#include "llqueryflags.h"
|
||||
|
|
@ -172,7 +172,7 @@ public:
|
|||
LL_INFOS("Search") << "Classified stat request via capability" << LL_ENDL;
|
||||
LLSD body;
|
||||
body["classified_id"] = c_info->classified_id;
|
||||
LLCoreHttpUtil::HttpCoroutineAdapter::callbackHttpPost(url, body, boost::bind(&LLPanelClassifiedInfo::handleSearchStatResponse, c_info->classified_id, _1));
|
||||
LLCoreHttpUtil::HttpCoroutineAdapter::callbackHttpPost(url, body, boost::bind(&LLPanelProfileClassified::handleSearchStatResponse, c_info->classified_id, _1));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -297,7 +297,7 @@ BOOL FSFloaterSearch::postBuild()
|
|||
mPanelWeb = findChild<FSPanelSearchWeb>("panel_ls_web");
|
||||
|
||||
// <KC> If skin has legacy full profile view, use it
|
||||
mPanelProfile = mPanelPeople->findChild<FSPanelProfile>("panel_profile_view");
|
||||
mPanelProfile = mPanelPeople->findChild<LLPanelProfile>("panel_profile_view");
|
||||
if (mPanelProfile)
|
||||
{
|
||||
mPanelProfile->setVisible(false);
|
||||
|
|
@ -384,7 +384,7 @@ void FSFloaterSearch::onSelectedItem(const LLUUID& selected_item, ESearchCategor
|
|||
if (mPanelProfile)
|
||||
{
|
||||
mPanelProfile->setVisible(true);
|
||||
mPanelProfile->onOpen(selected_item);
|
||||
mPanelProfile->onOpen(LLSD().with("id", selected_item));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ class LLGroupMgrObserver;
|
|||
class LLSearchEditor;
|
||||
class LLSearchComboBox;
|
||||
class FSFloaterSearch;
|
||||
class FSPanelProfile;
|
||||
class LLPanelProfile;
|
||||
class FSScrollListCtrl;
|
||||
|
||||
struct SearchQuery : public LLInitParam::Block<SearchQuery>
|
||||
|
|
@ -406,7 +406,7 @@ private:
|
|||
LLTextureCtrl* mDetailSnapshot;
|
||||
LLIconCtrl* mDetailMaturity;
|
||||
LLTabContainer* mTabContainer;
|
||||
FSPanelProfile* mPanelProfile;
|
||||
LLPanelProfile* mPanelProfile;
|
||||
};
|
||||
|
||||
#endif // FS_FLOATERSEARCH_H
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@
|
|||
#include "llscrollcontainer.h"
|
||||
#include "llstatusbar.h"
|
||||
#include "llviewertexture.h"
|
||||
#include "llpanelclassified.h"
|
||||
#include "llpanelprofileclassifieds.h"
|
||||
|
||||
#ifdef OPENSIM
|
||||
#include "llviewernetwork.h"
|
||||
|
|
@ -198,7 +198,7 @@ void FSPanelClassifiedInfo::onOpen(const LLSD& key)
|
|||
LL_INFOS("FSPanelClassifiedInfo") << "Classified stat request via capability" << LL_ENDL;
|
||||
LLSD body;
|
||||
body["classified_id"] = getClassifiedId();
|
||||
LLCoreHttpUtil::HttpCoroutineAdapter::callbackHttpPost(url, body, boost::bind(&LLPanelClassifiedInfo::handleSearchStatResponse, getClassifiedId(), _1));
|
||||
LLCoreHttpUtil::HttpCoroutineAdapter::callbackHttpPost(url, body, boost::bind(&LLPanelProfileClassified::handleSearchStatResponse, getClassifiedId(), _1));
|
||||
}
|
||||
|
||||
// Update classified click stats.
|
||||
|
|
|
|||
|
|
@ -311,7 +311,7 @@ void FSPanelProfileSecondLife::onOpen(const LLSD& key)
|
|||
|
||||
mDescriptionEdit->setParseHTML(!own_profile && !getEmbedded());
|
||||
|
||||
FSDropTarget* drop_target = getChild<FSDropTarget>("drop_target");
|
||||
LLProfileDropTarget* drop_target = getChild<LLProfileDropTarget>("drop_target");
|
||||
drop_target->setVisible(!own_profile);
|
||||
drop_target->setEnabled(!own_profile);
|
||||
|
||||
|
|
@ -810,21 +810,10 @@ void FSPanelProfileWeb::onOpen(const LLSD& key)
|
|||
|
||||
BOOL FSPanelProfileWeb::postBuild()
|
||||
{
|
||||
mWebProfileButton = getChild<LLUICtrl>("web_profile");
|
||||
mLoadButton = getChild<LLUICtrl>("load");
|
||||
mUrlEdit = getChild<LLLineEditor>("url_edit");
|
||||
|
||||
mLoadButton->setCommitCallback(boost::bind(&FSPanelProfileWeb::onCommitLoad, this, _1));
|
||||
|
||||
mWebProfileButton->setCommitCallback(boost::bind(&FSPanelProfileWeb::onCommitWebProfile, this, _1));
|
||||
mWebProfileButton->setVisible(LLGridManager::getInstance()->isInSecondLife());
|
||||
|
||||
mWebBrowser = getChild<LLMediaCtrl>("profile_html");
|
||||
mWebBrowser->addObserver(this);
|
||||
mWebBrowser->setHomePageUrl("about:blank");
|
||||
|
||||
mUrlEdit->setEnabled(FALSE);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
@ -835,9 +824,6 @@ void FSPanelProfileWeb::processProperties(void* data, EAvatarProcessorType type)
|
|||
const LLAvatarData* avatar_data = static_cast<const LLAvatarData*>(data);
|
||||
if (avatar_data && getAvatarId() == avatar_data->avatar_id)
|
||||
{
|
||||
mURLHome = avatar_data->profile_url;
|
||||
mUrlEdit->setValue(mURLHome);
|
||||
mLoadButton->setEnabled(mURLHome.length() > 0);
|
||||
enableControls();
|
||||
}
|
||||
}
|
||||
|
|
@ -845,14 +831,11 @@ void FSPanelProfileWeb::processProperties(void* data, EAvatarProcessorType type)
|
|||
|
||||
void FSPanelProfileWeb::resetData()
|
||||
{
|
||||
mURLHome = LLStringUtil::null;
|
||||
mUrlEdit->setValue(mURLHome);
|
||||
mWebBrowser->navigateHome();
|
||||
}
|
||||
|
||||
void FSPanelProfileWeb::apply(LLAvatarData* data)
|
||||
{
|
||||
data->profile_url = mUrlEdit->getValue().asString();
|
||||
}
|
||||
|
||||
void FSPanelProfileWeb::updateData()
|
||||
|
|
@ -883,13 +866,12 @@ void FSPanelProfileWeb::onAvatarNameCache(const LLUUID& agent_id, const LLAvatar
|
|||
LLStringUtil::replaceChar(username, ' ', '.');
|
||||
}
|
||||
|
||||
mURLWebProfile = getProfileURL(username);
|
||||
mURLWebProfile = getProfileURL(username, true);
|
||||
if (mURLWebProfile.empty())
|
||||
{
|
||||
return;
|
||||
}
|
||||
mWebProfileButton->setEnabled(TRUE);
|
||||
|
||||
|
||||
if (getIsLoading()) //if the tab was opened before name was resolved, load the panel now
|
||||
{
|
||||
updateData();
|
||||
|
|
@ -920,30 +902,6 @@ void FSPanelProfileWeb::onCommitLoad(LLUICtrl* ctrl)
|
|||
}
|
||||
}
|
||||
|
||||
void FSPanelProfileWeb::onCommitWebProfile(LLUICtrl* ctrl)
|
||||
{
|
||||
if (!mURLWebProfile.empty())
|
||||
{
|
||||
LLSD::String valstr = ctrl->getValue().asString();
|
||||
if (valstr.empty())
|
||||
{
|
||||
mWebBrowser->setVisible(TRUE);
|
||||
mPerformanceTimer.start();
|
||||
mWebBrowser->navigateTo( mURLWebProfile, HTTP_CONTENT_TEXT_HTML );
|
||||
}
|
||||
else if (valstr == "popout")
|
||||
{
|
||||
// open the web profile floater
|
||||
LLAvatarActions::showProfileWeb(getAvatarId());
|
||||
}
|
||||
else if (valstr == "external")
|
||||
{
|
||||
// open in external browser
|
||||
LLWeb::loadURLExternal(mURLWebProfile);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void FSPanelProfileWeb::handleMediaEvent(LLPluginClassMedia* self, EMediaEvent event)
|
||||
{
|
||||
switch(event)
|
||||
|
|
@ -952,12 +910,6 @@ void FSPanelProfileWeb::handleMediaEvent(LLPluginClassMedia* self, EMediaEvent e
|
|||
childSetValue("status_text", LLSD( self->getStatusText() ) );
|
||||
break;
|
||||
|
||||
case MEDIA_EVENT_LOCATION_CHANGED:
|
||||
// don't set this or user will set there url to profile url
|
||||
// when clicking ok on there own profile.
|
||||
// childSetText("url_edit", self->getLocation() );
|
||||
break;
|
||||
|
||||
case MEDIA_EVENT_NAVIGATE_BEGIN:
|
||||
{
|
||||
if (mFirstNavigate)
|
||||
|
|
@ -988,11 +940,6 @@ void FSPanelProfileWeb::handleMediaEvent(LLPluginClassMedia* self, EMediaEvent e
|
|||
void FSPanelProfileWeb::enableControls()
|
||||
{
|
||||
FSPanelProfileTab::enableControls();
|
||||
|
||||
if (getSelfProfile() && !getEmbedded())
|
||||
{
|
||||
mUrlEdit->setEnabled(TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
|
@ -1050,7 +997,7 @@ void FSPanelProfileInterests::processProperties(void* data, EAvatarProcessorType
|
|||
{
|
||||
if (APT_INTERESTS_INFO == type)
|
||||
{
|
||||
const FSInterestsData* interests_data = static_cast<const FSInterestsData*>(data);
|
||||
const LLInterestsData* interests_data = static_cast<const LLInterestsData*>(data);
|
||||
if (interests_data && getAvatarId() == interests_data->avatar_id)
|
||||
{
|
||||
for (S32 i = 0; i < WANT_CHECKS; ++i)
|
||||
|
|
@ -1107,7 +1054,7 @@ void FSPanelProfileInterests::apply()
|
|||
{
|
||||
if (getIsLoaded() && getSelfProfile())
|
||||
{
|
||||
FSInterestsData interests_data = FSInterestsData();
|
||||
LLInterestsData interests_data = LLInterestsData();
|
||||
|
||||
interests_data.want_to_mask = 0;
|
||||
for (S32 i = 0; i < WANT_CHECKS; ++i)
|
||||
|
|
@ -1576,6 +1523,7 @@ void FSPanelPick::updateTabLabel(const std::string& title)
|
|||
|
||||
FSPanelProfilePicks::FSPanelProfilePicks()
|
||||
: FSPanelProfileTab(),
|
||||
mPickToSelectOnLoad(LLUUID::null),
|
||||
mRlvBehaviorCallbackConnection()
|
||||
{
|
||||
}
|
||||
|
|
@ -1604,6 +1552,29 @@ void FSPanelProfilePicks::onOpen(const LLSD& key)
|
|||
}
|
||||
}
|
||||
|
||||
void FSPanelProfilePicks::selectPick(const LLUUID& pick_id)
|
||||
{
|
||||
if (getIsLoaded())
|
||||
{
|
||||
for (S32 tab_idx = 0; tab_idx < mTabContainer->getTabCount(); ++tab_idx)
|
||||
{
|
||||
FSPanelPick* pick_panel = dynamic_cast<FSPanelPick*>(mTabContainer->getPanelByIndex(tab_idx));
|
||||
if (pick_panel)
|
||||
{
|
||||
if (pick_panel->getPickId() == pick_id)
|
||||
{
|
||||
mTabContainer->selectTabPanel(pick_panel);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
mPickToSelectOnLoad = pick_id;
|
||||
}
|
||||
}
|
||||
|
||||
BOOL FSPanelProfilePicks::postBuild()
|
||||
{
|
||||
mTabContainer = getChild<LLTabContainer>("tab_picks");
|
||||
|
|
@ -1686,14 +1657,16 @@ void FSPanelProfilePicks::processProperties(void* data, EAvatarProcessorType typ
|
|||
LLAvatarPicks* avatar_picks = static_cast<LLAvatarPicks*>(data);
|
||||
if (avatar_picks && getAvatarId() == avatar_picks->target_id)
|
||||
{
|
||||
|
||||
LLUUID selected_id = LLUUID::null;
|
||||
if (mTabContainer->getTabCount() > 0)
|
||||
LLUUID selected_id = mPickToSelectOnLoad;
|
||||
if (mPickToSelectOnLoad.isNull())
|
||||
{
|
||||
FSPanelPick* active_pick_panel = dynamic_cast<FSPanelPick*>(mTabContainer->getCurrentPanel());
|
||||
if (active_pick_panel)
|
||||
if (mTabContainer->getTabCount() > 0)
|
||||
{
|
||||
selected_id = active_pick_panel->getPickId();
|
||||
FSPanelPick* active_pick_panel = dynamic_cast<FSPanelPick*>(mTabContainer->getCurrentPanel());
|
||||
if (active_pick_panel)
|
||||
{
|
||||
selected_id = active_pick_panel->getPickId();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1716,6 +1689,11 @@ void FSPanelProfilePicks::processProperties(void* data, EAvatarProcessorType typ
|
|||
panel(pick_panel).
|
||||
select_tab(selected_id == pick_id).
|
||||
label(pick_name));
|
||||
|
||||
if (selected_id == pick_id)
|
||||
{
|
||||
mPickToSelectOnLoad = LLUUID::null;
|
||||
}
|
||||
}
|
||||
|
||||
mNewButton->setEnabled(canAddNewPick());
|
||||
|
|
@ -2118,11 +2096,7 @@ BOOL FSPanelProfile::postBuild()
|
|||
|
||||
void FSPanelProfile::processProperties(void* data, EAvatarProcessorType type)
|
||||
{
|
||||
mTabContainer = getChild<LLTabContainer>("panel_profile_tabs");
|
||||
if (mTabContainer)
|
||||
{
|
||||
mTabContainer->setCommitCallback(boost::bind(&FSPanelProfile::onTabChange, this));
|
||||
}
|
||||
mTabContainer->setCommitCallback(boost::bind(&FSPanelProfile::onTabChange, this));
|
||||
|
||||
// Load data on currently opened tab as well
|
||||
onTabChange();
|
||||
|
|
@ -2147,6 +2121,7 @@ void FSPanelProfile::onOpen(const LLSD& key)
|
|||
|
||||
FSPanelProfileTab::onOpen(key);
|
||||
|
||||
mTabContainer = getChild<LLTabContainer>("panel_profile_tabs");
|
||||
mPanelSecondlife = findChild<FSPanelProfileSecondLife>(PANEL_SECONDLIFE);
|
||||
mPanelWeb = findChild<FSPanelProfileWeb>(PANEL_WEB);
|
||||
mPanelInterests = findChild<FSPanelProfileInterests>(PANEL_INTERESTS);
|
||||
|
|
@ -2220,3 +2195,27 @@ void FSPanelProfile::onAvatarNameCache(const LLUUID& agent_id, const LLAvatarNam
|
|||
mPanelSecondlife->onAvatarNameCache(agent_id, av_name);
|
||||
mPanelWeb->onAvatarNameCache(agent_id, av_name);
|
||||
}
|
||||
|
||||
void FSPanelProfile::showPick(const LLUUID& pick_id)
|
||||
{
|
||||
if (pick_id.notNull())
|
||||
{
|
||||
mPanelPicks->selectPick(pick_id);
|
||||
}
|
||||
mTabContainer->selectTabPanel(mPanelPicks);
|
||||
}
|
||||
|
||||
bool FSPanelProfile::isPickTabSelected()
|
||||
{
|
||||
return (mTabContainer->getCurrentPanel() == mPanelPicks);
|
||||
}
|
||||
|
||||
void FSPanelProfile::showClassified(const LLUUID& classified_id, bool edit)
|
||||
{
|
||||
if (classified_id.notNull())
|
||||
{
|
||||
mPanelClassifieds->selectClassified(classified_id, edit);
|
||||
}
|
||||
mTabContainer->selectTabPanel(mPanelClassifieds);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -297,15 +297,11 @@ public:
|
|||
|
||||
protected:
|
||||
void onCommitLoad(LLUICtrl* ctrl);
|
||||
void onCommitWebProfile(LLUICtrl* ctrl);
|
||||
|
||||
private:
|
||||
std::string mURLHome;
|
||||
std::string mURLWebProfile;
|
||||
LLMediaCtrl* mWebBrowser;
|
||||
LLUICtrl* mWebProfileButton;
|
||||
LLUICtrl* mLoadButton;
|
||||
LLLineEditor* mUrlEdit;
|
||||
|
||||
LLFrameTimer mPerformanceTimer;
|
||||
bool mFirstNavigate;
|
||||
|
|
@ -503,6 +499,8 @@ public:
|
|||
|
||||
/*virtual*/ void onOpen(const LLSD& key);
|
||||
|
||||
void selectPick(const LLUUID& pick_id);
|
||||
|
||||
/*virtual*/ void processProperties(void* data, EAvatarProcessorType type);
|
||||
|
||||
void resetData();
|
||||
|
|
@ -532,6 +530,8 @@ private:
|
|||
LLUICtrl* mNoItemsLabel;
|
||||
LLButton* mNewButton;
|
||||
LLButton* mDeleteButton;
|
||||
|
||||
LLUUID mPickToSelectOnLoad;
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -646,6 +646,11 @@ public:
|
|||
*/
|
||||
void apply();
|
||||
|
||||
void showPick(const LLUUID& pick_id = LLUUID::null);
|
||||
bool isPickTabSelected();
|
||||
|
||||
void showClassified(const LLUUID& classified_id = LLUUID::null, bool edit = false);
|
||||
|
||||
private:
|
||||
void onAvatarNameCache(const LLUUID& agent_id, const LLAvatarName& av_name);
|
||||
void onTabChange();
|
||||
|
|
|
|||
|
|
@ -68,6 +68,8 @@ static LLPanelInjector<FSPanelClassifieds> t_panel_fs_classifieds("panel_fs_prof
|
|||
//-----------------------------------------------------------------------------
|
||||
FSPanelClassifieds::FSPanelClassifieds()
|
||||
: FSPanelProfileTab(),
|
||||
mClassifiedToSelectOnLoad(LLUUID::null),
|
||||
mClassifiedEditOnLoad(false),
|
||||
mPopupMenu(NULL),
|
||||
mClassifiedsList(NULL),
|
||||
mPanelClassifiedInfo(NULL),
|
||||
|
|
@ -110,11 +112,14 @@ void FSPanelClassifieds::processProperties(void* data, EAvatarProcessorType type
|
|||
{
|
||||
if (APT_CLASSIFIEDS == type)
|
||||
{
|
||||
LLUUID edit_id;
|
||||
|
||||
LLAvatarClassifieds* c_info = static_cast<LLAvatarClassifieds*>(data);
|
||||
if (c_info && getAvatarId() == c_info->target_id)
|
||||
{
|
||||
// do not clear classified list in case we will receive two or more data packets.
|
||||
// list has been cleared in updateData(). (fix for EXT-6436)
|
||||
LLUUID selected_id = mClassifiedToSelectOnLoad;
|
||||
|
||||
LLAvatarClassifieds::classifieds_list_t::const_iterator it = c_info->classifieds_list.begin();
|
||||
for (; c_info->classifieds_list.end() != it; ++it)
|
||||
|
|
@ -132,11 +137,22 @@ void FSPanelClassifieds::processProperties(void* data, EAvatarProcessorType type
|
|||
if (!findClassifiedById(c_data.classified_id))
|
||||
{
|
||||
mClassifiedsList->addItem(c_item, pick_value);
|
||||
mClassifiedsList->selectItem(c_item, selected_id == c_data.classified_id);
|
||||
}
|
||||
|
||||
c_item->setDoubleClickCallback(boost::bind(&FSPanelClassifieds::onDoubleClickClassifiedItem, this, _1));
|
||||
c_item->setRightMouseUpCallback(boost::bind(&FSPanelClassifieds::onRightMouseUpItem, this, _1, _2, _3, _4));
|
||||
c_item->setMouseUpCallback(boost::bind(&FSPanelClassifieds::updateButtons, this));
|
||||
|
||||
if (selected_id == c_data.classified_id)
|
||||
{
|
||||
mClassifiedToSelectOnLoad = LLUUID::null;
|
||||
if (mClassifiedEditOnLoad)
|
||||
{
|
||||
edit_id = mClassifiedToSelectOnLoad;
|
||||
}
|
||||
mClassifiedEditOnLoad = false;
|
||||
}
|
||||
}
|
||||
|
||||
resetDirty();
|
||||
|
|
@ -160,6 +176,11 @@ void FSPanelClassifieds::processProperties(void* data, EAvatarProcessorType type
|
|||
}
|
||||
|
||||
enableControls();
|
||||
|
||||
if (edit_id.notNull())
|
||||
{
|
||||
editClassified(edit_id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -252,6 +273,37 @@ void FSPanelClassifieds::onOpen(const LLSD& key)
|
|||
updateButtons();
|
||||
}
|
||||
|
||||
void FSPanelClassifieds::selectClassified(const LLUUID& classified_id, bool edit)
|
||||
{
|
||||
if (getIsLoaded())
|
||||
{
|
||||
std::vector<LLPanel*> panels;
|
||||
mClassifiedsList->getItems(panels);
|
||||
|
||||
for (auto panel : panels)
|
||||
{
|
||||
FSClassifiedItem* classified_panel = dynamic_cast<FSClassifiedItem*>(panel);
|
||||
if (classified_panel)
|
||||
{
|
||||
if (classified_panel->getClassifiedId() == classified_id)
|
||||
{
|
||||
mClassifiedsList->selectItem(classified_panel);
|
||||
if (edit)
|
||||
{
|
||||
editClassified(classified_id);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
mClassifiedToSelectOnLoad = classified_id;
|
||||
mClassifiedEditOnLoad = edit;
|
||||
}
|
||||
}
|
||||
|
||||
void FSPanelClassifieds::onClosePanel()
|
||||
{
|
||||
if (mPanelClassifiedInfo)
|
||||
|
|
|
|||
|
|
@ -59,6 +59,8 @@ public:
|
|||
|
||||
/*virtual*/ void onOpen(const LLSD& key);
|
||||
|
||||
void selectClassified(const LLUUID& classified_id, bool edit);
|
||||
|
||||
/*virtual*/ void onClosePanel();
|
||||
|
||||
void processProperties(void* data, EAvatarProcessorType type);
|
||||
|
|
@ -130,6 +132,9 @@ private:
|
|||
|
||||
//true if classifieds list is empty after processing classifieds
|
||||
bool mNoClassifieds;
|
||||
|
||||
LLUUID mClassifiedToSelectOnLoad;
|
||||
bool mClassifiedEditOnLoad;
|
||||
};
|
||||
|
||||
class FSClassifiedItem : public LLPanel, public LLAvatarPropertiesObserver
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@
|
|||
#include "llfloatergroups.h"
|
||||
#include "llfloaterreg.h"
|
||||
#include "llfloaterpay.h"
|
||||
#include "llfloaterprofile.h"
|
||||
#include "llfloatersidepanelcontainer.h"
|
||||
#include "llfloaterwebcontent.h"
|
||||
#include "llfloaterworldmap.h"
|
||||
|
|
@ -67,6 +68,7 @@
|
|||
#include "llviewercontrol.h"
|
||||
#include "llviewerobjectlist.h"
|
||||
#include "llviewermessage.h" // for handle_lure
|
||||
#include "llviewernetwork.h" //LLGridManager
|
||||
#include "llviewerregion.h"
|
||||
#include "lltrans.h"
|
||||
#include "llcallingcard.h"
|
||||
|
|
@ -103,6 +105,48 @@ const U32 KICK_FLAGS_FREEZE = 1 << 0;
|
|||
const U32 KICK_FLAGS_UNFREEZE = 1 << 1;
|
||||
|
||||
|
||||
std::string getProfileURL(const std::string& agent_name, bool feed_only)
|
||||
{
|
||||
// <FS:Ansariel> OpenSim support
|
||||
//std::string url = "[WEB_PROFILE_URL][AGENT_NAME][FEED_ONLY]";
|
||||
//LLSD subs;
|
||||
//subs["WEB_PROFILE_URL"] = LLGridManager::getInstance()->getWebProfileURL();
|
||||
//subs["AGENT_NAME"] = agent_name;
|
||||
//subs["FEED_ONLY"] = feed_only ? "/?feed_only=true" : "";
|
||||
std::string url;
|
||||
LLSD subs;
|
||||
|
||||
#ifdef OPENSIM
|
||||
if (LLGridManager::instance().isInOpenSim())
|
||||
{
|
||||
url = LLGridManager::getInstance()->getWebProfileURL();
|
||||
if (url.empty())
|
||||
{
|
||||
return LLStringUtil::null;
|
||||
}
|
||||
|
||||
std::string match = "?name=[AGENT_NAME]";
|
||||
if (url.find(match) == std::string::npos)
|
||||
{
|
||||
url += match;
|
||||
}
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
url = "[WEB_PROFILE_URL][AGENT_NAME][FEED_ONLY]";
|
||||
subs["FEED_ONLY"] = feed_only ? "/?feed_only=true" : "";
|
||||
subs["WEB_PROFILE_URL"] = LLGridManager::getInstance()->getWebProfileURL();
|
||||
}
|
||||
// </FS:Ansariel>
|
||||
|
||||
subs["AGENT_NAME"] = agent_name;
|
||||
url = LLWeb::expandURLSubstitutions(url, subs);
|
||||
LLStringUtil::toLower(url);
|
||||
return url;
|
||||
}
|
||||
|
||||
|
||||
// static
|
||||
void LLAvatarActions::requestFriendshipDialog(const LLUUID& id, const std::string& name)
|
||||
{
|
||||
|
|
@ -420,94 +464,183 @@ const LLUUID LLAvatarActions::startConference(const uuid_vec_t& ids, const LLUUI
|
|||
return session_id;
|
||||
}
|
||||
|
||||
static const char* get_profile_floater_name(const LLUUID& avatar_id)
|
||||
// static
|
||||
void LLAvatarActions::showProfile(const LLUUID& avatar_id)
|
||||
{
|
||||
// Use different floater XML for our profile to be able to save its rect.
|
||||
return avatar_id == gAgentID ? "my_profile" : "profile";
|
||||
}
|
||||
|
||||
static void on_avatar_name_show_profile(const LLUUID& agent_id, const LLAvatarName& av_name)
|
||||
{
|
||||
std::string url = getProfileURL(av_name.getAccountName());
|
||||
|
||||
// PROFILES: open in webkit window
|
||||
LLFloaterWebContent::Params p;
|
||||
p.url(url).id(agent_id.asString());
|
||||
LLFloaterReg::showInstance(get_profile_floater_name(agent_id), p);
|
||||
if (avatar_id.notNull())
|
||||
{
|
||||
// <FS:Ansariel> Profile selection
|
||||
//LLFloaterReg::showInstance("profile", LLSD().with("id", avatar_id));
|
||||
LLFloaterReg::showInstance(gSavedSettings.getBOOL("FSUseOwnProfiles") ? "fs_floater_profile" : "profile", LLSD().with("id", avatar_id));
|
||||
}
|
||||
}
|
||||
|
||||
// static
|
||||
void LLAvatarActions::showProfile(const LLUUID& id)
|
||||
void LLAvatarActions::showPicks(const LLUUID& avatar_id)
|
||||
{
|
||||
if (id.notNull())
|
||||
if (avatar_id.notNull())
|
||||
{
|
||||
//<FS:KC legacy profiles>
|
||||
// LLAvatarNameCache::get(id, boost::bind(&on_avatar_name_show_profile, _1, _2));
|
||||
if (gSavedSettings.getBOOL("FSUseWebProfiles"))
|
||||
// <FS:Ansariel> Profile selection
|
||||
if (gSavedSettings.getBOOL("FSUseOwnProfiles"))
|
||||
{
|
||||
showProfileWeb(id);
|
||||
FSFloaterProfile* profilefloater = dynamic_cast<FSFloaterProfile*>(LLFloaterReg::showInstance("fs_floater_profile", LLSD().with("id", avatar_id)));
|
||||
if (profilefloater)
|
||||
{
|
||||
profilefloater->showPick();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
showProfileLegacy(id);
|
||||
// </FS:Ansariel>
|
||||
LLFloaterProfile* profilefloater = dynamic_cast<LLFloaterProfile*>(LLFloaterReg::showInstance("profile", LLSD().with("id", avatar_id)));
|
||||
if (profilefloater)
|
||||
{
|
||||
profilefloater->showPick();
|
||||
}
|
||||
// <FS:Ansariel> Profile selection
|
||||
}
|
||||
//</FS:KC legacy profiles>
|
||||
// </FS:Ansariel>
|
||||
}
|
||||
}
|
||||
|
||||
// static
|
||||
void LLAvatarActions::showPick(const LLUUID& avatar_id, const LLUUID& pick_id)
|
||||
{
|
||||
if (avatar_id.notNull())
|
||||
{
|
||||
// <FS:Ansariel> Profile selection
|
||||
if (gSavedSettings.getBOOL("FSUseOwnProfiles"))
|
||||
{
|
||||
FSFloaterProfile* profilefloater = dynamic_cast<FSFloaterProfile*>(LLFloaterReg::showInstance("fs_floater_profile", LLSD().with("id", avatar_id)));
|
||||
if (profilefloater)
|
||||
{
|
||||
profilefloater->showPick(pick_id);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// </FS:Ansariel>
|
||||
LLFloaterProfile* profilefloater = dynamic_cast<LLFloaterProfile*>(LLFloaterReg::showInstance("profile", LLSD().with("id", avatar_id)));
|
||||
if (profilefloater)
|
||||
{
|
||||
profilefloater->showPick(pick_id);
|
||||
}
|
||||
// <FS:Ansariel> Profile selection
|
||||
}
|
||||
// </FS:Ansariel>
|
||||
}
|
||||
}
|
||||
|
||||
// static
|
||||
bool LLAvatarActions::isPickTabSelected(const LLUUID& avatar_id)
|
||||
{
|
||||
if (avatar_id.notNull())
|
||||
{
|
||||
// <FS:Ansariel> Profile selection
|
||||
if (gSavedSettings.getBOOL("FSUseOwnProfiles"))
|
||||
{
|
||||
FSFloaterProfile* profilefloater = dynamic_cast<FSFloaterProfile*>(LLFloaterReg::showInstance("fs_floater_profile", LLSD().with("id", avatar_id)));
|
||||
if (profilefloater)
|
||||
{
|
||||
return profilefloater->isPickTabSelected();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// </FS:Ansariel>
|
||||
LLFloaterProfile* profilefloater = LLFloaterReg::findTypedInstance<LLFloaterProfile>("profile", LLSD().with("id", avatar_id));
|
||||
if (profilefloater)
|
||||
{
|
||||
return profilefloater->isPickTabSelected();
|
||||
}
|
||||
// <FS:Ansariel> Profile selection
|
||||
}
|
||||
// </FS:Ansariel>
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// static
|
||||
void LLAvatarActions::showClassifieds(const LLUUID& avatar_id)
|
||||
{
|
||||
if (avatar_id.notNull())
|
||||
{
|
||||
// <FS:Ansariel> Profile selection
|
||||
if (gSavedSettings.getBOOL("FSUseOwnProfiles"))
|
||||
{
|
||||
FSFloaterProfile* profilefloater = dynamic_cast<FSFloaterProfile*>(LLFloaterReg::showInstance("fs_floater_profile", LLSD().with("id", avatar_id)));
|
||||
if (profilefloater)
|
||||
{
|
||||
profilefloater->showClassified();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// </FS:Ansariel>
|
||||
LLFloaterProfile* profilefloater = dynamic_cast<LLFloaterProfile*>(LLFloaterReg::showInstance("profile", LLSD().with("id", avatar_id)));
|
||||
if (profilefloater)
|
||||
{
|
||||
profilefloater->showClassified();
|
||||
}
|
||||
// <FS:Ansariel> Profile selection
|
||||
}
|
||||
// </FS:Ansariel>
|
||||
}
|
||||
}
|
||||
|
||||
// static
|
||||
void LLAvatarActions::showClassified(const LLUUID& avatar_id, const LLUUID& classified_id, bool edit)
|
||||
{
|
||||
if (avatar_id.notNull())
|
||||
{
|
||||
// <FS:Ansariel> Profile selection
|
||||
if (gSavedSettings.getBOOL("FSUseOwnProfiles"))
|
||||
{
|
||||
FSFloaterProfile* profilefloater = dynamic_cast<FSFloaterProfile*>(LLFloaterReg::showInstance("fs_floater_profile", LLSD().with("id", avatar_id)));
|
||||
if (profilefloater)
|
||||
{
|
||||
profilefloater->showClassified(classified_id, edit);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// </FS:Ansariel>
|
||||
LLFloaterProfile* profilefloater = dynamic_cast<LLFloaterProfile*>(LLFloaterReg::showInstance("profile", LLSD().with("id", avatar_id)));
|
||||
if (profilefloater)
|
||||
{
|
||||
profilefloater->showClassified(classified_id, edit);
|
||||
}
|
||||
// <FS:Ansariel> Profile selection
|
||||
}
|
||||
// </FS:Ansariel>
|
||||
}
|
||||
}
|
||||
|
||||
//static
|
||||
bool LLAvatarActions::profileVisible(const LLUUID& id)
|
||||
bool LLAvatarActions::profileVisible(const LLUUID& avatar_id)
|
||||
{
|
||||
LLSD sd;
|
||||
sd["id"] = id;
|
||||
LLFloater* browser = getProfileFloater(id);
|
||||
return browser && browser->isShown();
|
||||
sd["id"] = avatar_id;
|
||||
LLFloater* floater = getProfileFloater(avatar_id);
|
||||
return floater && floater->isShown();
|
||||
}
|
||||
|
||||
//static
|
||||
LLFloater* LLAvatarActions::getProfileFloater(const LLUUID& id)
|
||||
LLFloater* LLAvatarActions::getProfileFloater(const LLUUID& avatar_id)
|
||||
{
|
||||
//<FS:KC legacy profiles>
|
||||
if (!gSavedSettings.getBOOL("FSUseWebProfiles"))
|
||||
{
|
||||
FSFloaterProfile* browser = LLFloaterReg::findTypedInstance<FSFloaterProfile>("fs_floater_profile", LLSD().with("id", id));
|
||||
return browser;
|
||||
}
|
||||
//</FS:KC legacy profiles>
|
||||
LLFloaterWebContent *browser = dynamic_cast<LLFloaterWebContent*>
|
||||
(LLFloaterReg::findInstance(get_profile_floater_name(id), LLSD().with("id", id)));
|
||||
return browser;
|
||||
LLFloaterProfile* floater = LLFloaterReg::findTypedInstance<LLFloaterProfile>("profile", LLSD().with("id", avatar_id));
|
||||
return floater;
|
||||
}
|
||||
|
||||
//<FS:KC legacy profiles>
|
||||
// static
|
||||
void LLAvatarActions::showProfileWeb(const LLUUID& id)
|
||||
{
|
||||
if (id.notNull())
|
||||
{
|
||||
LLAvatarNameCache::get(id, boost::bind(&on_avatar_name_show_profile, _1, _2));
|
||||
}
|
||||
}
|
||||
|
||||
// static
|
||||
void LLAvatarActions::showProfileLegacy(const LLUUID& id)
|
||||
{
|
||||
if (id.notNull())
|
||||
{
|
||||
LLFloaterReg::showInstance("fs_floater_profile", LLSD().with("id", id));
|
||||
}
|
||||
}
|
||||
//</FS:KC legacy profiles>
|
||||
|
||||
//static
|
||||
void LLAvatarActions::hideProfile(const LLUUID& id)
|
||||
void LLAvatarActions::hideProfile(const LLUUID& avatar_id)
|
||||
{
|
||||
LLSD sd;
|
||||
sd["id"] = id;
|
||||
LLFloater* browser = getProfileFloater(id);
|
||||
if (browser)
|
||||
sd["id"] = avatar_id;
|
||||
LLFloater* floater = getProfileFloater(avatar_id);
|
||||
if (floater)
|
||||
{
|
||||
browser->closeFloater();
|
||||
floater->closeFloater();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1228,7 +1361,7 @@ bool LLAvatarActions::canShareSelectedItems(LLInventoryPanel* inv_panel /* = NUL
|
|||
}
|
||||
|
||||
// static
|
||||
void LLAvatarActions::toggleBlock(const LLUUID& id)
|
||||
bool LLAvatarActions::toggleBlock(const LLUUID& id)
|
||||
{
|
||||
LLAvatarName av_name;
|
||||
LLAvatarNameCache::get(id, &av_name);
|
||||
|
|
@ -1238,10 +1371,12 @@ void LLAvatarActions::toggleBlock(const LLUUID& id)
|
|||
if (LLMuteList::getInstance()->isMuted(mute.mID, mute.mName))
|
||||
{
|
||||
LLMuteList::getInstance()->remove(mute);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
LLMuteList::getInstance()->add(mute);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -38,6 +38,8 @@ class LLInventoryPanel;
|
|||
class LLFloater;
|
||||
class LLView;
|
||||
|
||||
std::string getProfileURL(const std::string& agent_name, bool feed_only = false);
|
||||
|
||||
/**
|
||||
* Friend-related actions (add, remove, offer teleport, etc)
|
||||
*/
|
||||
|
|
@ -97,17 +99,18 @@ public:
|
|||
static const LLUUID startConference(const uuid_vec_t& ids, const LLUUID& floater_id = LLUUID::null);
|
||||
// </FS:Ansariel>
|
||||
|
||||
/**
|
||||
* Show avatar profile.
|
||||
*/
|
||||
static void showProfile(const LLUUID& id);
|
||||
static void hideProfile(const LLUUID& id);
|
||||
static bool profileVisible(const LLUUID& id);
|
||||
static LLFloater* getProfileFloater(const LLUUID& id);
|
||||
//<FS:KC legacy profiles>
|
||||
static void showProfileWeb(const LLUUID& id);
|
||||
static void showProfileLegacy(const LLUUID& id);
|
||||
//</FS:KC legacy profiles>
|
||||
/**
|
||||
* Show avatar profile.
|
||||
*/
|
||||
static void showProfile(const LLUUID& avatar_id);
|
||||
static void showPicks(const LLUUID& avatar_id);
|
||||
static void showPick(const LLUUID& avatar_id, const LLUUID& pick_id);
|
||||
static void showClassifieds(const LLUUID& avatar_id);
|
||||
static void showClassified(const LLUUID& avatar_id, const LLUUID& classified_id, bool edit = false);
|
||||
static void hideProfile(const LLUUID& avatar_id);
|
||||
static bool profileVisible(const LLUUID& avatar_id);
|
||||
static bool isPickTabSelected(const LLUUID& avatar_id);
|
||||
static LLFloater* getProfileFloater(const LLUUID& avatar_id);
|
||||
|
||||
/**
|
||||
* Show avatar on world map.
|
||||
|
|
@ -136,9 +139,10 @@ public:
|
|||
static void shareWithAvatars(LLView * panel);
|
||||
|
||||
/**
|
||||
* Block/unblock the avatar.
|
||||
* Block/unblock the avatar by id.
|
||||
* Returns true if blocked, returns false if unblocked
|
||||
*/
|
||||
static void toggleBlock(const LLUUID& id);
|
||||
static bool toggleBlock(const LLUUID& id);
|
||||
|
||||
/**
|
||||
* Mute/unmute avatar.
|
||||
|
|
|
|||
|
|
@ -299,8 +299,8 @@ void LLAvatarPropertiesProcessor::processAvatarInterestsReply(LLMessageSystem* m
|
|||
That will suppress the warnings and be compatible with old server versions.
|
||||
WARNING: LLTemplateMessageReader::decodeData: Message from 216.82.37.237:13000 with no handler function received: AvatarInterestsReply
|
||||
*/
|
||||
//<FS:KC legacy profiles>
|
||||
FSInterestsData interests_data;
|
||||
|
||||
LLInterestsData interests_data;
|
||||
|
||||
msg->getUUIDFast( _PREHASH_AgentData, _PREHASH_AgentID, interests_data.agent_id );
|
||||
msg->getUUIDFast( _PREHASH_AgentData, _PREHASH_AvatarID, interests_data.avatar_id );
|
||||
|
|
@ -313,8 +313,7 @@ void LLAvatarPropertiesProcessor::processAvatarInterestsReply(LLMessageSystem* m
|
|||
LLAvatarPropertiesProcessor* self = getInstance();
|
||||
// Request processed, no longer pending
|
||||
self->removePendingRequest(interests_data.avatar_id, APT_INTERESTS_INFO);
|
||||
self->notifyObservers(interests_data.avatar_id, &interests_data, APT_INTERESTS_INFO);
|
||||
//</FS:KC legacy profiles>
|
||||
self->notifyObservers(interests_data.avatar_id, &interests_data, APT_INTERESTS_INFO);
|
||||
}
|
||||
|
||||
void LLAvatarPropertiesProcessor::processAvatarClassifiedsReply(LLMessageSystem* msg, void**)
|
||||
|
|
@ -558,6 +557,29 @@ void LLAvatarPropertiesProcessor::sendClassifiedDelete(const LLUUID& classified_
|
|||
gAgent.sendReliableMessage();
|
||||
}
|
||||
|
||||
void LLAvatarPropertiesProcessor::sendInterestsInfoUpdate(const LLInterestsData* interests_data)
|
||||
{
|
||||
if(!interests_data)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
LLMessageSystem* msg = gMessageSystem;
|
||||
|
||||
msg->newMessage(_PREHASH_AvatarInterestsUpdate);
|
||||
msg->nextBlockFast( _PREHASH_AgentData);
|
||||
msg->addUUIDFast( _PREHASH_AgentID, gAgent.getID() );
|
||||
msg->addUUIDFast( _PREHASH_SessionID, gAgent.getSessionID() );
|
||||
msg->nextBlockFast( _PREHASH_PropertiesData);
|
||||
msg->addU32Fast( _PREHASH_WantToMask, interests_data->want_to_mask);
|
||||
msg->addStringFast( _PREHASH_WantToText, interests_data->want_to_text);
|
||||
msg->addU32Fast( _PREHASH_SkillsMask, interests_data->skills_mask);
|
||||
msg->addStringFast( _PREHASH_SkillsText, interests_data->skills_text);
|
||||
msg->addString( _PREHASH_LanguagesText, interests_data->languages_text);
|
||||
|
||||
gAgent.sendReliableMessage();
|
||||
}
|
||||
|
||||
void LLAvatarPropertiesProcessor::sendPickInfoUpdate(const LLPickData* new_pick)
|
||||
{
|
||||
if (!new_pick) return;
|
||||
|
|
@ -681,28 +703,3 @@ void LLAvatarPropertiesProcessor::removePendingRequest(const LLUUID& avatar_id,
|
|||
timestamp_map_t::key_type key = std::make_pair(avatar_id, type);
|
||||
mRequestTimestamps.erase(key);
|
||||
}
|
||||
|
||||
//<FS:KC legacy profiles>
|
||||
void LLAvatarPropertiesProcessor::sendInterestsInfoUpdate(const FSInterestsData* interests_data)
|
||||
{
|
||||
if(!interests_data)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
LLMessageSystem* msg = gMessageSystem;
|
||||
|
||||
msg->newMessage(_PREHASH_AvatarInterestsUpdate);
|
||||
msg->nextBlockFast( _PREHASH_AgentData);
|
||||
msg->addUUIDFast( _PREHASH_AgentID, gAgent.getID() );
|
||||
msg->addUUIDFast( _PREHASH_SessionID, gAgent.getSessionID() );
|
||||
msg->nextBlockFast( _PREHASH_PropertiesData);
|
||||
msg->addU32Fast( _PREHASH_WantToMask, interests_data->want_to_mask);
|
||||
msg->addStringFast( _PREHASH_WantToText, interests_data->want_to_text);
|
||||
msg->addU32Fast( _PREHASH_SkillsMask, interests_data->skills_mask);
|
||||
msg->addStringFast( _PREHASH_SkillsText, interests_data->skills_text);
|
||||
msg->addString( _PREHASH_LanguagesText, interests_data->languages_text);
|
||||
|
||||
gAgent.sendReliableMessage();
|
||||
}
|
||||
//</FS:KC legacy profiles>
|
||||
|
|
|
|||
|
|
@ -56,15 +56,12 @@ enum EAvatarProcessorType
|
|||
APT_PICKS,
|
||||
APT_PICK_INFO,
|
||||
APT_TEXTURES,
|
||||
//<FS:KC legacy profiles>
|
||||
APT_INTERESTS_INFO,
|
||||
//</FS:KC legacy profiles>
|
||||
APT_CLASSIFIEDS,
|
||||
APT_CLASSIFIED_INFO
|
||||
};
|
||||
|
||||
//<FS:KC legacy profiles>
|
||||
struct FSInterestsData
|
||||
struct LLInterestsData
|
||||
{
|
||||
LLUUID agent_id;
|
||||
LLUUID avatar_id; //target id
|
||||
|
|
@ -74,7 +71,6 @@ struct FSInterestsData
|
|||
std::string skills_text;
|
||||
std::string languages_text;
|
||||
};
|
||||
//</FS:KC legacy profiles>
|
||||
|
||||
struct LLAvatarData
|
||||
{
|
||||
|
|
@ -239,9 +235,7 @@ public:
|
|||
|
||||
void sendClassifiedDelete(const LLUUID& classified_id);
|
||||
|
||||
//<FS:KC legacy profiles>
|
||||
void sendInterestsInfoUpdate(const FSInterestsData* interests_data);
|
||||
//</FS:KC legacy profiles>
|
||||
void sendInterestsInfoUpdate(const LLInterestsData* interests_data);
|
||||
|
||||
// Returns translated, human readable string for account type, such
|
||||
// as "Resident" or "Linden Employee". Used for profiles, inspectors.
|
||||
|
|
|
|||
|
|
@ -712,10 +712,6 @@ void LLAvatarTracker::processChange(LLMessageSystem* msg)
|
|||
if(mBuddyInfo.find(agent_related) != mBuddyInfo.end())
|
||||
{
|
||||
(mBuddyInfo[agent_related])->setRightsTo(new_rights);
|
||||
|
||||
// I'm not totally sure why it adds the agents id to the changed list
|
||||
// nor why it doesn't add the friends's ID.
|
||||
// Add the friend's id to the changed list for contacts list -KC
|
||||
mChangedBuddyIDs.insert(agent_related);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ LLFloaterChatVoiceVolume::LLFloaterChatVoiceVolume(const LLSD& key)
|
|||
void LLFloaterChatVoiceVolume::onOpen(const LLSD& key)
|
||||
{
|
||||
LLInspect::onOpen(key);
|
||||
LLUI::getInstance()->positionViewNearMouse(this);
|
||||
LLInspect::repositionInspector(key);
|
||||
}
|
||||
|
||||
LLFloaterChatVoiceVolume::~LLFloaterChatVoiceVolume()
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@ void LLFloaterDisplayName::onCancel()
|
|||
|
||||
void LLFloaterDisplayName::onReset()
|
||||
{
|
||||
if (LLAvatarNameCache::getInstance()->hasNameLookupURL())
|
||||
if (LLAvatarNameCache::getInstance()->hasNameLookupURL())
|
||||
{
|
||||
LLViewerDisplayName::set("",boost::bind(&LLFloaterDisplayName::onCacheSetName, this, _1, _2, _3));
|
||||
}
|
||||
|
|
@ -194,7 +194,7 @@ void LLFloaterDisplayName::onSave()
|
|||
return;
|
||||
}
|
||||
|
||||
if (LLAvatarNameCache::getInstance()->hasNameLookupURL())
|
||||
if (LLAvatarNameCache::getInstance()->hasNameLookupURL())
|
||||
{
|
||||
LLViewerDisplayName::set(display_name_utf8,boost::bind(&LLFloaterDisplayName::onCacheSetName, this, _1, _2, _3));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -43,7 +43,6 @@
|
|||
#include "llviewercontrol.h"
|
||||
#include "lltoolfocus.h"
|
||||
#include "lltoolmgr.h"
|
||||
#include "llwebprofile.h"
|
||||
|
||||
///----------------------------------------------------------------------------
|
||||
/// Local function declarations, constants, enums, and typedefs
|
||||
|
|
|
|||
|
|
@ -0,0 +1,103 @@
|
|||
/**
|
||||
* @file llfloaterprofile.cpp
|
||||
* @brief Avatar profile floater.
|
||||
*
|
||||
* $LicenseInfo:firstyear=2009&license=viewerlgpl$
|
||||
* Second Life Viewer Source Code
|
||||
* Copyright (C) 2010, Linden Research, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation;
|
||||
* version 2.1 of the License only.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
|
||||
* $/LicenseInfo$
|
||||
*/
|
||||
|
||||
#include "llviewerprecompiledheaders.h"
|
||||
|
||||
#include "llfloaterprofile.h"
|
||||
|
||||
#include "llpanelavatar.h"
|
||||
#include "llpanelprofile.h"
|
||||
#include "llagent.h" //gAgent
|
||||
|
||||
static const std::string PANEL_PROFILE_VIEW = "panel_profile_view";
|
||||
|
||||
LLFloaterProfile::LLFloaterProfile(const LLSD& key)
|
||||
: LLFloater(key),
|
||||
mAvatarId(key["id"].asUUID()),
|
||||
mNameCallbackConnection()
|
||||
{
|
||||
mDefaultRectForGroup = false;
|
||||
}
|
||||
|
||||
LLFloaterProfile::~LLFloaterProfile()
|
||||
{
|
||||
if (mNameCallbackConnection.connected())
|
||||
{
|
||||
mNameCallbackConnection.disconnect();
|
||||
}
|
||||
}
|
||||
|
||||
void LLFloaterProfile::onOpen(const LLSD& key)
|
||||
{
|
||||
mPanelProfile->onOpen(key);
|
||||
|
||||
// Update the avatar name.
|
||||
mNameCallbackConnection = LLAvatarNameCache::get(mAvatarId, boost::bind(&LLFloaterProfile::onAvatarNameCache, this, _1, _2));
|
||||
}
|
||||
|
||||
BOOL LLFloaterProfile::postBuild()
|
||||
{
|
||||
mPanelProfile = findChild<LLPanelProfile>(PANEL_PROFILE_VIEW);
|
||||
|
||||
childSetAction("ok_btn", boost::bind(&LLFloaterProfile::onOKBtn, this));
|
||||
childSetAction("cancel_btn", boost::bind(&LLFloaterProfile::onCancelBtn, this));
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void LLFloaterProfile::showPick(const LLUUID& pick_id)
|
||||
{
|
||||
mPanelProfile->showPick(pick_id);
|
||||
}
|
||||
|
||||
bool LLFloaterProfile::isPickTabSelected()
|
||||
{
|
||||
return mPanelProfile->isPickTabSelected();
|
||||
}
|
||||
|
||||
void LLFloaterProfile::showClassified(const LLUUID& classified_id, bool edit)
|
||||
{
|
||||
mPanelProfile->showClassified(classified_id, edit);
|
||||
}
|
||||
|
||||
void LLFloaterProfile::onOKBtn()
|
||||
{
|
||||
mPanelProfile->apply();
|
||||
closeFloater();
|
||||
}
|
||||
|
||||
void LLFloaterProfile::onCancelBtn()
|
||||
{
|
||||
closeFloater();
|
||||
}
|
||||
|
||||
void LLFloaterProfile::onAvatarNameCache(const LLUUID& agent_id, const LLAvatarName& av_name)
|
||||
{
|
||||
mNameCallbackConnection.disconnect();
|
||||
setTitle(av_name.getCompleteName());
|
||||
}
|
||||
|
||||
// eof
|
||||
|
|
@ -1,59 +1,63 @@
|
|||
/**
|
||||
* @file llfloaterwebprofile.h
|
||||
/**
|
||||
* @file llfloaterprofile.h
|
||||
* @brief Avatar profile floater.
|
||||
*
|
||||
* $LicenseInfo:firstyear=2009&license=viewerlgpl$
|
||||
* Second Life Viewer Source Code
|
||||
* Copyright (C) 2010, Linden Research, Inc.
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation;
|
||||
* version 2.1 of the License only.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*
|
||||
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
|
||||
* $/LicenseInfo$
|
||||
*/
|
||||
|
||||
#ifndef LL_LLFLOATERWEBPROFILE_H
|
||||
#define LL_LLFLOATERWEBPROFILE_H
|
||||
#ifndef LL_LLFLOATERPROFILE_H
|
||||
#define LL_LLFLOATERPROFILE_H
|
||||
|
||||
#include "llfloaterwebcontent.h"
|
||||
#include "llviewermediaobserver.h"
|
||||
#include "llavatarnamecache.h"
|
||||
#include "llfloater.h"
|
||||
|
||||
#include <string>
|
||||
class LLPanelProfile;
|
||||
|
||||
class LLMediaCtrl;
|
||||
|
||||
/**
|
||||
* Displays avatar profile web page.
|
||||
*/
|
||||
class LLFloaterWebProfile
|
||||
: public LLFloaterWebContent
|
||||
class LLFloaterProfile : public LLFloater
|
||||
{
|
||||
LOG_CLASS(LLFloaterWebProfile);
|
||||
LOG_CLASS(LLFloaterProfile);
|
||||
public:
|
||||
typedef LLFloaterWebContent::Params Params;
|
||||
LLFloaterProfile(const LLSD& key);
|
||||
virtual ~LLFloaterProfile();
|
||||
|
||||
LLFloaterWebProfile(const Params& key);
|
||||
/*virtual*/ void onOpen(const LLSD& key);
|
||||
/*virtual*/ BOOL postBuild();
|
||||
|
||||
/*virtual*/ void onOpen(const LLSD& key);
|
||||
/*virtual*/ void handleReshape(const LLRect& new_rect, bool by_user = false);
|
||||
void showPick(const LLUUID& pick_id = LLUUID::null);
|
||||
bool isPickTabSelected();
|
||||
|
||||
static LLFloater* create(const LLSD& key);
|
||||
void showClassified(const LLUUID& classified_id = LLUUID::null, bool edit = false);
|
||||
|
||||
protected:
|
||||
void onOKBtn();
|
||||
void onCancelBtn();
|
||||
|
||||
private:
|
||||
void applyPreferredRect();
|
||||
LLAvatarNameCache::callback_connection_t mNameCallbackConnection;
|
||||
void onAvatarNameCache(const LLUUID& agent_id, const LLAvatarName& av_name);
|
||||
|
||||
LLPanelProfile* mPanelProfile;
|
||||
|
||||
LLUUID mAvatarId;
|
||||
};
|
||||
|
||||
#endif // LL_LLFLOATERWEBPROFILE_H
|
||||
|
||||
#endif // LL_LLFLOATERPROFILE_H
|
||||
|
|
@ -127,7 +127,7 @@ void LLFloaterVoiceVolume::onOpen(const LLSD& data)
|
|||
// Extract appropriate avatar id
|
||||
mAvatarID = data["avatar_id"];
|
||||
|
||||
LLUI::getInstance()->positionViewNearMouse(this);
|
||||
LLInspect::repositionInspector(data);
|
||||
|
||||
getChild<LLUICtrl>("avatar_name")->setValue("");
|
||||
updateVolumeControls();
|
||||
|
|
|
|||
|
|
@ -1,81 +0,0 @@
|
|||
/**
|
||||
* @file llfloaterwebprofile.cpp
|
||||
* @brief Avatar profile floater.
|
||||
*
|
||||
* $LicenseInfo:firstyear=2009&license=viewerlgpl$
|
||||
* Second Life Viewer Source Code
|
||||
* Copyright (C) 2010, Linden Research, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation;
|
||||
* version 2.1 of the License only.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
|
||||
* $/LicenseInfo$
|
||||
*/
|
||||
|
||||
#include "llviewerprecompiledheaders.h"
|
||||
|
||||
#include "llfloaterwebprofile.h"
|
||||
|
||||
#include "llviewercontrol.h"
|
||||
|
||||
LLFloaterWebProfile::LLFloaterWebProfile(const Params& key) :
|
||||
LLFloaterWebContent(key)
|
||||
{
|
||||
}
|
||||
|
||||
void LLFloaterWebProfile::onOpen(const LLSD& key)
|
||||
{
|
||||
Params p(key);
|
||||
p.show_chrome(true);
|
||||
p.window_class("profile");
|
||||
p.allow_address_entry(false);
|
||||
p.trusted_content(true);
|
||||
LLFloaterWebContent::onOpen(p);
|
||||
applyPreferredRect();
|
||||
}
|
||||
|
||||
// virtual
|
||||
void LLFloaterWebProfile::handleReshape(const LLRect& new_rect, bool by_user)
|
||||
{
|
||||
LL_DEBUGS() << "handleReshape: " << new_rect << LL_ENDL;
|
||||
|
||||
if (by_user && !isMinimized())
|
||||
{
|
||||
LL_DEBUGS() << "Storing new rect" << LL_ENDL;
|
||||
gSavedSettings.setRect("WebProfileFloaterRect", new_rect);
|
||||
}
|
||||
|
||||
LLFloaterWebContent::handleReshape(new_rect, by_user);
|
||||
}
|
||||
|
||||
LLFloater* LLFloaterWebProfile::create(const LLSD& key)
|
||||
{
|
||||
LLFloaterWebContent::Params p(key);
|
||||
preCreate(p);
|
||||
return new LLFloaterWebProfile(p);
|
||||
}
|
||||
|
||||
void LLFloaterWebProfile::applyPreferredRect()
|
||||
{
|
||||
const LLRect preferred_rect = gSavedSettings.getRect("WebProfileFloaterRect");
|
||||
LL_DEBUGS() << "Applying preferred rect: " << preferred_rect << LL_ENDL;
|
||||
|
||||
// Don't override position that may have been set by floater stacking code.
|
||||
LLRect new_rect = getRect();
|
||||
new_rect.setLeftTopAndSize(
|
||||
new_rect.mLeft, new_rect.mTop,
|
||||
preferred_rect.getWidth(), preferred_rect.getHeight());
|
||||
setShape(new_rect);
|
||||
}
|
||||
|
|
@ -70,8 +70,7 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
//static const LLGroupComparator GROUP_COMPARATOR;
|
||||
static LLGroupComparator GROUP_COMPARATOR; // <ND/> const makes GCC >= 4.6 very angry about not user defined default ctor.
|
||||
static LLGroupComparator GROUP_COMPARATOR;
|
||||
|
||||
LLGroupList::Params::Params()
|
||||
: for_agent("for_agent", true)
|
||||
|
|
@ -80,7 +79,7 @@ LLGroupList::Params::Params()
|
|||
|
||||
LLGroupList::LLGroupList(const Params& p)
|
||||
: LLFlatListViewEx(p)
|
||||
, mForAgent(p.for_agent)
|
||||
, mForAgent(p.for_agent)
|
||||
, mDirty(true) // to force initial update
|
||||
, mShowIcons(false)
|
||||
, mShowNone(true)
|
||||
|
|
@ -98,18 +97,18 @@ LLGroupList::LLGroupList(const Params& p)
|
|||
|
||||
LLGroupList::~LLGroupList()
|
||||
{
|
||||
if (mForAgent) gAgent.removeListener(this);
|
||||
if (mContextMenuHandle.get()) mContextMenuHandle.get()->die();
|
||||
if (mForAgent) gAgent.removeListener(this);
|
||||
if (mContextMenuHandle.get()) mContextMenuHandle.get()->die();
|
||||
}
|
||||
|
||||
void LLGroupList::enableForAgent(bool show_icons)
|
||||
{
|
||||
mForAgent = true;
|
||||
|
||||
mShowIcons = mForAgent && gSavedSettings.getBOOL("GroupListShowIcons") && show_icons;
|
||||
mShowIcons = mForAgent && gSavedSettings.getBOOL("GroupListShowIcons") && show_icons;
|
||||
|
||||
// Listen for agent group changes.
|
||||
gAgent.addListener(this, "new group");
|
||||
// Listen for agent group changes.
|
||||
gAgent.addListener(this, "new group");
|
||||
|
||||
// Set up context menu.
|
||||
LLUICtrl::CommitCallbackRegistry::ScopedRegistrar registrar;
|
||||
|
|
@ -138,15 +137,15 @@ BOOL LLGroupList::handleRightMouseDown(S32 x, S32 y, MASK mask)
|
|||
{
|
||||
BOOL handled = LLUICtrl::handleRightMouseDown(x, y, mask);
|
||||
|
||||
if (mForAgent)
|
||||
{
|
||||
LLToggleableMenu* context_menu = mContextMenuHandle.get();
|
||||
if (context_menu && size() > 0)
|
||||
{
|
||||
context_menu->buildDrawLabels();
|
||||
context_menu->updateParent(LLMenuGL::sMenuContainer);
|
||||
LLMenuGL::showPopup(this, context_menu, x, y);
|
||||
}
|
||||
if (mForAgent)
|
||||
{
|
||||
LLToggleableMenu* context_menu = mContextMenuHandle.get();
|
||||
if (context_menu && size() > 0)
|
||||
{
|
||||
context_menu->buildDrawLabels();
|
||||
context_menu->updateParent(LLMenuGL::sMenuContainer);
|
||||
LLMenuGL::showPopup(this, context_menu, x, y);
|
||||
}
|
||||
}
|
||||
|
||||
return handled;
|
||||
|
|
@ -159,7 +158,7 @@ BOOL LLGroupList::handleDoubleClick(S32 x, S32 y, MASK mask)
|
|||
// Handle double click only for the selected item in the list, skip clicks on empty space.
|
||||
if (handled)
|
||||
{
|
||||
if (mDoubleClickSignal)
|
||||
if (mDoubleClickSignal && getItemsRect().pointInRect(x, y))
|
||||
{
|
||||
(*mDoubleClickSignal)(this, x, y, mask);
|
||||
}
|
||||
|
|
@ -191,51 +190,49 @@ static bool findInsensitive(std::string haystack, const std::string& needle_uppe
|
|||
|
||||
void LLGroupList::refresh()
|
||||
{
|
||||
if (mForAgent)
|
||||
{
|
||||
const LLUUID& highlight_id = gAgent.getGroupID();
|
||||
S32 count = gAgent.mGroups.size();
|
||||
LLUUID id;
|
||||
bool have_filter = !mNameFilter.empty();
|
||||
if (mForAgent)
|
||||
{
|
||||
const LLUUID& highlight_id = gAgent.getGroupID();
|
||||
S32 count = gAgent.mGroups.size();
|
||||
LLUUID id;
|
||||
bool have_filter = !mNameFilter.empty();
|
||||
|
||||
clear();
|
||||
clear();
|
||||
|
||||
for(S32 i = 0; i < count; ++i)
|
||||
{
|
||||
id = gAgent.mGroups.at(i).mID;
|
||||
const LLGroupData& group_data = gAgent.mGroups.at(i);
|
||||
if (have_filter && !findInsensitive(group_data.mName, mNameFilter))
|
||||
continue;
|
||||
// <FS:Ansariel> Mark groups hidden in profile
|
||||
//addNewItem(id, group_data.mName, group_data.mInsigniaID, ADD_BOTTOM);
|
||||
addNewItem(id, group_data.mName, group_data.mInsigniaID, ADD_BOTTOM, group_data.mListInProfile);
|
||||
}
|
||||
for(S32 i = 0; i < count; ++i)
|
||||
{
|
||||
id = gAgent.mGroups.at(i).mID;
|
||||
const LLGroupData& group_data = gAgent.mGroups.at(i);
|
||||
if (have_filter && !findInsensitive(group_data.mName, mNameFilter))
|
||||
continue;
|
||||
addNewItem(id, group_data.mName, group_data.mInsigniaID, ADD_BOTTOM, group_data.mListInProfile);
|
||||
}
|
||||
|
||||
// Sort the list.
|
||||
sort();
|
||||
// Sort the list.
|
||||
sort();
|
||||
|
||||
// Add "none" to list at top if filter not set (what's the point of filtering "none"?).
|
||||
// but only if some real groups exists. EXT-4838
|
||||
if (!have_filter && count > 0 && mShowNone)
|
||||
{
|
||||
std::string loc_none = LLTrans::getString("GroupsNone");
|
||||
addNewItem(LLUUID::null, loc_none, LLUUID::null, ADD_TOP);
|
||||
}
|
||||
// Add "none" to list at top if filter not set (what's the point of filtering "none"?).
|
||||
// but only if some real groups exists. EXT-4838
|
||||
if (!have_filter && count > 0 && mShowNone)
|
||||
{
|
||||
std::string loc_none = LLTrans::getString("GroupsNone");
|
||||
addNewItem(LLUUID::null, loc_none, LLUUID::null, ADD_TOP);
|
||||
}
|
||||
|
||||
selectItemByUUID(highlight_id);
|
||||
}
|
||||
else
|
||||
{
|
||||
clear();
|
||||
selectItemByUUID(highlight_id);
|
||||
}
|
||||
else
|
||||
{
|
||||
clear();
|
||||
|
||||
for (group_map_t::iterator it = mGroups.begin(); it != mGroups.end(); ++it)
|
||||
{
|
||||
addNewItem(it->second, it->first, LLUUID::null, ADD_BOTTOM);
|
||||
}
|
||||
for (group_map_t::iterator it = mGroups.begin(); it != mGroups.end(); ++it)
|
||||
{
|
||||
addNewItem(it->second, it->first, LLUUID::null, ADD_BOTTOM);
|
||||
}
|
||||
|
||||
// Sort the list.
|
||||
sort();
|
||||
}
|
||||
// Sort the list.
|
||||
sort();
|
||||
}
|
||||
|
||||
setDirty(false);
|
||||
onCommit();
|
||||
|
|
@ -258,16 +255,14 @@ void LLGroupList::toggleIcons()
|
|||
|
||||
void LLGroupList::setGroups(const std::map< std::string,LLUUID> group_list)
|
||||
{
|
||||
mGroups = group_list;
|
||||
setDirty(true);
|
||||
mGroups = group_list;
|
||||
setDirty(true);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// PRIVATE Section
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// <FS:Ansariel> Mark groups hidden in profile
|
||||
//void LLGroupList::addNewItem(const LLUUID& id, const std::string& name, const LLUUID& icon_id, EAddPosition pos)
|
||||
void LLGroupList::addNewItem(const LLUUID& id, const std::string& name, const LLUUID& icon_id, EAddPosition pos, bool visible_in_profile)
|
||||
{
|
||||
LLGroupListItem* item = new LLGroupListItem(mForAgent && mShowIcons);
|
||||
|
|
@ -279,7 +274,7 @@ void LLGroupList::addNewItem(const LLUUID& id, const std::string& name, const LL
|
|||
item->getChildView("info_btn")->setVisible( false);
|
||||
item->getChildView("profile_btn")->setVisible( false);
|
||||
item->setGroupIconVisible(mShowIcons);
|
||||
|
||||
item->setVisibleInProfile(visible_in_profile);
|
||||
// <FS:Ansariel> Mark groups hidden in profile
|
||||
item->setVisibleInProfile(visible_in_profile);
|
||||
// </FS:Ansariel> Mark groups hidden in profile
|
||||
|
|
@ -299,30 +294,28 @@ bool LLGroupList::handleEvent(LLPointer<LLOldEvents::LLEvent> event, const LLSD&
|
|||
return true;
|
||||
}
|
||||
|
||||
// <FS:Ansariel> Mark groups hidden in profile
|
||||
if (event->desc() == "value_changed")
|
||||
{
|
||||
LLSD data = event->getValue();
|
||||
if (data.has("group_id") && data.has("visible"))
|
||||
{
|
||||
LLUUID group_id = data["group_id"].asUUID();
|
||||
bool visible = data["visible"].asBoolean();
|
||||
if (event->desc() == "value_changed")
|
||||
{
|
||||
LLSD data = event->getValue();
|
||||
if (data.has("group_id") && data.has("visible"))
|
||||
{
|
||||
LLUUID group_id = data["group_id"].asUUID();
|
||||
bool visible = data["visible"].asBoolean();
|
||||
|
||||
std::vector<LLPanel*> items;
|
||||
getItems(items);
|
||||
for (std::vector<LLPanel*>::iterator it = items.begin(); it != items.end(); ++it)
|
||||
{
|
||||
LLGroupListItem* item = dynamic_cast<LLGroupListItem*>(*it);
|
||||
if (item && item->getGroupID() == group_id)
|
||||
{
|
||||
item->setVisibleInProfile(visible);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
// </FS:Ansariel>
|
||||
std::vector<LLPanel*> items;
|
||||
getItems(items);
|
||||
for (std::vector<LLPanel*>::iterator it = items.begin(); it != items.end(); ++it)
|
||||
{
|
||||
LLGroupListItem* item = dynamic_cast<LLGroupListItem*>(*it);
|
||||
if (item && item->getGroupID() == group_id)
|
||||
{
|
||||
item->setVisibleInProfile(visible);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
@ -394,14 +387,18 @@ mGroupNameBox(NULL),
|
|||
mInfoBtn(NULL),
|
||||
mGroupID(LLUUID::null)
|
||||
{
|
||||
if (for_agent)
|
||||
buildFromFile( "panel_group_list_item.xml");
|
||||
else
|
||||
buildFromFile( "panel_group_list_item_short.xml");
|
||||
if (for_agent)
|
||||
{
|
||||
buildFromFile( "panel_group_list_item.xml");
|
||||
}
|
||||
else
|
||||
{
|
||||
buildFromFile( "panel_group_list_item_short.xml");
|
||||
}
|
||||
|
||||
// Remember group icon width including its padding from the name text box,
|
||||
// so that we can hide and show the icon again later.
|
||||
if (!sIconWidth)
|
||||
if (!sIconWidth && mGroupNameBox)
|
||||
{
|
||||
sIconWidth = mGroupNameBox->getRect().mLeft - mGroupIcon->getRect().mLeft;
|
||||
}
|
||||
|
|
@ -493,12 +490,10 @@ void LLGroupListItem::setGroupIconVisible(bool visible)
|
|||
mGroupNameBox->setRect(name_rect);
|
||||
}
|
||||
|
||||
// <FS:Ansariel> Mark groups hidden in profile
|
||||
void LLGroupListItem::setVisibleInProfile(bool visible)
|
||||
{
|
||||
mGroupNameBox->setColor(LLUIColorTable::instance().getColor((visible ? "GroupVisibleInProfile" : "GroupHiddenInProfile"), LLColor4::red).get());
|
||||
mGroupNameBox->setColor(LLUIColorTable::instance().getColor((visible ? "GroupVisibleInProfile" : "GroupHiddenInProfile"), LLColor4::red).get());
|
||||
}
|
||||
// </FS:Ansariel> Mark groups hidden in profile
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// Private Section
|
||||
|
|
@ -536,11 +531,10 @@ void LLGroupListItem::onProfileBtnClick()
|
|||
void LLGroupListItem::changed(LLGroupChange gc)
|
||||
{
|
||||
LLGroupMgrGroupData* group_data = LLGroupMgr::getInstance()->getGroupData(mID);
|
||||
// <FS:Ansariel> FIRE-22148: Only update group icon if the received group data actually contains group icon info
|
||||
//if (group_data)
|
||||
if ((gc == GC_ALL || gc == GC_PROPERTIES) && group_data)
|
||||
// </FS:Ansariel>
|
||||
setGroupIconID(group_data->mInsigniaID);
|
||||
{
|
||||
setGroupIconID(group_data->mInsigniaID);
|
||||
}
|
||||
}
|
||||
|
||||
//EOF
|
||||
|
|
|
|||
|
|
@ -50,8 +50,8 @@ class LLGroupList: public LLFlatListViewEx, public LLOldEvents::LLSimpleListener
|
|||
public:
|
||||
struct Params : public LLInitParam::Block<Params, LLFlatListViewEx::Params>
|
||||
{
|
||||
Optional<bool> for_agent;
|
||||
Params();
|
||||
Optional<bool> for_agent;
|
||||
Params();
|
||||
};
|
||||
|
||||
LLGroupList(const Params& p);
|
||||
|
|
@ -66,17 +66,15 @@ public:
|
|||
void setNameFilter(const std::string& filter);
|
||||
void toggleIcons();
|
||||
bool getIconsVisible() const { return mShowIcons; }
|
||||
void setIconsVisible(bool show_icons) { mShowIcons = show_icons; }
|
||||
void setShowNone(bool show_none) { mShowNone = show_none; }
|
||||
void setGroups(const std::map< std::string,LLUUID> group_list);
|
||||
void setIconsVisible(bool show_icons) { mShowIcons = show_icons; }
|
||||
void setShowNone(bool show_none) { mShowNone = show_none; }
|
||||
void setGroups(const std::map< std::string,LLUUID> group_list);
|
||||
|
||||
LLToggleableMenu* getContextMenu() const { return mContextMenuHandle.get(); }
|
||||
|
||||
private:
|
||||
void setDirty(bool val = true) { mDirty = val; }
|
||||
void refresh();
|
||||
// <FS:Ansariel> Mark groups hidden in profile
|
||||
//void addNewItem(const LLUUID& id, const std::string& name, const LLUUID& icon_id, EAddPosition pos = ADD_BOTTOM);
|
||||
void addNewItem(const LLUUID& id, const std::string& name, const LLUUID& icon_id, EAddPosition pos = ADD_BOTTOM, bool visible_in_profile = true);
|
||||
bool handleEvent(LLPointer<LLOldEvents::LLEvent> event, const LLSD& userdata); // called on agent group list changes
|
||||
|
||||
|
|
@ -89,10 +87,10 @@ private:
|
|||
bool mDirty;
|
||||
std::string mNameFilter;
|
||||
|
||||
bool mForAgent;
|
||||
bool mForAgent;
|
||||
bool mShowNone;
|
||||
typedef std::map< std::string,LLUUID> group_map_t;
|
||||
group_map_t mGroups;
|
||||
typedef std::map< std::string,LLUUID> group_map_t;
|
||||
group_map_t mGroups;
|
||||
};
|
||||
|
||||
class LLButton;
|
||||
|
|
@ -103,7 +101,7 @@ class LLGroupListItem : public LLPanel
|
|||
, public LLGroupMgrObserver
|
||||
{
|
||||
public:
|
||||
LLGroupListItem(bool for_agent);
|
||||
LLGroupListItem(bool for_agent);
|
||||
~LLGroupListItem();
|
||||
/*virtual*/ BOOL postBuild();
|
||||
/*virtual*/ void setValue(const LLSD& value);
|
||||
|
|
@ -120,9 +118,7 @@ public:
|
|||
|
||||
virtual void changed(LLGroupChange gc);
|
||||
|
||||
// <FS:Ansariel> Mark groups hidden in profile
|
||||
void setVisibleInProfile(bool visible);
|
||||
|
||||
void setVisibleInProfile(bool visible);
|
||||
private:
|
||||
void setActive(bool active);
|
||||
void onInfoBtnClick();
|
||||
|
|
|
|||
|
|
@ -147,3 +147,19 @@ bool LLInspect::childHasVisiblePopupMenu()
|
|||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void LLInspect::repositionInspector(const LLSD& data)
|
||||
{
|
||||
// Position the inspector relative to the mouse cursor
|
||||
// Similar to how tooltips are positioned
|
||||
// See LLToolTipMgr::createToolTip
|
||||
if (data.has("pos"))
|
||||
{
|
||||
LLUI::getInstance()->positionViewNearMouse(this, data["pos"]["x"].asInteger(), data["pos"]["y"].asInteger());
|
||||
}
|
||||
else
|
||||
{
|
||||
LLUI::getInstance()->positionViewNearMouse(this);
|
||||
}
|
||||
applyRectControl();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -49,6 +49,8 @@ public:
|
|||
|
||||
/// Inspectors close themselves when they lose focus
|
||||
/*virtual*/ void onFocusLost();
|
||||
|
||||
void repositionInspector(const LLSD& data);
|
||||
|
||||
protected:
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,6 @@
|
|||
#include "llfloater.h"
|
||||
#include "llfloaterreg.h"
|
||||
#include "lltextbox.h"
|
||||
#include "lltooltip.h" // positionViewNearMouse()
|
||||
#include "lltrans.h"
|
||||
|
||||
// <FS:Ansariel> Undo CHUI-90 and make avatar inspector useful again
|
||||
|
|
@ -320,17 +319,7 @@ void LLInspectAvatar::onOpen(const LLSD& data)
|
|||
getChild<LLUICtrl>("gear_btn")->setVisible(!self);
|
||||
// </FS:Ansariel>
|
||||
|
||||
// Position the inspector relative to the mouse cursor
|
||||
// Similar to how tooltips are positioned
|
||||
// See LLToolTipMgr::createToolTip
|
||||
if (data.has("pos"))
|
||||
{
|
||||
LLUI::getInstance()->positionViewNearMouse(this, data["pos"]["x"].asInteger(), data["pos"]["y"].asInteger());
|
||||
}
|
||||
else
|
||||
{
|
||||
LLUI::getInstance()->positionViewNearMouse(this);
|
||||
}
|
||||
LLInspect::repositionInspector(data);
|
||||
|
||||
// Generate link to avatar profile.
|
||||
// <FS:Ansariel> Undo CHUI-90 and make avatar inspector useful again
|
||||
|
|
|
|||
|
|
@ -38,7 +38,6 @@
|
|||
#include "llfloater.h"
|
||||
#include "llfloaterreg.h"
|
||||
#include "llresmgr.h" // getMonetaryString()
|
||||
#include "lltooltip.h" // positionViewNearMouse()
|
||||
#include "lltrans.h"
|
||||
#include "lluictrl.h"
|
||||
#include "llgroupiconctrl.h"
|
||||
|
|
@ -124,17 +123,7 @@ void LLInspectGroup::onOpen(const LLSD& data)
|
|||
|
||||
setGroupID(data["group_id"]);
|
||||
|
||||
// Position the inspector relative to the mouse cursor
|
||||
// Similar to how tooltips are positioned
|
||||
// See LLToolTipMgr::createToolTip
|
||||
if (data.has("pos"))
|
||||
{
|
||||
LLUI::getInstance()->positionViewNearMouse(this, data["pos"]["x"].asInteger(), data["pos"]["y"].asInteger());
|
||||
}
|
||||
else
|
||||
{
|
||||
LLUI::getInstance()->positionViewNearMouse(this);
|
||||
}
|
||||
LLInspect::repositionInspector(data);
|
||||
|
||||
// can't call from constructor as widgets are not built yet
|
||||
requestUpdate();
|
||||
|
|
|
|||
|
|
@ -54,7 +54,6 @@
|
|||
#include "lltextbox.h" // for description truncation
|
||||
#include "lltoggleablemenu.h"
|
||||
#include "lltrans.h"
|
||||
#include "llui.h" // positionViewNearMouse()
|
||||
#include "lluictrl.h"
|
||||
|
||||
class LLViewerObject;
|
||||
|
|
@ -202,17 +201,8 @@ void LLInspectObject::onOpen(const LLSD& data)
|
|||
{
|
||||
mObjectFace = data["object_face"];
|
||||
}
|
||||
// Position the inspector relative to the mouse cursor
|
||||
// Similar to how tooltips are positioned
|
||||
// See LLToolTipMgr::createToolTip
|
||||
if (data.has("pos"))
|
||||
{
|
||||
LLUI::getInstance()->positionViewNearMouse(this, data["pos"]["x"].asInteger(), data["pos"]["y"].asInteger());
|
||||
}
|
||||
else
|
||||
{
|
||||
LLUI::getInstance()->positionViewNearMouse(this);
|
||||
}
|
||||
|
||||
LLInspect::repositionInspector(data);
|
||||
|
||||
// Promote hovered object to a complete selection, which will also force
|
||||
// a request for selected object data off the network
|
||||
|
|
|
|||
|
|
@ -124,17 +124,7 @@ void LLInspectRemoteObject::onOpen(const LLSD& data)
|
|||
// update the inspector with the current object state
|
||||
update();
|
||||
|
||||
// Position the inspector relative to the mouse cursor
|
||||
// Similar to how tooltips are positioned
|
||||
// See LLToolTipMgr::createToolTip
|
||||
if (data.has("pos"))
|
||||
{
|
||||
LLUI::getInstance()->positionViewNearMouse(this, data["pos"]["x"].asInteger(), data["pos"]["y"].asInteger());
|
||||
}
|
||||
else
|
||||
{
|
||||
LLUI::getInstance()->positionViewNearMouse(this);
|
||||
}
|
||||
LLInspect::repositionInspector(data);
|
||||
}
|
||||
|
||||
void LLInspectRemoteObject::onClickMap()
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ void LLInspectToast::onOpen(const LLSD& notification_id)
|
|||
panel_rect = panel->getRect();
|
||||
reshape(panel_rect.getWidth(), panel_rect.getHeight());
|
||||
|
||||
LLUI::getInstance()->positionViewNearMouse(this);
|
||||
LLInspect::repositionInspector(notification_id);
|
||||
}
|
||||
|
||||
// virtual
|
||||
|
|
|
|||
|
|
@ -1,25 +1,25 @@
|
|||
/**
|
||||
/**
|
||||
* @file llpanelavatar.cpp
|
||||
* @brief LLPanelAvatar and related class implementations
|
||||
*
|
||||
* $LicenseInfo:firstyear=2004&license=viewerlgpl$
|
||||
* Second Life Viewer Source Code
|
||||
* Copyright (C) 2010, Linden Research, Inc.
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation;
|
||||
* version 2.1 of the License only.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*
|
||||
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
|
||||
* $/LicenseInfo$
|
||||
*/
|
||||
|
|
@ -28,172 +28,107 @@
|
|||
#include "llpanelavatar.h"
|
||||
|
||||
#include "llagent.h"
|
||||
#include "llavataractions.h"
|
||||
#include "llcallingcard.h"
|
||||
#include "llcombobox.h"
|
||||
#include "lldateutil.h" // ageFromDate()
|
||||
#include "llimview.h"
|
||||
#include "llmenubutton.h"
|
||||
#include "llnotificationsutil.h"
|
||||
#include "llslurl.h"
|
||||
#include "lltexteditor.h"
|
||||
#include "lltexturectrl.h"
|
||||
#include "lltoggleablemenu.h"
|
||||
#include "llloadingindicator.h"
|
||||
#include "lltooldraganddrop.h"
|
||||
#include "llscrollcontainer.h"
|
||||
#include "llavatariconctrl.h"
|
||||
#include "llfloaterreg.h"
|
||||
#include "llnotificationsutil.h"
|
||||
#include "llvoiceclient.h"
|
||||
#include "lltextbox.h"
|
||||
#include "lltrans.h"
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// Class LLDropTarget
|
||||
//
|
||||
// This handy class is a simple way to drop something on another
|
||||
// view. It handles drop events, always setting itself to the size of
|
||||
// its parent.
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// LLProfileDropTarget
|
||||
|
||||
class LLDropTarget : public LLView
|
||||
{
|
||||
public:
|
||||
struct Params : public LLInitParam::Block<Params, LLView::Params>
|
||||
{
|
||||
Optional<LLUUID> agent_id;
|
||||
Params()
|
||||
: agent_id("agent_id")
|
||||
{
|
||||
changeDefault(mouse_opaque, false);
|
||||
changeDefault(follows.flags, FOLLOWS_ALL);
|
||||
}
|
||||
};
|
||||
|
||||
LLDropTarget(const Params&);
|
||||
~LLDropTarget();
|
||||
|
||||
void doDrop(EDragAndDropType cargo_type, void* cargo_data);
|
||||
|
||||
//
|
||||
// LLView functionality
|
||||
virtual BOOL handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop,
|
||||
EDragAndDropType cargo_type,
|
||||
void* cargo_data,
|
||||
EAcceptance* accept,
|
||||
std::string& tooltip_msg);
|
||||
void setAgentID(const LLUUID &agent_id) { mAgentID = agent_id; }
|
||||
protected:
|
||||
LLUUID mAgentID;
|
||||
};
|
||||
|
||||
LLDropTarget::LLDropTarget(const LLDropTarget::Params& p)
|
||||
: LLView(p),
|
||||
mAgentID(p.agent_id)
|
||||
LLProfileDropTarget::LLProfileDropTarget(const LLProfileDropTarget::Params& p)
|
||||
: LLView(p),
|
||||
mAgentID(p.agent_id)
|
||||
{}
|
||||
|
||||
LLDropTarget::~LLDropTarget()
|
||||
{}
|
||||
|
||||
void LLDropTarget::doDrop(EDragAndDropType cargo_type, void* cargo_data)
|
||||
void LLProfileDropTarget::doDrop(EDragAndDropType cargo_type, void* cargo_data)
|
||||
{
|
||||
LL_INFOS() << "LLDropTarget::doDrop()" << LL_ENDL;
|
||||
LL_INFOS() << "LLProfileDropTarget::doDrop()" << LL_ENDL;
|
||||
}
|
||||
|
||||
BOOL LLDropTarget::handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop,
|
||||
EDragAndDropType cargo_type,
|
||||
void* cargo_data,
|
||||
EAcceptance* accept,
|
||||
std::string& tooltip_msg)
|
||||
BOOL LLProfileDropTarget::handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop,
|
||||
EDragAndDropType cargo_type,
|
||||
void* cargo_data,
|
||||
EAcceptance* accept,
|
||||
std::string& tooltip_msg)
|
||||
{
|
||||
if(getParent())
|
||||
{
|
||||
LLToolDragAndDrop::handleGiveDragAndDrop(mAgentID, LLUUID::null, drop,
|
||||
cargo_type, cargo_data, accept);
|
||||
if (getParent())
|
||||
{
|
||||
LLToolDragAndDrop::handleGiveDragAndDrop(mAgentID, LLUUID::null, drop,
|
||||
cargo_type, cargo_data, accept);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static LLDefaultChildRegistry::Register<LLDropTarget> r("drop_target");
|
||||
static LLDefaultChildRegistry::Register<LLProfileDropTarget> r("profile_drop_target");
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// LLPanelProfileTab
|
||||
|
||||
LLPanelProfileTab::LLPanelProfileTab()
|
||||
: LLPanel()
|
||||
, mAvatarId(LLUUID::null)
|
||||
, mLoading(false)
|
||||
, mLoaded(false)
|
||||
, mEmbedded(false)
|
||||
, mSelfProfile(false)
|
||||
{
|
||||
}
|
||||
|
||||
LLPanelProfileTab::~LLPanelProfileTab()
|
||||
{
|
||||
if(getAvatarId().notNull())
|
||||
{
|
||||
LLAvatarPropertiesProcessor::getInstance()->removeObserver(getAvatarId(),this);
|
||||
}
|
||||
if(getAvatarId().notNull())
|
||||
{
|
||||
LLAvatarPropertiesProcessor::getInstance()->removeObserver(getAvatarId(),this);
|
||||
}
|
||||
}
|
||||
|
||||
void LLPanelProfileTab::setAvatarId(const LLUUID& id)
|
||||
void LLPanelProfileTab::setAvatarId(const LLUUID& avatar_id)
|
||||
{
|
||||
if(id.notNull())
|
||||
{
|
||||
if(getAvatarId().notNull())
|
||||
{
|
||||
LLAvatarPropertiesProcessor::getInstance()->removeObserver(mAvatarId,this);
|
||||
}
|
||||
mAvatarId = id;
|
||||
LLAvatarPropertiesProcessor::getInstance()->addObserver(getAvatarId(),this);
|
||||
}
|
||||
if (avatar_id.notNull())
|
||||
{
|
||||
if (getAvatarId().notNull())
|
||||
{
|
||||
LLAvatarPropertiesProcessor::getInstance()->removeObserver(mAvatarId, this);
|
||||
}
|
||||
mAvatarId = avatar_id;
|
||||
LLAvatarPropertiesProcessor::getInstance()->addObserver(getAvatarId(), this);
|
||||
|
||||
mSelfProfile = (getAvatarId() == gAgentID);
|
||||
}
|
||||
}
|
||||
|
||||
void LLPanelProfileTab::onOpen(const LLSD& key)
|
||||
{
|
||||
// Don't reset panel if we are opening it for same avatar.
|
||||
if(getAvatarId() != key.asUUID())
|
||||
{
|
||||
resetControls();
|
||||
resetData();
|
||||
// Update data even if we are viewing same avatar profile as some data might been changed.
|
||||
setAvatarId(key.asUUID());
|
||||
|
||||
scrollToTop();
|
||||
}
|
||||
|
||||
// Update data even if we are viewing same avatar profile as some data might been changed.
|
||||
setAvatarId(key.asUUID());
|
||||
updateData();
|
||||
updateButtons();
|
||||
}
|
||||
|
||||
void LLPanelProfileTab::scrollToTop()
|
||||
{
|
||||
LLScrollContainer* scrollContainer = findChild<LLScrollContainer>("profile_scroll");
|
||||
if (scrollContainer)
|
||||
scrollContainer->goToTop();
|
||||
}
|
||||
|
||||
void LLPanelProfileTab::onMapButtonClick()
|
||||
{
|
||||
LLAvatarActions::showOnMap(getAvatarId());
|
||||
setApplyProgress(true);
|
||||
}
|
||||
|
||||
void LLPanelProfileTab::updateButtons()
|
||||
{
|
||||
bool is_buddy_online = LLAvatarTracker::instance().isBuddyOnline(getAvatarId());
|
||||
|
||||
if(LLAvatarActions::isFriend(getAvatarId()))
|
||||
{
|
||||
getChildView("teleport")->setEnabled(is_buddy_online);
|
||||
}
|
||||
else
|
||||
{
|
||||
getChildView("teleport")->setEnabled(true);
|
||||
}
|
||||
setApplyProgress(false);
|
||||
|
||||
bool enable_map_btn = (is_buddy_online &&
|
||||
is_agent_mappable(getAvatarId()))
|
||||
|| gAgent.isGodlike();
|
||||
getChildView("show_on_map_btn")->setEnabled(enable_map_btn);
|
||||
mLoaded = true;
|
||||
}
|
||||
|
||||
void LLPanelProfileTab::setApplyProgress(bool started)
|
||||
{
|
||||
LLLoadingIndicator* indicator = findChild<LLLoadingIndicator>("progress_indicator");
|
||||
|
||||
if (indicator)
|
||||
{
|
||||
indicator->setVisible(started);
|
||||
|
||||
if (started)
|
||||
{
|
||||
indicator->start();
|
||||
}
|
||||
else
|
||||
{
|
||||
indicator->stop();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,25 +1,25 @@
|
|||
/**
|
||||
/**
|
||||
* @file llpanelavatar.h
|
||||
* @brief LLPanelAvatar and related class definitions
|
||||
* @brief Legacy profile panel base class
|
||||
*
|
||||
* $LicenseInfo:firstyear=2004&license=viewerlgpl$
|
||||
* $LicenseInfo:firstyear=2019&license=viewerlgpl$
|
||||
* Second Life Viewer Source Code
|
||||
* Copyright (C) 2010, Linden Research, Inc.
|
||||
*
|
||||
* Copyright (C) 2019, Linden Research, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation;
|
||||
* version 2.1 of the License only.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*
|
||||
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
|
||||
* $/LicenseInfo$
|
||||
*/
|
||||
|
|
@ -29,80 +29,125 @@
|
|||
|
||||
#include "llpanel.h"
|
||||
#include "llavatarpropertiesprocessor.h"
|
||||
#include "llcallingcard.h"
|
||||
#include "llvoiceclient.h"
|
||||
#include "llavatarnamecache.h"
|
||||
|
||||
class LLComboBox;
|
||||
class LLLineEditor;
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// Class LLProfileDropTarget
|
||||
//
|
||||
// This handy class is a simple way to drop something on another
|
||||
// view. It handles drop events, always setting itself to the size of
|
||||
// its parent.
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
class LLProfileDropTarget : public LLView
|
||||
{
|
||||
public:
|
||||
struct Params : public LLInitParam::Block<Params, LLView::Params>
|
||||
{
|
||||
Optional<LLUUID> agent_id;
|
||||
Params()
|
||||
: agent_id("agent_id")
|
||||
{
|
||||
changeDefault(mouse_opaque, false);
|
||||
changeDefault(follows.flags, FOLLOWS_ALL);
|
||||
}
|
||||
};
|
||||
|
||||
LLProfileDropTarget(const Params&);
|
||||
~LLProfileDropTarget() {}
|
||||
|
||||
void doDrop(EDragAndDropType cargo_type, void* cargo_data);
|
||||
|
||||
//
|
||||
// LLView functionality
|
||||
virtual BOOL handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop,
|
||||
EDragAndDropType cargo_type,
|
||||
void* cargo_data,
|
||||
EAcceptance* accept,
|
||||
std::string& tooltip_msg);
|
||||
|
||||
void setAgentID(const LLUUID &agent_id) { mAgentID = agent_id; }
|
||||
|
||||
protected:
|
||||
LLUUID mAgentID;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Base class for any Profile View.
|
||||
*/
|
||||
class LLPanelProfileTab
|
||||
: public LLPanel
|
||||
, public LLAvatarPropertiesObserver
|
||||
: public LLPanel
|
||||
, public LLAvatarPropertiesObserver
|
||||
{
|
||||
public:
|
||||
|
||||
/**
|
||||
* Sets avatar ID, sets panel as observer of avatar related info replies from server.
|
||||
*/
|
||||
virtual void setAvatarId(const LLUUID& id);
|
||||
/**
|
||||
* Sets avatar ID, sets panel as observer of avatar related info replies from server.
|
||||
*/
|
||||
virtual void setAvatarId(const LLUUID& avatar_id);
|
||||
|
||||
/**
|
||||
* Returns avatar ID.
|
||||
*/
|
||||
virtual const LLUUID& getAvatarId() { return mAvatarId; }
|
||||
/**
|
||||
* Returns avatar ID.
|
||||
*/
|
||||
virtual const LLUUID& getAvatarId() { return mAvatarId; }
|
||||
|
||||
/**
|
||||
* Sends update data request to server.
|
||||
*/
|
||||
virtual void updateData() = 0;
|
||||
/**
|
||||
* Sends update data request to server.
|
||||
*/
|
||||
virtual void updateData() {};
|
||||
|
||||
/**
|
||||
* Clears panel data if viewing avatar info for first time and sends update data request.
|
||||
*/
|
||||
virtual void onOpen(const LLSD& key);
|
||||
/**
|
||||
* Clears panel data if viewing avatar info for first time and sends update data request.
|
||||
*/
|
||||
virtual void onOpen(const LLSD& key);
|
||||
|
||||
/**
|
||||
* Profile tabs should close any opened panels here.
|
||||
*
|
||||
* Called from LLPanelProfile::onOpen() before opening new profile.
|
||||
* See LLPanelPicks::onClosePanel for example. LLPanelPicks closes picture info panel
|
||||
* before new profile is displayed, otherwise new profile will
|
||||
* be hidden behind picture info panel.
|
||||
*/
|
||||
virtual void onClosePanel() {}
|
||||
/**
|
||||
* Processes data received from server.
|
||||
*/
|
||||
virtual void processProperties(void* data, EAvatarProcessorType type) = 0;
|
||||
|
||||
/**
|
||||
* Resets controls visibility, state, etc.
|
||||
*/
|
||||
virtual void resetControls(){};
|
||||
/**
|
||||
* Clears all data received from server.
|
||||
*/
|
||||
virtual void resetData(){};
|
||||
|
||||
/**
|
||||
* Clears all data received from server.
|
||||
*/
|
||||
virtual void resetData(){};
|
||||
/*virtual*/ ~LLPanelProfileTab();
|
||||
|
||||
/*virtual*/ ~LLPanelProfileTab();
|
||||
void setEmbedded(bool embedded) { mEmbedded = embedded; }
|
||||
|
||||
protected:
|
||||
|
||||
LLPanelProfileTab();
|
||||
LLPanelProfileTab();
|
||||
|
||||
/**
|
||||
* Scrolls panel to top when viewing avatar info for first time.
|
||||
*/
|
||||
void scrollToTop();
|
||||
|
||||
virtual void onMapButtonClick();
|
||||
// mLoading: false: Initial state, can request
|
||||
// true: Data requested, skip duplicate requests (happens due to LLUI's habit of repeated callbacks)
|
||||
// mLoaded: false: Initial state, show loading indicator
|
||||
// true: Data recieved, which comes in a single message, hide indicator
|
||||
bool getIsLoading() { return mLoading; }
|
||||
void setIsLoading() { mLoading = true; }
|
||||
bool getIsLoaded() { return mLoaded; }
|
||||
void resetLoading() { mLoading = false; mLoaded = false; }
|
||||
|
||||
virtual void updateButtons();
|
||||
const bool getEmbedded() const { return mEmbedded; }
|
||||
|
||||
const bool getSelfProfile() const { return mSelfProfile; }
|
||||
|
||||
void setApplyProgress(bool started);
|
||||
|
||||
virtual void updateButtons();
|
||||
|
||||
private:
|
||||
|
||||
LLUUID mAvatarId;
|
||||
LLUUID mAvatarId;
|
||||
bool mLoading;
|
||||
bool mLoaded;
|
||||
bool mEmbedded;
|
||||
bool mSelfProfile;
|
||||
};
|
||||
|
||||
#endif // LL_LLPANELAVATAR_H
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,303 +0,0 @@
|
|||
/**
|
||||
* @file llpanelclassified.h
|
||||
* @brief LLPanelClassified class definition
|
||||
*
|
||||
* $LicenseInfo:firstyear=2005&license=viewerlgpl$
|
||||
* Second Life Viewer Source Code
|
||||
* Copyright (C) 2010, Linden Research, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation;
|
||||
* version 2.1 of the License only.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
|
||||
* $/LicenseInfo$
|
||||
*/
|
||||
|
||||
// Display of a classified used both for the global view in the
|
||||
// Find directory, and also for each individual user's classified in their
|
||||
// profile.
|
||||
#ifndef LL_LLPANELCLASSIFIED_H
|
||||
#define LL_LLPANELCLASSIFIED_H
|
||||
|
||||
#include "llavatarpropertiesprocessor.h"
|
||||
#include "llclassifiedinfo.h"
|
||||
#include "llfloater.h"
|
||||
#include "llpanel.h"
|
||||
#include "llrect.h"
|
||||
#include "lluuid.h"
|
||||
#include "v3dmath.h"
|
||||
#include "llcoros.h"
|
||||
#include "lleventcoro.h"
|
||||
|
||||
class LLScrollContainer;
|
||||
class LLTextureCtrl;
|
||||
class LLUICtrl;
|
||||
|
||||
class LLPublishClassifiedFloater : public LLFloater
|
||||
{
|
||||
public:
|
||||
LLPublishClassifiedFloater(const LLSD& key);
|
||||
virtual ~LLPublishClassifiedFloater();
|
||||
|
||||
/*virtual*/ BOOL postBuild();
|
||||
|
||||
void setPrice(S32 price);
|
||||
S32 getPrice();
|
||||
|
||||
void setPublishClickedCallback(const commit_signal_t::slot_type& cb);
|
||||
void setCancelClickedCallback(const commit_signal_t::slot_type& cb);
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
class LLPanelClassifiedInfo : public LLPanel, public LLAvatarPropertiesObserver
|
||||
{
|
||||
LOG_CLASS(LLPanelClassifiedInfo);
|
||||
public:
|
||||
|
||||
static LLPanelClassifiedInfo* create();
|
||||
|
||||
virtual ~LLPanelClassifiedInfo();
|
||||
|
||||
/*virtual*/ void onOpen(const LLSD& key);
|
||||
|
||||
/*virtual*/ BOOL postBuild();
|
||||
|
||||
/*virtual*/ void processProperties(void* data, EAvatarProcessorType type);
|
||||
|
||||
void setAvatarId(const LLUUID& avatar_id) { mAvatarId = avatar_id; }
|
||||
|
||||
LLUUID& getAvatarId() { return mAvatarId; }
|
||||
|
||||
void setSnapshotId(const LLUUID& id);
|
||||
|
||||
LLUUID getSnapshotId();
|
||||
|
||||
void setClassifiedId(const LLUUID& id) { mClassifiedId = id; }
|
||||
|
||||
LLUUID& getClassifiedId() { return mClassifiedId; }
|
||||
|
||||
void setClassifiedName(const std::string& name);
|
||||
|
||||
std::string getClassifiedName();
|
||||
|
||||
void setDescription(const std::string& desc);
|
||||
|
||||
std::string getDescription();
|
||||
|
||||
void setClassifiedLocation(const std::string& location);
|
||||
|
||||
std::string getClassifiedLocation();
|
||||
|
||||
void setPosGlobal(const LLVector3d& pos) { mPosGlobal = pos; }
|
||||
|
||||
LLVector3d& getPosGlobal() { return mPosGlobal; }
|
||||
|
||||
void setParcelId(const LLUUID& id) { mParcelId = id; }
|
||||
|
||||
LLUUID getParcelId() { return mParcelId; }
|
||||
|
||||
void setSimName(const std::string& sim_name) { mSimName = sim_name; }
|
||||
|
||||
std::string getSimName() { return mSimName; }
|
||||
|
||||
void setFromSearch(bool val) { mFromSearch = val; }
|
||||
|
||||
bool fromSearch() { return mFromSearch; }
|
||||
|
||||
bool getInfoLoaded() { return mInfoLoaded; }
|
||||
|
||||
void setInfoLoaded(bool loaded) { mInfoLoaded = loaded; }
|
||||
|
||||
static void setClickThrough(
|
||||
const LLUUID& classified_id,
|
||||
S32 teleport,
|
||||
S32 map,
|
||||
S32 profile,
|
||||
bool from_new_table);
|
||||
|
||||
static void sendClickMessage(
|
||||
const std::string& type,
|
||||
bool from_search,
|
||||
const LLUUID& classified_id,
|
||||
const LLUUID& parcel_id,
|
||||
const LLVector3d& global_pos,
|
||||
const std::string& sim_name);
|
||||
|
||||
void setExitCallback(const commit_callback_t& cb);
|
||||
|
||||
void setEditClassifiedCallback(const commit_callback_t& cb);
|
||||
|
||||
/*virtual*/ void reshape(S32 width, S32 height, BOOL called_from_parent = TRUE);
|
||||
|
||||
/*virtual*/ void draw();
|
||||
|
||||
protected:
|
||||
|
||||
LLPanelClassifiedInfo();
|
||||
|
||||
virtual void resetData();
|
||||
|
||||
virtual void resetControls();
|
||||
|
||||
static std::string createLocationText(
|
||||
const std::string& original_name,
|
||||
const std::string& sim_name,
|
||||
const LLVector3d& pos_global);
|
||||
|
||||
void stretchSnapshot();
|
||||
void sendClickMessage(const std::string& type);
|
||||
|
||||
LLRect getDefaultSnapshotRect();
|
||||
|
||||
void scrollToTop();
|
||||
|
||||
void onMapClick();
|
||||
void onTeleportClick();
|
||||
void onExit();
|
||||
|
||||
bool mSnapshotStreched;
|
||||
LLRect mSnapshotRect;
|
||||
LLTextureCtrl* mSnapshotCtrl;
|
||||
|
||||
private:
|
||||
|
||||
LLUUID mAvatarId;
|
||||
LLUUID mClassifiedId;
|
||||
LLVector3d mPosGlobal;
|
||||
LLUUID mParcelId;
|
||||
std::string mSimName;
|
||||
bool mFromSearch;
|
||||
bool mInfoLoaded;
|
||||
|
||||
LLScrollContainer* mScrollContainer;
|
||||
LLPanel* mScrollingPanel;
|
||||
|
||||
S32 mScrollingPanelMinHeight;
|
||||
S32 mScrollingPanelWidth;
|
||||
|
||||
// Needed for stat tracking
|
||||
S32 mTeleportClicksOld;
|
||||
S32 mMapClicksOld;
|
||||
S32 mProfileClicksOld;
|
||||
S32 mTeleportClicksNew;
|
||||
S32 mMapClicksNew;
|
||||
S32 mProfileClicksNew;
|
||||
|
||||
public: // <FS:ND> Need this public for fspanelclassified
|
||||
static void handleSearchStatResponse(LLUUID classifiedId, LLSD result);
|
||||
|
||||
private: // </FS:ND>
|
||||
typedef std::list<LLPanelClassifiedInfo*> panel_list_t;
|
||||
static panel_list_t sAllPanels;
|
||||
};
|
||||
|
||||
class LLPanelClassifiedEdit : public LLPanelClassifiedInfo
|
||||
{
|
||||
LOG_CLASS(LLPanelClassifiedEdit);
|
||||
public:
|
||||
|
||||
static LLPanelClassifiedEdit* create();
|
||||
|
||||
virtual ~LLPanelClassifiedEdit();
|
||||
|
||||
/*virtual*/ BOOL postBuild();
|
||||
|
||||
void fillIn(const LLSD& key);
|
||||
|
||||
/*virtual*/ void onOpen(const LLSD& key);
|
||||
|
||||
/*virtual*/ void processProperties(void* data, EAvatarProcessorType type);
|
||||
|
||||
/*virtual*/ BOOL isDirty() const;
|
||||
|
||||
/*virtual*/ void resetDirty();
|
||||
|
||||
void setSaveCallback(const commit_signal_t::slot_type& cb);
|
||||
|
||||
void setCancelCallback(const commit_signal_t::slot_type& cb);
|
||||
|
||||
/*virtual*/ void resetControls();
|
||||
|
||||
bool isNew() { return mIsNew; }
|
||||
|
||||
bool isNewWithErrors() { return mIsNewWithErrors; }
|
||||
|
||||
bool canClose();
|
||||
|
||||
void draw();
|
||||
|
||||
void stretchSnapshot();
|
||||
|
||||
U32 getCategory();
|
||||
|
||||
void setCategory(U32 category);
|
||||
|
||||
U32 getContentType();
|
||||
|
||||
void setContentType(U32 content_type);
|
||||
|
||||
bool getAutoRenew();
|
||||
|
||||
S32 getPriceForListing();
|
||||
|
||||
protected:
|
||||
|
||||
LLPanelClassifiedEdit();
|
||||
|
||||
void sendUpdate();
|
||||
|
||||
void enableVerbs(bool enable);
|
||||
|
||||
void enableEditing(bool enable);
|
||||
|
||||
void showEditing(bool show);
|
||||
|
||||
std::string makeClassifiedName();
|
||||
|
||||
void setPriceForListing(S32 price);
|
||||
|
||||
U8 getFlags();
|
||||
|
||||
std::string getLocationNotice();
|
||||
|
||||
bool isValidName();
|
||||
|
||||
void notifyInvalidName();
|
||||
|
||||
void onSetLocationClick();
|
||||
void onChange();
|
||||
void onSaveClick();
|
||||
|
||||
void doSave();
|
||||
|
||||
void onPublishFloaterPublishClicked();
|
||||
|
||||
void onTexturePickerMouseEnter(LLUICtrl* ctrl);
|
||||
void onTexturePickerMouseLeave(LLUICtrl* ctrl);
|
||||
|
||||
void onTextureSelected();
|
||||
|
||||
private:
|
||||
S32 getClassifiedFee(); // <FS:CR> FIRE-9814 - Don't hardcode a classified listing fee
|
||||
bool mIsNew;
|
||||
bool mIsNewWithErrors;
|
||||
bool mCanClose;
|
||||
|
||||
LLPublishClassifiedFloater* mPublishFloater;
|
||||
|
||||
commit_signal_t mSaveButtonClickedSignal;
|
||||
};
|
||||
|
||||
#endif // LL_LLPANELCLASSIFIED_H
|
||||
|
|
@ -29,7 +29,6 @@
|
|||
|
||||
#include "llaccordionctrltab.h"
|
||||
#include "llflatlistview.h"
|
||||
#include "llpanelavatar.h"
|
||||
|
||||
class LLExperienceItem;
|
||||
class LLPanelProfile;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
* @file llpanelavatar.cpp
|
||||
* @brief LLPanelAvatar and related class implementations
|
||||
* @file llpanelimcontrolpanel.cpp
|
||||
* @brief LLPanelIMControlPanel and related class implementations
|
||||
*
|
||||
* $LicenseInfo:firstyear=2004&license=viewerlgpl$
|
||||
* Second Life Viewer Source Code
|
||||
|
|
|
|||
|
|
@ -1,67 +0,0 @@
|
|||
/**
|
||||
* @file llpanelme.cpp
|
||||
* @brief Side tray "Me" (My Profile) panel
|
||||
*
|
||||
* $LicenseInfo:firstyear=2009&license=viewerlgpl$
|
||||
* Second Life Viewer Source Code
|
||||
* Copyright (C) 2010, Linden Research, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation;
|
||||
* version 2.1 of the License only.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
|
||||
* $/LicenseInfo$
|
||||
*/
|
||||
|
||||
#include "llviewerprecompiledheaders.h"
|
||||
|
||||
#include "llpanelme.h"
|
||||
|
||||
// Viewer includes
|
||||
#include "llpanelprofile.h"
|
||||
#include "llagent.h"
|
||||
#include "llagentcamera.h"
|
||||
#include "llagentwearables.h"
|
||||
#include "llfirstuse.h"
|
||||
#include "llfloaterreg.h"
|
||||
#include "llhints.h"
|
||||
#include "llviewercontrol.h"
|
||||
|
||||
// Linden libraries
|
||||
#include "llavatarnamecache.h" // IDEVO
|
||||
#include "lliconctrl.h"
|
||||
#include "llnotifications.h"
|
||||
#include "llnotificationsutil.h" // IDEVO
|
||||
#include "lltabcontainer.h"
|
||||
#include "lltexturectrl.h"
|
||||
|
||||
static LLPanelInjector<LLPanelMe> t_panel_me_profile("panel_me");
|
||||
|
||||
LLPanelMe::LLPanelMe(void)
|
||||
: LLPanelProfile()
|
||||
{
|
||||
setAvatarId(gAgent.getID());
|
||||
}
|
||||
|
||||
BOOL LLPanelMe::postBuild()
|
||||
{
|
||||
LLPanelProfile::postBuild();
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void LLPanelMe::onOpen(const LLSD& key)
|
||||
{
|
||||
LLPanelProfile::onOpen(key);
|
||||
}
|
||||
|
|
@ -1,50 +0,0 @@
|
|||
/**
|
||||
* @file llpanelme.h
|
||||
* @brief Side tray "Me" (My Profile) panel
|
||||
*
|
||||
* $LicenseInfo:firstyear=2009&license=viewerlgpl$
|
||||
* Second Life Viewer Source Code
|
||||
* Copyright (C) 2010, Linden Research, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation;
|
||||
* version 2.1 of the License only.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
|
||||
* $/LicenseInfo$
|
||||
*/
|
||||
|
||||
#ifndef LL_LLPANELMEPROFILE_H
|
||||
#define LL_LLPANELMEPROFILE_H
|
||||
|
||||
#include "llpanel.h"
|
||||
#include "llpanelprofile.h"
|
||||
|
||||
/**
|
||||
* Panel for displaying Agent's Picks and Classifieds panel.
|
||||
* LLPanelMe allows user to edit his picks and classifieds.
|
||||
*/
|
||||
class LLPanelMe : public LLPanelProfile
|
||||
{
|
||||
LOG_CLASS(LLPanelMe);
|
||||
|
||||
public:
|
||||
|
||||
LLPanelMe();
|
||||
|
||||
/*virtual*/ void onOpen(const LLSD& key);
|
||||
|
||||
/*virtual*/ BOOL postBuild();
|
||||
};
|
||||
|
||||
#endif // LL_LLPANELMEPROFILE_H
|
||||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,320 +0,0 @@
|
|||
/**
|
||||
* @file llpanelpicks.h
|
||||
* @brief LLPanelPicks and related class definitions
|
||||
*
|
||||
* $LicenseInfo:firstyear=2009&license=viewerlgpl$
|
||||
* Second Life Viewer Source Code
|
||||
* Copyright (C) 2010, Linden Research, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation;
|
||||
* version 2.1 of the License only.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
|
||||
* $/LicenseInfo$
|
||||
*/
|
||||
|
||||
#ifndef LL_LLPANELPICKS_H
|
||||
#define LL_LLPANELPICKS_H
|
||||
|
||||
#include "llpanel.h"
|
||||
#include "v3dmath.h"
|
||||
#include "lluuid.h"
|
||||
#include "llavatarpropertiesprocessor.h"
|
||||
#include "llpanelavatar.h"
|
||||
#include "llregistry.h"
|
||||
#include "rlvdefines.h"
|
||||
|
||||
class LLAccordionCtrlTab;
|
||||
class LLPanelProfile;
|
||||
class LLMessageSystem;
|
||||
class LLVector3d;
|
||||
class LLPanelProfileTab;
|
||||
class LLAgent;
|
||||
class LLMenuGL;
|
||||
class LLPickItem;
|
||||
class LLClassifiedItem;
|
||||
class LLFlatListView;
|
||||
class LLPanelPickInfo;
|
||||
class LLPanelPickEdit;
|
||||
class LLToggleableMenu;
|
||||
class LLPanelClassifiedInfo;
|
||||
class LLPanelClassifiedEdit;
|
||||
|
||||
// *TODO
|
||||
// Panel Picks has been consolidated with Classifieds (EXT-2095), give LLPanelPicks
|
||||
// and corresponding files (cpp, h, xml) a new name. (new name is TBD at the moment)
|
||||
|
||||
class LLPanelPicks
|
||||
: public LLPanelProfileTab
|
||||
{
|
||||
public:
|
||||
LLPanelPicks();
|
||||
~LLPanelPicks();
|
||||
|
||||
static void* create(void* data);
|
||||
|
||||
/*virtual*/ BOOL postBuild(void);
|
||||
|
||||
/*virtual*/ void onOpen(const LLSD& key);
|
||||
|
||||
/*virtual*/ void onClosePanel();
|
||||
|
||||
void processProperties(void* data, EAvatarProcessorType type);
|
||||
|
||||
void updateData();
|
||||
|
||||
// returns the selected pick item
|
||||
LLPickItem* getSelectedPickItem();
|
||||
LLClassifiedItem* getSelectedClassifiedItem();
|
||||
LLClassifiedItem* findClassifiedById(const LLUUID& classified_id);
|
||||
|
||||
//*NOTE top down approch when panel toggling is done only by
|
||||
// parent panels failed to work (picks related code was in my profile panel)
|
||||
void setProfilePanel(LLPanelProfile* profile_panel);
|
||||
|
||||
void createNewPick();
|
||||
void createNewClassified();
|
||||
|
||||
protected:
|
||||
/*virtual*/void updateButtons();
|
||||
|
||||
private:
|
||||
void onClickDelete();
|
||||
void onClickTeleport();
|
||||
void onClickMap();
|
||||
|
||||
void onPlusMenuItemClicked(const LLSD& param);
|
||||
bool isActionEnabled(const LLSD& userdata) const;
|
||||
|
||||
bool isClassifiedPublished(LLClassifiedItem* c_item);
|
||||
|
||||
void onListCommit(const LLFlatListView* f_list);
|
||||
void onAccordionStateChanged(const LLAccordionCtrlTab* acc_tab);
|
||||
|
||||
// <FS:Ansariel> FIRE-15556: Picks can circumvent RLVa @showloc restriction
|
||||
boost::signals2::connection mRlvBehaviorCallbackConnection;
|
||||
void updateRlvRestrictions(ERlvBehaviour behavior, ERlvParamType type);
|
||||
// </FS:Ansariel>
|
||||
|
||||
//------------------------------------------------
|
||||
// Callbacks which require panel toggling
|
||||
//------------------------------------------------
|
||||
void onClickPlusBtn();
|
||||
void onClickInfo();
|
||||
void onPanelPickClose(LLPanel* panel);
|
||||
void onPanelPickSave(LLPanel* panel);
|
||||
void onPanelClassifiedSave(LLPanelClassifiedEdit* panel);
|
||||
void onPanelClassifiedClose(LLPanelClassifiedInfo* panel);
|
||||
void openPickEdit(const LLSD& params);
|
||||
void onPanelPickEdit();
|
||||
void onPanelClassifiedEdit();
|
||||
void editClassified(const LLUUID& classified_id);
|
||||
void onClickMenuEdit();
|
||||
|
||||
bool onEnableMenuItem(const LLSD& user_data);
|
||||
|
||||
void openPickInfo();
|
||||
void openClassifiedInfo();
|
||||
void openClassifiedInfo(const LLSD& params);
|
||||
void openClassifiedEdit(const LLSD& params);
|
||||
friend class LLPanelProfile;
|
||||
|
||||
void showAccordion(const std::string& name, bool show);
|
||||
|
||||
void buildPickPanel();
|
||||
|
||||
bool callbackDeletePick(const LLSD& notification, const LLSD& response);
|
||||
bool callbackDeleteClassified(const LLSD& notification, const LLSD& response);
|
||||
bool callbackTeleport(const LLSD& notification, const LLSD& response);
|
||||
|
||||
|
||||
virtual void onDoubleClickPickItem(LLUICtrl* item);
|
||||
virtual void onDoubleClickClassifiedItem(LLUICtrl* item);
|
||||
virtual void onRightMouseUpItem(LLUICtrl* item, S32 x, S32 y, MASK mask);
|
||||
|
||||
LLPanelProfile* getProfilePanel();
|
||||
|
||||
void createPickInfoPanel();
|
||||
void createPickEditPanel();
|
||||
void createClassifiedInfoPanel();
|
||||
void createClassifiedEditPanel(LLPanelClassifiedEdit** panel);
|
||||
|
||||
LLMenuGL* mPopupMenu;
|
||||
LLPanelProfile* mProfilePanel;
|
||||
LLPanelPickInfo* mPickPanel;
|
||||
LLFlatListView* mPicksList;
|
||||
LLFlatListView* mClassifiedsList;
|
||||
LLPanelPickInfo* mPanelPickInfo;
|
||||
LLPanelClassifiedInfo* mPanelClassifiedInfo;
|
||||
LLPanelPickEdit* mPanelPickEdit;
|
||||
LLToggleableMenu* mPlusMenu;
|
||||
LLUICtrl* mNoItemsLabel;
|
||||
|
||||
// <classified_id, edit_panel>
|
||||
typedef std::map<LLUUID, LLPanelClassifiedEdit*> panel_classified_edit_map_t;
|
||||
|
||||
// This map is needed for newly created classifieds. The purpose of panel is to
|
||||
// sit in this map and listen to LLPanelClassifiedEdit::processProperties callback.
|
||||
panel_classified_edit_map_t mEditClassifiedPanels;
|
||||
|
||||
LLAccordionCtrlTab* mPicksAccTab;
|
||||
LLAccordionCtrlTab* mClassifiedsAccTab;
|
||||
|
||||
//true if picks list is empty after processing picks
|
||||
bool mNoPicks;
|
||||
//true if classifieds list is empty after processing classifieds
|
||||
bool mNoClassifieds;
|
||||
};
|
||||
|
||||
class LLPickItem : public LLPanel, public LLAvatarPropertiesObserver
|
||||
{
|
||||
public:
|
||||
|
||||
LLPickItem();
|
||||
|
||||
static LLPickItem* create();
|
||||
|
||||
void init(LLPickData* pick_data);
|
||||
|
||||
void setPickName(const std::string& name);
|
||||
|
||||
void setPickDesc(const std::string& descr);
|
||||
|
||||
void setPickId(const LLUUID& id);
|
||||
|
||||
void setCreatorId(const LLUUID& id) {mCreatorID = id;};
|
||||
|
||||
void setSnapshotId(const LLUUID& id) {mSnapshotID = id;};
|
||||
|
||||
void setNeedData(bool need){mNeedData = need;};
|
||||
|
||||
const LLUUID& getPickId();
|
||||
|
||||
const std::string& getPickName();
|
||||
|
||||
const LLUUID& getCreatorId();
|
||||
|
||||
const LLUUID& getSnapshotId();
|
||||
|
||||
const LLVector3d& getPosGlobal();
|
||||
|
||||
const std::string getDescription();
|
||||
|
||||
const std::string& getSimName() { return mSimName; }
|
||||
|
||||
const std::string& getUserName() { return mUserName; }
|
||||
|
||||
const std::string& getOriginalName() { return mOriginalName; }
|
||||
|
||||
const std::string& getPickDesc() { return mPickDescription; }
|
||||
|
||||
/*virtual*/ void processProperties(void* data, EAvatarProcessorType type);
|
||||
|
||||
void update();
|
||||
|
||||
~LLPickItem();
|
||||
|
||||
/*virtual*/ BOOL postBuild();
|
||||
|
||||
/** setting on/off background icon to indicate selected state */
|
||||
/*virtual*/ void setValue(const LLSD& value);
|
||||
|
||||
protected:
|
||||
|
||||
LLUUID mPickID;
|
||||
LLUUID mCreatorID;
|
||||
LLUUID mParcelID;
|
||||
LLUUID mSnapshotID;
|
||||
LLVector3d mPosGlobal;
|
||||
bool mNeedData;
|
||||
|
||||
std::string mPickName;
|
||||
std::string mUserName;
|
||||
std::string mOriginalName;
|
||||
std::string mPickDescription;
|
||||
std::string mSimName;
|
||||
};
|
||||
|
||||
class LLClassifiedItem : public LLPanel, public LLAvatarPropertiesObserver
|
||||
{
|
||||
public:
|
||||
|
||||
LLClassifiedItem(const LLUUID& avatar_id, const LLUUID& classified_id);
|
||||
|
||||
virtual ~LLClassifiedItem();
|
||||
|
||||
/*virtual*/ void processProperties(void* data, EAvatarProcessorType type);
|
||||
|
||||
/*virtual*/ BOOL postBuild();
|
||||
|
||||
/*virtual*/ void setValue(const LLSD& value);
|
||||
|
||||
void fillIn(LLPanelClassifiedEdit* panel);
|
||||
|
||||
LLUUID getAvatarId() {return mAvatarId;}
|
||||
|
||||
void setAvatarId(const LLUUID& avatar_id) {mAvatarId = avatar_id;}
|
||||
|
||||
LLUUID getClassifiedId() {return mClassifiedId;}
|
||||
|
||||
void setClassifiedId(const LLUUID& classified_id) {mClassifiedId = classified_id;}
|
||||
|
||||
void setPosGlobal(const LLVector3d& pos) { mPosGlobal = pos; }
|
||||
|
||||
const LLVector3d getPosGlobal() { return mPosGlobal; }
|
||||
|
||||
void setLocationText(const std::string location) { mLocationText = location; }
|
||||
|
||||
std::string getLocationText() { return mLocationText; }
|
||||
|
||||
void setClassifiedName (const std::string& name);
|
||||
|
||||
std::string getClassifiedName() { return getChild<LLUICtrl>("name")->getValue().asString(); }
|
||||
|
||||
void setDescription(const std::string& desc);
|
||||
|
||||
std::string getDescription() { return getChild<LLUICtrl>("description")->getValue().asString(); }
|
||||
|
||||
void setSnapshotId(const LLUUID& snapshot_id);
|
||||
|
||||
LLUUID getSnapshotId();
|
||||
|
||||
void setCategory(U32 cat) { mCategory = cat; }
|
||||
|
||||
U32 getCategory() { return mCategory; }
|
||||
|
||||
void setContentType(U32 ct) { mContentType = ct; }
|
||||
|
||||
U32 getContentType() { return mContentType; }
|
||||
|
||||
void setAutoRenew(U32 renew) { mAutoRenew = renew; }
|
||||
|
||||
bool getAutoRenew() { return mAutoRenew; }
|
||||
|
||||
void setPriceForListing(S32 price) { mPriceForListing = price; }
|
||||
|
||||
S32 getPriceForListing() { return mPriceForListing; }
|
||||
|
||||
private:
|
||||
LLUUID mAvatarId;
|
||||
LLUUID mClassifiedId;
|
||||
LLVector3d mPosGlobal;
|
||||
std::string mLocationText;
|
||||
U32 mCategory;
|
||||
U32 mContentType;
|
||||
bool mAutoRenew;
|
||||
S32 mPriceForListing;
|
||||
};
|
||||
|
||||
#endif // LL_LLPANELPICKS_H
|
||||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,25 +1,25 @@
|
|||
/**
|
||||
/**
|
||||
* @file llpanelprofile.h
|
||||
* @brief Profile panel
|
||||
*
|
||||
* $LicenseInfo:firstyear=2009&license=viewerlgpl$
|
||||
* Second Life Viewer Source Code
|
||||
* Copyright (C) 2010, Linden Research, Inc.
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation;
|
||||
* version 2.1 of the License only.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*
|
||||
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
|
||||
* $/LicenseInfo$
|
||||
*/
|
||||
|
|
@ -27,80 +27,410 @@
|
|||
#ifndef LL_LLPANELPROFILE_H
|
||||
#define LL_LLPANELPROFILE_H
|
||||
|
||||
#include "llavatarpropertiesprocessor.h"
|
||||
#include "llcallingcard.h"
|
||||
#include "llfloater.h"
|
||||
#include "llpanel.h"
|
||||
#include "llpanelavatar.h"
|
||||
#include "llmediactrl.h"
|
||||
#include "llvoiceclient.h"
|
||||
#include "rlvhandler.h"
|
||||
|
||||
// class LLPanelProfileClassifieds;
|
||||
// class LLTabContainer;
|
||||
|
||||
// class LLPanelProfileSecondLife;
|
||||
// class LLPanelProfileWeb;
|
||||
// class LLPanelProfileInterests;
|
||||
// class LLPanelProfilePicks;
|
||||
// class LLPanelProfileFirstLife;
|
||||
// class LLPanelProfileNotes;
|
||||
|
||||
class LLAvatarName;
|
||||
class LLCheckBoxCtrl;
|
||||
class LLTabContainer;
|
||||
|
||||
std::string getProfileURL(const std::string& agent_name);
|
||||
class LLTextBox;
|
||||
class LLTextureCtrl;
|
||||
class LLMediaCtrl;
|
||||
class LLGroupList;
|
||||
class LLTextBase;
|
||||
class LLMenuButton;
|
||||
class LLLineEditor;
|
||||
class LLTextEditor;
|
||||
class LLPanelProfileClassifieds;
|
||||
class LLPanelProfilePicks;
|
||||
class LLViewerFetchedTexture;
|
||||
|
||||
/**
|
||||
* Base class for Profile View and My Profile.
|
||||
* Panel for displaying Avatar's second life related info.
|
||||
*/
|
||||
class LLPanelProfile : public LLPanel
|
||||
class LLPanelProfileSecondLife
|
||||
: public LLPanelProfileTab
|
||||
, public LLFriendObserver
|
||||
, public LLVoiceClientStatusObserver
|
||||
{
|
||||
LOG_CLASS(LLPanelProfile);
|
||||
|
||||
public:
|
||||
/*virtual*/ BOOL postBuild();
|
||||
/*virtual*/ void reshape(S32 width, S32 height, BOOL called_from_parent = TRUE);
|
||||
LLPanelProfileSecondLife();
|
||||
/*virtual*/ ~LLPanelProfileSecondLife();
|
||||
|
||||
/*virtual*/ void onOpen(const LLSD& key);
|
||||
|
||||
virtual void openPanel(LLPanel* panel, const LLSD& params);
|
||||
/**
|
||||
* Saves changes.
|
||||
*/
|
||||
void apply(LLAvatarData* data);
|
||||
|
||||
virtual void closePanel(LLPanel* panel);
|
||||
/**
|
||||
* LLFriendObserver trigger
|
||||
*/
|
||||
virtual void changed(U32 mask);
|
||||
|
||||
S32 notifyParent(const LLSD& info);
|
||||
// Implements LLVoiceClientStatusObserver::onChange() to enable the call
|
||||
// button when voice is available
|
||||
/*virtual*/ void onChange(EStatusType status, const std::string &channelURI, bool proximal);
|
||||
|
||||
// [RLVa:KB] - Checked: 2010-04-20 (RLVa-1.2.0f) | Added: RVLa-1.2.0f
|
||||
const LLUUID& getAvatarId() const { return mAvatarId; }
|
||||
// [/RLVa:KB]
|
||||
/*virtual*/ void setAvatarId(const LLUUID& avatar_id);
|
||||
|
||||
/*virtual*/ BOOL postBuild();
|
||||
|
||||
/*virtual*/ void processProperties(void* data, EAvatarProcessorType type);
|
||||
|
||||
void resetData();
|
||||
|
||||
/**
|
||||
* Sends update data request to server.
|
||||
*/
|
||||
/*virtual*/ void updateData();
|
||||
|
||||
void onAvatarNameCache(const LLUUID& agent_id, const LLAvatarName& av_name);
|
||||
|
||||
protected:
|
||||
/**
|
||||
* Process profile related data received from server.
|
||||
*/
|
||||
virtual void processProfileProperties(const LLAvatarData* avatar_data);
|
||||
|
||||
LLPanelProfile();
|
||||
/**
|
||||
* Processes group related data received from server.
|
||||
*/
|
||||
virtual void processGroupProperties(const LLAvatarGroups* avatar_groups);
|
||||
|
||||
virtual void onTabSelected(const LLSD& param);
|
||||
/**
|
||||
* Fills common for Avatar profile and My Profile fields.
|
||||
*/
|
||||
virtual void fillCommonData(const LLAvatarData* avatar_data);
|
||||
|
||||
// const LLUUID& getAvatarId() { return mAvatarId; }
|
||||
/**
|
||||
* Fills partner data.
|
||||
*/
|
||||
virtual void fillPartnerData(const LLAvatarData* avatar_data);
|
||||
|
||||
void setAvatarId(const LLUUID& avatar_id) { mAvatarId = avatar_id; }
|
||||
/**
|
||||
* Fills account status.
|
||||
*/
|
||||
virtual void fillAccountStatus(const LLAvatarData* avatar_data);
|
||||
|
||||
typedef std::map<std::string, LLPanelProfileTab*> profile_tabs_t;
|
||||
void onMapButtonClick();
|
||||
|
||||
profile_tabs_t& getTabContainer() { return mTabContainer; }
|
||||
/**
|
||||
* Opens "Pay Resident" dialog.
|
||||
*/
|
||||
void pay();
|
||||
|
||||
/**
|
||||
* Add/remove resident to/from your block list.
|
||||
* Updates button focus
|
||||
*/
|
||||
void onClickToggleBlock();
|
||||
|
||||
void onAddFriendButtonClick();
|
||||
void onIMButtonClick();
|
||||
void onTeleportButtonClick();
|
||||
|
||||
void onGroupInvite();
|
||||
|
||||
void onImageLoaded(BOOL success, LLViewerFetchedTexture *imagep);
|
||||
static void onImageLoaded(BOOL success,
|
||||
LLViewerFetchedTexture *src_vi,
|
||||
LLImageRaw* src,
|
||||
LLImageRaw* aux_src,
|
||||
S32 discard_level,
|
||||
BOOL final,
|
||||
void* userdata);
|
||||
|
||||
bool isGrantedToSeeOnlineStatus();
|
||||
|
||||
/**
|
||||
* Displays avatar's online status if possible.
|
||||
*
|
||||
* Requirements from EXT-3880:
|
||||
* For friends:
|
||||
* - Online when online and privacy settings allow to show
|
||||
* - Offline when offline and privacy settings allow to show
|
||||
* - Else: nothing
|
||||
* For other avatars:
|
||||
* - Online when online and was not set in Preferences/"Only Friends & Groups can see when I am online"
|
||||
* - Else: Offline
|
||||
*/
|
||||
void updateOnlineStatus();
|
||||
void processOnlineStatus(bool online);
|
||||
|
||||
private:
|
||||
/*virtual*/ void updateButtons();
|
||||
void onClickSetName();
|
||||
void onCommitTexture();
|
||||
void onCommitMenu(const LLSD& userdata);
|
||||
void onAvatarNameCacheSetName(const LLUUID& id, const LLAvatarName& av_name);
|
||||
|
||||
//-- ChildStack begins ----------------------------------------------------
|
||||
class ChildStack
|
||||
{
|
||||
LOG_CLASS(LLPanelProfile::ChildStack);
|
||||
public:
|
||||
ChildStack();
|
||||
~ChildStack();
|
||||
void setParent(LLPanel* parent);
|
||||
private:
|
||||
typedef std::map<std::string, LLUUID> group_map_t;
|
||||
group_map_t mGroups;
|
||||
void openGroupProfile();
|
||||
|
||||
bool push();
|
||||
bool pop();
|
||||
void preParentReshape();
|
||||
void postParentReshape();
|
||||
LLTextBox* mStatusText;
|
||||
LLGroupList* mGroupList;
|
||||
LLCheckBoxCtrl* mShowInSearchCheckbox;
|
||||
LLTextureCtrl* mSecondLifePic;
|
||||
LLPanel* mSecondLifePicLayout;
|
||||
LLTextBase* mDescriptionEdit;
|
||||
LLButton* mTeleportButton;
|
||||
LLButton* mShowOnMapButton;
|
||||
LLButton* mBlockButton;
|
||||
LLButton* mUnblockButton;
|
||||
LLUICtrl* mNameLabel;
|
||||
LLButton* mDisplayNameButton;
|
||||
LLButton* mAddFriendButton;
|
||||
LLButton* mGroupInviteButton;
|
||||
LLButton* mPayButton;
|
||||
LLButton* mIMButton;
|
||||
LLMenuButton* mCopyMenuButton;
|
||||
LLPanel* mGiveInvPanel;
|
||||
LLMenuButton* mOverflowButton; // <FS:Ansariel> Gear button
|
||||
|
||||
private:
|
||||
void dump();
|
||||
bool mVoiceStatus;
|
||||
|
||||
typedef LLView::child_list_t view_list_t;
|
||||
typedef std::list<view_list_t> stack_t;
|
||||
boost::signals2::connection mAvatarNameCacheConnection;
|
||||
|
||||
stack_t mStack;
|
||||
stack_t mSavedStack;
|
||||
LLPanel* mParent;
|
||||
};
|
||||
//-- ChildStack ends ------------------------------------------------------
|
||||
// <FS:Ansariel> RLVa support
|
||||
boost::signals2::connection mRlvBehaviorCallbackConnection;
|
||||
void updateRlvRestrictions(ERlvBehaviour behavior);
|
||||
// </FS:Ansariel>
|
||||
};
|
||||
|
||||
profile_tabs_t mTabContainer;
|
||||
ChildStack mChildStack;
|
||||
LLUUID mAvatarId;
|
||||
|
||||
/**
|
||||
* Panel for displaying Avatar's web profile and home page.
|
||||
*/
|
||||
class LLPanelProfileWeb
|
||||
: public LLPanelProfileTab
|
||||
, public LLViewerMediaObserver
|
||||
{
|
||||
public:
|
||||
LLPanelProfileWeb();
|
||||
/*virtual*/ ~LLPanelProfileWeb();
|
||||
|
||||
/*virtual*/ void onOpen(const LLSD& key);
|
||||
|
||||
/*virtual*/ BOOL postBuild();
|
||||
|
||||
/*virtual*/ void processProperties(void* data, EAvatarProcessorType type);
|
||||
|
||||
void resetData();
|
||||
|
||||
/**
|
||||
* Saves changes.
|
||||
*/
|
||||
void apply(LLAvatarData* data);
|
||||
|
||||
/**
|
||||
* Loads web profile.
|
||||
*/
|
||||
/*virtual*/ void updateData();
|
||||
|
||||
/*virtual*/ void handleMediaEvent(LLPluginClassMedia* self, EMediaEvent event);
|
||||
|
||||
void onAvatarNameCache(const LLUUID& agent_id, const LLAvatarName& av_name);
|
||||
|
||||
protected:
|
||||
/*virtual*/ void updateButtons();
|
||||
void onCommitLoad(LLUICtrl* ctrl);
|
||||
|
||||
private:
|
||||
std::string mURLHome;
|
||||
std::string mURLWebProfile;
|
||||
LLMediaCtrl* mWebBrowser;
|
||||
|
||||
LLFrameTimer mPerformanceTimer;
|
||||
bool mFirstNavigate;
|
||||
|
||||
boost::signals2::connection mAvatarNameCacheConnection;
|
||||
};
|
||||
|
||||
/**
|
||||
* Panel for displaying Avatar's interests.
|
||||
*/
|
||||
class LLPanelProfileInterests
|
||||
: public LLPanelProfileTab
|
||||
{
|
||||
public:
|
||||
LLPanelProfileInterests();
|
||||
/*virtual*/ ~LLPanelProfileInterests();
|
||||
|
||||
/*virtual*/ void onOpen(const LLSD& key);
|
||||
|
||||
/*virtual*/ BOOL postBuild();
|
||||
|
||||
/*virtual*/ void processProperties(void* data, EAvatarProcessorType type);
|
||||
|
||||
void resetData();
|
||||
|
||||
/**
|
||||
* Saves changes.
|
||||
*/
|
||||
virtual void apply();
|
||||
|
||||
protected:
|
||||
/*virtual*/ void updateButtons();
|
||||
|
||||
private:
|
||||
LLCheckBoxCtrl* mWantChecks[8];
|
||||
LLCheckBoxCtrl* mSkillChecks[6];
|
||||
LLLineEditor* mWantToEditor;
|
||||
LLLineEditor* mSkillsEditor;
|
||||
LLLineEditor* mLanguagesEditor;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Panel for displaying Avatar's first life related info.
|
||||
*/
|
||||
class LLPanelProfileFirstLife
|
||||
: public LLPanelProfileTab
|
||||
{
|
||||
public:
|
||||
LLPanelProfileFirstLife();
|
||||
/*virtual*/ ~LLPanelProfileFirstLife();
|
||||
|
||||
/*virtual*/ void onOpen(const LLSD& key);
|
||||
|
||||
/*virtual*/ BOOL postBuild();
|
||||
|
||||
/*virtual*/ void processProperties(void* data, EAvatarProcessorType type);
|
||||
|
||||
void resetData();
|
||||
|
||||
/**
|
||||
* Saves changes.
|
||||
*/
|
||||
void apply(LLAvatarData* data);
|
||||
|
||||
protected:
|
||||
/*virtual*/ void updateButtons();
|
||||
void onDescriptionFocusReceived();
|
||||
|
||||
LLTextEditor* mDescriptionEdit;
|
||||
LLTextureCtrl* mPicture;
|
||||
|
||||
bool mIsEditing;
|
||||
std::string mCurrentDescription;
|
||||
};
|
||||
|
||||
/**
|
||||
* Panel for displaying Avatar's notes and modifying friend's rights.
|
||||
*/
|
||||
class LLPanelProfileNotes
|
||||
: public LLPanelProfileTab
|
||||
, public LLFriendObserver
|
||||
{
|
||||
public:
|
||||
LLPanelProfileNotes();
|
||||
/*virtual*/ ~LLPanelProfileNotes();
|
||||
|
||||
virtual void setAvatarId(const LLUUID& avatar_id);
|
||||
|
||||
/**
|
||||
* LLFriendObserver trigger
|
||||
*/
|
||||
virtual void changed(U32 mask);
|
||||
|
||||
/*virtual*/ void onOpen(const LLSD& key);
|
||||
|
||||
/*virtual*/ BOOL postBuild();
|
||||
|
||||
/*virtual*/ void processProperties(void* data, EAvatarProcessorType type);
|
||||
|
||||
void resetData();
|
||||
|
||||
/*virtual*/ void updateData();
|
||||
|
||||
/**
|
||||
* Saves changes.
|
||||
*/
|
||||
virtual void apply();
|
||||
|
||||
protected:
|
||||
/**
|
||||
* Fills rights data for friends.
|
||||
*/
|
||||
void fillRightsData();
|
||||
|
||||
void rightsConfirmationCallback(const LLSD& notification, const LLSD& response);
|
||||
void confirmModifyRights(bool grant);
|
||||
void onCommitRights();
|
||||
void onCommitNotes();
|
||||
void enableCheckboxes(bool enable);
|
||||
|
||||
void applyRights();
|
||||
|
||||
LLCheckBoxCtrl* mOnlineStatus;
|
||||
LLCheckBoxCtrl* mMapRights;
|
||||
LLCheckBoxCtrl* mEditObjectRights;
|
||||
LLTextEditor* mNotesEditor;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Container panel for the profile tabs
|
||||
*/
|
||||
class LLPanelProfile
|
||||
: public LLPanelProfileTab
|
||||
{
|
||||
public:
|
||||
LLPanelProfile();
|
||||
/*virtual*/ ~LLPanelProfile();
|
||||
|
||||
/*virtual*/ BOOL postBuild();
|
||||
|
||||
/*virtual*/ void updateData();
|
||||
|
||||
/*virtual*/ void processProperties(void* data, EAvatarProcessorType type);
|
||||
|
||||
/*virtual*/ void onOpen(const LLSD& key);
|
||||
|
||||
/**
|
||||
* Saves changes.
|
||||
*/
|
||||
void apply();
|
||||
|
||||
void showPick(const LLUUID& pick_id = LLUUID::null);
|
||||
bool isPickTabSelected();
|
||||
bool isNotesTabSelected();
|
||||
|
||||
void updateBtnsVisibility();
|
||||
|
||||
void showClassified(const LLUUID& classified_id = LLUUID::null, bool edit = false);
|
||||
|
||||
private:
|
||||
void onTabChange();
|
||||
|
||||
LLPanelProfileSecondLife* mPanelSecondlife;
|
||||
LLPanelProfileWeb* mPanelWeb;
|
||||
LLPanelProfileInterests* mPanelInterests;
|
||||
LLPanelProfilePicks* mPanelPicks;
|
||||
LLPanelProfileClassifieds* mPanelClassifieds;
|
||||
LLPanelProfileFirstLife* mPanelFirstlife;
|
||||
LLPanelProfileNotes* mPanelNotes;
|
||||
LLTabContainer* mTabContainer;
|
||||
};
|
||||
|
||||
#endif //LL_LLPANELPROFILE_H
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,387 @@
|
|||
/**
|
||||
* @file llpanelprofileclassifieds.h
|
||||
* @brief LLPanelProfileClassifieds and related class implementations
|
||||
*
|
||||
* $LicenseInfo:firstyear=2009&license=viewerlgpl$
|
||||
* Second Life Viewer Source Code
|
||||
* Copyright (C) 2010, Linden Research, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation;
|
||||
* version 2.1 of the License only.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
|
||||
* $/LicenseInfo$
|
||||
*/
|
||||
|
||||
#ifndef LL_PANELPROFILECLASSIFIEDS_H
|
||||
#define LL_PANELPROFILECLASSIFIEDS_H
|
||||
|
||||
#include "llavatarpropertiesprocessor.h"
|
||||
#include "llclassifiedinfo.h"
|
||||
#include "llfloater.h"
|
||||
#include "llpanel.h"
|
||||
#include "llpanelavatar.h"
|
||||
#include "llrect.h"
|
||||
#include "lluuid.h"
|
||||
#include "v3dmath.h"
|
||||
#include "llcoros.h"
|
||||
#include "lleventcoro.h"
|
||||
|
||||
#include "rlvhandler.h"
|
||||
|
||||
class LLCheckBoxCtrl;
|
||||
class LLLineEditor;
|
||||
class LLMediaCtrl;
|
||||
class LLScrollContainer;
|
||||
class LLTabContainer;
|
||||
class LLTextEditor;
|
||||
class LLTextureCtrl;
|
||||
class LLUICtrl;
|
||||
|
||||
|
||||
class LLPublishClassifiedFloater : public LLFloater
|
||||
{
|
||||
public:
|
||||
LLPublishClassifiedFloater(const LLSD& key);
|
||||
virtual ~LLPublishClassifiedFloater();
|
||||
|
||||
/*virtual*/ BOOL postBuild();
|
||||
|
||||
void setPrice(S32 price);
|
||||
S32 getPrice();
|
||||
|
||||
void setPublishClickedCallback(const commit_signal_t::slot_type& cb);
|
||||
void setCancelClickedCallback(const commit_signal_t::slot_type& cb);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Panel for displaying Avatar's picks.
|
||||
*/
|
||||
class LLPanelProfileClassifieds
|
||||
: public LLPanelProfileTab
|
||||
{
|
||||
public:
|
||||
LLPanelProfileClassifieds();
|
||||
/*virtual*/ ~LLPanelProfileClassifieds();
|
||||
|
||||
/*virtual*/ BOOL postBuild();
|
||||
|
||||
/*virtual*/ void onOpen(const LLSD& key);
|
||||
|
||||
void selectClassified(const LLUUID& classified_id, bool edit);
|
||||
|
||||
/*virtual*/ void processProperties(void* data, EAvatarProcessorType type);
|
||||
|
||||
/*virtual*/ void resetData();
|
||||
|
||||
/*virtual*/ void updateButtons();
|
||||
|
||||
/*virtual*/ void updateData();
|
||||
|
||||
/*virtual*/ void apply();
|
||||
|
||||
private:
|
||||
void onClickNewBtn();
|
||||
void onClickDelete();
|
||||
void callbackDeleteClassified(const LLSD& notification, const LLSD& response);
|
||||
|
||||
bool canAddNewClassified();
|
||||
bool canDeleteClassified();
|
||||
|
||||
// <FS:Ansariel> RLVa support
|
||||
boost::signals2::connection mRlvBehaviorCallbackConnection;
|
||||
void updateRlvRestrictions(ERlvBehaviour behavior, ERlvParamType type);
|
||||
// </FS:Ansariel>
|
||||
|
||||
LLTabContainer* mTabContainer;
|
||||
LLUICtrl* mNoItemsLabel;
|
||||
LLButton* mNewButton;
|
||||
LLButton* mDeleteButton;
|
||||
|
||||
LLUUID mClassifiedToSelectOnLoad;
|
||||
bool mClassifiedEditOnLoad;
|
||||
};
|
||||
|
||||
|
||||
class LLPanelProfileClassified
|
||||
: public LLPanelProfileTab
|
||||
{
|
||||
public:
|
||||
|
||||
static LLPanelProfileClassified* create();
|
||||
|
||||
LLPanelProfileClassified();
|
||||
|
||||
/*virtual*/ ~LLPanelProfileClassified();
|
||||
|
||||
/*virtual*/ BOOL postBuild();
|
||||
|
||||
void onOpen(const LLSD& key);
|
||||
|
||||
/*virtual*/ void processProperties(void* data, EAvatarProcessorType type);
|
||||
|
||||
void setSnapshotId(const LLUUID& id);
|
||||
|
||||
LLUUID getSnapshotId();
|
||||
|
||||
void setClassifiedId(const LLUUID& id) { mClassifiedId = id; }
|
||||
|
||||
LLUUID& getClassifiedId() { return mClassifiedId; }
|
||||
|
||||
void setClassifiedName(const std::string& name);
|
||||
|
||||
std::string getClassifiedName();
|
||||
|
||||
void setDescription(const std::string& desc);
|
||||
|
||||
std::string getDescription();
|
||||
|
||||
void setClassifiedLocation(const std::string& location);
|
||||
|
||||
std::string getClassifiedLocation();
|
||||
|
||||
void setPosGlobal(const LLVector3d& pos) { mPosGlobal = pos; }
|
||||
|
||||
LLVector3d& getPosGlobal() { return mPosGlobal; }
|
||||
|
||||
void setParcelId(const LLUUID& id) { mParcelId = id; }
|
||||
|
||||
LLUUID getParcelId() { return mParcelId; }
|
||||
|
||||
void setSimName(const std::string& sim_name) { mSimName = sim_name; }
|
||||
|
||||
std::string getSimName() { return mSimName; }
|
||||
|
||||
void setFromSearch(bool val) { mFromSearch = val; }
|
||||
|
||||
bool fromSearch() { return mFromSearch; }
|
||||
|
||||
bool getInfoLoaded() { return mInfoLoaded; }
|
||||
|
||||
void setInfoLoaded(bool loaded) { mInfoLoaded = loaded; }
|
||||
|
||||
/*virtual*/ BOOL isDirty() const;
|
||||
|
||||
/*virtual*/ void resetDirty();
|
||||
|
||||
bool isNew() { return mIsNew; }
|
||||
|
||||
bool isNewWithErrors() { return mIsNewWithErrors; }
|
||||
|
||||
bool canClose();
|
||||
|
||||
U32 getCategory();
|
||||
|
||||
void setCategory(U32 category);
|
||||
|
||||
U32 getContentType();
|
||||
|
||||
void setContentType(bool mature);
|
||||
|
||||
bool getAutoRenew();
|
||||
|
||||
S32 getPriceForListing() { return mPriceForListing; }
|
||||
|
||||
void setEditMode(BOOL edit_mode);
|
||||
bool getEditMode() {return mEditMode;}
|
||||
|
||||
static void setClickThrough(
|
||||
const LLUUID& classified_id,
|
||||
S32 teleport,
|
||||
S32 map,
|
||||
S32 profile,
|
||||
bool from_new_table);
|
||||
|
||||
static void sendClickMessage(
|
||||
const std::string& type,
|
||||
bool from_search,
|
||||
const LLUUID& classified_id,
|
||||
const LLUUID& parcel_id,
|
||||
const LLVector3d& global_pos,
|
||||
const std::string& sim_name);
|
||||
|
||||
void doSave();
|
||||
|
||||
protected:
|
||||
|
||||
/*virtual*/ void resetData();
|
||||
|
||||
void resetControls();
|
||||
|
||||
/*virtual*/ void updateButtons();
|
||||
void updateInfoRect();
|
||||
|
||||
static std::string createLocationText(
|
||||
const std::string& original_name,
|
||||
const std::string& sim_name,
|
||||
const LLVector3d& pos_global);
|
||||
|
||||
void sendClickMessage(const std::string& type);
|
||||
|
||||
void scrollToTop();
|
||||
|
||||
void onEditClick();
|
||||
void onCancelClick();
|
||||
void onSaveClick();
|
||||
void onMapClick();
|
||||
void onTeleportClick();
|
||||
|
||||
void sendUpdate();
|
||||
|
||||
void enableSave(bool enable);
|
||||
|
||||
void enableEditing(bool enable);
|
||||
|
||||
std::string makeClassifiedName();
|
||||
|
||||
void setPriceForListing(S32 price) { mPriceForListing = price; }
|
||||
|
||||
U8 getFlags();
|
||||
|
||||
std::string getLocationNotice();
|
||||
|
||||
bool isValidName();
|
||||
|
||||
void notifyInvalidName();
|
||||
|
||||
void onSetLocationClick();
|
||||
void onChange();
|
||||
|
||||
void onPublishFloaterPublishClicked();
|
||||
|
||||
void onTexturePickerMouseEnter();
|
||||
void onTexturePickerMouseLeave();
|
||||
|
||||
void onTextureSelected();
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Callback for "Map" button, opens Map
|
||||
*/
|
||||
void onClickMap();
|
||||
|
||||
/**
|
||||
* Callback for "Teleport" button, teleports user to Pick location.
|
||||
*/
|
||||
void onClickTeleport();
|
||||
|
||||
/**
|
||||
* Enables/disables "Save" button
|
||||
*/
|
||||
void enableSaveButton(BOOL enable);
|
||||
|
||||
/**
|
||||
* Called when snapshot image changes.
|
||||
*/
|
||||
void onSnapshotChanged();
|
||||
|
||||
/**
|
||||
* Callback for Pick snapshot, name and description changed event.
|
||||
*/
|
||||
void onPickChanged(LLUICtrl* ctrl);
|
||||
|
||||
/**
|
||||
* Callback for "Set Location" button click
|
||||
*/
|
||||
void onClickSetLocation();
|
||||
|
||||
/**
|
||||
* Callback for "Save" button click
|
||||
*/
|
||||
void onClickSave();
|
||||
|
||||
void onDescriptionFocusReceived();
|
||||
|
||||
void updateTabLabel(const std::string& title);
|
||||
|
||||
private:
|
||||
|
||||
LLTextureCtrl* mSnapshotCtrl;
|
||||
LLUICtrl* mEditIcon;
|
||||
LLUICtrl* mClassifiedNameText;
|
||||
LLTextEditor* mClassifiedDescText;
|
||||
LLLineEditor* mClassifiedNameEdit;
|
||||
LLTextEditor* mClassifiedDescEdit;
|
||||
LLUICtrl* mLocationText;
|
||||
LLUICtrl* mLocationEdit;
|
||||
LLUICtrl* mCategoryText;
|
||||
LLComboBox* mCategoryCombo;
|
||||
LLUICtrl* mContentTypeText;
|
||||
LLIconCtrl* mContentTypeM;
|
||||
LLIconCtrl* mContentTypeG;
|
||||
LLComboBox* mContentTypeCombo;
|
||||
LLUICtrl* mPriceText;
|
||||
LLUICtrl* mAutoRenewText;
|
||||
LLUICtrl* mAutoRenewEdit;
|
||||
|
||||
LLButton* mMapButton;
|
||||
LLButton* mTeleportButton;
|
||||
LLButton* mEditButton;
|
||||
LLButton* mSaveButton;
|
||||
LLButton* mSetLocationButton;
|
||||
LLButton* mCancelButton;
|
||||
|
||||
LLPanel* mMapBtnCnt;
|
||||
LLPanel* mTeleportBtnCnt;
|
||||
LLPanel* mEditBtnCnt;
|
||||
LLPanel* mSaveBtnCnt;
|
||||
LLPanel* mCancelBtnCnt;
|
||||
|
||||
LLScrollContainer* mScrollContainer;
|
||||
LLView* mInfoPanel;
|
||||
LLPanel* mInfoScroll;
|
||||
LLPanel* mEditPanel;
|
||||
|
||||
|
||||
LLUUID mClassifiedId;
|
||||
LLVector3d mPosGlobal;
|
||||
LLUUID mParcelId;
|
||||
std::string mSimName;
|
||||
bool mFromSearch;
|
||||
bool mInfoLoaded;
|
||||
bool mEditMode;
|
||||
|
||||
// Needed for stat tracking
|
||||
S32 mTeleportClicksOld;
|
||||
S32 mMapClicksOld;
|
||||
S32 mProfileClicksOld;
|
||||
S32 mTeleportClicksNew;
|
||||
S32 mMapClicksNew;
|
||||
S32 mProfileClicksNew;
|
||||
|
||||
S32 mPriceForListing;
|
||||
|
||||
public: // <FS:ND> Need this public for fspanelclassified
|
||||
static void handleSearchStatResponse(LLUUID classifiedId, LLSD result);
|
||||
|
||||
private: // </FS:ND>
|
||||
|
||||
typedef std::list<LLPanelProfileClassified*> panel_list_t;
|
||||
static panel_list_t sAllPanels;
|
||||
|
||||
|
||||
bool mIsNew;
|
||||
bool mIsNewWithErrors;
|
||||
bool mCanClose;
|
||||
bool mEditOnLoad;
|
||||
|
||||
LLPublishClassifiedFloater* mPublishFloater;
|
||||
|
||||
S32 getClassifiedFee(); // <FS:CR> FIRE-9814 - Don't hardcode a classified listing fee
|
||||
};
|
||||
|
||||
#endif // LL_PANELPROFILECLASSIFIEDS_H
|
||||
|
|
@ -0,0 +1,807 @@
|
|||
/**
|
||||
* @file llpanelprofilepicks.cpp
|
||||
* @brief LLPanelProfilePicks and related class implementations
|
||||
*
|
||||
* $LicenseInfo:firstyear=2009&license=viewerlgpl$
|
||||
* Second Life Viewer Source Code
|
||||
* Copyright (C) 2010, Linden Research, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation;
|
||||
* version 2.1 of the License only.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
|
||||
* $/LicenseInfo$
|
||||
*/
|
||||
|
||||
#include "llviewerprecompiledheaders.h"
|
||||
|
||||
#include "llpanelprofilepicks.h"
|
||||
|
||||
#include "llagent.h"
|
||||
#include "llagentbenefits.h"
|
||||
#include "llagentpicksinfo.h"
|
||||
#include "llavataractions.h"
|
||||
#include "llavatarpropertiesprocessor.h"
|
||||
#include "llcommandhandler.h"
|
||||
#include "lldispatcher.h"
|
||||
#include "llfloaterreg.h"
|
||||
#include "llfloaterworldmap.h"
|
||||
#include "lllineeditor.h"
|
||||
#include "llnotificationsutil.h"
|
||||
#include "llpanelavatar.h"
|
||||
#include "llpanelprofile.h"
|
||||
#include "llparcel.h"
|
||||
#include "lltabcontainer.h"
|
||||
#include "lltextbox.h"
|
||||
#include "lltexteditor.h"
|
||||
#include "lltexturectrl.h"
|
||||
#include "lltexturectrl.h"
|
||||
#include "lltrans.h"
|
||||
#include "llviewergenericmessage.h" // send_generic_message
|
||||
#include "llviewerparcelmgr.h"
|
||||
#include "llviewerregion.h"
|
||||
|
||||
static LLPanelInjector<LLPanelProfilePicks> t_panel_profile_picks("panel_profile_picks");
|
||||
static LLPanelInjector<LLPanelProfilePick> t_panel_profile_pick("panel_profile_pick");
|
||||
|
||||
|
||||
class LLPickHandler : public LLCommandHandler
|
||||
{
|
||||
public:
|
||||
|
||||
// requires trusted browser to trigger
|
||||
LLPickHandler() : LLCommandHandler("pick", UNTRUSTED_THROTTLE) { }
|
||||
|
||||
bool handle(const LLSD& params, const LLSD& query_map,
|
||||
LLMediaCtrl* web)
|
||||
{
|
||||
if (!LLUI::getInstance()->mSettingGroups["config"]->getBOOL("EnablePicks"))
|
||||
{
|
||||
LLNotificationsUtil::add("NoPicks", LLSD(), LLSD(), std::string("SwitchToStandardSkinAndQuit"));
|
||||
return true;
|
||||
}
|
||||
|
||||
// handle app/classified/create urls first
|
||||
if (params.size() == 1 && params[0].asString() == "create")
|
||||
{
|
||||
LLAvatarActions::showPicks(gAgent.getID());
|
||||
return true;
|
||||
}
|
||||
|
||||
// then handle the general app/pick/{UUID}/{CMD} urls
|
||||
if (params.size() < 2)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// get the ID for the pick_id
|
||||
LLUUID pick_id;
|
||||
if (!pick_id.set(params[0], FALSE))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// edit the pick in the side tray.
|
||||
// need to ask the server for more info first though...
|
||||
const std::string verb = params[1].asString();
|
||||
if (verb == "edit")
|
||||
{
|
||||
LLAvatarActions::showPick(gAgent.getID(), pick_id);
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
LL_WARNS() << "unknown verb " << verb << LL_ENDL;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
};
|
||||
LLPickHandler gPickHandler;
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// LLPanelProfilePicks
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
LLPanelProfilePicks::LLPanelProfilePicks()
|
||||
: LLPanelProfileTab()
|
||||
, mPickToSelectOnLoad(LLUUID::null)
|
||||
, mRlvBehaviorCallbackConnection() // <FS:Ansariel> FIRE-15556: Picks can circumvent RLVa @showloc restriction
|
||||
{
|
||||
}
|
||||
|
||||
LLPanelProfilePicks::~LLPanelProfilePicks()
|
||||
{
|
||||
// <FS:Ansariel> FIRE-15556: Picks can circumvent RLVa @showloc restriction
|
||||
if (mRlvBehaviorCallbackConnection.connected())
|
||||
{
|
||||
mRlvBehaviorCallbackConnection.disconnect();
|
||||
}
|
||||
// </FS:Ansariel>
|
||||
}
|
||||
|
||||
void LLPanelProfilePicks::onOpen(const LLSD& key)
|
||||
{
|
||||
LLPanelProfileTab::onOpen(key);
|
||||
|
||||
resetData();
|
||||
|
||||
if (getSelfProfile() && !getEmbedded())
|
||||
{
|
||||
mNewButton->setVisible(TRUE);
|
||||
mNewButton->setEnabled(FALSE);
|
||||
|
||||
mDeleteButton->setVisible(TRUE);
|
||||
mDeleteButton->setEnabled(FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
void LLPanelProfilePicks::selectPick(const LLUUID& pick_id)
|
||||
{
|
||||
if (getIsLoaded())
|
||||
{
|
||||
for (S32 tab_idx = 0; tab_idx < mTabContainer->getTabCount(); ++tab_idx)
|
||||
{
|
||||
LLPanelProfilePick* pick_panel = dynamic_cast<LLPanelProfilePick*>(mTabContainer->getPanelByIndex(tab_idx));
|
||||
if (pick_panel)
|
||||
{
|
||||
if (pick_panel->getPickId() == pick_id)
|
||||
{
|
||||
mTabContainer->selectTabPanel(pick_panel);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
mPickToSelectOnLoad = pick_id;
|
||||
}
|
||||
}
|
||||
|
||||
BOOL LLPanelProfilePicks::postBuild()
|
||||
{
|
||||
mTabContainer = getChild<LLTabContainer>("tab_picks");
|
||||
mNoItemsLabel = getChild<LLUICtrl>("picks_panel_text");
|
||||
mNewButton = getChild<LLButton>("new_btn");
|
||||
mDeleteButton = getChild<LLButton>("delete_btn");
|
||||
|
||||
mNewButton->setCommitCallback(boost::bind(&LLPanelProfilePicks::onClickNewBtn, this));
|
||||
mDeleteButton->setCommitCallback(boost::bind(&LLPanelProfilePicks::onClickDelete, this));
|
||||
|
||||
// <FS:Ansariel> FIRE-15556: Picks can circumvent RLVa @showloc restriction
|
||||
mRlvBehaviorCallbackConnection = gRlvHandler.setBehaviourCallback(boost::bind(&LLPanelProfilePicks::updateRlvRestrictions, this, _1, _2));
|
||||
|
||||
// <FS:Ansariel> Replace hardcoded "Second Life" with grid label
|
||||
LLTextBox* intro_txt = getChild<LLTextBox>("Tell everyone about your favorite places in Second Life.");
|
||||
intro_txt->setTextArg("[GRID]", LLTrans::getString("SECOND_LIFE"));
|
||||
// </FS:Ansariel>
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void LLPanelProfilePicks::onClickNewBtn()
|
||||
{
|
||||
mNoItemsLabel->setVisible(FALSE);
|
||||
LLPanelProfilePick* pick_panel = LLPanelProfilePick::create();
|
||||
pick_panel->setAvatarId(getAvatarId());
|
||||
mTabContainer->addTabPanel(
|
||||
LLTabContainer::TabPanelParams().
|
||||
panel(pick_panel).
|
||||
select_tab(true).
|
||||
label(pick_panel->getPickName()));
|
||||
updateButtons();
|
||||
}
|
||||
|
||||
void LLPanelProfilePicks::onClickDelete()
|
||||
{
|
||||
LLPanelProfilePick* pick_panel = dynamic_cast<LLPanelProfilePick*>(mTabContainer->getCurrentPanel());
|
||||
if (pick_panel)
|
||||
{
|
||||
LLUUID pick_id = pick_panel->getPickId();
|
||||
LLSD args;
|
||||
args["PICK"] = pick_panel->getPickName();
|
||||
LLSD payload;
|
||||
payload["pick_id"] = pick_id;
|
||||
payload["tab_idx"] = mTabContainer->getCurrentPanelIndex();
|
||||
LLNotificationsUtil::add("DeleteAvatarPick", args, payload,
|
||||
boost::bind(&LLPanelProfilePicks::callbackDeletePick, this, _1, _2));
|
||||
}
|
||||
}
|
||||
|
||||
void LLPanelProfilePicks::callbackDeletePick(const LLSD& notification, const LLSD& response)
|
||||
{
|
||||
S32 option = LLNotificationsUtil::getSelectedOption(notification, response);
|
||||
|
||||
if (0 == option)
|
||||
{
|
||||
LLUUID pick_id = notification["payload"]["pick_id"].asUUID();
|
||||
S32 tab_idx = notification["payload"]["tab_idx"].asInteger();
|
||||
|
||||
LLPanelProfilePick* pick_panel = dynamic_cast<LLPanelProfilePick*>(mTabContainer->getPanelByIndex(tab_idx));
|
||||
if (pick_panel && pick_panel->getPickId() == pick_id)
|
||||
{
|
||||
mTabContainer->removeTabPanel(pick_panel);
|
||||
}
|
||||
|
||||
if (pick_id.notNull())
|
||||
{
|
||||
LLAvatarPropertiesProcessor::getInstance()->sendPickDelete(pick_id);
|
||||
}
|
||||
|
||||
updateButtons();
|
||||
}
|
||||
}
|
||||
|
||||
void LLPanelProfilePicks::processProperties(void* data, EAvatarProcessorType type)
|
||||
{
|
||||
if (APT_PICKS == type)
|
||||
{
|
||||
LLAvatarPicks* avatar_picks = static_cast<LLAvatarPicks*>(data);
|
||||
if (avatar_picks && getAvatarId() == avatar_picks->target_id)
|
||||
{
|
||||
LLUUID selected_id = mPickToSelectOnLoad;
|
||||
if (mPickToSelectOnLoad.isNull())
|
||||
{
|
||||
if (mTabContainer->getTabCount() > 0)
|
||||
{
|
||||
LLPanelProfilePick* active_pick_panel = dynamic_cast<LLPanelProfilePick*>(mTabContainer->getCurrentPanel());
|
||||
if (active_pick_panel)
|
||||
{
|
||||
selected_id = active_pick_panel->getPickId();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
mTabContainer->deleteAllTabs();
|
||||
|
||||
LLAvatarPicks::picks_list_t::const_iterator it = avatar_picks->picks_list.begin();
|
||||
for (; avatar_picks->picks_list.end() != it; ++it)
|
||||
{
|
||||
LLUUID pick_id = it->first;
|
||||
std::string pick_name = it->second;
|
||||
|
||||
LLPanelProfilePick* pick_panel = LLPanelProfilePick::create();
|
||||
|
||||
pick_panel->setPickId(pick_id);
|
||||
pick_panel->setPickName(pick_name);
|
||||
pick_panel->setAvatarId(getAvatarId());
|
||||
|
||||
mTabContainer->addTabPanel(
|
||||
LLTabContainer::TabPanelParams().
|
||||
panel(pick_panel).
|
||||
select_tab(selected_id == pick_id).
|
||||
label(pick_name));
|
||||
|
||||
if (selected_id == pick_id)
|
||||
{
|
||||
mPickToSelectOnLoad = LLUUID::null;
|
||||
}
|
||||
}
|
||||
|
||||
BOOL no_data = !mTabContainer->getTabCount();
|
||||
mNoItemsLabel->setVisible(no_data);
|
||||
if (no_data)
|
||||
{
|
||||
if(getSelfProfile())
|
||||
{
|
||||
mNoItemsLabel->setValue(LLTrans::getString("NoPicksText"));
|
||||
}
|
||||
else
|
||||
{
|
||||
mNoItemsLabel->setValue(LLTrans::getString("NoAvatarPicksText"));
|
||||
}
|
||||
}
|
||||
else if (selected_id.isNull())
|
||||
{
|
||||
mTabContainer->selectFirstTab();
|
||||
}
|
||||
|
||||
updateButtons();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void LLPanelProfilePicks::resetData()
|
||||
{
|
||||
resetLoading();
|
||||
mTabContainer->deleteAllTabs();
|
||||
}
|
||||
|
||||
void LLPanelProfilePicks::updateButtons()
|
||||
{
|
||||
LLPanelProfileTab::updateButtons();
|
||||
|
||||
if (getSelfProfile() && !getEmbedded())
|
||||
{
|
||||
// <FS:Ansariel> RLVa support
|
||||
//mNewButton->setEnabled(canAddNewPick());
|
||||
mNewButton->setEnabled(canAddNewPick() && !gRlvHandler.hasBehaviour(RLV_BHVR_SHOWLOC));
|
||||
// </FS:Ansariel>
|
||||
mDeleteButton->setEnabled(canDeletePick());
|
||||
}
|
||||
}
|
||||
|
||||
void LLPanelProfilePicks::apply()
|
||||
{
|
||||
if (getIsLoaded())
|
||||
{
|
||||
for (S32 tab_idx = 0; tab_idx < mTabContainer->getTabCount(); ++tab_idx)
|
||||
{
|
||||
LLPanelProfilePick* pick_panel = dynamic_cast<LLPanelProfilePick*>(mTabContainer->getPanelByIndex(tab_idx));
|
||||
if (pick_panel)
|
||||
{
|
||||
pick_panel->apply();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void LLPanelProfilePicks::updateData()
|
||||
{
|
||||
// Send picks request only once
|
||||
LLUUID avatar_id = getAvatarId();
|
||||
if (!getIsLoading() && avatar_id.notNull())
|
||||
{
|
||||
setIsLoading();
|
||||
mNoItemsLabel->setValue(LLTrans::getString("PicksClassifiedsLoadingText"));
|
||||
mNoItemsLabel->setVisible(TRUE);
|
||||
|
||||
LLAvatarPropertiesProcessor::getInstance()->sendAvatarPicksRequest(avatar_id);
|
||||
}
|
||||
}
|
||||
|
||||
// <FS:Ansariel> FIRE-15556: Picks can circumvent RLVa @showloc restriction
|
||||
void LLPanelProfilePicks::updateRlvRestrictions(ERlvBehaviour behavior, ERlvParamType type)
|
||||
{
|
||||
if (behavior == RLV_BHVR_SHOWLOC)
|
||||
{
|
||||
updateButtons();
|
||||
}
|
||||
}
|
||||
|
||||
bool LLPanelProfilePicks::canAddNewPick()
|
||||
{
|
||||
return (!LLAgentPicksInfo::getInstance()->isPickLimitReached() &&
|
||||
// <FS:Ansariel> FIRE-15556: Picks can circumvent RLVa @showloc restriction
|
||||
//mTabContainer->getTabCount() < LLAgentBenefitsMgr::current().getPicksLimit());
|
||||
mTabContainer->getTabCount() < LLAgentBenefitsMgr::current().getPicksLimit() &&
|
||||
!gRlvHandler.hasBehaviour(RLV_BHVR_SHOWLOC));
|
||||
// </FS:Ansariel>
|
||||
}
|
||||
|
||||
bool LLPanelProfilePicks::canDeletePick()
|
||||
{
|
||||
return (mTabContainer->getTabCount() > 0);
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// LLPanelProfilePick
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
LLPanelProfilePick::LLPanelProfilePick()
|
||||
: LLPanelProfileTab()
|
||||
, LLRemoteParcelInfoObserver()
|
||||
, mSnapshotCtrl(NULL)
|
||||
, mPickId(LLUUID::null)
|
||||
, mParcelId(LLUUID::null)
|
||||
, mRequestedId(LLUUID::null)
|
||||
, mLocationChanged(false)
|
||||
, mNewPick(false)
|
||||
, mCurrentPickDescription("")
|
||||
, mIsEditing(false)
|
||||
{
|
||||
}
|
||||
|
||||
//static
|
||||
LLPanelProfilePick* LLPanelProfilePick::create()
|
||||
{
|
||||
LLPanelProfilePick* panel = new LLPanelProfilePick();
|
||||
panel->buildFromFile("panel_profile_pick.xml");
|
||||
return panel;
|
||||
}
|
||||
|
||||
LLPanelProfilePick::~LLPanelProfilePick()
|
||||
{
|
||||
if (mParcelId.notNull())
|
||||
{
|
||||
LLRemoteParcelInfoProcessor::getInstance()->removeObserver(mParcelId, this);
|
||||
}
|
||||
}
|
||||
|
||||
void LLPanelProfilePick::setAvatarId(const LLUUID& avatar_id)
|
||||
{
|
||||
if (avatar_id.isNull())
|
||||
{
|
||||
return;
|
||||
}
|
||||
LLPanelProfileTab::setAvatarId(avatar_id);
|
||||
|
||||
// creating new Pick
|
||||
if (getPickId().isNull() && getSelfProfile())
|
||||
{
|
||||
mNewPick = true;
|
||||
|
||||
setPosGlobal(gAgent.getPositionGlobal());
|
||||
|
||||
LLUUID parcel_id = LLUUID::null, snapshot_id = LLUUID::null;
|
||||
std::string pick_name, pick_desc, region_name;
|
||||
|
||||
LLParcel* parcel = LLViewerParcelMgr::getInstance()->getAgentParcel();
|
||||
if (parcel)
|
||||
{
|
||||
parcel_id = parcel->getID();
|
||||
pick_name = parcel->getName();
|
||||
pick_desc = parcel->getDesc();
|
||||
snapshot_id = parcel->getSnapshotID();
|
||||
}
|
||||
|
||||
LLViewerRegion* region = gAgent.getRegion();
|
||||
if (region)
|
||||
{
|
||||
region_name = region->getName();
|
||||
}
|
||||
|
||||
setParcelID(parcel_id);
|
||||
setPickName(pick_name.empty() ? region_name : pick_name);
|
||||
setPickDesc(pick_desc);
|
||||
setSnapshotId(snapshot_id);
|
||||
setPickLocation(createLocationText(getLocationNotice(), pick_name, region_name, getPosGlobal()));
|
||||
|
||||
enableSaveButton(TRUE);
|
||||
}
|
||||
else
|
||||
{
|
||||
LLAvatarPropertiesProcessor::getInstance()->sendPickInfoRequest(getAvatarId(), getPickId());
|
||||
|
||||
enableSaveButton(FALSE);
|
||||
}
|
||||
|
||||
resetDirty();
|
||||
|
||||
if (getSelfProfile() && !getEmbedded())
|
||||
{
|
||||
mPickName->setEnabled(TRUE);
|
||||
mPickDescription->setEnabled(TRUE);
|
||||
mSetCurrentLocationButton->setVisible(TRUE);
|
||||
}
|
||||
else
|
||||
{
|
||||
mSnapshotCtrl->setEnabled(FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
BOOL LLPanelProfilePick::postBuild()
|
||||
{
|
||||
mPickName = getChild<LLLineEditor>("pick_name");
|
||||
mPickDescription = getChild<LLTextEditor>("pick_desc");
|
||||
mSaveButton = getChild<LLButton>("save_changes_btn");
|
||||
mSetCurrentLocationButton = getChild<LLButton>("set_to_curr_location_btn");
|
||||
|
||||
mSnapshotCtrl = getChild<LLTextureCtrl>("pick_snapshot");
|
||||
mSnapshotCtrl->setCommitCallback(boost::bind(&LLPanelProfilePick::onSnapshotChanged, this));
|
||||
|
||||
childSetAction("teleport_btn", boost::bind(&LLPanelProfilePick::onClickTeleport, this));
|
||||
childSetAction("show_on_map_btn", boost::bind(&LLPanelProfilePick::onClickMap, this));
|
||||
|
||||
mSaveButton->setCommitCallback(boost::bind(&LLPanelProfilePick::onClickSave, this));
|
||||
mSetCurrentLocationButton->setCommitCallback(boost::bind(&LLPanelProfilePick::onClickSetLocation, this));
|
||||
|
||||
mPickName->setKeystrokeCallback(boost::bind(&LLPanelProfilePick::onPickChanged, this, _1), NULL);
|
||||
mPickName->setEnabled(FALSE);
|
||||
|
||||
mPickDescription->setKeystrokeCallback(boost::bind(&LLPanelProfilePick::onPickChanged, this, _1));
|
||||
mPickDescription->setFocusReceivedCallback(boost::bind(&LLPanelProfilePick::onDescriptionFocusReceived, this));
|
||||
|
||||
getChild<LLUICtrl>("pick_location")->setEnabled(FALSE);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void LLPanelProfilePick::onDescriptionFocusReceived()
|
||||
{
|
||||
if (!mIsEditing && getSelfProfile())
|
||||
{
|
||||
mIsEditing = true;
|
||||
mPickDescription->setParseHTML(false);
|
||||
setPickDesc(mCurrentPickDescription);
|
||||
}
|
||||
}
|
||||
|
||||
void LLPanelProfilePick::processProperties(void* data, EAvatarProcessorType type)
|
||||
{
|
||||
if (APT_PICK_INFO != type)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
LLPickData* pick_info = static_cast<LLPickData*>(data);
|
||||
if (!pick_info
|
||||
|| pick_info->creator_id != getAvatarId()
|
||||
|| pick_info->pick_id != getPickId())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
mIsEditing = false;
|
||||
mPickDescription->setParseHTML(true);
|
||||
mParcelId = pick_info->parcel_id;
|
||||
setSnapshotId(pick_info->snapshot_id);
|
||||
if (!getSelfProfile() || getEmbedded())
|
||||
{
|
||||
mSnapshotCtrl->setEnabled(FALSE);
|
||||
}
|
||||
setPickName(pick_info->name);
|
||||
setPickDesc(pick_info->desc);
|
||||
setPosGlobal(pick_info->pos_global);
|
||||
mCurrentPickDescription = pick_info->desc;
|
||||
|
||||
// Send remote parcel info request to get parcel name and sim (region) name.
|
||||
sendParcelInfoRequest();
|
||||
|
||||
// *NOTE dzaporozhan
|
||||
// We want to keep listening to APT_PICK_INFO because user may
|
||||
// edit the Pick and we have to update Pick info panel.
|
||||
// revomeObserver is called from onClickBack
|
||||
|
||||
updateButtons();
|
||||
}
|
||||
|
||||
void LLPanelProfilePick::apply()
|
||||
{
|
||||
if ((mNewPick || getIsLoaded()) && isDirty())
|
||||
{
|
||||
sendUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
void LLPanelProfilePick::setSnapshotId(const LLUUID& id)
|
||||
{
|
||||
mSnapshotCtrl->setImageAssetID(id);
|
||||
mSnapshotCtrl->setValid(TRUE);
|
||||
}
|
||||
|
||||
void LLPanelProfilePick::setPickName(const std::string& name)
|
||||
{
|
||||
mPickName->setValue(name);
|
||||
}
|
||||
|
||||
const std::string LLPanelProfilePick::getPickName()
|
||||
{
|
||||
return mPickName->getValue().asString();
|
||||
}
|
||||
|
||||
void LLPanelProfilePick::setPickDesc(const std::string& desc)
|
||||
{
|
||||
mPickDescription->setValue(desc);
|
||||
}
|
||||
|
||||
void LLPanelProfilePick::setPickLocation(const std::string& location)
|
||||
{
|
||||
getChild<LLUICtrl>("pick_location")->setValue(location);
|
||||
}
|
||||
|
||||
void LLPanelProfilePick::onClickMap()
|
||||
{
|
||||
LLFloaterWorldMap::getInstance()->trackLocation(getPosGlobal());
|
||||
LLFloaterReg::showInstance("world_map", "center");
|
||||
}
|
||||
|
||||
void LLPanelProfilePick::onClickTeleport()
|
||||
{
|
||||
if (!getPosGlobal().isExactlyZero())
|
||||
{
|
||||
gAgent.teleportViaLocation(getPosGlobal());
|
||||
LLFloaterWorldMap::getInstance()->trackLocation(getPosGlobal());
|
||||
}
|
||||
}
|
||||
|
||||
void LLPanelProfilePick::enableSaveButton(BOOL enable)
|
||||
{
|
||||
mSaveButton->setEnabled(enable);
|
||||
mSaveButton->setVisible(enable);
|
||||
}
|
||||
|
||||
void LLPanelProfilePick::onSnapshotChanged()
|
||||
{
|
||||
enableSaveButton(TRUE);
|
||||
}
|
||||
|
||||
void LLPanelProfilePick::onPickChanged(LLUICtrl* ctrl)
|
||||
{
|
||||
if (ctrl && ctrl == mPickName)
|
||||
{
|
||||
updateTabLabel(mPickName->getText());
|
||||
}
|
||||
|
||||
enableSaveButton(isDirty());
|
||||
}
|
||||
|
||||
void LLPanelProfilePick::resetDirty()
|
||||
{
|
||||
LLPanel::resetDirty();
|
||||
|
||||
mPickName->resetDirty();
|
||||
mPickDescription->resetDirty();
|
||||
mSnapshotCtrl->resetDirty();
|
||||
mLocationChanged = false;
|
||||
}
|
||||
|
||||
BOOL LLPanelProfilePick::isDirty() const
|
||||
{
|
||||
if (mNewPick
|
||||
|| LLPanel::isDirty()
|
||||
|| mLocationChanged
|
||||
|| mSnapshotCtrl->isDirty()
|
||||
|| mPickName->isDirty()
|
||||
|| mPickDescription->isDirty())
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
void LLPanelProfilePick::onClickSetLocation()
|
||||
{
|
||||
// Save location for later use.
|
||||
setPosGlobal(gAgent.getPositionGlobal());
|
||||
|
||||
std::string parcel_name, region_name;
|
||||
|
||||
LLParcel* parcel = LLViewerParcelMgr::getInstance()->getAgentParcel();
|
||||
if (parcel)
|
||||
{
|
||||
mParcelId = parcel->getID();
|
||||
parcel_name = parcel->getName();
|
||||
}
|
||||
|
||||
LLViewerRegion* region = gAgent.getRegion();
|
||||
if (region)
|
||||
{
|
||||
region_name = region->getName();
|
||||
}
|
||||
|
||||
setPickLocation(createLocationText(getLocationNotice(), parcel_name, region_name, getPosGlobal()));
|
||||
|
||||
mLocationChanged = true;
|
||||
enableSaveButton(TRUE);
|
||||
}
|
||||
|
||||
void LLPanelProfilePick::onClickSave()
|
||||
{
|
||||
sendUpdate();
|
||||
|
||||
mLocationChanged = false;
|
||||
}
|
||||
|
||||
std::string LLPanelProfilePick::getLocationNotice()
|
||||
{
|
||||
static const std::string notice = getString("location_notice");
|
||||
return notice;
|
||||
}
|
||||
|
||||
void LLPanelProfilePick::sendParcelInfoRequest()
|
||||
{
|
||||
if (mParcelId != mRequestedId)
|
||||
{
|
||||
if (mRequestedId.notNull())
|
||||
{
|
||||
LLRemoteParcelInfoProcessor::getInstance()->removeObserver(mRequestedId, this);
|
||||
}
|
||||
LLRemoteParcelInfoProcessor::getInstance()->addObserver(mParcelId, this);
|
||||
LLRemoteParcelInfoProcessor::getInstance()->sendParcelInfoRequest(mParcelId);
|
||||
|
||||
mRequestedId = mParcelId;
|
||||
}
|
||||
}
|
||||
|
||||
void LLPanelProfilePick::processParcelInfo(const LLParcelData& parcel_data)
|
||||
{
|
||||
setPickLocation(createLocationText(LLStringUtil::null, parcel_data.name, parcel_data.sim_name, getPosGlobal()));
|
||||
|
||||
// We have received parcel info for the requested ID so clear it now.
|
||||
mRequestedId.setNull();
|
||||
|
||||
if (mParcelId.notNull())
|
||||
{
|
||||
LLRemoteParcelInfoProcessor::getInstance()->removeObserver(mParcelId, this);
|
||||
}
|
||||
}
|
||||
|
||||
void LLPanelProfilePick::sendUpdate()
|
||||
{
|
||||
LLPickData pick_data;
|
||||
|
||||
// If we don't have a pick id yet, we'll need to generate one,
|
||||
// otherwise we'll keep overwriting pick_id 00000 in the database.
|
||||
if (getPickId().isNull())
|
||||
{
|
||||
getPickId().generate();
|
||||
}
|
||||
|
||||
pick_data.agent_id = gAgentID;
|
||||
pick_data.session_id = gAgent.getSessionID();
|
||||
pick_data.pick_id = getPickId();
|
||||
pick_data.creator_id = gAgentID;;
|
||||
|
||||
//legacy var need to be deleted
|
||||
pick_data.top_pick = FALSE;
|
||||
pick_data.parcel_id = mParcelId;
|
||||
pick_data.name = getPickName();
|
||||
pick_data.desc = mPickDescription->getValue().asString();
|
||||
pick_data.snapshot_id = mSnapshotCtrl->getImageAssetID();
|
||||
pick_data.pos_global = getPosGlobal();
|
||||
pick_data.sort_order = 0;
|
||||
pick_data.enabled = TRUE;
|
||||
|
||||
LLAvatarPropertiesProcessor::getInstance()->sendPickInfoUpdate(&pick_data);
|
||||
|
||||
if(mNewPick)
|
||||
{
|
||||
// Assume a successful create pick operation, make new number of picks
|
||||
// available immediately. Actual number of picks will be requested in
|
||||
// LLAvatarPropertiesProcessor::sendPickInfoUpdate and updated upon server respond.
|
||||
LLAgentPicksInfo::getInstance()->incrementNumberOfPicks();
|
||||
}
|
||||
}
|
||||
|
||||
// static
|
||||
std::string LLPanelProfilePick::createLocationText(const std::string& owner_name, const std::string& original_name, const std::string& sim_name, const LLVector3d& pos_global)
|
||||
{
|
||||
std::string location_text(owner_name);
|
||||
if (!original_name.empty())
|
||||
{
|
||||
if (!location_text.empty())
|
||||
{
|
||||
location_text.append(", ");
|
||||
}
|
||||
location_text.append(original_name);
|
||||
|
||||
}
|
||||
|
||||
if (!sim_name.empty())
|
||||
{
|
||||
if (!location_text.empty())
|
||||
{
|
||||
location_text.append(", ");
|
||||
}
|
||||
location_text.append(sim_name);
|
||||
}
|
||||
|
||||
if (!location_text.empty())
|
||||
{
|
||||
location_text.append(" ");
|
||||
}
|
||||
|
||||
if (!pos_global.isNull())
|
||||
{
|
||||
S32 region_x = ll_round((F32)pos_global.mdV[VX]) % REGION_WIDTH_UNITS;
|
||||
S32 region_y = ll_round((F32)pos_global.mdV[VY]) % REGION_WIDTH_UNITS;
|
||||
S32 region_z = ll_round((F32)pos_global.mdV[VZ]);
|
||||
location_text.append(llformat(" (%d, %d, %d)", region_x, region_y, region_z));
|
||||
}
|
||||
return location_text;
|
||||
}
|
||||
|
||||
void LLPanelProfilePick::updateTabLabel(const std::string& title)
|
||||
{
|
||||
setLabel(title);
|
||||
LLTabContainer* parent = dynamic_cast<LLTabContainer*>(getParent());
|
||||
if (parent)
|
||||
{
|
||||
parent->setCurrentTabName(title);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,241 @@
|
|||
/**
|
||||
* @file llpanelprofilepicks.h
|
||||
* @brief LLPanelProfilePicks and related class definitions
|
||||
*
|
||||
* $LicenseInfo:firstyear=2009&license=viewerlgpl$
|
||||
* Second Life Viewer Source Code
|
||||
* Copyright (C) 2010, Linden Research, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation;
|
||||
* version 2.1 of the License only.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
|
||||
* $/LicenseInfo$
|
||||
*/
|
||||
|
||||
#ifndef LL_LLPANELPICKS_H
|
||||
#define LL_LLPANELPICKS_H
|
||||
|
||||
#include "llpanel.h"
|
||||
#include "lluuid.h"
|
||||
#include "llavatarpropertiesprocessor.h"
|
||||
#include "llpanelavatar.h"
|
||||
#include "llremoteparcelrequest.h"
|
||||
|
||||
#include "rlvhandler.h"
|
||||
|
||||
class LLTabContainer;
|
||||
class LLTextureCtrl;
|
||||
class LLMediaCtrl;
|
||||
class LLLineEditor;
|
||||
class LLTextEditor;
|
||||
|
||||
|
||||
/**
|
||||
* Panel for displaying Avatar's picks.
|
||||
*/
|
||||
class LLPanelProfilePicks
|
||||
: public LLPanelProfileTab
|
||||
{
|
||||
public:
|
||||
LLPanelProfilePicks();
|
||||
/*virtual*/ ~LLPanelProfilePicks();
|
||||
|
||||
/*virtual*/ BOOL postBuild();
|
||||
|
||||
/*virtual*/ void onOpen(const LLSD& key);
|
||||
|
||||
void selectPick(const LLUUID& pick_id);
|
||||
|
||||
/*virtual*/ void processProperties(void* data, EAvatarProcessorType type);
|
||||
|
||||
/*virtual*/ void resetData();
|
||||
|
||||
/*virtual*/ void updateButtons();
|
||||
|
||||
/**
|
||||
* Saves changes.
|
||||
*/
|
||||
virtual void apply();
|
||||
|
||||
/**
|
||||
* Sends update data request to server.
|
||||
*/
|
||||
/*virtual*/ void updateData();
|
||||
|
||||
private:
|
||||
void onClickNewBtn();
|
||||
void onClickDelete();
|
||||
void callbackDeletePick(const LLSD& notification, const LLSD& response);
|
||||
|
||||
// <FS:Ansariel> FIRE-15556: Picks can circumvent RLVa @showloc restriction
|
||||
boost::signals2::connection mRlvBehaviorCallbackConnection;
|
||||
void updateRlvRestrictions(ERlvBehaviour behavior, ERlvParamType type);
|
||||
// </FS:Ansariel>
|
||||
|
||||
bool canAddNewPick();
|
||||
bool canDeletePick();
|
||||
|
||||
LLTabContainer* mTabContainer;
|
||||
LLUICtrl* mNoItemsLabel;
|
||||
LLButton* mNewButton;
|
||||
LLButton* mDeleteButton;
|
||||
|
||||
LLUUID mPickToSelectOnLoad;
|
||||
};
|
||||
|
||||
|
||||
class LLPanelProfilePick
|
||||
: public LLPanelProfileTab
|
||||
, public LLRemoteParcelInfoObserver
|
||||
{
|
||||
public:
|
||||
|
||||
// Creates new panel
|
||||
static LLPanelProfilePick* create();
|
||||
|
||||
LLPanelProfilePick();
|
||||
|
||||
/*virtual*/ ~LLPanelProfilePick();
|
||||
|
||||
/*virtual*/ BOOL postBuild();
|
||||
|
||||
void setAvatarId(const LLUUID& avatar_id);
|
||||
|
||||
void setPickId(const LLUUID& id) { mPickId = id; }
|
||||
virtual LLUUID& getPickId() { return mPickId; }
|
||||
|
||||
virtual void setPickName(const std::string& name);
|
||||
const std::string getPickName();
|
||||
|
||||
/*virtual*/ void processProperties(void* data, EAvatarProcessorType type);
|
||||
|
||||
/**
|
||||
* Saves changes.
|
||||
*/
|
||||
virtual void apply();
|
||||
|
||||
void updateTabLabel(const std::string& title);
|
||||
|
||||
//This stuff we got from LLRemoteParcelObserver, in the last one we intentionally do nothing
|
||||
/*virtual*/ void processParcelInfo(const LLParcelData& parcel_data);
|
||||
/*virtual*/ void setParcelID(const LLUUID& parcel_id) { mParcelId = parcel_id; }
|
||||
/*virtual*/ void setErrorStatus(S32 status, const std::string& reason) {};
|
||||
|
||||
protected:
|
||||
|
||||
/**
|
||||
* Sends remote parcel info request to resolve parcel name from its ID.
|
||||
*/
|
||||
void sendParcelInfoRequest();
|
||||
|
||||
/**
|
||||
* "Location text" is actually the owner name, the original
|
||||
* name that owner gave the parcel, and the location.
|
||||
*/
|
||||
static std::string createLocationText(
|
||||
const std::string& owner_name,
|
||||
const std::string& original_name,
|
||||
const std::string& sim_name,
|
||||
const LLVector3d& pos_global);
|
||||
|
||||
/**
|
||||
* Sets snapshot id.
|
||||
*
|
||||
* Will mark snapshot control as valid if id is not null.
|
||||
* Will mark snapshot control as invalid if id is null. If null id is a valid value,
|
||||
* you have to manually mark snapshot is valid.
|
||||
*/
|
||||
virtual void setSnapshotId(const LLUUID& id);
|
||||
virtual void setPickDesc(const std::string& desc);
|
||||
virtual void setPickLocation(const std::string& location);
|
||||
|
||||
virtual void setPosGlobal(const LLVector3d& pos) { mPosGlobal = pos; }
|
||||
virtual LLVector3d& getPosGlobal() { return mPosGlobal; }
|
||||
|
||||
/**
|
||||
* Callback for "Map" button, opens Map
|
||||
*/
|
||||
void onClickMap();
|
||||
|
||||
/**
|
||||
* Callback for "Teleport" button, teleports user to Pick location.
|
||||
*/
|
||||
void onClickTeleport();
|
||||
|
||||
/**
|
||||
* Enables/disables "Save" button
|
||||
*/
|
||||
void enableSaveButton(BOOL enable);
|
||||
|
||||
/**
|
||||
* Called when snapshot image changes.
|
||||
*/
|
||||
void onSnapshotChanged();
|
||||
|
||||
/**
|
||||
* Callback for Pick snapshot, name and description changed event.
|
||||
*/
|
||||
void onPickChanged(LLUICtrl* ctrl);
|
||||
|
||||
/**
|
||||
* Resets panel and all cantrols to unedited state
|
||||
*/
|
||||
/*virtual*/ void resetDirty();
|
||||
|
||||
/**
|
||||
* Returns true if any of Pick properties was changed by user.
|
||||
*/
|
||||
/*virtual*/ BOOL isDirty() const;
|
||||
|
||||
/**
|
||||
* Callback for "Set Location" button click
|
||||
*/
|
||||
void onClickSetLocation();
|
||||
|
||||
/**
|
||||
* Callback for "Save" button click
|
||||
*/
|
||||
void onClickSave();
|
||||
|
||||
std::string getLocationNotice();
|
||||
|
||||
/**
|
||||
* Sends Pick properties to server.
|
||||
*/
|
||||
void sendUpdate();
|
||||
|
||||
protected:
|
||||
|
||||
LLTextureCtrl* mSnapshotCtrl;
|
||||
LLLineEditor* mPickName;
|
||||
LLTextEditor* mPickDescription;
|
||||
LLButton* mSetCurrentLocationButton;
|
||||
LLButton* mSaveButton;
|
||||
|
||||
LLVector3d mPosGlobal;
|
||||
LLUUID mParcelId;
|
||||
LLUUID mPickId;
|
||||
LLUUID mRequestedId;
|
||||
|
||||
bool mLocationChanged;
|
||||
bool mNewPick;
|
||||
bool mIsEditing;
|
||||
|
||||
std::string mCurrentPickDescription;
|
||||
|
||||
void onDescriptionFocusReceived();
|
||||
};
|
||||
|
||||
#endif // LL_LLPANELPICKS_H
|
||||
|
|
@ -485,7 +485,12 @@ void LLPreviewTexture::reshape(S32 width, S32 height, BOOL called_from_parent)
|
|||
|
||||
// add space for dimensions and aspect ratio
|
||||
S32 info_height = dim_rect.mTop + CLIENT_RECT_VPAD;
|
||||
|
||||
// <FS:Ansariel> Texture preview mode
|
||||
//if (getChild<LLLayoutPanel>("buttons_panel")->getVisible())
|
||||
//{
|
||||
// info_height += getChild<LLLayoutPanel>("buttons_panel")->getRect().getHeight();
|
||||
//}
|
||||
// </FS:Ansariel>
|
||||
LLRect client_rect(horiz_pad, getRect().getHeight(), getRect().getWidth() - horiz_pad, 0);
|
||||
client_rect.mTop -= (PREVIEW_HEADER_SIZE + CLIENT_RECT_VPAD);
|
||||
|
||||
|
|
@ -548,6 +553,18 @@ void LLPreviewTexture::openToSave()
|
|||
mPreviewToSave = TRUE;
|
||||
}
|
||||
|
||||
// <FS:Ansariel> Texture preview mode
|
||||
//void LLPreviewTexture::hideCtrlButtons()
|
||||
//{
|
||||
// getChildView("desc txt")->setVisible(false);
|
||||
// getChildView("desc")->setVisible(false);
|
||||
// getChild<LLLayoutStack>("preview_stack")->collapsePanel(getChild<LLLayoutPanel>("buttons_panel"), true);
|
||||
// getChild<LLLayoutPanel>("buttons_panel")->setVisible(false);
|
||||
// getChild<LLComboBox>("combo_aspect_ratio")->setCurrentByIndex(0); //unconstrained
|
||||
// reshape(getRect().getWidth(), getRect().getHeight());
|
||||
//}
|
||||
// </FS:Ansariel>
|
||||
|
||||
// static
|
||||
void LLPreviewTexture::onFileLoadedForSaveTGA(BOOL success,
|
||||
LLViewerFetchedTexture *src_vi,
|
||||
|
|
|
|||
|
|
@ -92,6 +92,9 @@ public:
|
|||
|
||||
static void onSaveAsBtn(LLUICtrl* ctrl, void* data);
|
||||
|
||||
// <FS:Ansariel> Texture preview mode
|
||||
//void hideCtrlButtons();
|
||||
|
||||
/*virtual*/ void setObjectID(const LLUUID& object_id);
|
||||
|
||||
// <FS:Techwolf Lupindo> texture comment metadata reader
|
||||
|
|
|
|||
|
|
@ -100,6 +100,7 @@
|
|||
#include "llfloateravatarpicker.h"
|
||||
#include "llcallbacklist.h"
|
||||
#include "llcallingcard.h"
|
||||
#include "llclassifiedinfo.h"
|
||||
#include "llconsole.h"
|
||||
#include "llcontainerview.h"
|
||||
#include "llconversationlog.h"
|
||||
|
|
@ -132,7 +133,6 @@
|
|||
// <FS:Ansariel> [FS Login Panel]
|
||||
#include "llmutelist.h"
|
||||
#include "llavatarpropertiesprocessor.h"
|
||||
#include "llpanelclassified.h"
|
||||
#include "llpanelpick.h"
|
||||
#include "llpanelgrouplandmoney.h"
|
||||
#include "llpanelgroupnotices.h"
|
||||
|
|
@ -3477,7 +3477,6 @@ void register_viewer_callbacks(LLMessageSystem* msg)
|
|||
msg->setHandlerFunc("EventInfoReply", LLEventNotifier::processEventInfoReply);
|
||||
|
||||
msg->setHandlerFunc("PickInfoReply", &LLAvatarPropertiesProcessor::processPickInfoReply);
|
||||
// msg->setHandlerFunc("ClassifiedInfoReply", LLPanelClassified::processClassifiedInfoReply);
|
||||
msg->setHandlerFunc("ClassifiedInfoReply", LLAvatarPropertiesProcessor::processClassifiedInfoReply);
|
||||
msg->setHandlerFunc("ParcelInfoReply", LLRemoteParcelInfoProcessor::processParcelInfoReply);
|
||||
msg->setHandlerFunc("ScriptDialog", process_script_dialog);
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@
|
|||
#include "llui.h"
|
||||
#include "llviewerinventory.h"
|
||||
#include "llpermissions.h"
|
||||
#include "llpreviewtexture.h"
|
||||
#include "llsaleinfo.h"
|
||||
#include "llassetstorage.h"
|
||||
#include "lltextbox.h"
|
||||
|
|
@ -1368,15 +1369,14 @@ LLTextureCtrl::LLTextureCtrl(const LLTextureCtrl::Params& p)
|
|||
mNeedsRawImageData( FALSE ),
|
||||
mValid( TRUE ),
|
||||
mShowLoadingPlaceholder( TRUE ),
|
||||
mOpenTexPreview(!p.enabled), // <FS:Ansariel> For texture preview mode
|
||||
mImageAssetID(p.image_id),
|
||||
mDefaultImageAssetID(p.default_image_id),
|
||||
mDefaultImageName(p.default_image_name),
|
||||
mFallbackImage(p.fallback_image),
|
||||
mBakeTextureEnabled(FALSE),
|
||||
// <FS:Ansariel> Mask texture if desired
|
||||
mIsMasked(FALSE),
|
||||
// </FS:Ansariel> Mask texture if desired
|
||||
mPreviewMode(!p.enabled) // <FS:Ansariel> For texture preview mode
|
||||
mIsMasked(FALSE)
|
||||
{
|
||||
|
||||
// Default of defaults is white image for diff tex
|
||||
|
|
@ -1502,7 +1502,7 @@ void LLTextureCtrl::setEnabled( BOOL enabled )
|
|||
// <FS:Ansariel> Texture preview mode
|
||||
//LLView::setEnabled( enabled );
|
||||
LLView::setEnabled( (enabled || getValue().asUUID().notNull()) );
|
||||
mPreviewMode = !enabled;
|
||||
mOpenTexPreview = !enabled;
|
||||
// </FS:Ansariel>
|
||||
}
|
||||
|
||||
|
|
@ -1640,13 +1640,7 @@ BOOL LLTextureCtrl::handleMouseDown(S32 x, S32 y, MASK mask)
|
|||
|
||||
if (!handled && mBorder->parentPointInView(x, y))
|
||||
{
|
||||
// <FS:Ansariel> Texture preview mode
|
||||
//showPicker(FALSE);
|
||||
////grab textures first...
|
||||
//LLInventoryModelBackgroundFetch::instance().start(gInventory.findCategoryUUIDForType(LLFolderType::FT_TEXTURE));
|
||||
////...then start full inventory fetch.
|
||||
//LLInventoryModelBackgroundFetch::instance().start();
|
||||
if (!mPreviewMode)
|
||||
if (!mOpenTexPreview)
|
||||
{
|
||||
showPicker(FALSE);
|
||||
//grab textures first...
|
||||
|
|
@ -1654,6 +1648,23 @@ BOOL LLTextureCtrl::handleMouseDown(S32 x, S32 y, MASK mask)
|
|||
//...then start full inventory fetch.
|
||||
LLInventoryModelBackgroundFetch::instance().start();
|
||||
}
|
||||
// <FS:Ansariel> Texture preview mode
|
||||
//else
|
||||
//{
|
||||
// if (getImageAssetID().notNull())
|
||||
// {
|
||||
// LLPreviewTexture* preview_texture = LLFloaterReg::showTypedInstance<LLPreviewTexture>("preview_texture", getValue());
|
||||
// if (preview_texture && !preview_texture->isDependent())
|
||||
// {
|
||||
// LLFloater* root_floater = gFloaterView->getParentFloater(this);
|
||||
// if (root_floater)
|
||||
// {
|
||||
// root_floater->addDependentFloater(preview_texture);
|
||||
// preview_texture->hideCtrlButtons();
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
else if (!mIsMasked)
|
||||
{
|
||||
// Open the preview floater for the texture
|
||||
|
|
@ -1801,7 +1812,7 @@ BOOL LLTextureCtrl::handleDragAndDrop(S32 x, S32 y, MASK mask,
|
|||
|
||||
// <FS:Ansariel> FIRE-10125: Texture picker allows dragging of textures while in preview mode
|
||||
//if (getEnabled() &&
|
||||
if (getEnabled() && !mPreviewMode &&
|
||||
if (getEnabled() && !mOpenTexPreview &&
|
||||
// </FS:Ansariel>
|
||||
((cargo_type == DAD_TEXTURE) || is_mesh) &&
|
||||
allowDrop(item))
|
||||
|
|
@ -2017,7 +2028,7 @@ BOOL LLTextureCtrl::handleUnicodeCharHere(llwchar uni_char)
|
|||
{
|
||||
// <FS:Ansariel> Texture preview mode
|
||||
//showPicker(TRUE);
|
||||
if (!mPreviewMode)
|
||||
if (!mOpenTexPreview)
|
||||
{
|
||||
showPicker(TRUE);
|
||||
//grab textures first...
|
||||
|
|
@ -2045,7 +2056,7 @@ void LLTextureCtrl::setValue( const LLSD& value )
|
|||
//setImageAssetID(value.asUUID());
|
||||
LLUUID uuid = value.asUUID();
|
||||
setImageAssetID(uuid);
|
||||
LLView::setEnabled( (!mPreviewMode || uuid.notNull()) );
|
||||
LLView::setEnabled( (!mOpenTexPreview || uuid.notNull()) );
|
||||
// </FS:Ansariel>
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -160,6 +160,8 @@ public:
|
|||
void setBlankImageAssetID( const LLUUID& id ) { mBlankImageAssetID = id; }
|
||||
const LLUUID& getBlankImageAssetID() const { return mBlankImageAssetID; }
|
||||
|
||||
void setOpenTexPreview(bool open_preview) { mOpenTexPreview = open_preview; }
|
||||
|
||||
void setCaption(const std::string& caption);
|
||||
void setCanApplyImmediately(BOOL b);
|
||||
|
||||
|
|
@ -242,11 +244,9 @@ private:
|
|||
BOOL mShowLoadingPlaceholder;
|
||||
std::string mLoadingPlaceholderString;
|
||||
S32 mLabelWidth;
|
||||
bool mOpenTexPreview;
|
||||
BOOL mBakeTextureEnabled;
|
||||
|
||||
// <FS:Ansariel> Texture preview mode
|
||||
BOOL mPreviewMode;
|
||||
|
||||
// <FS:Ansariel> Mask texture if desired
|
||||
BOOL mIsMasked;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@
|
|||
#include "llfloaterdeleteenvpreset.h"
|
||||
#include "llfloaterdeleteprefpreset.h"
|
||||
#include "llfloaterdestinations.h"
|
||||
#include "llfloaterdisplayname.h"
|
||||
#include "llfloatereditdaycycle.h"
|
||||
#include "llfloatereditsky.h"
|
||||
#include "llfloatereditwater.h"
|
||||
|
|
@ -106,6 +107,7 @@
|
|||
#include "llfloaterpostprocess.h"
|
||||
#include "llfloaterpreference.h"
|
||||
#include "llfloaterpreviewtrash.h"
|
||||
#include "llfloaterprofile.h"
|
||||
#include "llfloaterproperties.h"
|
||||
#include "llfloaterregiondebugconsole.h"
|
||||
#include "llfloaterregioninfo.h"
|
||||
|
|
@ -135,7 +137,6 @@
|
|||
#include "llfloateruipreview.h"
|
||||
#include "llfloatervoiceeffect.h"
|
||||
#include "llfloaterwebcontent.h"
|
||||
#include "llfloaterwebprofile.h"
|
||||
#include "llfloatervoicevolume.h"
|
||||
#include "llfloaterwhitelistentry.h"
|
||||
#include "llfloaterwindowsize.h"
|
||||
|
|
@ -152,7 +153,7 @@
|
|||
#include "fsfloaternearbychat.h"
|
||||
// <FS:Ansariel> [FS communication UI]
|
||||
#include "llpanelblockedlist.h"
|
||||
#include "llpanelclassified.h"
|
||||
#include "llpanelprofileclassifieds.h"
|
||||
#include "llpreviewanim.h"
|
||||
#include "llpreviewgesture.h"
|
||||
#include "llpreviewnotecard.h"
|
||||
|
|
@ -315,7 +316,7 @@ void LLViewerFloaterReg::registerFloaters()
|
|||
LLInspectRemoteObjectUtil::registerFloater();
|
||||
LLFloaterVoiceVolumeUtil::registerFloater();
|
||||
LLNotificationsUI::registerFloater();
|
||||
LLFloaterDisplayNameUtil::registerFloater(); // <FS:Ansariel> Bring back display name floater
|
||||
LLFloaterDisplayNameUtil::registerFloater();
|
||||
|
||||
LLFloaterReg::add("lagmeter", "floater_lagmeter.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLFloaterLagMeter>);
|
||||
LLFloaterReg::add("land_holdings", "floater_land_holdings.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLFloaterLandHoldings>);
|
||||
|
|
@ -426,8 +427,7 @@ void LLViewerFloaterReg::registerFloaters()
|
|||
LLFloaterReg::add("outfit_snapshot", "floater_outfit_snapshot.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLFloaterOutfitSnapshot>);
|
||||
// <FS:CR> Search floater is deferred to login now so we can tell what grid we're in.
|
||||
//LLFloaterReg::add("search", "floater_search.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLFloaterSearch>);
|
||||
LLFloaterReg::add("my_profile", "floater_my_web_profile.xml", (LLFloaterBuildFunc)&LLFloaterWebProfile::create);
|
||||
LLFloaterReg::add("profile", "floater_web_profile.xml", (LLFloaterBuildFunc)&LLFloaterWebProfile::create);
|
||||
LLFloaterReg::add("profile", "floater_profile.xml",(LLFloaterBuildFunc)&LLFloaterReg::build<LLFloaterProfile>);
|
||||
LLFloaterReg::add("how_to", "floater_how_to.xml", (LLFloaterBuildFunc)&LLFloaterWebContent::create);
|
||||
|
||||
LLFloaterReg::add("big_preview", "floater_big_preview.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLFloaterBigPreview>);
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@
|
|||
#include "llmutelist.h"
|
||||
#include "llnotifications.h"
|
||||
#include "llnotificationsutil.h"
|
||||
#include "llpanelprofile.h"
|
||||
#include "llavataractions.h"
|
||||
#include "llparcel.h"
|
||||
#include "llpluginclassmedia.h"
|
||||
#include "llurldispatcher.h"
|
||||
|
|
|
|||
|
|
@ -4266,6 +4266,11 @@ bool my_profile_visible()
|
|||
return floaterp && floaterp->isInVisibleChain();
|
||||
}
|
||||
|
||||
bool picks_tab_visible()
|
||||
{
|
||||
return my_profile_visible() && LLAvatarActions::isPickTabSelected(gAgentID);
|
||||
}
|
||||
|
||||
bool enable_freeze_eject(const LLSD& avatar_id)
|
||||
{
|
||||
// [SL:KB] - Patch: UI-AvatarNearbyActions | Checked: 2011-05-13 (Catznip-2.6.0a) | Added: Catznip-2.6.0a
|
||||
|
|
@ -7582,6 +7587,29 @@ class LLAvatarToggleMyProfile : public view_listener_t
|
|||
}
|
||||
};
|
||||
|
||||
class LLAvatarTogglePicks : public view_listener_t
|
||||
{
|
||||
bool handleEvent(const LLSD& userdata)
|
||||
{
|
||||
LLFloater* instance = LLAvatarActions::getProfileFloater(gAgent.getID());
|
||||
if (LLFloater::isMinimized(instance) || (instance && !instance->hasFocus() && !instance->getIsChrome()))
|
||||
{
|
||||
instance->setMinimized(FALSE);
|
||||
instance->setFocus(TRUE);
|
||||
LLAvatarActions::showPicks(gAgent.getID());
|
||||
}
|
||||
else if (picks_tab_visible())
|
||||
{
|
||||
instance->closeFloater();
|
||||
}
|
||||
else
|
||||
{
|
||||
LLAvatarActions::showPicks(gAgent.getID());
|
||||
}
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
class LLAvatarResetSkeleton: public view_listener_t
|
||||
{
|
||||
bool handleEvent(const LLSD& userdata)
|
||||
|
|
@ -8117,6 +8145,15 @@ class LLShowAgentProfile : public view_listener_t
|
|||
}
|
||||
};
|
||||
|
||||
class LLShowAgentProfilePicks : public view_listener_t
|
||||
{
|
||||
bool handleEvent(const LLSD& userdata)
|
||||
{
|
||||
LLAvatarActions::showPicks(gAgent.getID());
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
class LLToggleAgentProfile : public view_listener_t
|
||||
{
|
||||
bool handleEvent(const LLSD& userdata)
|
||||
|
|
@ -11712,10 +11749,12 @@ void initialize_menus()
|
|||
view_listener_t::addMenu(new LLAvatarTexRefresh(), "Avatar.TexRefresh"); // ## Zi: Texture Refresh
|
||||
|
||||
view_listener_t::addMenu(new LLAvatarToggleMyProfile(), "Avatar.ToggleMyProfile");
|
||||
view_listener_t::addMenu(new LLAvatarTogglePicks(), "Avatar.TogglePicks");
|
||||
view_listener_t::addMenu(new LLAvatarResetSkeleton(), "Avatar.ResetSkeleton");
|
||||
view_listener_t::addMenu(new LLAvatarEnableResetSkeleton(), "Avatar.EnableResetSkeleton");
|
||||
view_listener_t::addMenu(new LLAvatarResetSkeletonAndAnimations(), "Avatar.ResetSkeletonAndAnimations");
|
||||
enable.add("Avatar.IsMyProfileOpen", boost::bind(&my_profile_visible));
|
||||
enable.add("Avatar.IsPicksTabOpen", boost::bind(&picks_tab_visible));
|
||||
|
||||
commit.add("Avatar.OpenMarketplace", boost::bind(&LLWeb::loadURLExternal, gSavedSettings.getString("MarketplaceURL")));
|
||||
|
||||
|
|
@ -11799,6 +11838,7 @@ void initialize_menus()
|
|||
view_listener_t::addMenu(new LLToggleSpeak(), "ToggleSpeak");
|
||||
view_listener_t::addMenu(new LLPromptShowURL(), "PromptShowURL");
|
||||
view_listener_t::addMenu(new LLShowAgentProfile(), "ShowAgentProfile");
|
||||
view_listener_t::addMenu(new LLShowAgentProfilePicks(), "ShowAgentProfilePicks");
|
||||
view_listener_t::addMenu(new LLToggleAgentProfile(), "ToggleAgentProfile");
|
||||
view_listener_t::addMenu(new LLToggleControl(), "ToggleControl");
|
||||
view_listener_t::addMenu(new LLCheckControl(), "CheckControl");
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
#include "llstring.h"
|
||||
|
||||
// newview
|
||||
#include "llpanelprofile.h" // for getProfileURL(). FIXME: move the method to LLAvatarActions
|
||||
#include "llavataractions.h" // for getProfileURL()
|
||||
#include "llviewermedia.h" // FIXME: don't use LLViewerMedia internals
|
||||
|
||||
#include "llcorehttputil.h"
|
||||
|
|
|
|||
Binary file not shown.
|
After Width: | Height: | Size: 519 B |
|
|
@ -194,6 +194,7 @@ with the same filename but different name
|
|||
<texture name="Conv_log_inbox" file_name="icons/Conv_log_inbox.png" preload="false" />
|
||||
|
||||
<texture name="Copy" file_name="icons/Copy.png" preload="false" />
|
||||
<texture name="CopyBright" file_name="icons/CopyBright.png" preload="false" />
|
||||
|
||||
<texture name="DisclosureArrow_Opened_Off" file_name="widgets/DisclosureArrow_Opened_Off.png" preload="true" />
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<panel label="Min profil" name="panel_me">
|
||||
<tab_container name="tabs">
|
||||
<panel label="MIN PROFIL" name="panel_profile"/>
|
||||
<panel label="MINE FAVORITTER" name="panel_picks"/>
|
||||
</tab_container>
|
||||
</panel>
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<!-- Side tray cannot show background because it is always
|
||||
partially on screen to hold tab buttons. -->
|
||||
<side_tray name="sidebar">
|
||||
<sidetray_tab description="Åbn/luk sidebar" name="sidebar_openclose" tab_title="Åbn/luk sidebar"/>
|
||||
<sidetray_tab description="Hjem." name="sidebar_home" tab_title="Hjem">
|
||||
<panel label="hjem" name="panel_home"/>
|
||||
</sidetray_tab>
|
||||
<sidetray_tab description="Redigér din profile og favoritter." name="sidebar_me" tab_title="Min profil">
|
||||
<panel_container name="panel_container">
|
||||
<panel label="Mig" name="panel_me"/>
|
||||
</panel_container>
|
||||
</sidetray_tab>
|
||||
<sidetray_tab description="Find venner, kontakter og personer tæt på." name="sidebar_people" tab_title="Personer">
|
||||
<panel_container name="panel_container">
|
||||
<panel label="Gruppe profil" name="panel_group_info_sidetray"/>
|
||||
<panel label="Blokerede beboere og objekter" name="panel_block_list_sidetray"/>
|
||||
</panel_container>
|
||||
</sidetray_tab>
|
||||
<sidetray_tab description="Find steder du vil hen og steder du har været før." label="Steder" name="sidebar_places" tab_title="Steder">
|
||||
<panel label="Steder" name="panel_places"/>
|
||||
</sidetray_tab>
|
||||
<sidetray_tab description="Browse din beholdning." name="sidebar_inventory" tab_title="Min beholdning">
|
||||
<panel label="Redigér beholdning" name="sidepanel_inventory"/>
|
||||
</sidetray_tab>
|
||||
<sidetray_tab description="Ændre dit nuværende udseende" name="sidebar_appearance" tab_title="Mit udseende">
|
||||
<panel label="Redigér udseende" name="sidepanel_appearance"/>
|
||||
</sidetray_tab>
|
||||
</side_tray>
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
<panel name="panel_profile_view">
|
||||
<tab_container name="panel_profile_tabs">
|
||||
<panel label="2. Leben" name="panel_profile_secondlife"/>
|
||||
<panel label="Web" name="panel_profile_web"/>
|
||||
<panel label="Feed" name="panel_profile_web"/>
|
||||
<panel label="Interes." name="panel_profile_interests"/>
|
||||
<panel label="Auswahl" name="panel_profile_picks"/>
|
||||
<panel label="Anzeige" name="panel_profile_classified"/>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<floater name="avatarinfo" title="Profil">
|
||||
<panel name="panel_profile_view">
|
||||
<tab_container name="panel_profile_tabs">
|
||||
<panel label="2. Leben" name="panel_profile_secondlife"/>
|
||||
<panel label="Feed" name="panel_profile_web"/>
|
||||
<panel label="Interes." name="panel_profile_interests"/>
|
||||
<panel label="Auswahl" name="panel_profile_picks"/>
|
||||
<panel label="Anzeige" name="panel_profile_classifieds"/>
|
||||
<panel label="1. Leben" name="panel_profile_firstlife"/>
|
||||
<panel label="Notizen" name="panel_profile_notes"/>
|
||||
</tab_container>
|
||||
<button label="OK" name="ok_btn" tool_tip="Profiländerungen speichern und schließen"/>
|
||||
<button label="Abbrechen" tool_tip="Verwirft ungespeicherte Änderungen und schließt das Fenster" label_selected="Abbrechen" name="cancel_btn"/>
|
||||
</panel>
|
||||
</floater>
|
||||
|
|
@ -7,7 +7,7 @@
|
|||
E-Mail senden
|
||||
</string>
|
||||
<string name="facebook_progress_str">
|
||||
Posten auf Facebook
|
||||
Auf Facebook posten
|
||||
</string>
|
||||
<string name="profile_progress_str">
|
||||
Posten
|
||||
|
|
@ -20,7 +20,7 @@
|
|||
</string>
|
||||
<string name="facebook_succeeded_str">
|
||||
Bild hochgeladen
|
||||
</string>
|
||||
</string>
|
||||
<string name="profile_succeeded_str">
|
||||
Bild hochgeladen
|
||||
</string>
|
||||
|
|
@ -33,6 +33,9 @@
|
|||
<string name="local_succeeded_str">
|
||||
Auf Computer gespeichert!
|
||||
</string>
|
||||
<string name="facebook_failed_str">
|
||||
Fehler beim Hochladen des Bilds in Ihre Facebook-Chronik.
|
||||
</string>
|
||||
<string name="profile_failed_str">
|
||||
Fehler beim Hochladen des Bilds in Ihr Profil.
|
||||
</string>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<toggleable_menu name="CopyMenu">
|
||||
<menu_item_call label="Anzeigenamen kopieren" name="copy_display"/>
|
||||
<menu_item_call label="Agent-Namen kopieren" name="copy_name"/>
|
||||
<menu_item_call label="Agent-ID kopieren" name="copy_id"/>
|
||||
</toggleable_menu>
|
||||
|
|
@ -5312,10 +5312,6 @@ Welche Bezeichnung soll für die Region
|
|||
Bitte geben Sie einen gültigen Wert für die Zeitspanne ein!
|
||||
<usetemplate name="okbutton" yestext="OK"/>
|
||||
</notification>
|
||||
<notification name="PickLimitReached">
|
||||
Neue Auswahl kann nicht erstellt werden, da bereits die maximale Anzahl an Auswahlen erstellt wurde.
|
||||
<usetemplate name="okbutton" yestext="OK"/>
|
||||
</notification>
|
||||
<notification name="GlobalOnlineStatusToggle">
|
||||
Abhängig von der Serverauslastung kann es einen Moment dauern, bis das Umschalten der Sichtbarkeit des Online-Status effektiv wird.
|
||||
<usetemplate ignoretext="Weise mich darauf hin, dass das Umschalten der Sichtbarkeit des Online-Status etwas dauern kann." name="okignore" yestext="OK"/>
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@
|
|||
<layout_panel name="save_changes_btn_lp">
|
||||
<button label="[LABEL]" name="save_changes_btn"/>
|
||||
</layout_panel>
|
||||
<layout_panel name="show_on_map_btn_lp">
|
||||
<layout_panel name="cancel_btn_lp">
|
||||
<button label="Abbrechen" name="cancel_btn"/>
|
||||
</layout_panel>
|
||||
</layout_stack>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<panel name="panel_facebook_friends">
|
||||
<string name="facebook_friends_empty" value="Sie haben gegenwärtig keine Facebook-Freunde, die gleichzeitig Einwohner von Second Life sind. Laden Sie Ihre Facebook-Freunde ein, Second Life beizutreten!"/>
|
||||
<string name="facebook_friends_no_connected" value="Sie sind gegenwärtig nicht mit Facebook verbunden. Um eine Verbindung herzustellen und diese Funktion zu aktivieren, gehen Sie zur Registerkarte „Status“."/>
|
||||
<string name="facebook_friends_empty" value="Sie haben gegenwärtig keine Facebook-Freunde, die ebenfalls Second Life-Einwohner sind. Laden Sie Ihre Facebook-Freunde ein, Second Life beizutreten!"/>
|
||||
<string name="facebook_friends_no_connected" value="Sie sind gegenwärtig nicht mit Facebook verbunden. Um eine Verbindung herzustellen und diese Funktion zu aktivieren, wechseln Sie zur Registerkarte "Status"."/>
|
||||
<accordion name="friends_accordion">
|
||||
<accordion_tab name="tab_second_life_friends" title="SL-Freunde"/>
|
||||
<accordion_tab name="tab_suggested_friends" title="Diese Personen als SL-Freunde hinzufügen"/>
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<panel name="panel_facebook_status">
|
||||
<string name="facebook_connected" value="Angemeldet bei Facebook als:" />
|
||||
<string name="facebook_disconnected" value="Nicht bei Facebook angemeldet." />
|
||||
<string name="facebook_connected" value="Sie sind mit Facebook verbunden als:"/>
|
||||
<string name="facebook_disconnected" value="Nicht mit Facebook verbunden"/>
|
||||
<text name="account_caption_label">
|
||||
Nicht bei Facebook angemeldet.
|
||||
Nicht mit Facebook verbunden.
|
||||
</text>
|
||||
<panel name="panel_buttons">
|
||||
<button label="Verbinden..." name="connect_btn" />
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
</text>
|
||||
</panel>
|
||||
<text name="status_caption_label">
|
||||
Was haben Sie gerade im Sinn?
|
||||
Was machen Sie gerade?
|
||||
</text>
|
||||
<button label="Posten" name="post_status_btn" />
|
||||
<button label="Abbrechen" name="cancel_status_btn" />
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
<string name="FSDev" value="-Entwickler"/>
|
||||
<string name="FSSupp" value="-Support"/>
|
||||
<string name="FSQualityAssurance" value="-Bug-Hunter"/>
|
||||
<string name="FSGW" value="Gateway "/>
|
||||
|
||||
<text name="Name:" value="Name:"/>
|
||||
<text_editor name="complete_name" value="(laden)"/>
|
||||
|
|
|
|||
|
|
@ -1,13 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||
<panel name="panel_profile_web" label="Web">
|
||||
<panel.string name="LoadTime" value="Ladezeit: [TIME] Sekunden"/>
|
||||
<flyout_button name="load" label="Laden" label_selected="Laden" tool_tip="Dieses Profil im integrierten Webbrowser laden.">
|
||||
<flyout_button.item label="In internem Browser öffnen" name="open_item"/>
|
||||
<flyout_button.item label="In externem Browser öffnen" name="home_item"/>
|
||||
</flyout_button>
|
||||
<flyout_button name="web_profile" label="Profil" label_selected="Profil">
|
||||
<flyout_button.item label="In separatem Fenster öffnen" name="builtin_item"/>
|
||||
<flyout_button.item label="In externem Browser öffnen" name="open_item"/>
|
||||
</flyout_button>
|
||||
</panel>
|
||||
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ Bewegen Sie die Maus über die Optionen, um weitere Informationen anzuzeigen.
|
|||
<check_box label="Jeder kann beitreten" name="open_enrollement" tool_tip="Festlegen, ob der Gruppenbeitritt ohne Einladung zulässig ist."/>
|
||||
<check_box label="Kosten für Beitritt" name="check_enrollment_fee" tool_tip="Festlegen, ob Neumitglieder eine Beitrittsgebühr zahlen müssen"/>
|
||||
<spinner label="L$" name="spin_enrollment_fee" tool_tip="Wenn Beitrittsgebühr aktiviert ist, müssen neue Mitglieder diesen Betrag zahlen."/>
|
||||
<combo_box name="group_mature_check" tool_tip="Inhaltseinstufungen kennzeichnen die in einer Gruppe zulässigen Inhalte und Verhaltensweisen">
|
||||
<combo_box name="group_mature_check" tool_tip="Legt fest, ob Ihre Gruppe als moderat eingestufte Informationen enthält">
|
||||
<combo_item name="select_mature">
|
||||
- Inhaltseinstufung auswählen -
|
||||
</combo_item>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<panel name="group_list_item">
|
||||
<text name="group_name" value="Unbekannt"/>
|
||||
<button name="info_btn" tool_tip="Mehr Infos"/>
|
||||
<button name="profile_btn" tool_tip="Profil anzeigen"/>
|
||||
</panel>
|
||||
|
|
|
|||
|
|
@ -1,4 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<panel label="Mein Profil" name="panel_me">
|
||||
<panel label="MEINE AUSWAHLEN" name="panel_picks"/>
|
||||
</panel>
|
||||
|
|
@ -61,6 +61,7 @@ Sie suchen nach Leuten? Verwenden Sie die [secondlife:///app/worldmap Karte].
|
|||
<button name="GlobalOnlineStatusToggle" tool_tip="Sichtbarkeit des Onlinestatus global umschalten"/>
|
||||
<dnd_button name="friends_del_btn" tool_tip="Ausgewählte Person als Freund entfernen"/>
|
||||
</panel>
|
||||
<accordion_tab name="tab_suggested_friends" title="Potenzielle Freunde"/>
|
||||
</panel>
|
||||
<panel label="Gruppen" name="groups_panel">
|
||||
<panel label="bottom_panel" name="groups_buttons_panel">
|
||||
|
|
|
|||
|
|
@ -115,7 +115,6 @@
|
|||
<!--Interface Windows-->
|
||||
<panel label="Fenster" name="UI-interface-windows-tab">
|
||||
<check_box label="Beim Klicken auf Avatarnamen direkt Profil öffnen" name="FSInspectAvatarSlurlOpensProfile" tool_tip="Falls aktiviert, wird bei einem Klick auf den Namenslink eines Avatars direkt dessen komplettes Profil geöffnet."/>
|
||||
<check_box name="FSUseWebProfiles" label="Webprofile als Standard nutzen" tool_tip="Zeigt profile als Webseite anstelle des Profilfensters im Viewer-1-Stil"/>
|
||||
<check_box label="Deaktiviere automatisches Öffnen der Blockierliste" name="FSDisableBlockListAutoOpen" tool_tip="Deaktiviert das automatische Öffnen der Blockierliste, wenn Avatare oder Objekte geblockt werden."/>
|
||||
<check_box label="„Freunde“ und „Gruppen“ im Menü „Unterhalten“ öffnen die [SHORT_VIEWER_GENERATION]-Version" name="FSUseV2Friends" tool_tip="Falls aktiviert, werden Freunde bzw. Gruppen im „Leute“-Fenster geöffnet - ansonsten im Fenster „Kontakte“."/>
|
||||
<check_box label="Ursprüngliche Version des Objekteigenschaften-Fensters verwenden" name="FSUseLegacyObjectProperties" tool_tip="Falls aktiviert, wird die ursprüngliche Version im Viewer-1-Stil des Eigenschaften-Fensters für Objekte verwendet."/>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,110 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<panel name="panel_profile_classified">
|
||||
<panel.string name="type_mature">
|
||||
Moderat
|
||||
</panel.string>
|
||||
<panel.string name="type_pg">
|
||||
Generelle Inhalte
|
||||
</panel.string>
|
||||
<panel.string name="l$_price">
|
||||
L$[PRICE]
|
||||
</panel.string>
|
||||
<panel.string name="click_through_text_fmt">
|
||||
[TELEPORT] Teleportieren, [MAP] Karten, [PROFILE] Profil
|
||||
</panel.string>
|
||||
<panel.string name="date_fmt">
|
||||
[mthnum,datetime,slt]/[day,datetime,slt]/[year,datetime,slt]
|
||||
</panel.string>
|
||||
<panel.string name="auto_renew_on">
|
||||
Aktiviert
|
||||
</panel.string>
|
||||
<panel.string name="auto_renew_off">
|
||||
Deaktiviert
|
||||
</panel.string>
|
||||
<panel.string name="location_notice">
|
||||
(wird nach dem Speichern aktualisiert)
|
||||
</panel.string>
|
||||
<string name="publish_label">
|
||||
Veröffentlichen
|
||||
</string>
|
||||
<string name="save_label">
|
||||
Speichern
|
||||
</string>
|
||||
<scroll_container name="profile_scroll">
|
||||
<panel name="info_scroll_content_panel">
|
||||
<icon label="" name="edit_icon" tool_tip="Klicken, um ein Bild auszuwählen"/>
|
||||
<layout_stack name="info_panel">
|
||||
<layout_panel name="main_info_panel">
|
||||
<text_editor name="classified_name">
|
||||
[name]
|
||||
</text_editor>
|
||||
<text name="classified_location_label" value="Standort:"/>
|
||||
<text_editor name="classified_location" value="[loading...]"/>
|
||||
<text name="content_type_label" value="Inhaltsart:"/>
|
||||
<text_editor name="content_type" value="[content type]"/>
|
||||
<text name="category_label" value="Kategorie:"/>
|
||||
<text_editor name="category" value="[category]"/>
|
||||
<text name="creation_date_label" value="Erstellungsdatum:"/>
|
||||
<text_editor name="creation_date" tool_tip="Erstellungsdatum" value="[date]"/>
|
||||
<text name="price_for_listing_label" value="Preis für Auflistung:"/>
|
||||
<text_editor name="price_for_listing" tool_tip="Preis für Auflistung.">
|
||||
[PRICE]
|
||||
</text_editor>
|
||||
</layout_panel>
|
||||
<layout_panel name="clickthrough_layout_panel">
|
||||
<text name="click_through_label" value="Klicks:"/>
|
||||
<text_editor name="click_through_text" tool_tip="Click-Through-Daten" value="[clicks]"/>
|
||||
</layout_panel>
|
||||
<layout_panel name="auto_renew_layout_panel">
|
||||
<text name="auto_renew_label" value="Autom. erneuern:"/>
|
||||
<text name="auto_renew" value="Aktiviert"/>
|
||||
</layout_panel>
|
||||
<layout_panel name="descr_layout_panel">
|
||||
<text name="classified_desc_label" value="Beschreibung:"/>
|
||||
<text_editor name="classified_desc" value="[description]"/>
|
||||
</layout_panel>
|
||||
</layout_stack>
|
||||
<panel name="edit_panel">
|
||||
<text name="Name:">
|
||||
Titel:
|
||||
</text>
|
||||
<text name="description_label">
|
||||
Beschreibung:
|
||||
</text>
|
||||
<text name="location_label">
|
||||
Standort:
|
||||
</text>
|
||||
<text name="classified_location_edit">
|
||||
Laden...
|
||||
</text>
|
||||
<button label="Aktuellen Standort verwenden" name="set_to_curr_location_btn"/>
|
||||
<text name="category_label" value="Kategorie:"/>
|
||||
<text name="content_type_label" value="Inhaltsart:"/>
|
||||
<icons_combo_box label="Generelle Inhalte" name="content_type_edit">
|
||||
<icons_combo_box.item label="Moderate Inhalte" name="mature_ci" value="Adult"/>
|
||||
<icons_combo_box.item label="Generelle Inhalte" name="pg_ci" value="PG"/>
|
||||
</icons_combo_box>
|
||||
<check_box label="Jede Woche automatisch erneuern" name="auto_renew_edit"/>
|
||||
<text name="price_for_listing_edit_label" value="Preis für Auflistung:"/>
|
||||
<spinner label="L$" name="price_for_listing_edit" tool_tip="Preis für Auflistung." value="50"/>
|
||||
</panel>
|
||||
</panel>
|
||||
</scroll_container>
|
||||
<layout_stack name="edit_btns_pnl">
|
||||
<layout_panel name="teleport_btn_lp">
|
||||
<button label="Teleportieren" name="teleport_btn"/>
|
||||
</layout_panel>
|
||||
<layout_panel name="map_btn_lp">
|
||||
<button label="Karte" name="show_on_map_btn"/>
|
||||
</layout_panel>
|
||||
<layout_panel name="edit_btn_lp">
|
||||
<button label="Bearbeiten" name="edit_btn"/>
|
||||
</layout_panel>
|
||||
<layout_panel name="save_btn_lp">
|
||||
<button label="[LABEL]" name="save_changes_btn"/>
|
||||
</layout_panel>
|
||||
<layout_panel name="cancel_btn_lp">
|
||||
<button label="Abbrechen" name="cancel_btn"/>
|
||||
</layout_panel>
|
||||
</layout_stack>
|
||||
</panel>
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<panel label="Anzeige" name="panel_profile_classifieds">
|
||||
<string name="no_classifieds" value="Keine Anzeigen"/>
|
||||
<button label="Neu..." tool_tip="Erstellt eine neue Anzeige an der aktuellen Position" name="new_btn"/>
|
||||
<button label="Löschen..." tool_tip="Löscht die aktuell ausgewählte Anzeige" name="delete_btn"/>
|
||||
<text name="classifieds_panel_text">
|
||||
Laden...
|
||||
</text>
|
||||
</panel>
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<floater name="floater_picks" title="Empfehlungen"/>
|
||||
<panel label="Profil" name="panel_profile_firstlife"/>
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<panel label="Interessen" name="panel_profile_interests">
|
||||
<text name="I Want To:">
|
||||
Ich möchte:
|
||||
</text>
|
||||
<check_box label="Erstellen" name="chk0"/>
|
||||
<check_box label="Erkunden" name="chk1"/>
|
||||
<check_box label="Treffen" name="chk2"/>
|
||||
<check_box label="Angestellt werden" name="chk6"/>
|
||||
<check_box label="Gruppe" name="chk3"/>
|
||||
<check_box label="Kaufen" name="chk4"/>
|
||||
<check_box label="Verkaufen" name="chk5"/>
|
||||
<check_box label="Anstellen" name="chk7"/>
|
||||
<line_editor name="want_to_edit">
|
||||
(wird geladen...)
|
||||
</line_editor>
|
||||
<text name="Skills:">
|
||||
Fähigkeiten:
|
||||
</text>
|
||||
<check_box label="Texturen" name="schk0"/>
|
||||
<check_box label="Architektur" name="schk1"/>
|
||||
<check_box label="Modellierung" name="schk3"/>
|
||||
<check_box label="Eventplanung" name="schk2"/>
|
||||
<check_box label="Scripting" name="schk4"/>
|
||||
<check_box label="Benutzerdefinierte Charaktere" name="schk5"/>
|
||||
<line_editor name="skills_edit">
|
||||
(wird geladen...)
|
||||
</line_editor>
|
||||
<text name="Languages:">
|
||||
Sprachen:
|
||||
</text>
|
||||
<line_editor name="languages_edit">
|
||||
(wird geladen...)
|
||||
</line_editor>
|
||||
</panel>
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<panel label="Anmerkungen & Privatsphäre" name="panel_notes">
|
||||
<text name="status_message" value="Private Anmerkungen zu diesem Avatar:"/>
|
||||
<text name="status_message2" value="Dieser Avatar darf:"/>
|
||||
<check_box label="Sehen, wenn ich online bin" name="status_check"/>
|
||||
<check_box label="Mich auf der Weltkarte sehen" name="map_check"/>
|
||||
<check_box label="Meine Objekte bearbeiten, löschen oder nehmen" name="objects_check"/>
|
||||
</panel>
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<panel name="panel_pick_info">
|
||||
<panel.string name="location_notice">
|
||||
(wird nach dem Speichern aktualisiert)
|
||||
</panel.string>
|
||||
<line_editor name="pick_location">
|
||||
Laden...
|
||||
</line_editor>
|
||||
<button label="Teleportieren" name="teleport_btn"/>
|
||||
<button label="Auf Karte anzeigen" name="show_on_map_btn"/>
|
||||
<button label="Standort festlegen" name="set_to_curr_location_btn" tool_tip="Aktuellen Standort verwenden"/>
|
||||
<button label="Auswahl speichern" name="save_changes_btn"/>
|
||||
</panel>
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<panel label="Auswahlen" name="panel_picks">
|
||||
<string name="no_picks" value="Keine Auswahl"/>
|
||||
<text name="Tell everyone about your favorite places in Second Life.">
|
||||
Erzählen Sie von Ihren Lieblingsorten in [GRID].
|
||||
</text>
|
||||
<button label="Neu..." tool_tip="Erstellt eine neue Auswahl an der aktuellen Position" name="new_btn"/>
|
||||
<button label="Löschen..." tool_tip="Löscht die aktuell ausgewählte Auswahl" name="delete_btn"/>
|
||||
<text name="picks_panel_text">
|
||||
Laden...
|
||||
</text>
|
||||
</panel>
|
||||
|
|
@ -0,0 +1,74 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<panel label="Profil" name="panel_profile">
|
||||
<string name="status_online">
|
||||
Online
|
||||
</string>
|
||||
<string name="status_offline">
|
||||
Offline
|
||||
</string>
|
||||
<string name="payment_update_link_url">
|
||||
http://www.secondlife.com/account/billing.php?lang=de
|
||||
</string>
|
||||
<string name="partner_edit_link_url">
|
||||
http://www.secondlife.com/account/partners.php?lang=de
|
||||
</string>
|
||||
<string name="my_account_link_url" value="http://secondlife.com/account"/>
|
||||
<string name="no_partner_text" value="Kein Partner"/>
|
||||
<string name="no_group_text" value="Keine"/>
|
||||
<string name="name_text_args">
|
||||
[NAME]
|
||||
</string>
|
||||
<string name="display_name_text_args">
|
||||
[DISPLAY_NAME]
|
||||
</string>
|
||||
<string name="FSDev" value="-Entwickler"/>
|
||||
<string name="FSSupp" value="-Support"/>
|
||||
<string name="FSQualityAssurance" value="-Fehlersuche"/>
|
||||
<string name="FSGW" value="-Gateway"/>
|
||||
<text name="name_label" value="Name:"/>
|
||||
<button label="Name:" name="set_name" tool_tip="Anzeigenamen festlegen"/>
|
||||
<panel name="name_holder">
|
||||
<text_editor name="complete_name" value="(wird geladen...)"/>
|
||||
<menu_button name="copy_btn" tool_tip="Kopier-Optionen"/>
|
||||
</panel>
|
||||
<text name="Key:" value="UUID:"/>
|
||||
<text_editor name="user_key" value="(wird geladen...)"/>
|
||||
<layout_stack name="imagepositioner">
|
||||
<layout_panel name="label_stack">
|
||||
<text name="status" value="Status unbekannt"/>
|
||||
<text name="label" value="Geburtsdatum:"/>
|
||||
<text_editor name="register_date" value="(wird geladen...)"/>
|
||||
<text name="label2" value="Konto:"/>
|
||||
<text name="partner_label" value="Partner:"/>
|
||||
</layout_panel>
|
||||
</layout_stack>
|
||||
<text name="Groups:" value="Gruppen:"/>
|
||||
<button label="+" label_selected="+" name="group_invite" tool_tip="In Gruppe einladen"/>
|
||||
<layout_stack name="aboutpositioner">
|
||||
<layout_panel name="about_stack">
|
||||
<text name="About:" value="Info:"/>
|
||||
</layout_panel>
|
||||
<layout_panel name="give_stack">
|
||||
<text name="Give item:" value="Teilen:"/>
|
||||
<text name="Give inventory" tool_tip="Legen Sie hier Inventarobjekte ab, um Sie dieser Person zu geben.">
|
||||
Inventarobjekt hier ablegen.
|
||||
</text>
|
||||
</layout_panel>
|
||||
</layout_stack>
|
||||
<layout_stack name="buttonstack">
|
||||
<layout_panel name="left_buttonstack">
|
||||
<button label="Auf Karte anzeigen" label_selected="Auf Karte anzeigen" name="show_on_map_btn" tool_tip="Einwohner auf Karte lokalisieren"/>
|
||||
<button label="Bezahlen" label_selected="Bezahlen" name="pay" tool_tip="Geld an den Einwohner zahlen"/>
|
||||
</layout_panel>
|
||||
<layout_panel name="middle_buttonstack">
|
||||
<button label="Teleportation anbieten" label_selected="Teleportation anbieten" name="teleport" tool_tip="Dem Einwohner eine Teleportation anbieten"/>
|
||||
<button label="Instant Message" label_selected="Instant Message" name="im" tool_tip="Instant Message-Sitzung öffnen"/>
|
||||
</layout_panel>
|
||||
<layout_panel name="right_buttonstack">
|
||||
<button label="Freund hinzufügen" label_selected="Freund hinzufügen" name="add_friend" tool_tip="Dem Einwohner die Freundschaft anbieten"/>
|
||||
<button label="Blockieren" name="block" tool_tip="Diesen Einwohner blockieren"/>
|
||||
<button label="Blockierung aufheben" name="unblock" tool_tip="Diesen Einwohner nicht mehr blockieren"/>
|
||||
</layout_panel>
|
||||
</layout_stack>
|
||||
<check_box label="In Suche anzeigen" tool_tip="Erlaubt es anderen Einwohnern, Sie in Suchergebnissen zu finden" name="show_in_search_checkbox"/>
|
||||
</panel>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue