From d6d8681874c934303f446017f60123a3a021d421 Mon Sep 17 00:00:00 2001 From: Shyotl Date: Thu, 13 Oct 2011 17:17:57 -0500 Subject: [PATCH 01/23] onVisibilityChange renamed to handleVisibilityChange --- indra/llui/llmenugl.cpp | 4 ++-- indra/llui/llmenugl.h | 2 +- indra/llui/llview.cpp | 6 +++--- indra/llui/llview.h | 4 ++-- indra/newview/llfloaterchat.cpp | 4 ++-- indra/newview/llfloaterchat.h | 2 +- indra/newview/llimpanel.cpp | 2 +- indra/newview/llimpanel.h | 2 +- indra/newview/llmediactrl.cpp | 4 ++-- indra/newview/llmediactrl.h | 2 +- indra/newview/llpaneldirbrowser.cpp | 4 ++-- indra/newview/llpaneldirbrowser.h | 2 +- indra/newview/llpaneldirfind.cpp | 4 ++-- indra/newview/llpaneldirfind.h | 2 +- 14 files changed, 22 insertions(+), 22 deletions(-) diff --git a/indra/llui/llmenugl.cpp b/indra/llui/llmenugl.cpp index cf9af9b32..1e257d4fa 100644 --- a/indra/llui/llmenugl.cpp +++ b/indra/llui/llmenugl.cpp @@ -1279,13 +1279,13 @@ void LLMenuItemBranchGL::updateBranchParent(LLView* parentp) } } -void LLMenuItemBranchGL::onVisibilityChange( BOOL new_visibility ) +void LLMenuItemBranchGL::handleVisibilityChange( BOOL new_visibility ) { if (new_visibility == FALSE && getBranch() && !getBranch()->getTornOff()) { getBranch()->setVisible(FALSE); } - LLMenuItemGL::onVisibilityChange(new_visibility); + LLMenuItemGL::handleVisibilityChange(new_visibility); } BOOL LLMenuItemBranchGL::handleKeyHere( KEY key, MASK mask ) diff --git a/indra/llui/llmenugl.h b/indra/llui/llmenugl.h index 63f9d555d..2150d5584 100644 --- a/indra/llui/llmenugl.h +++ b/indra/llui/llmenugl.h @@ -613,7 +613,7 @@ public: virtual void updateBranchParent( LLView* parentp ); // LLView Functionality - virtual void onVisibilityChange( BOOL curVisibilityIn ); + virtual void handleVisibilityChange( BOOL curVisibilityIn ); virtual void draw(); diff --git a/indra/llui/llview.cpp b/indra/llui/llview.cpp index 339e3b97c..6524f1856 100644 --- a/indra/llui/llview.cpp +++ b/indra/llui/llview.cpp @@ -644,14 +644,14 @@ void LLView::setVisible(BOOL visible) if (!getParent() || getParent()->isInVisibleChain()) { // tell all children of this view that the visibility may have changed - onVisibilityChange( visible ); + handleVisibilityChange( visible ); } updateBoundingRect(); } } // virtual -void LLView::onVisibilityChange ( BOOL new_visibility ) +void LLView::handleVisibilityChange ( BOOL new_visibility ) { for ( child_list_iter_t child_it = mChildList.begin(); child_it != mChildList.end(); ++child_it) { @@ -659,7 +659,7 @@ void LLView::onVisibilityChange ( BOOL new_visibility ) // only views that are themselves visible will have their overall visibility affected by their ancestors if (viewp->getVisible()) { - viewp->onVisibilityChange ( new_visibility ); + viewp->handleVisibilityChange ( new_visibility ); } } } diff --git a/indra/llui/llview.h b/indra/llui/llview.h index 43ee36a4f..fa53862d1 100644 --- a/indra/llui/llview.h +++ b/indra/llui/llview.h @@ -94,7 +94,7 @@ virtual void setEnabled(BOOL enabled) { mEnabled = enabled; } LLCheckBoxCtrl, LLComboBox, LLLineEditor, LLMenuGL, LLRadioGroup, etc virtual BOOL setLabelArg( const std::string& key, const LLStringExplicit& text ) { return FALSE; } LLUICtrl, LLButton, LLCheckBoxCtrl, LLLineEditor, LLMenuGL, LLSliderCtrl -virtual void onVisibilityChange ( BOOL curVisibilityIn ); +virtual void handleVisibilityChange ( BOOL curVisibilityIn ); LLMenuGL virtual LLRect getSnapRect() const { return mRect; } *TODO: Make non virtual LLFloater @@ -342,7 +342,7 @@ public: virtual BOOL setLabelArg( const std::string& key, const LLStringExplicit& text ); - virtual void onVisibilityChange ( BOOL curVisibilityIn ); + virtual void handleVisibilityChange ( BOOL curVisibilityIn ); void pushVisible(BOOL visible) { mLastVisible = mVisible; setVisible(visible); } void popVisible() { setVisible(mLastVisible); mLastVisible = TRUE; } diff --git a/indra/newview/llfloaterchat.cpp b/indra/newview/llfloaterchat.cpp index bfc046b7a..af37749c9 100644 --- a/indra/newview/llfloaterchat.cpp +++ b/indra/newview/llfloaterchat.cpp @@ -169,7 +169,7 @@ void LLFloaterChat::onClose(bool app_quitting) setVisible(FALSE); } -void LLFloaterChat::onVisibilityChange(BOOL new_visibility) +void LLFloaterChat::handleVisibilityChange(BOOL new_visibility) { // Hide the chat overlay when our history is visible. updateConsoleVisibility(); @@ -180,7 +180,7 @@ void LLFloaterChat::onVisibilityChange(BOOL new_visibility) LLFloaterChatterBox::getInstance()->setFloaterFlashing(this, FALSE); } - LLFloater::onVisibilityChange(new_visibility); + LLFloater::handleVisibilityChange(new_visibility); } void LLFloaterChat::setMinimized(BOOL minimized) diff --git a/indra/newview/llfloaterchat.h b/indra/newview/llfloaterchat.h index 775f21be6..4f9a03be5 100644 --- a/indra/newview/llfloaterchat.h +++ b/indra/newview/llfloaterchat.h @@ -62,7 +62,7 @@ public: virtual void draw(); virtual BOOL postBuild(); virtual void onClose(bool app_quitting); - virtual void onVisibilityChange(BOOL cur_visibility); + virtual void handleVisibilityChange(BOOL cur_visibility); virtual void setMinimized(BOOL); void updateConsoleVisibility(); void updateSettings(); diff --git a/indra/newview/llimpanel.cpp b/indra/newview/llimpanel.cpp index ff574bea8..1278de487 100644 --- a/indra/newview/llimpanel.cpp +++ b/indra/newview/llimpanel.cpp @@ -2050,7 +2050,7 @@ void LLFloaterIMPanel::onClose(bool app_quitting) destroy(); } -void LLFloaterIMPanel::onVisibilityChange(BOOL new_visibility) +void LLFloaterIMPanel::handleVisibilityChange(BOOL new_visibility) { if (new_visibility) { diff --git a/indra/newview/llimpanel.h b/indra/newview/llimpanel.h index 5787fc603..6f4e7d43a 100644 --- a/indra/newview/llimpanel.h +++ b/indra/newview/llimpanel.h @@ -204,7 +204,7 @@ public: // Check typing timeout timer. /*virtual*/ void draw(); /*virtual*/ void onClose(bool app_quitting = FALSE); - /*virtual*/ void onVisibilityChange(BOOL new_visibility); + /*virtual*/ void handleVisibilityChange(BOOL new_visibility); // add target ids to the session. // Return TRUE if successful, otherwise FALSE. diff --git a/indra/newview/llmediactrl.cpp b/indra/newview/llmediactrl.cpp index 8124e841d..186dd2f27 100644 --- a/indra/newview/llmediactrl.cpp +++ b/indra/newview/llmediactrl.cpp @@ -407,7 +407,7 @@ BOOL LLMediaCtrl::handleUnicodeCharHere(llwchar uni_char) //////////////////////////////////////////////////////////////////////////////// // -void LLMediaCtrl::onVisibilityChange ( BOOL new_visibility ) +void LLMediaCtrl::handleVisibilityChange ( BOOL new_visibility ) { // set state of frequent updates automatically if visibility changes if ( new_visibility ) @@ -418,7 +418,7 @@ void LLMediaCtrl::onVisibilityChange ( BOOL new_visibility ) { mFrequentUpdates = false; } - LLUICtrl::onVisibilityChange(new_visibility); + LLUICtrl::handleVisibilityChange(new_visibility); } //////////////////////////////////////////////////////////////////////////////// diff --git a/indra/newview/llmediactrl.h b/indra/newview/llmediactrl.h index bd5fa03ac..de0018988 100644 --- a/indra/newview/llmediactrl.h +++ b/indra/newview/llmediactrl.h @@ -133,7 +133,7 @@ class LLMediaCtrl : virtual BOOL handleUnicodeCharHere(llwchar uni_char); virtual void reshape( S32 width, S32 height, BOOL called_from_parent = TRUE); virtual void draw(); - virtual void onVisibilityChange ( BOOL curVisibilityIn ); + virtual void handleVisibilityChange ( BOOL curVisibilityIn ); // focus overrides void onFocusLost(); diff --git a/indra/newview/llpaneldirbrowser.cpp b/indra/newview/llpaneldirbrowser.cpp index 35f207ab2..a306d4730 100644 --- a/indra/newview/llpaneldirbrowser.cpp +++ b/indra/newview/llpaneldirbrowser.cpp @@ -1286,13 +1286,13 @@ void LLPanelDirBrowser::onKeystrokeName(LLLineEditor* line, void* data) } // setup results when shown -void LLPanelDirBrowser::onVisibilityChange(BOOL new_visibility) +void LLPanelDirBrowser::handleVisibilityChange(BOOL new_visibility) { if (new_visibility) { onCommitList(NULL, this); } - LLPanel::onVisibilityChange(new_visibility); + LLPanel::handleVisibilityChange(new_visibility); } S32 LLPanelDirBrowser::showNextButton(S32 rows) diff --git a/indra/newview/llpaneldirbrowser.h b/indra/newview/llpaneldirbrowser.h index e27b5524c..6fa6d7c47 100644 --- a/indra/newview/llpaneldirbrowser.h +++ b/indra/newview/llpaneldirbrowser.h @@ -57,7 +57,7 @@ public: // Use to get periodic updates. virtual void draw(); - virtual void onVisibilityChange(BOOL curVisibilityIn); + virtual void handleVisibilityChange(BOOL curVisibilityIn); // Redo your search for the prev/next page of results virtual void prevPage(); diff --git a/indra/newview/llpaneldirfind.cpp b/indra/newview/llpaneldirfind.cpp index f960fbb69..94edad4dd 100644 --- a/indra/newview/llpaneldirfind.cpp +++ b/indra/newview/llpaneldirfind.cpp @@ -194,13 +194,13 @@ void LLPanelDirFind::draw() // When we show any browser-based view, we want to hide all // the right-side XUI detail panels. // virtual -void LLPanelDirFind::onVisibilityChange(BOOL new_visibility) +void LLPanelDirFind::handleVisibilityChange(BOOL new_visibility) { if (new_visibility) { mFloaterDirectory->hideAllDetailPanels(); } - LLPanel::onVisibilityChange(new_visibility); + LLPanel::handleVisibilityChange(new_visibility); } // virtual diff --git a/indra/newview/llpaneldirfind.h b/indra/newview/llpaneldirfind.h index 99c9daaf1..670f30c7e 100644 --- a/indra/newview/llpaneldirfind.h +++ b/indra/newview/llpaneldirfind.h @@ -53,7 +53,7 @@ public: /*virtual*/ void draw(); /*virtual*/ BOOL postBuild(); - /*virtual*/ void onVisibilityChange(BOOL new_visibility); + /*virtual*/ void handleVisibilityChange(BOOL new_visibility); // Pure virtual. Must be implemented virtual void search(const std::string& search_text) = 0; From 3ac01ee6c47698f6d139cf3d447f56cdd5f89439 Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Fri, 14 Oct 2011 09:17:34 +0200 Subject: [PATCH 02/23] Behold, automatic prebuilt muncher! --- repackage.sh | 102 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100755 repackage.sh diff --git a/repackage.sh b/repackage.sh new file mode 100755 index 000000000..5de6ea4c7 --- /dev/null +++ b/repackage.sh @@ -0,0 +1,102 @@ +#!/bin/bash +#(C) 2011 SIANA GEARZ + +usage() { + echo "Usage: repackage PLATTFORM FILEIN.tar.bz2 [FILEOUT.tar.bz2] +Repackage an archive from llautobuild format into legacy format + +PLATTFORM can be one of windows, linux, mac. +" + exit 0 +} + +TMP="/tmp/pak$$" +LIBPATH="" +INCPATH="" +PWD=`pwd` + +shopt -s nocasematch +case "$1" in + --windows|-w|windows|win) + MODE=win + LIBPATH="libraries/i686-win32/lib/release" + LIBDPATH="libraries/i686-win32/lib/debug" + INCPATH="libraries/i686-win32/include" + ;; + --mac|--osx|--darwin|-x|mac|osx|darwin) + MODE=osx + LIBPATH="libraries/universal-darwin/lib_release" + LIBDPATH="libraries/universal-darwin/lib_release" + INCPATH="libraries/universal-darwin/include" + ;; + --lin|--linux|-l|linux) + MODE=linux + LIBPATH="libraries/i686-linux/lib_release_client" + INCPATH="libraries/i686-linux/include" + ;; + --linux64|-6|linux64) + MODE=linux64 + LIBPATH="libraries/x86_64-linux/lib_release_client" + INCPATH="libraries/x86_64-linux/include" + ;; + *) + usage + ;; +esac + +case "$2" in + --commoninclude|--common-include|--common) + INCPATH="libraries/include" + shift + ;; +esac + +test -n "$2" && FILEIN=`readlink -e $2` +test -n "$3" && FILEOUT=`readlink -f $3` + +if [ -z $FILEIN ]; then + usage +fi + +if [ -z $FILEOUT ]; then + FILEOUT=`readlink -m package.tar.bz2` +fi + +mkdir "$TMP" +cd "$TMP" + +case "$FILEIN" in + http\:\/\/|https\:\/\/) + echo " Downloading..." + wget "$FILEIN" -O package.tar.bz2 + echo " Unpacking..." + tar -xjvf package.tar.bz2 + rm package.tar.bz2 + ;; + *) + echo " Unpacking..." + tar -xjvf "$FILEIN" + ;; +esac + +if [ -n "$LIBDPATH" -a -d lib/debug ]; then + mkdir -p $LIBDPATH + mv -f lib/debug/* $LIBDPATH +fi +if [ -d lib/release ]; then + mkdir -p $LIBPATH + mv -f lib/release/* $LIBPATH +fi +if [ -d include ]; then + mkdir -p $INCPATH + mv -f include/* $LIBPATH +fi + +echo " Packing..." +tar -cjvf "$FILEOUT" libraries LICENSES +echo " Checksum:" +cd `dirname "$FILEOUT"` +md5sum -b `basename "$FILEOUT"` +cd "$PWD" +rm -rf "$TMP" + From dd672ae5cb3ee25f4ec0ac82af68038a3560fa03 Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Sat, 15 Oct 2011 00:46:41 +0200 Subject: [PATCH 03/23] Made collapse in inventory purrrrrrrdy! --- .../skins/default/textures/inv_collapse_all.tga | Bin 0 -> 1068 bytes .../default/xui/en-us/floater_inventory.xml | 10 +++++----- 2 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 indra/newview/skins/default/textures/inv_collapse_all.tga diff --git a/indra/newview/skins/default/textures/inv_collapse_all.tga b/indra/newview/skins/default/textures/inv_collapse_all.tga new file mode 100644 index 0000000000000000000000000000000000000000..e27dc5ecded41e923c9ac22d7b31f7a9c40504c7 GIT binary patch literal 1068 zcmd6lK?=e^3`K({@CYv5=q)M~L_w>#_f|4zn(NG}#QaPG(pqPVAWjLt1ARX~p+pPH zXGwTgYrFo3gupZ`BCZN2TuO-}vsMsAsb9%M*n5nVHOk}}J(%3RZ;c`s`U#$AGu|^7 zRhrcB@Q2r<@3oiu3JWdqmM!lv=j324^b_ywP=D3m`{?|ZS>I)Donb2f%Y5!JQhf7< i$3Etk?MFn9{||H3`LDD)U7BlqZjXn}ZP)IbEj -