summaryrefslogtreecommitdiff
path: root/indra/newview/llbottomtray.h
diff options
context:
space:
mode:
authorMike Antipov <mantipov@productengine.com>2009-11-13 18:58:23 +0200
committerMike Antipov <mantipov@productengine.com>2009-11-13 18:58:23 +0200
commit8a0341f42e2ba3a91a3ad5bc355966b07ac6801f (patch)
treeff8fd37e37f11b20f439fadd4ce51f1780d9c9da /indra/newview/llbottomtray.h
parentf9d3791aaf12e89fdf6a57c57276e57e8193de9b (diff)
Work on major sub-task EXT-991 (Update bottom bar behavior on resize)
Fixed issue: "Snapshort button can appear first due to its the least width while Bottom Bar extending" - implemented ordering in which buttons can be shown: Gesture, Move, View, Snapshot. --HG-- branch : product-engine
Diffstat (limited to 'indra/newview/llbottomtray.h')
-rw-r--r--indra/newview/llbottomtray.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llbottomtray.h b/indra/newview/llbottomtray.h
index 86d341f233..974289d5e0 100644
--- a/indra/newview/llbottomtray.h
+++ b/indra/newview/llbottomtray.h
@@ -108,6 +108,13 @@ private:
void log(LLView* panel, const std::string& descr);
bool processShowButton(EResizeState shown_object_type, S32* available_width, S32* buttons_required_width);
void processHideButton(EResizeState processed_object_type, S32* required_width, S32* buttons_freed_width);
+
+ /**
+ * Determines if specified by type object can be shown. It should be hidden by shrink before.
+ *
+ * Processes buttons a such way to show buttons in constant order:
+ * - Gestures, Move, View, Snapshot
+ */
bool canButtonBeShown(EResizeState processed_object_type) const;
void initStateProcessedObjectMap();
@@ -121,6 +128,8 @@ private:
*
* If it is impossible to show required button due to there is no enough room in bottom tray
* it will no be shown. Is called via context menu commands.
+ * In this case Alert Dialog will be shown to notify user about that.
+ *
* Method also stores resize state to be processed while future bottom tray extending:
* - if hidden while resizing button should be hidden it will not be shown while extending;
* - if hidden via context menu button should be shown but there is no enough room for now