summaryrefslogtreecommitdiff
path: root/indra/llui/llfloater.cpp
diff options
context:
space:
mode:
authorMark Palange <palange@lindenlab.com>2008-11-07 17:51:03 +0000
committerMark Palange <palange@lindenlab.com>2008-11-07 17:51:03 +0000
commitf89f19990cbb9f3f2e7473ac6c159098bdfabec7 (patch)
treee7fa406e2db5e9adc2e24e00557d7b3d3f93203a /indra/llui/llfloater.cpp
parentb2bfb128e7d30e1cdb293a2ac192a0cbe63fe528 (diff)
QAR-992 Merging revisions 101012-101170,101686-101687 of svn+ssh://svn.lindenlab.com/svn/linden/qa/viewer_combo_1-22-merge into linden/release
Diffstat (limited to 'indra/llui/llfloater.cpp')
-rw-r--r--indra/llui/llfloater.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/indra/llui/llfloater.cpp b/indra/llui/llfloater.cpp
index 78a4362618..ffdca84001 100644
--- a/indra/llui/llfloater.cpp
+++ b/indra/llui/llfloater.cpp
@@ -127,6 +127,7 @@ LLFloaterView* gFloaterView = NULL;
LLFloater::LLFloater() :
//FIXME: we should initialize *all* member variables here
+ LLPanel(), mAutoFocus(TRUE),
mResizable(FALSE),
mDragOnLeft(FALSE),
mMinWidth(0),
@@ -139,6 +140,11 @@ LLFloater::LLFloater() :
mButtonsEnabled[i] = FALSE;
mButtons[i] = NULL;
}
+ for (S32 i = 0; i < 4; i++)
+ {
+ mResizeBar[i] = NULL;
+ mResizeHandle[i] = NULL;
+ }
mDragHandle = NULL;
mHandle.bind(this);
}
@@ -151,6 +157,11 @@ LLFloater::LLFloater(const std::string& name)
mButtonsEnabled[i] = FALSE;
mButtons[i] = NULL;
}
+ for (S32 i = 0; i < 4; i++)
+ {
+ mResizeBar[i] = NULL;
+ mResizeHandle[i] = NULL;
+ }
std::string title; // null string
initFloater(title, FALSE, DEFAULT_MIN_WIDTH, DEFAULT_MIN_HEIGHT, FALSE, TRUE, TRUE); // defaults
}
@@ -171,6 +182,11 @@ LLFloater::LLFloater(const std::string& name, const LLRect& rect, const std::str
mButtonsEnabled[i] = FALSE;
mButtons[i] = NULL;
}
+ for (S32 i = 0; i < 4; i++)
+ {
+ mResizeBar[i] = NULL;
+ mResizeHandle[i] = NULL;
+ }
initFloater( title, resizable, min_width, min_height, drag_on_left, minimizable, close_btn);
}
@@ -189,6 +205,11 @@ LLFloater::LLFloater(const std::string& name, const std::string& rect_control, c
mButtonsEnabled[i] = FALSE;
mButtons[i] = NULL;
}
+ for (S32 i = 0; i < 4; i++)
+ {
+ mResizeBar[i] = NULL;
+ mResizeHandle[i] = NULL;
+ }
initFloater( title, resizable, min_width, min_height, drag_on_left, minimizable, close_btn);
}
@@ -1580,6 +1601,7 @@ void LLFloater::updateButtons()
S32 button_count = 0;
for (S32 i = 0; i < BUTTON_COUNT; i++)
{
+ if(!mButtons[i]) continue;
mButtons[i]->setEnabled(mButtonsEnabled[i]);
if (mButtonsEnabled[i]