Remove remaining dead LCD code(, also fix typo in a comment)
This commit is contained in:
@@ -136,7 +136,6 @@ LLPreferenceCore::LLPreferenceCore(LLTabContainer* tab_container, LLButton * def
|
|||||||
mMsgPanel(NULL),
|
mMsgPanel(NULL),
|
||||||
mSkinsPanel(NULL),
|
mSkinsPanel(NULL),
|
||||||
mGridsPanel(NULL),
|
mGridsPanel(NULL),
|
||||||
mLCDPanel(NULL),
|
|
||||||
mPrefsAscentChat(NULL),
|
mPrefsAscentChat(NULL),
|
||||||
mPrefsAscentSys(NULL),
|
mPrefsAscentSys(NULL),
|
||||||
mPrefsAscentVan(NULL)
|
mPrefsAscentVan(NULL)
|
||||||
|
|||||||
@@ -44,7 +44,6 @@
|
|||||||
class HippoPanelGrids;
|
class HippoPanelGrids;
|
||||||
class LLPanelGeneral;
|
class LLPanelGeneral;
|
||||||
class LLPanelInput;
|
class LLPanelInput;
|
||||||
class LLPanelLCD;
|
|
||||||
class LLPanelDisplay;
|
class LLPanelDisplay;
|
||||||
class LLPanelAudioPrefs;
|
class LLPanelAudioPrefs;
|
||||||
class LLPanelDebug;
|
class LLPanelDebug;
|
||||||
@@ -97,7 +96,6 @@ private:
|
|||||||
LLPrefsIM *mPrefsIM;
|
LLPrefsIM *mPrefsIM;
|
||||||
LLPanelWeb *mWebPanel;
|
LLPanelWeb *mWebPanel;
|
||||||
LLPanelMsgs *mMsgPanel;
|
LLPanelMsgs *mMsgPanel;
|
||||||
LLPanelLCD *mLCDPanel;
|
|
||||||
LLPrefsAscentChat *mPrefsAscentChat;
|
LLPrefsAscentChat *mPrefsAscentChat;
|
||||||
LLPrefsAscentSys *mPrefsAscentSys;
|
LLPrefsAscentSys *mPrefsAscentSys;
|
||||||
LLPrefsAscentVan *mPrefsAscentVan;
|
LLPrefsAscentVan *mPrefsAscentVan;
|
||||||
|
|||||||
@@ -503,51 +503,12 @@ void LLStatusBar::refresh()
|
|||||||
pos_y -= pos_y % 2;
|
pos_y -= pos_y % 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
mRegionDetails.mTime = mTextTime->getText();
|
|
||||||
mRegionDetails.mBalance = mBalance;
|
|
||||||
mRegionDetails.mAccessString = region->getSimAccessString();
|
|
||||||
mRegionDetails.mPing = region->getNetDetailsForLCD();
|
|
||||||
if (parcel)
|
if (parcel)
|
||||||
{
|
{
|
||||||
if (!LLAgentUI::buildLocationString(location_name, LLAgentUI::LOCATION_FORMAT_FULL))
|
if (!LLAgentUI::buildLocationString(location_name, LLAgentUI::LOCATION_FORMAT_FULL))
|
||||||
{
|
{
|
||||||
location_name = "???";
|
location_name = "???";
|
||||||
}
|
}
|
||||||
|
|
||||||
// keep these around for the LCD to use
|
|
||||||
mRegionDetails.mRegionName = region->getName();
|
|
||||||
mRegionDetails.mParcelName = parcel->getName();
|
|
||||||
mRegionDetails.mX = pos_x;
|
|
||||||
mRegionDetails.mY = pos_y;
|
|
||||||
mRegionDetails.mZ = pos_z;
|
|
||||||
|
|
||||||
mRegionDetails.mArea = parcel->getArea();
|
|
||||||
mRegionDetails.mForSale = parcel->getForSale();
|
|
||||||
mRegionDetails.mTraffic = LLViewerParcelMgr::getInstance()->getDwelling();
|
|
||||||
|
|
||||||
if (parcel->isPublic())
|
|
||||||
{
|
|
||||||
mRegionDetails.mOwner = "Public";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (parcel->getIsGroupOwned())
|
|
||||||
{
|
|
||||||
if(!parcel->getGroupID().isNull())
|
|
||||||
{
|
|
||||||
gCacheName->getGroupName(parcel->getGroupID(), mRegionDetails.mOwner);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
mRegionDetails.mOwner = "Group Owned";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// Figure out the owner's name
|
|
||||||
gCacheName->getFullName(parcel->getOwnerID(), mRegionDetails.mOwner);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -555,40 +516,17 @@ void LLStatusBar::refresh()
|
|||||||
+ llformat(" %d, %d, %d (%s)",
|
+ llformat(" %d, %d, %d (%s)",
|
||||||
pos_x, pos_y, pos_z,
|
pos_x, pos_y, pos_z,
|
||||||
region->getSimAccessString().c_str());
|
region->getSimAccessString().c_str());
|
||||||
// keep these around for the LCD to use
|
|
||||||
mRegionDetails.mRegionName = region->getName();
|
|
||||||
mRegionDetails.mParcelName = "Unknown";
|
|
||||||
|
|
||||||
mRegionDetails.mX = pos_x;
|
|
||||||
mRegionDetails.mY = pos_y;
|
|
||||||
mRegionDetails.mZ = pos_z;
|
|
||||||
mRegionDetails.mArea = 0;
|
|
||||||
mRegionDetails.mForSale = FALSE;
|
|
||||||
mRegionDetails.mOwner = "Unknown";
|
|
||||||
mRegionDetails.mTraffic = 0.0f;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// no region
|
// no region
|
||||||
location_name = "(Unknown)";
|
location_name = "(Unknown)";
|
||||||
// keep these around for the LCD to use
|
|
||||||
mRegionDetails.mRegionName = "Unknown";
|
|
||||||
mRegionDetails.mParcelName = "Unknown";
|
|
||||||
mRegionDetails.mAccessString = "Unknown";
|
|
||||||
mRegionDetails.mX = 0;
|
|
||||||
mRegionDetails.mY = 0;
|
|
||||||
mRegionDetails.mZ = 0;
|
|
||||||
mRegionDetails.mArea = 0;
|
|
||||||
mRegionDetails.mForSale = FALSE;
|
|
||||||
mRegionDetails.mOwner = "Unknown";
|
|
||||||
mRegionDetails.mTraffic = 0.0f;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// [RLVa:KB] - Checked: 2009-07-04 (RLVa-1.0.0a) | Modified: RLVa-1.0.0a
|
// [RLVa:KB] - Checked: 2009-07-04 (RLVa-1.0.0a) | Modified: RLVa-1.0.0a
|
||||||
if ( (region) && (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWLOC)) ) // region == NULL if we loose our connection to the grid
|
if ( (region) && (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWLOC)) ) // region == NULL if we lose our connection to the grid
|
||||||
{
|
{
|
||||||
// TODO-RLVa: find out whether the LCD code is still used because if so then we need to filter that as well
|
|
||||||
location_name = llformat("%s (%s) - %s",
|
location_name = llformat("%s (%s) - %s",
|
||||||
RlvStrings::getString(RLV_STRING_HIDDEN_REGION).c_str(), region->getSimAccessString().c_str(),
|
RlvStrings::getString(RLV_STRING_HIDDEN_REGION).c_str(), region->getSimAccessString().c_str(),
|
||||||
RlvStrings::getString(RLV_STRING_HIDDEN).c_str());
|
RlvStrings::getString(RLV_STRING_HIDDEN).c_str());
|
||||||
|
|||||||
@@ -48,40 +48,6 @@ class LLUUID;
|
|||||||
class LLFrameTimer;
|
class LLFrameTimer;
|
||||||
class LLStatGraph;
|
class LLStatGraph;
|
||||||
|
|
||||||
// used by LCD screen
|
|
||||||
class LLRegionDetails
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
LLRegionDetails() :
|
|
||||||
mRegionName("Unknown"),
|
|
||||||
mParcelName("Unknown"),
|
|
||||||
mAccessString("Unknown"),
|
|
||||||
mX(0),
|
|
||||||
mY(0),
|
|
||||||
mZ(0),
|
|
||||||
mArea (0),
|
|
||||||
mForSale(FALSE),
|
|
||||||
mOwner("Unknown"),
|
|
||||||
mTraffic(0),
|
|
||||||
mBalance(0),
|
|
||||||
mPing(0)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
std::string mRegionName;
|
|
||||||
std::string mParcelName;
|
|
||||||
std::string mAccessString;
|
|
||||||
S32 mX;
|
|
||||||
S32 mY;
|
|
||||||
S32 mZ;
|
|
||||||
S32 mArea;
|
|
||||||
BOOL mForSale;
|
|
||||||
std::string mOwner;
|
|
||||||
F32 mTraffic;
|
|
||||||
S32 mBalance;
|
|
||||||
std::string mTime;
|
|
||||||
U32 mPing;
|
|
||||||
};
|
|
||||||
|
|
||||||
class LLStatusBar
|
class LLStatusBar
|
||||||
: public LLPanel
|
: public LLPanel
|
||||||
{
|
{
|
||||||
@@ -116,7 +82,6 @@ public:
|
|||||||
S32 getSquareMetersCredit() const;
|
S32 getSquareMetersCredit() const;
|
||||||
S32 getSquareMetersCommitted() const;
|
S32 getSquareMetersCommitted() const;
|
||||||
S32 getSquareMetersLeft() const;
|
S32 getSquareMetersLeft() const;
|
||||||
LLRegionDetails mRegionDetails;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// simple method to setup the part that holds the date
|
// simple method to setup the part that holds the date
|
||||||
|
|||||||
@@ -936,11 +936,6 @@ void LLViewerRegion::calculateCameraDistance()
|
|||||||
mCameraDistanceSquared = (F32)(gAgentCamera.getCameraPositionGlobal() - getCenterGlobal()).magVecSquared();
|
mCameraDistanceSquared = (F32)(gAgentCamera.getCameraPositionGlobal() - getCenterGlobal()).magVecSquared();
|
||||||
}
|
}
|
||||||
|
|
||||||
U32 LLViewerRegion::getNetDetailsForLCD()
|
|
||||||
{
|
|
||||||
return mPingDelay;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::ostream& operator<<(std::ostream &s, const LLViewerRegion ®ion)
|
std::ostream& operator<<(std::ostream &s, const LLViewerRegion ®ion)
|
||||||
{
|
{
|
||||||
s << "{ ";
|
s << "{ ";
|
||||||
|
|||||||
@@ -326,10 +326,6 @@ public:
|
|||||||
void calculateCameraDistance();
|
void calculateCameraDistance();
|
||||||
|
|
||||||
friend std::ostream& operator<<(std::ostream &s, const LLViewerRegion ®ion);
|
friend std::ostream& operator<<(std::ostream &s, const LLViewerRegion ®ion);
|
||||||
|
|
||||||
// used by LCD to get details for debug screen
|
|
||||||
U32 getNetDetailsForLCD();
|
|
||||||
|
|
||||||
/// implements LLCapabilityProvider
|
/// implements LLCapabilityProvider
|
||||||
virtual std::string getDescription() const;
|
virtual std::string getDescription() const;
|
||||||
std::string getHttpUrl() const { return mHttpUrl ;}
|
std::string getHttpUrl() const { return mHttpUrl ;}
|
||||||
|
|||||||
Reference in New Issue
Block a user