Skip to content
Snippets Groups Projects
Commit 1acc52a7 authored by Mike Antipov's avatar Mike Antipov
Browse files

Work on normal task EXT-3081 (Separate Message Well on Notifications Well and IM Well)

 -- removed member pointer to Notification Well Icon from the LLBottomTray
 -- placed Well counter over the Icon, made center-aligned

--HG--
branch : product-engine
parent 653ebfbe
No related branches found
No related tags found
No related merge requests found
...@@ -54,21 +54,24 @@ template class LLBottomTray* LLSingleton<class LLBottomTray>::getInstance(); ...@@ -54,21 +54,24 @@ template class LLBottomTray* LLSingleton<class LLBottomTray>::getInstance();
LLBottomTray::LLBottomTray(const LLSD&) LLBottomTray::LLBottomTray(const LLSD&)
: mChicletPanel(NULL), : mChicletPanel(NULL),
mNotificationWell(NULL),
mSpeakPanel(NULL), mSpeakPanel(NULL),
mSpeakBtn(NULL), mSpeakBtn(NULL),
mNearbyChatBar(NULL), mNearbyChatBar(NULL),
mToolbarStack(NULL) mToolbarStack(NULL)
, mMovementButton(NULL) , mMovementButton(NULL)
, mResizeState(RS_NORESIZE) , mResizeState(RS_NORESIZE)
// Add more members , mBottomTrayContextMenu(NULL)
, mMovementPanel(NULL)
, mCamPanel(NULL)
, mSnapshotPanel(NULL)
, mGesturePanel(NULL)
, mCamButton(NULL)
{ {
mFactoryMap["chat_bar"] = LLCallbackMap(LLBottomTray::createNearbyChatBar, NULL); mFactoryMap["chat_bar"] = LLCallbackMap(LLBottomTray::createNearbyChatBar, NULL);
LLUICtrlFactory::getInstance()->buildPanel(this,"panel_bottomtray.xml"); LLUICtrlFactory::getInstance()->buildPanel(this,"panel_bottomtray.xml");
mChicletPanel = getChild<LLChicletPanel>("chiclet_list"); mChicletPanel = getChild<LLChicletPanel>("chiclet_list");
mNotificationWell = getChild<LLNotificationChiclet>("notification_well");
mChicletPanel->setChicletClickedCallback(boost::bind(&LLBottomTray::onChicletClick,this,_1)); mChicletPanel->setChicletClickedCallback(boost::bind(&LLBottomTray::onChicletClick,this,_1));
......
...@@ -66,7 +66,6 @@ class LLBottomTray ...@@ -66,7 +66,6 @@ class LLBottomTray
BOOL postBuild(); BOOL postBuild();
LLChicletPanel* getChicletPanel() {return mChicletPanel;} LLChicletPanel* getChicletPanel() {return mChicletPanel;}
LLNotificationChiclet* getSysWell() {return mNotificationWell;}
LLNearbyChatBar* getNearbyChatBar() {return mNearbyChatBar;} LLNearbyChatBar* getNearbyChatBar() {return mNearbyChatBar;}
void onCommitGesture(LLUICtrl* ctrl); void onCommitGesture(LLUICtrl* ctrl);
...@@ -189,7 +188,6 @@ class LLBottomTray ...@@ -189,7 +188,6 @@ class LLBottomTray
LLIMChiclet* createIMChiclet(const LLUUID& session_id); LLIMChiclet* createIMChiclet(const LLUUID& session_id);
LLChicletPanel* mChicletPanel; LLChicletPanel* mChicletPanel;
LLNotificationChiclet* mNotificationWell;
LLPanel* mSpeakPanel; LLPanel* mSpeakPanel;
LLSpeakButton* mSpeakBtn; LLSpeakButton* mSpeakBtn;
LLNearbyChatBar* mNearbyChatBar; LLNearbyChatBar* mNearbyChatBar;
......
...@@ -46,6 +46,8 @@ ...@@ -46,6 +46,8 @@
#include "llnotificationmanager.h" #include "llnotificationmanager.h"
static std::string NOTIFICATION_WELL_ANCHOR_NAME = "notification_well_panel";
//--------------------------------------------------------------------------------- //---------------------------------------------------------------------------------
LLSysWellWindow::LLSysWellWindow(const LLSD& key) : LLDockableFloater(NULL, key), LLSysWellWindow::LLSysWellWindow(const LLSD& key) : LLDockableFloater(NULL, key),
mChannel(NULL), mChannel(NULL),
...@@ -251,7 +253,7 @@ void LLSysWellWindow::setVisible(BOOL visible) ...@@ -251,7 +253,7 @@ void LLSysWellWindow::setVisible(BOOL visible)
if (NULL == getDockControl() && getDockTongue().notNull()) if (NULL == getDockControl() && getDockTongue().notNull())
{ {
setDockControl(new LLDockControl( setDockControl(new LLDockControl(
LLBottomTray::getInstance()->getSysWell(), this, LLBottomTray::getInstance()->getChild<LLView>(NOTIFICATION_WELL_ANCHOR_NAME), this,
getDockTongue(), LLDockControl::TOP, boost::bind(&LLSysWellWindow::getAllowedRect, this, _1))); getDockTongue(), LLDockControl::TOP, boost::bind(&LLSysWellWindow::getAllowedRect, this, _1)));
} }
......
...@@ -320,8 +320,8 @@ as for parent layout_panel (chiclet_list_panel) to resize bottom tray properly. ...@@ -320,8 +320,8 @@ as for parent layout_panel (chiclet_list_panel) to resize bottom tray properly.
min_height="28" min_height="28"
top="0" top="0"
name="notification_well_panel" name="notification_well_panel"
width="54" width="34"
min_width="54" min_width="34"
user_resize="false"> user_resize="false">
<chiclet_notification <chiclet_notification
follows="right" follows="right"
...@@ -330,23 +330,23 @@ as for parent layout_panel (chiclet_list_panel) to resize bottom tray properly. ...@@ -330,23 +330,23 @@ as for parent layout_panel (chiclet_list_panel) to resize bottom tray properly.
left="0" left="0"
name="notification_well" name="notification_well"
top="4" top="4"
width="54"> width="34">
<button <button
image_selected="PushButton_Selected_Press" image_selected="PushButton_Selected_Press"
image_pressed="PushButton_Press" image_pressed="PushButton_Press"
image_pressed_selected="PushButton_Selected_Press" image_pressed_selected="PushButton_Selected_Press"
auto_resize="true" auto_resize="true"
halign="right" halign="center"
height="23" height="23"
follows="right" follows="right"
flash_color="EmphasisColor" flash_color="EmphasisColor"
left="0" left="0"
name="Unread" name="Unread"
image_overlay="Notices_Unread" image_overlay="Notices_Unread"
image_overlay_alignment="right" image_overlay_alignment="center"
pad_right="6" pad_right="0"
pad_left="6" pad_left="0"
width="54" > width="34" >
<button.init_callback <button.init_callback
function="Button.SetDockableFloaterToggle" function="Button.SetDockableFloaterToggle"
parameter="notification_well_window" /> parameter="notification_well_window" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment