removed unused Me menu items for ACME-637
parent
06f0e4161b
commit
7d17bbe132
|
|
@ -128,7 +128,7 @@ mCaptionTextBox(NULL),
|
|||
mLocationCheckbox(NULL),
|
||||
mPostButton(NULL)
|
||||
{
|
||||
mCommitCallbackRegistrar.add("PostToFacebook.Send", boost::bind(&LLSocialPhotoPanel::onSend, this));
|
||||
mCommitCallbackRegistrar.add("SocialSharing.SendPhoto", boost::bind(&LLSocialPhotoPanel::onSend, this));
|
||||
}
|
||||
|
||||
LLSocialPhotoPanel::~LLSocialPhotoPanel()
|
||||
|
|
|
|||
|
|
@ -5953,56 +5953,6 @@ void handle_report_abuse()
|
|||
LLFloaterReporter::showFromMenu(COMPLAINT_REPORT);
|
||||
}
|
||||
|
||||
void handle_facebook_connect()
|
||||
{
|
||||
if (!LLFacebookConnect::instance().isConnected())
|
||||
{
|
||||
LLFacebookConnect::instance().getConnectionToFacebook(true);
|
||||
}
|
||||
}
|
||||
|
||||
bool enable_facebook_connect()
|
||||
{
|
||||
// The menu item will be disabled if we are already connected
|
||||
return !LLFacebookConnect::instance().isConnected();
|
||||
}
|
||||
|
||||
void handle_facebook_checkin()
|
||||
{
|
||||
|
||||
// Get the location SLURL
|
||||
LLSLURL slurl;
|
||||
LLAgentUI::buildSLURL(slurl);
|
||||
std::string slurl_string = slurl.getSLURLString();
|
||||
|
||||
std::string region_name = gAgent.getRegion()->getName();
|
||||
std::string description;
|
||||
LLAgentUI::buildLocationString(description, LLAgentUI::LOCATION_FORMAT_NORMAL_COORDS, gAgent.getPositionAgent());
|
||||
LLVector3d center_agent = gAgent.getRegion()->getCenterGlobal();
|
||||
int x_pos = center_agent[0] / 256.0;
|
||||
int y_pos = center_agent[1] / 256.0;
|
||||
std::string locationMap = llformat("http://map.secondlife.com/map-1-%d-%d-objects.jpg", x_pos, y_pos);
|
||||
|
||||
LLFacebookConnect::instance().postCheckin(slurl_string, region_name, description, locationMap, "");
|
||||
}
|
||||
|
||||
bool handle_facebook_status_callback(const LLSD& notification, const LLSD& response)
|
||||
{
|
||||
S32 option = LLNotificationsUtil::getSelectedOption(notification, response);
|
||||
if (option == 0)
|
||||
{
|
||||
std::string message = response["message"].asString();
|
||||
if (!message.empty())
|
||||
LLFacebookConnect::instance().updateStatus(message);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void handle_facebook_status()
|
||||
{
|
||||
LLNotificationsUtil::add("FacebookUpdateStatus", LLSD(), LLSD(), boost::bind(&handle_facebook_status_callback, _1, _2));
|
||||
}
|
||||
|
||||
void handle_buy_currency()
|
||||
{
|
||||
LLBuyCurrencyHTML::openCurrencyFloater();
|
||||
|
|
@ -8801,14 +8751,4 @@ void initialize_menus()
|
|||
view_listener_t::addMenu(new LLEditableSelected(), "EditableSelected");
|
||||
view_listener_t::addMenu(new LLEditableSelectedMono(), "EditableSelectedMono");
|
||||
view_listener_t::addMenu(new LLToggleUIHints(), "ToggleUIHints");
|
||||
|
||||
// Facebook Connect
|
||||
commit.add("Facebook.Connect", boost::bind(&handle_facebook_connect));
|
||||
enable.add("Facebook.EnableConnect", boost::bind(&enable_facebook_connect));
|
||||
|
||||
// Facebook Checkin
|
||||
commit.add("Facebook.Checkin", boost::bind(&handle_facebook_checkin));
|
||||
|
||||
// Facebook Status Update
|
||||
commit.add("Facebook.UpdateStatus", boost::bind(&handle_facebook_status));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -135,15 +135,6 @@ bool enable_pay_object();
|
|||
bool enable_buy_object();
|
||||
bool handle_go_to();
|
||||
|
||||
// Facebook Connect
|
||||
void handle_facebook_connect();
|
||||
|
||||
// Facebook Checkin
|
||||
void handle_facebook_checkin();
|
||||
|
||||
// Facebook Status Update
|
||||
void handle_facebook_status();
|
||||
|
||||
// Export to XML or Collada
|
||||
void handle_export_selected( void * );
|
||||
|
||||
|
|
|
|||
|
|
@ -15,26 +15,6 @@
|
|||
function="ShowAgentProfile"
|
||||
parameter="agent" />
|
||||
</menu_item_call>
|
||||
<menu_item_call
|
||||
label="Connect to Facebook..."
|
||||
name="ConnectToFacebook">
|
||||
<menu_item_call.on_click
|
||||
function="Facebook.Connect" />
|
||||
<menu_item_call.on_enable
|
||||
function="Facebook.EnableConnect" />
|
||||
</menu_item_call>
|
||||
<menu_item_call
|
||||
label="Check in to Facebook..."
|
||||
name="CheckinToFacebook">
|
||||
<menu_item_call.on_click
|
||||
function="Facebook.Checkin" />
|
||||
</menu_item_call>
|
||||
<menu_item_call
|
||||
label="Update status on Facebook..."
|
||||
name="UpdateStatusOnFacebook">
|
||||
<menu_item_call.on_click
|
||||
function="Facebook.UpdateStatus" />
|
||||
</menu_item_call>
|
||||
<menu_item_call
|
||||
label="Post to Facebook..."
|
||||
name="PostToFacebook">
|
||||
|
|
|
|||
|
|
@ -10135,25 +10135,4 @@ Cannot create large prims that intersect other players. Please re-try when othe
|
|||
yestext="OK"/>
|
||||
</notification>
|
||||
|
||||
<notification
|
||||
icon="alertmodal.tga"
|
||||
name="FacebookUpdateStatus"
|
||||
type="alertmodal">
|
||||
What's on your mind? (asks Facebook)
|
||||
<tag>confirm</tag>
|
||||
<form name="form">
|
||||
<input name="message" type="text">
|
||||
</input>
|
||||
<button
|
||||
default="true"
|
||||
index="0"
|
||||
name="OK"
|
||||
text="OK"/>
|
||||
<button
|
||||
index="1"
|
||||
name="Cancel"
|
||||
text="Cancel"/>
|
||||
</form>
|
||||
</notification>
|
||||
|
||||
</notifications>
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@
|
|||
top="350"
|
||||
width="100">
|
||||
<button.commit_callback
|
||||
function="PostToFacebook.Cancel" />
|
||||
function="SocialSharing.Cancel" />
|
||||
</button>
|
||||
<button
|
||||
follows="right|bottom"
|
||||
|
|
@ -194,6 +194,6 @@
|
|||
top_delta="0"
|
||||
width="100">
|
||||
<button.commit_callback
|
||||
function="PostToFacebook.Send" />
|
||||
function="SocialSharing.SendPhoto" />
|
||||
</button>
|
||||
</panel>
|
||||
|
|
|
|||
Loading…
Reference in New Issue