diff options
author | Jacek Antonelli | 2009-09-09 11:38:26 -0500 |
---|---|---|
committer | Jacek Antonelli | 2009-09-09 11:59:42 -0500 |
commit | ced5a5f6a0e7d294f9e477409387674fcecc532c (patch) | |
tree | e7500de0806009c2955bef6af7103ac60ae1e8e0 /linden/indra/newview/llfloaterchat.cpp | |
parent | Merge branch 'objectbackup' into next (diff) | |
parent | Commented out permissions button (todo: backport this if there's time) (diff) | |
download | meta-impy-ced5a5f6a0e7d294f9e477409387674fcecc532c.zip meta-impy-ced5a5f6a0e7d294f9e477409387674fcecc532c.tar.gz meta-impy-ced5a5f6a0e7d294f9e477409387674fcecc532c.tar.bz2 meta-impy-ced5a5f6a0e7d294f9e477409387674fcecc532c.tar.xz |
Merge remote branch 'mccabe/1.2.0-next' into next
Moved "Backup" pie menu item to fit "Go Here" in top-left slot.
Conflicts:
linden/indra/newview/llviewermenu.cpp
linden/indra/newview/skins/default/xui/en-us/menu_pie_object.xml
Diffstat (limited to 'linden/indra/newview/llfloaterchat.cpp')
-rw-r--r-- | linden/indra/newview/llfloaterchat.cpp | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/linden/indra/newview/llfloaterchat.cpp b/linden/indra/newview/llfloaterchat.cpp index 4cc721e..68aaceb 100644 --- a/linden/indra/newview/llfloaterchat.cpp +++ b/linden/indra/newview/llfloaterchat.cpp | |||
@@ -56,10 +56,11 @@ | |||
56 | #include "llfloaterchatterbox.h" | 56 | #include "llfloaterchatterbox.h" |
57 | #include "llfloatermute.h" | 57 | #include "llfloatermute.h" |
58 | #include "llkeyboard.h" | 58 | #include "llkeyboard.h" |
59 | //#include "lllineeditor.h" | 59 | #include "lllineeditor.h" |
60 | #include "llmutelist.h" | 60 | #include "llmutelist.h" |
61 | //#include "llresizehandle.h" | 61 | //#include "llresizehandle.h" |
62 | #include "llchatbar.h" | 62 | #include "llchatbar.h" |
63 | #include "llspinctrl.h" | ||
63 | #include "llstatusbar.h" | 64 | #include "llstatusbar.h" |
64 | #include "llviewertexteditor.h" | 65 | #include "llviewertexteditor.h" |
65 | #include "llviewergesture.h" // for triggering gestures | 66 | #include "llviewergesture.h" // for triggering gestures |
@@ -227,6 +228,34 @@ void log_chat_text(const LLChat& chat) | |||
227 | 228 | ||
228 | LLLogChat::saveHistory(std::string("chat"),histstr); | 229 | LLLogChat::saveHistory(std::string("chat"),histstr); |
229 | } | 230 | } |
231 | |||
232 | // static | ||
233 | void LLFloaterChat::toggleHistoryChannelControl() | ||
234 | { | ||
235 | LLFloaterChat* chat_floater = LLFloaterChat::getInstance(LLSD()); | ||
236 | BOOL visible = gSavedSettings.getBOOL("ChatChannelSelect"); | ||
237 | BOOL control = chat_floater->getChild<LLSpinCtrl>("channel_control")->getVisible(); | ||
238 | |||
239 | LLLineEditor* input = chat_floater->getChild<LLLineEditor>("Chat Editor"); | ||
240 | LLRect input_rect = input->getRect(); | ||
241 | S32 chan_width = chat_floater->getChild<LLSpinCtrl>("channel_control")->getRect().getWidth(); | ||
242 | |||
243 | if (visible && !control) | ||
244 | { | ||
245 | input_rect.setLeftTopAndSize(input_rect.mLeft+chan_width+4, input_rect.mTop, | ||
246 | input_rect.getWidth()-chan_width, input_rect.getHeight()); | ||
247 | } | ||
248 | else if (!visible && control) | ||
249 | { | ||
250 | input_rect.setLeftTopAndSize(input_rect.mLeft-chan_width-4, input_rect.mTop, | ||
251 | input_rect.getWidth()+chan_width, input_rect.getHeight()); | ||
252 | } | ||
253 | input->setRect(input_rect); | ||
254 | |||
255 | chat_floater->childSetVisible("channel_control", visible); | ||
256 | chat_floater->childSetEnabled("channel_control", visible); | ||
257 | } | ||
258 | |||
230 | // static | 259 | // static |
231 | void LLFloaterChat::addChatHistory(const LLChat& chat, bool log_to_file) | 260 | void LLFloaterChat::addChatHistory(const LLChat& chat, bool log_to_file) |
232 | { | 261 | { |