summaryrefslogtreecommitdiff
path: root/indra/newview/lluploaddialog.cpp
diff options
context:
space:
mode:
authorSteven Bennetts <steve@lindenlab.com>2008-02-19 21:42:32 +0000
committerSteven Bennetts <steve@lindenlab.com>2008-02-19 21:42:32 +0000
commit2e32d44e7165775936beae5d9ef636ff9d3f2bd2 (patch)
tree8153bc399994aabf6e1c41c2d8332e4e8c4ddb78 /indra/newview/lluploaddialog.cpp
parentdb0f5847ea8b96b3c1ac08e7aeb43d83daacb8e4 (diff)
merge svn+ssh://svn.lindenlab.com/svn/linden/qa/combo-merge-ui-2008-02-13 -r 79986 : 80178 -> release.
QAR-290 = QAR-271 + QAR-191
Diffstat (limited to 'indra/newview/lluploaddialog.cpp')
-rw-r--r--indra/newview/lluploaddialog.cpp16
1 files changed, 4 insertions, 12 deletions
diff --git a/indra/newview/lluploaddialog.cpp b/indra/newview/lluploaddialog.cpp
index a63f546761..b9f2ef2ddf 100644
--- a/indra/newview/lluploaddialog.cpp
+++ b/indra/newview/lluploaddialog.cpp
@@ -78,7 +78,7 @@ LLUploadDialog::LLUploadDialog( const std::string& msg)
LLRect msg_rect;
for (int line_num=0; line_num<16; ++line_num)
{
- mLabelBox[line_num] = new LLTextBox( "Filename", msg_rect, "", font );
+ mLabelBox[line_num] = new LLTextBox( "Filename", msg_rect, "Filename", font );
addChild(mLabelBox[line_num]);
}
@@ -131,8 +131,8 @@ void LLUploadDialog::setMessage( const std::string& msg)
reshape( dialog_width, dialog_height, FALSE );
// Message
- S32 msg_x = (mRect.getWidth() - max_msg_width) / 2;
- S32 msg_y = mRect.getHeight() - VPAD - line_height;
+ S32 msg_x = (getRect().getWidth() - max_msg_width) / 2;
+ S32 msg_y = getRect().getHeight() - VPAD - line_height;
int line_num;
for (line_num=0; line_num<16; ++line_num)
{
@@ -152,7 +152,7 @@ void LLUploadDialog::setMessage( const std::string& msg)
}
msg_lines.deleteAllData();
- centerDialog();
+ centerWithin(gViewerWindow->getRootView()->getRect());
}
LLUploadDialog::~LLUploadDialog()
@@ -165,13 +165,5 @@ LLUploadDialog::~LLUploadDialog()
LLUploadDialog::sDialog = NULL;
}
-void LLUploadDialog::centerDialog()
-{
- LLRect window_rect = gViewerWindow->getRootView()->getRect();
-
- S32 dialog_left = window_rect.mLeft + (window_rect.getWidth() - mRect.getWidth()) / 2;
- S32 dialog_bottom = window_rect.mBottom + (window_rect.getHeight() - mRect.getHeight()) / 2;
- translate( dialog_left - mRect.mLeft, dialog_bottom - mRect.mBottom );
-}