From 7138fb673ac3df46b9cb5f23d0d74e70fdd2b6b3 Mon Sep 17 00:00:00 2001 From: Monroe Williams Date: Thu, 2 Aug 2007 01:18:34 +0000 Subject: Merge down from Branch_1-18-1: svn merge --ignore-ancestry svn+ssh://svn.lindenlab.com/svn/linden/release@66449 svn+ssh://svn.lindenlab.com/svn/linden/branches/Branch_1-18-1@67131 --- indra/newview/llchatbar.h | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'indra/newview/llchatbar.h') diff --git a/indra/newview/llchatbar.h b/indra/newview/llchatbar.h index 65724a1f45..33198f5fe6 100644 --- a/indra/newview/llchatbar.h +++ b/indra/newview/llchatbar.h @@ -13,23 +13,21 @@ #include "llframetimer.h" #include "llchat.h" -class LLButton; -class LLComboBox; class LLLineEditor; class LLMessageSystem; -class LLTextBox; -class LLTextEditor; class LLUICtrl; class LLUUID; class LLFrameTimer; -class LLStatGraph; class LLChatBarGestureObserver; +class LLComboBox; class LLChatBar : public LLPanel { public: - LLChatBar(const std::string& name, const LLRect& rect ); + // constructor for inline chat-bars (e.g. hosted in chat history window) + LLChatBar(const std::string& name); + LLChatBar(const std::string& name, const LLRect& rect); ~LLChatBar(); virtual BOOL postBuild(); @@ -51,6 +49,10 @@ public: BOOL inputEditorHasFocus(); LLString getCurrentChat(); + // since chat bar logic is reused for chat history + // gesture combo box might not be a direct child + void setGestureCombo(LLComboBox* combo); + // Send a chat (after stripping /20foo channel chats). // "Animate" means the nodding animation for regular text. void sendChatFromViewer(const LLWString &wtext, EChatType type, BOOL animate); @@ -61,7 +63,6 @@ public: LLWString stripChannelNumber(const LLWString &mesg, S32* channel); // callbacks - static void onClickHistory( void* userdata ); static void onClickSay( void* userdata ); static void onClickShout( void* userdata ); @@ -89,8 +90,10 @@ protected: S32 mLastSpecialChatChannel; BOOL mIsBuilt; - - static LLChatBarGestureObserver* sObserver; + BOOL mDynamicLayout; + LLComboBox* mGestureCombo; + + LLChatBarGestureObserver* mObserver; }; extern LLChatBar *gChatBar; -- cgit v1.2.3