diff options
Diffstat (limited to 'linden')
-rw-r--r-- | linden/indra/llui/llspinctrl.cpp | 5 | ||||
-rw-r--r-- | linden/indra/newview/app_settings/settings.xml | 16 | ||||
-rw-r--r-- | linden/indra/newview/llchatbar.cpp | 18 | ||||
-rw-r--r-- | linden/indra/newview/llchatbar.h | 4 | ||||
-rw-r--r-- | linden/indra/newview/llfloaterchat.cpp | 2 | ||||
-rw-r--r-- | linden/indra/newview/llprefschat.cpp | 2 | ||||
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 1 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml | 4 |
8 files changed, 39 insertions, 13 deletions
diff --git a/linden/indra/llui/llspinctrl.cpp b/linden/indra/llui/llspinctrl.cpp index 51daefb..4f1ba26 100644 --- a/linden/indra/llui/llspinctrl.cpp +++ b/linden/indra/llui/llspinctrl.cpp | |||
@@ -468,6 +468,11 @@ BOOL LLSpinCtrl::handleKeyHere(KEY key, MASK mask) | |||
468 | LLSpinCtrl::onDownBtn(this); | 468 | LLSpinCtrl::onDownBtn(this); |
469 | return TRUE; | 469 | return TRUE; |
470 | } | 470 | } |
471 | if(key == KEY_RETURN) | ||
472 | { | ||
473 | forceEditorCommit(); | ||
474 | return TRUE; | ||
475 | } | ||
471 | } | 476 | } |
472 | return FALSE; | 477 | return FALSE; |
473 | } | 478 | } |
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml index efe32e7..e9705de 100644 --- a/linden/indra/newview/app_settings/settings.xml +++ b/linden/indra/newview/app_settings/settings.xml | |||
@@ -2776,6 +2776,22 @@ | |||
2776 | <integer>0</integer> | 2776 | <integer>0</integer> |
2777 | </array> | 2777 | </array> |
2778 | </map> | 2778 | </map> |
2779 | <key>FloaterAnimationListRect</key> | ||
2780 | <map> | ||
2781 | <key>Comment</key> | ||
2782 | <string>Rectangle for Animation List</string> | ||
2783 | <key>Persist</key> | ||
2784 | <integer>1</integer> | ||
2785 | <key>Type</key> | ||
2786 | <string>Rect</string> | ||
2787 | <key>Value</key> | ||
2788 | <array> | ||
2789 | <integer>0</integer> | ||
2790 | <integer>275</integer> | ||
2791 | <integer>1000</integer> | ||
2792 | <integer>0</integer> | ||
2793 | </array> | ||
2794 | </map> | ||
2779 | <key>FloaterAudioVolumeRect</key> | 2795 | <key>FloaterAudioVolumeRect</key> |
2780 | <map> | 2796 | <map> |
2781 | <key>Comment</key> | 2797 | <key>Comment</key> |
diff --git a/linden/indra/newview/llchatbar.cpp b/linden/indra/newview/llchatbar.cpp index 403ab20..608fb54 100644 --- a/linden/indra/newview/llchatbar.cpp +++ b/linden/indra/newview/llchatbar.cpp | |||
@@ -102,7 +102,7 @@ private: | |||
102 | 102 | ||
103 | LLChatBar::LLChatBar() | 103 | LLChatBar::LLChatBar() |
104 | : LLPanel(LLStringUtil::null, LLRect(), BORDER_NO), | 104 | : LLPanel(LLStringUtil::null, LLRect(), BORDER_NO), |
105 | mChannelControl(FALSE), | 105 | mChanCtrlEnabled(FALSE), |
106 | mInputEditor(NULL), | 106 | mInputEditor(NULL), |
107 | mGestureLabelTimer(), | 107 | mGestureLabelTimer(), |
108 | mLastSpecialChatChannel(0), | 108 | mLastSpecialChatChannel(0), |
@@ -157,6 +157,8 @@ BOOL LLChatBar::postBuild() | |||
157 | mInputEditor->setEnableLineHistory(TRUE); | 157 | mInputEditor->setEnableLineHistory(TRUE); |
158 | } | 158 | } |
159 | 159 | ||
160 | mChannelControl = getChild<LLSpinCtrl>("channel_control"); | ||
161 | |||
160 | toggleChannelControl(); | 162 | toggleChannelControl(); |
161 | 163 | ||
162 | mIsBuilt = TRUE; | 164 | mIsBuilt = TRUE; |
@@ -218,7 +220,7 @@ void LLChatBar::refresh() | |||
218 | 220 | ||
219 | childSetValue("History", LLFloaterChat::instanceVisible(LLSD())); | 221 | childSetValue("History", LLFloaterChat::instanceVisible(LLSD())); |
220 | 222 | ||
221 | childSetValue("channel_control",( 1.f * ((S32)(getChild<LLSpinCtrl>("channel_control")->get()))) ); | 223 | //childSetValue("channel_control",( 1.f * ((S32)(mChannelControl->get()))) ); |
222 | childSetEnabled("Say", mInputEditor->getText().size() > 0); | 224 | childSetEnabled("Say", mInputEditor->getText().size() > 0); |
223 | childSetEnabled("Shout", mInputEditor->getText().size() > 0); | 225 | childSetEnabled("Shout", mInputEditor->getText().size() > 0); |
224 | 226 | ||
@@ -379,7 +381,7 @@ LLWString LLChatBar::stripChannelNumber(const LLWString &mesg, S32* channel) | |||
379 | } | 381 | } |
380 | else | 382 | else |
381 | { | 383 | { |
382 | if (!mChannelControl) | 384 | if (!mChanCtrlEnabled) |
383 | { | 385 | { |
384 | // This is normal chat. | 386 | // This is normal chat. |
385 | *channel = 0; | 387 | *channel = 0; |
@@ -399,7 +401,7 @@ void LLChatBar::sendChat( EChatType type ) | |||
399 | // store sent line in history, duplicates will get filtered | 401 | // store sent line in history, duplicates will get filtered |
400 | if (mInputEditor) mInputEditor->updateHistory(); | 402 | if (mInputEditor) mInputEditor->updateHistory(); |
401 | // Check if this is destined for another channel | 403 | // Check if this is destined for another channel |
402 | S32 channel = mChannelControl ? (S32)(getChild<LLSpinCtrl>("channel_control")->get()) : 0; | 404 | S32 channel = mChanCtrlEnabled ? (S32)(mChannelControl->get()) : 0; |
403 | 405 | ||
404 | stripChannelNumber(text, &channel); | 406 | stripChannelNumber(text, &channel); |
405 | 407 | ||
@@ -441,9 +443,9 @@ void LLChatBar::sendChat( EChatType type ) | |||
441 | void LLChatBar::toggleChannelControl() | 443 | void LLChatBar::toggleChannelControl() |
442 | { | 444 | { |
443 | LLRect input_rect = mInputEditor->getRect(); | 445 | LLRect input_rect = mInputEditor->getRect(); |
444 | S32 chan_width = getChild<LLSpinCtrl>("channel_control")->getRect().getWidth(); | 446 | S32 chan_width = mChannelControl->getRect().getWidth(); |
445 | BOOL visible = gSavedSettings.getBOOL("ChatChannelSelect"); | 447 | BOOL visible = gSavedSettings.getBOOL("ChatChannelSelect"); |
446 | BOOL control = getChild<LLSpinCtrl>("channel_control")->getVisible(); | 448 | BOOL control = mChannelControl->getVisible(); |
447 | 449 | ||
448 | if (visible && !control) | 450 | if (visible && !control) |
449 | { | 451 | { |
@@ -460,7 +462,7 @@ void LLChatBar::toggleChannelControl() | |||
460 | 462 | ||
461 | childSetVisible("channel_control", visible); | 463 | childSetVisible("channel_control", visible); |
462 | childSetEnabled("channel_control", visible); | 464 | childSetEnabled("channel_control", visible); |
463 | mChannelControl = visible; | 465 | mChanCtrlEnabled = visible; |
464 | } | 466 | } |
465 | 467 | ||
466 | 468 | ||
@@ -616,7 +618,7 @@ void LLChatBar::sendChatFromViewer(const std::string &utf8text, EChatType type, | |||
616 | void LLChatBar::sendChatFromViewer(const LLWString &wtext, EChatType type, BOOL animate) | 618 | void LLChatBar::sendChatFromViewer(const LLWString &wtext, EChatType type, BOOL animate) |
617 | { | 619 | { |
618 | // Look for "/20 foo" channel chats. | 620 | // Look for "/20 foo" channel chats. |
619 | S32 channel = mChannelControl ? (S32)(getChild<LLSpinCtrl>("channel_control")->get()) : 0; | 621 | S32 channel = mChanCtrlEnabled ? (S32)(mChannelControl->get()) : 0; |
620 | 622 | ||
621 | LLWString out_text = stripChannelNumber(wtext, &channel); | 623 | LLWString out_text = stripChannelNumber(wtext, &channel); |
622 | std::string utf8_out_text = wstring_to_utf8str(out_text); | 624 | std::string utf8_out_text = wstring_to_utf8str(out_text); |
diff --git a/linden/indra/newview/llchatbar.h b/linden/indra/newview/llchatbar.h index 53ac233..96961ae 100644 --- a/linden/indra/newview/llchatbar.h +++ b/linden/indra/newview/llchatbar.h | |||
@@ -43,6 +43,7 @@ class LLUUID; | |||
43 | class LLFrameTimer; | 43 | class LLFrameTimer; |
44 | class LLChatBarGestureObserver; | 44 | class LLChatBarGestureObserver; |
45 | class LLComboBox; | 45 | class LLComboBox; |
46 | class LLSpinCtrl; | ||
46 | 47 | ||
47 | class LLChatBar | 48 | class LLChatBar |
48 | : public LLPanel | 49 | : public LLPanel |
@@ -113,7 +114,8 @@ protected: | |||
113 | LLChatBarGestureObserver* mObserver; | 114 | LLChatBarGestureObserver* mObserver; |
114 | 115 | ||
115 | private: | 116 | private: |
116 | BOOL mChannelControl; | 117 | BOOL mChanCtrlEnabled; |
118 | LLSpinCtrl* mChannelControl; | ||
117 | }; | 119 | }; |
118 | 120 | ||
119 | extern LLChatBar *gChatBar; | 121 | extern LLChatBar *gChatBar; |
diff --git a/linden/indra/newview/llfloaterchat.cpp b/linden/indra/newview/llfloaterchat.cpp index 1f51a21..1f34ad0 100644 --- a/linden/indra/newview/llfloaterchat.cpp +++ b/linden/indra/newview/llfloaterchat.cpp | |||
@@ -108,6 +108,8 @@ LLFloaterChat::LLFloaterChat(const LLSD& seed) | |||
108 | childSetVisible("Chat History Editor with mute",FALSE); | 108 | childSetVisible("Chat History Editor with mute",FALSE); |
109 | childSetAction("toggle_active_speakers_btn", onClickToggleActiveSpeakers, this); | 109 | childSetAction("toggle_active_speakers_btn", onClickToggleActiveSpeakers, this); |
110 | setDefaultBtn("Chat"); | 110 | setDefaultBtn("Chat"); |
111 | |||
112 | //toggleHistoryChannelControl(); temporarily disable until working | ||
111 | } | 113 | } |
112 | 114 | ||
113 | LLFloaterChat::~LLFloaterChat() | 115 | LLFloaterChat::~LLFloaterChat() |
diff --git a/linden/indra/newview/llprefschat.cpp b/linden/indra/newview/llprefschat.cpp index f3b7278..6e55cda 100644 --- a/linden/indra/newview/llprefschat.cpp +++ b/linden/indra/newview/llprefschat.cpp | |||
@@ -194,7 +194,7 @@ void LLPrefsChatImpl::apply() | |||
194 | if (gChatBar) | 194 | if (gChatBar) |
195 | { | 195 | { |
196 | gChatBar->toggleChannelControl(); | 196 | gChatBar->toggleChannelControl(); |
197 | LLFloaterChat::toggleHistoryChannelControl(); | 197 | //LLFloaterChat::toggleHistoryChannelControl(); temporarily disable until working |
198 | } | 198 | } |
199 | mChatChannel = chan_check; | 199 | mChatChannel = chan_check; |
200 | } | 200 | } |
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp index d5e4d20..0146f9e 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -2329,7 +2329,6 @@ class LLObjectEnableExport : public view_listener_t | |||
2329 | { | 2329 | { |
2330 | if(gAgent.getID()!=node->mPermissions->getCreator()) | 2330 | if(gAgent.getID()!=node->mPermissions->getCreator()) |
2331 | { | 2331 | { |
2332 | llwarns<<"Incorrect permission to export"<<llendl; | ||
2333 | return false; | 2332 | return false; |
2334 | } | 2333 | } |
2335 | return true; | 2334 | return true; |
diff --git a/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml b/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml index 81fe178..92b7008 100644 --- a/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml +++ b/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml | |||
@@ -1952,8 +1952,8 @@ | |||
1952 | <on_check control="ShowConsoleWindow" /> | 1952 | <on_check control="ShowConsoleWindow" /> |
1953 | </menu_item_check> | 1953 | </menu_item_check> |
1954 | 1954 | ||
1955 | <menu_item_check name="Restrained Life Active" | 1955 | <menu_item_check name="Restrained Life Support" |
1956 | label="Restrained Life Active"> | 1956 | label="Restrained Life Support"> |
1957 | <on_click function="RLVa.Main.Toggle" /> | 1957 | <on_click function="RLVa.Main.Toggle" /> |
1958 | <on_check function="RLVa.Main.Enabled" /> | 1958 | <on_check function="RLVa.Main.Enabled" /> |
1959 | </menu_item_check> | 1959 | </menu_item_check> |