aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llchatbar.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llchatbar.h')
-rw-r--r--linden/indra/newview/llchatbar.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/linden/indra/newview/llchatbar.h b/linden/indra/newview/llchatbar.h
index 32b0018..8a5acc6 100644
--- a/linden/indra/newview/llchatbar.h
+++ b/linden/indra/newview/llchatbar.h
@@ -33,23 +33,21 @@
33#include "llframetimer.h" 33#include "llframetimer.h"
34#include "llchat.h" 34#include "llchat.h"
35 35
36class LLButton;
37class LLComboBox;
38class LLLineEditor; 36class LLLineEditor;
39class LLMessageSystem; 37class LLMessageSystem;
40class LLTextBox;
41class LLTextEditor;
42class LLUICtrl; 38class LLUICtrl;
43class LLUUID; 39class LLUUID;
44class LLFrameTimer; 40class LLFrameTimer;
45class LLStatGraph;
46class LLChatBarGestureObserver; 41class LLChatBarGestureObserver;
42class LLComboBox;
47 43
48class LLChatBar 44class LLChatBar
49: public LLPanel 45: public LLPanel
50{ 46{
51public: 47public:
52 LLChatBar(const std::string& name, const LLRect& rect ); 48 // constructor for inline chat-bars (e.g. hosted in chat history window)
49 LLChatBar(const std::string& name);
50 LLChatBar(const std::string& name, const LLRect& rect);
53 ~LLChatBar(); 51 ~LLChatBar();
54 virtual BOOL postBuild(); 52 virtual BOOL postBuild();
55 53
@@ -71,6 +69,10 @@ public:
71 BOOL inputEditorHasFocus(); 69 BOOL inputEditorHasFocus();
72 LLString getCurrentChat(); 70 LLString getCurrentChat();
73 71
72 // since chat bar logic is reused for chat history
73 // gesture combo box might not be a direct child
74 void setGestureCombo(LLComboBox* combo);
75
74 // Send a chat (after stripping /20foo channel chats). 76 // Send a chat (after stripping /20foo channel chats).
75 // "Animate" means the nodding animation for regular text. 77 // "Animate" means the nodding animation for regular text.
76 void sendChatFromViewer(const LLWString &wtext, EChatType type, BOOL animate); 78 void sendChatFromViewer(const LLWString &wtext, EChatType type, BOOL animate);
@@ -81,7 +83,6 @@ public:
81 LLWString stripChannelNumber(const LLWString &mesg, S32* channel); 83 LLWString stripChannelNumber(const LLWString &mesg, S32* channel);
82 84
83 // callbacks 85 // callbacks
84 static void onClickHistory( void* userdata );
85 static void onClickSay( void* userdata ); 86 static void onClickSay( void* userdata );
86 static void onClickShout( void* userdata ); 87 static void onClickShout( void* userdata );
87 88
@@ -109,8 +110,10 @@ protected:
109 S32 mLastSpecialChatChannel; 110 S32 mLastSpecialChatChannel;
110 111
111 BOOL mIsBuilt; 112 BOOL mIsBuilt;
112 113 BOOL mDynamicLayout;
113 static LLChatBarGestureObserver* sObserver; 114 LLComboBox* mGestureCombo;
115
116 LLChatBarGestureObserver* mObserver;
114}; 117};
115 118
116extern LLChatBar *gChatBar; 119extern LLChatBar *gChatBar;