summaryrefslogtreecommitdiff
path: root/indra/llui/lllayoutstack.h
diff options
context:
space:
mode:
authorAndrew Dyukov <adyukov@productengine.com>2010-09-06 22:56:14 +0300
committerAndrew Dyukov <adyukov@productengine.com>2010-09-06 22:56:14 +0300
commita30bc718bbeb660e92eb3f70c1ec0364903069a8 (patch)
tree11c0951ac6a4fc0adb1e6bd41f3f78e1d3635d8f /indra/llui/lllayoutstack.h
parente04dabd2b3309b595bbc1afa0dfa7d4081439eba (diff)
VWR-22690 FIXED Implemented save/load of bottomtray button order.
- Added methods responsible for saving and loading order of buttons to bottomtray. Order is saved after each drag'n'drop to ensure user's customization of bottomtray is not lost because of crash. - Added additional argument to layoutstack movePanel() method which tells it to move panel to the beginning of mPanels vector without requiring a pointer to panel before which it should be inserted. Reviewed by Vadim Savchuk.
Diffstat (limited to 'indra/llui/lllayoutstack.h')
-rw-r--r--indra/llui/lllayoutstack.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llui/lllayoutstack.h b/indra/llui/lllayoutstack.h
index b5287db1cf..6fcc8e2ac3 100644
--- a/indra/llui/lllayoutstack.h
+++ b/indra/llui/lllayoutstack.h
@@ -74,8 +74,9 @@ public:
S32 getNumPanels() { return mPanels.size(); }
/**
* Moves panel_to_move before target_panel inside layout stack (both panels should already be there).
+ * If move_to_front is true target_panel is ignored and panel_to_move is moved to the beginning of mPanels
*/
- void movePanel(LLPanel* panel_to_move, LLPanel* target_panel);
+ void movePanel(LLPanel* panel_to_move, LLPanel* target_panel, bool move_to_front = false);
void updatePanelAutoResize(const std::string& panel_name, BOOL auto_resize);
void setPanelUserResize(const std::string& panel_name, BOOL user_resize);