Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
d6cd9d07
Commit
d6cd9d07
authored
8 years ago
by
Oz Linden
Browse files
Options
Downloads
Plain Diff
merge changes for MAINT-7156
parents
08ed7f67
94c2ebde
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
indra/newview/llpanelsnapshotpostcard.cpp
+0
-36
0 additions, 36 deletions
indra/newview/llpanelsnapshotpostcard.cpp
indra/newview/llpostcard.cpp
+1
-3
1 addition, 3 deletions
indra/newview/llpostcard.cpp
indra/newview/llpostcard.h
+1
-2
1 addition, 2 deletions
indra/newview/llpostcard.h
with
2 additions
and
41 deletions
indra/newview/llpanelsnapshotpostcard.cpp
+
0
−
36
View file @
d6cd9d07
...
@@ -57,7 +57,6 @@ class LLPanelSnapshotPostcard
...
@@ -57,7 +57,6 @@ class LLPanelSnapshotPostcard
LLPanelSnapshotPostcard
();
LLPanelSnapshotPostcard
();
/*virtual*/
BOOL
postBuild
();
/*virtual*/
BOOL
postBuild
();
/*virtual*/
void
onOpen
(
const
LLSD
&
key
);
/*virtual*/
void
onOpen
(
const
LLSD
&
key
);
/*virtual*/
S32
notify
(
const
LLSD
&
info
);
private:
private:
/*virtual*/
std
::
string
getWidthSpinnerName
()
const
{
return
"postcard_snapshot_width"
;
}
/*virtual*/
std
::
string
getWidthSpinnerName
()
const
{
return
"postcard_snapshot_width"
;
}
...
@@ -79,7 +78,6 @@ class LLPanelSnapshotPostcard
...
@@ -79,7 +78,6 @@ class LLPanelSnapshotPostcard
void
onSend
();
void
onSend
();
bool
mHasFirstMsgFocus
;
bool
mHasFirstMsgFocus
;
std
::
string
mAgentEmail
;
};
};
static
LLPanelInjector
<
LLPanelSnapshotPostcard
>
panel_class
(
"llpanelsnapshotpostcard"
);
static
LLPanelInjector
<
LLPanelSnapshotPostcard
>
panel_class
(
"llpanelsnapshotpostcard"
);
...
@@ -108,36 +106,9 @@ BOOL LLPanelSnapshotPostcard::postBuild()
...
@@ -108,36 +106,9 @@ BOOL LLPanelSnapshotPostcard::postBuild()
// virtual
// virtual
void
LLPanelSnapshotPostcard
::
onOpen
(
const
LLSD
&
key
)
void
LLPanelSnapshotPostcard
::
onOpen
(
const
LLSD
&
key
)
{
{
// pick up the user's up-to-date email address
if
(
mAgentEmail
.
empty
())
{
gAgent
.
sendAgentUserInfoRequest
();
std
::
string
name_string
;
LLAgentUI
::
buildFullname
(
name_string
);
getChild
<
LLUICtrl
>
(
"name_form"
)
->
setValue
(
LLSD
(
name_string
));
}
LLPanelSnapshot
::
onOpen
(
key
);
LLPanelSnapshot
::
onOpen
(
key
);
}
}
// virtual
S32
LLPanelSnapshotPostcard
::
notify
(
const
LLSD
&
info
)
{
if
(
!
info
.
has
(
"agent-email"
))
{
llassert
(
info
.
has
(
"agent-email"
));
return
0
;
}
if
(
mAgentEmail
.
empty
())
{
mAgentEmail
=
info
[
"agent-email"
].
asString
();
}
return
1
;
}
// virtual
// virtual
void
LLPanelSnapshotPostcard
::
updateControls
(
const
LLSD
&
info
)
void
LLPanelSnapshotPostcard
::
updateControls
(
const
LLSD
&
info
)
{
{
...
@@ -190,7 +161,6 @@ void LLPanelSnapshotPostcard::sendPostcard()
...
@@ -190,7 +161,6 @@ void LLPanelSnapshotPostcard::sendPostcard()
if
(
!
url
.
empty
())
if
(
!
url
.
empty
())
{
{
LLResourceUploadInfo
::
ptr_t
uploadInfo
(
new
LLPostcardUploadInfo
(
LLResourceUploadInfo
::
ptr_t
uploadInfo
(
new
LLPostcardUploadInfo
(
mAgentEmail
,
getChild
<
LLUICtrl
>
(
"name_form"
)
->
getValue
().
asString
(),
getChild
<
LLUICtrl
>
(
"name_form"
)
->
getValue
().
asString
(),
getChild
<
LLUICtrl
>
(
"to_form"
)
->
getValue
().
asString
(),
getChild
<
LLUICtrl
>
(
"to_form"
)
->
getValue
().
asString
(),
getChild
<
LLUICtrl
>
(
"subject_form"
)
->
getValue
().
asString
(),
getChild
<
LLUICtrl
>
(
"subject_form"
)
->
getValue
().
asString
(),
...
@@ -253,12 +223,6 @@ void LLPanelSnapshotPostcard::onSend()
...
@@ -253,12 +223,6 @@ void LLPanelSnapshotPostcard::onSend()
return
;
return
;
}
}
if
(
mAgentEmail
.
empty
()
||
!
boost
::
regex_match
(
mAgentEmail
,
email_format
))
{
LLNotificationsUtil
::
add
(
"PromptSelfEmail"
);
return
;
}
std
::
string
subject
(
getChild
<
LLUICtrl
>
(
"subject_form"
)
->
getValue
().
asString
());
std
::
string
subject
(
getChild
<
LLUICtrl
>
(
"subject_form"
)
->
getValue
().
asString
());
if
(
subject
.
empty
()
||
!
mHasFirstMsgFocus
)
if
(
subject
.
empty
()
||
!
mHasFirstMsgFocus
)
{
{
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llpostcard.cpp
+
1
−
3
View file @
d6cd9d07
...
@@ -40,11 +40,10 @@
...
@@ -40,11 +40,10 @@
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
LLPostcardUploadInfo
::
LLPostcardUploadInfo
(
std
::
string
emailFrom
,
std
::
string
nameFrom
,
std
::
string
emailTo
,
LLPostcardUploadInfo
::
LLPostcardUploadInfo
(
std
::
string
nameFrom
,
std
::
string
emailTo
,
std
::
string
subject
,
std
::
string
message
,
LLVector3d
globalPosition
,
std
::
string
subject
,
std
::
string
message
,
LLVector3d
globalPosition
,
LLPointer
<
LLImageFormatted
>
image
,
invnUploadFinish_f
finish
)
:
LLPointer
<
LLImageFormatted
>
image
,
invnUploadFinish_f
finish
)
:
LLBufferedAssetUploadInfo
(
LLUUID
::
null
,
image
,
finish
),
LLBufferedAssetUploadInfo
(
LLUUID
::
null
,
image
,
finish
),
mEmailFrom
(
emailFrom
),
mNameFrom
(
nameFrom
),
mNameFrom
(
nameFrom
),
mEmailTo
(
emailTo
),
mEmailTo
(
emailTo
),
mSubject
(
subject
),
mSubject
(
subject
),
...
@@ -58,7 +57,6 @@ LLSD LLPostcardUploadInfo::generatePostBody()
...
@@ -58,7 +57,6 @@ LLSD LLPostcardUploadInfo::generatePostBody()
LLSD
postcard
=
LLSD
::
emptyMap
();
LLSD
postcard
=
LLSD
::
emptyMap
();
postcard
[
"pos-global"
]
=
mGlobalPosition
.
getValue
();
postcard
[
"pos-global"
]
=
mGlobalPosition
.
getValue
();
postcard
[
"to"
]
=
mEmailTo
;
postcard
[
"to"
]
=
mEmailTo
;
postcard
[
"from"
]
=
mEmailFrom
;
postcard
[
"name"
]
=
mNameFrom
;
postcard
[
"name"
]
=
mNameFrom
;
postcard
[
"subject"
]
=
mSubject
;
postcard
[
"subject"
]
=
mSubject
;
postcard
[
"msg"
]
=
mMessage
;
postcard
[
"msg"
]
=
mMessage
;
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llpostcard.h
+
1
−
2
View file @
d6cd9d07
...
@@ -53,13 +53,12 @@ class LLPostCard
...
@@ -53,13 +53,12 @@ class LLPostCard
class
LLPostcardUploadInfo
:
public
LLBufferedAssetUploadInfo
class
LLPostcardUploadInfo
:
public
LLBufferedAssetUploadInfo
{
{
public:
public:
LLPostcardUploadInfo
(
std
::
string
emailFrom
,
std
::
string
nameFrom
,
std
::
string
emailTo
,
LLPostcardUploadInfo
(
std
::
string
nameFrom
,
std
::
string
emailTo
,
std
::
string
subject
,
std
::
string
message
,
LLVector3d
globalPosition
,
std
::
string
subject
,
std
::
string
message
,
LLVector3d
globalPosition
,
LLPointer
<
LLImageFormatted
>
image
,
invnUploadFinish_f
finish
);
LLPointer
<
LLImageFormatted
>
image
,
invnUploadFinish_f
finish
);
virtual
LLSD
generatePostBody
();
virtual
LLSD
generatePostBody
();
private:
private:
std
::
string
mEmailFrom
;
std
::
string
mNameFrom
;
std
::
string
mNameFrom
;
std
::
string
mEmailTo
;
std
::
string
mEmailTo
;
std
::
string
mSubject
;
std
::
string
mSubject
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment