From 459e7e268462e93d7e3ec680f4ecf8c120b19a05 Mon Sep 17 00:00:00 2001 From: Eugene Kondrashev Date: Wed, 4 Nov 2009 12:54:44 +0200 Subject: Implemented normal subtask EXT-1516 - Implement chiclet for ad-hoc chat. --HG-- branch : product-engine --- indra/newview/llchiclet.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'indra/newview/llchiclet.h') diff --git a/indra/newview/llchiclet.h b/indra/newview/llchiclet.h index 6eefd9829f..f82259c73e 100644 --- a/indra/newview/llchiclet.h +++ b/indra/newview/llchiclet.h @@ -457,6 +457,8 @@ public: Optional show_speaker; + Optional avatar_icon_color; + Params(); }; -- cgit v1.2.3 From 347f2614804d2b681358822c6bd018409aadde83 Mon Sep 17 00:00:00 2001 From: Dmitry Oleshko Date: Wed, 4 Nov 2009 16:35:48 +0200 Subject: implemented a normal Sub-task (EXT-988) Change indication of unread messges in chiclets --HG-- branch : product-engine --- indra/newview/llchiclet.h | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) (limited to 'indra/newview/llchiclet.h') diff --git a/indra/newview/llchiclet.h b/indra/newview/llchiclet.h index f82259c73e..a830240b7d 100644 --- a/indra/newview/llchiclet.h +++ b/indra/newview/llchiclet.h @@ -278,6 +278,14 @@ public: TYPE_GROUP, TYPE_AD_HOC }; + struct Params : public LLInitParam::Block + { + Optional new_messages_icon_name; + + Params() : new_messages_icon_name("new_messages_icon_name", "icn_voice-localchat.tga") + {} + }; + /*virtual*/ ~LLIMChiclet() {}; @@ -307,6 +315,16 @@ public: */ virtual bool getShowSpeaker() {return mShowSpeaker;}; + /* + * Shows/hides overlay icon concerning new unread messages. + */ + virtual void setShowNewMessagesIcon(bool show); + + /* + * Returns visibility of overlay icon concerning new unread messages. + */ + virtual bool getShowNewMessagesIcon(); + /* * Draws border around chiclet. */ @@ -335,7 +353,7 @@ public: protected: - LLIMChiclet(const LLChiclet::Params& p); + LLIMChiclet(const LLIMChiclet::Params& p); /*virtual*/ BOOL handleMouseDown(S32 x, S32 y, MASK mask); @@ -343,6 +361,9 @@ protected: bool mShowSpeaker; + LLIconCtrl* mNewMessagesIcon; + LLChicletNotificationCounterCtrl* mCounterCtrl; + /** the id of another participant, either an avatar id or a group id*/ LLUUID mOtherParticipantId; @@ -374,7 +395,7 @@ public: class LLIMP2PChiclet : public LLIMChiclet { public: - struct Params : public LLInitParam::Block + struct Params : public LLInitParam::Block { Optional avatar_icon; @@ -436,7 +457,6 @@ protected: private: LLChicletAvatarIconCtrl* mChicletIconCtrl; - LLChicletNotificationCounterCtrl* mCounterCtrl; LLChicletSpeakerCtrl* mSpeakerCtrl; LLMenuGL* mPopupMenu; }; @@ -447,7 +467,7 @@ private: class LLAdHocChiclet : public LLIMChiclet { public: - struct Params : public LLInitParam::Block + struct Params : public LLInitParam::Block { Optional avatar_icon; @@ -497,7 +517,6 @@ protected: private: LLChicletAvatarIconCtrl* mChicletIconCtrl; - LLChicletNotificationCounterCtrl* mCounterCtrl; LLChicletSpeakerCtrl* mSpeakerCtrl; LLMenuGL* mPopupMenu; }; @@ -509,7 +528,7 @@ class LLIMGroupChiclet : public LLIMChiclet, public LLGroupMgrObserver { public: - struct Params : public LLInitParam::Block + struct Params : public LLInitParam::Block { Optional group_icon; @@ -578,7 +597,6 @@ protected: private: LLChicletGroupIconCtrl* mChicletIconCtrl; - LLChicletNotificationCounterCtrl* mCounterCtrl; LLChicletSpeakerCtrl* mSpeakerCtrl; LLMenuGL* mPopupMenu; }; -- cgit v1.2.3 From 179f18d1ab5cc93509339684029cf7e4fe0b3eaa Mon Sep 17 00:00:00 2001 From: Tofu Linden Date: Wed, 4 Nov 2009 20:34:11 +0000 Subject: LLTalkButton -> LLSpeakButton, 'cos that's what it is. --- indra/newview/llchiclet.h | 36 ------------------------------------ 1 file changed, 36 deletions(-) (limited to 'indra/newview/llchiclet.h') diff --git a/indra/newview/llchiclet.h b/indra/newview/llchiclet.h index 6eefd9829f..e84111c53a 100644 --- a/indra/newview/llchiclet.h +++ b/indra/newview/llchiclet.h @@ -833,42 +833,6 @@ protected: bool mShowControls; }; -/* - * Button displaying voice chat status. Displays voice chat options When clicked. -*/ -class LLTalkButton : public LLUICtrl -{ -public: - - struct Params : public LLInitParam::Block - { - Optional speak_button, - show_button; - - Optional monitor; - - Params(); - }; - - /*virtual*/ ~LLTalkButton(); - - void setSpeakBtnToggleState(bool state); - -protected: - friend class LLUICtrlFactory; - LLTalkButton(const Params& p); - - void onClick_SpeakBtn(); - - void onClick_ShowBtn(); - -private: - LLButton* mSpeakBtn; - LLButton* mShowBtn; - LLVoiceControlPanel* mPrivateCallPanel; - LLOutputMonitorCtrl* mOutputMonitor; -}; - template T* LLChicletPanel::createChiclet(const LLUUID& session_id, S32 index) { -- cgit v1.2.3