diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llchatbar.h | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/linden/indra/newview/llchatbar.h b/linden/indra/newview/llchatbar.h index 0f83d53..fd3b339 100644 --- a/linden/indra/newview/llchatbar.h +++ b/linden/indra/newview/llchatbar.h | |||
@@ -12,12 +12,12 @@ | |||
12 | * ("GPL"), unless you have obtained a separate licensing agreement | 12 | * ("GPL"), unless you have obtained a separate licensing agreement |
13 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 13 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
15 | * online at http://secondlife.com/developers/opensource/gplv2 | 15 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 |
16 | * | 16 | * |
17 | * There are special exceptions to the terms and conditions of the GPL as | 17 | * There are special exceptions to the terms and conditions of the GPL as |
18 | * it is applied to this Source Code. View the full text of the exception | 18 | * it is applied to this Source Code. View the full text of the exception |
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 19 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
20 | * online at http://secondlife.com/developers/opensource/flossexception | 20 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception |
21 | * | 21 | * |
22 | * By copying, modifying or distributing this software, you acknowledge | 22 | * By copying, modifying or distributing this software, you acknowledge |
23 | * that you have read and understood your obligations described above, | 23 | * that you have read and understood your obligations described above, |
@@ -49,17 +49,12 @@ class LLChatBar | |||
49 | { | 49 | { |
50 | public: | 50 | public: |
51 | // constructor for inline chat-bars (e.g. hosted in chat history window) | 51 | // constructor for inline chat-bars (e.g. hosted in chat history window) |
52 | LLChatBar(const std::string& name); | 52 | LLChatBar(); |
53 | LLChatBar(const std::string& name, const LLRect& rect); | ||
54 | ~LLChatBar(); | 53 | ~LLChatBar(); |
55 | virtual BOOL postBuild(); | 54 | virtual BOOL postBuild(); |
56 | 55 | ||
57 | virtual void reshape(S32 width, S32 height, BOOL called_from_parent); | ||
58 | virtual BOOL handleKeyHere(KEY key, MASK mask, BOOL called_from_parent); | 56 | virtual BOOL handleKeyHere(KEY key, MASK mask, BOOL called_from_parent); |
59 | 57 | ||
60 | // Adjust buttons and input field for width | ||
61 | void layout(); | ||
62 | |||
63 | void refresh(); | 58 | void refresh(); |
64 | void refreshGestures(); | 59 | void refreshGestures(); |
65 | 60 | ||
@@ -86,20 +81,18 @@ public: | |||
86 | LLWString stripChannelNumber(const LLWString &mesg, S32* channel); | 81 | LLWString stripChannelNumber(const LLWString &mesg, S32* channel); |
87 | 82 | ||
88 | // callbacks | 83 | // callbacks |
89 | static void onClickSay( void* userdata ); | 84 | static void onClickSay( LLUICtrl*, void* userdata ); |
90 | static void onClickShout( void* userdata ); | ||
91 | 85 | ||
92 | static void onTabClick( void* userdata ); | 86 | static void onTabClick( void* userdata ); |
93 | static void onInputEditorKeystroke(LLLineEditor* caller, void* userdata); | 87 | static void onInputEditorKeystroke(LLLineEditor* caller, void* userdata); |
94 | static void onInputEditorFocusLost(LLUICtrl* caller,void* userdata); | 88 | static void onInputEditorFocusLost(LLFocusableElement* caller,void* userdata); |
95 | static void onInputEditorGainFocus(LLUICtrl* caller,void* userdata); | 89 | static void onInputEditorGainFocus(LLFocusableElement* caller,void* userdata); |
96 | 90 | ||
97 | static void onCommitGesture(LLUICtrl* ctrl, void* data); | 91 | static void onCommitGesture(LLUICtrl* ctrl, void* data); |
98 | 92 | ||
99 | static void startChat(void*); | 93 | static void startChat(void*); |
100 | static void stopChat(); | 94 | static void stopChat(); |
101 | 95 | ||
102 | /*virtual*/ void setVisible(BOOL visible); | ||
103 | protected: | 96 | protected: |
104 | void sendChat(EChatType type); | 97 | void sendChat(EChatType type); |
105 | void updateChat(); | 98 | void updateChat(); |
@@ -113,7 +106,6 @@ protected: | |||
113 | S32 mLastSpecialChatChannel; | 106 | S32 mLastSpecialChatChannel; |
114 | 107 | ||
115 | BOOL mIsBuilt; | 108 | BOOL mIsBuilt; |
116 | BOOL mDynamicLayout; | ||
117 | LLComboBox* mGestureCombo; | 109 | LLComboBox* mGestureCombo; |
118 | 110 | ||
119 | LLChatBarGestureObserver* mObserver; | 111 | LLChatBarGestureObserver* mObserver; |