summaryrefslogtreecommitdiff
path: root/indra/newview/llviewermenu.cpp
diff options
context:
space:
mode:
authorAaron Brashears <aaronb@lindenlab.com>2007-01-03 21:05:41 +0000
committerAaron Brashears <aaronb@lindenlab.com>2007-01-03 21:05:41 +0000
commit4617a37edfc291a0942027231691bdbf6109b9cb (patch)
tree5745c5e3dee0568be67d48242814d2654d80c9de /indra/newview/llviewermenu.cpp
parent2b291c2732b583911c0d98c30dbfedfd4022babb (diff)
corrected, removed, and updated comments throughout the code to be more useful. no code changes. SL-13762
Diffstat (limited to 'indra/newview/llviewermenu.cpp')
-rw-r--r--indra/newview/llviewermenu.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp
index 1bf279bf2b..8eae25fa63 100644
--- a/indra/newview/llviewermenu.cpp
+++ b/indra/newview/llviewermenu.cpp
@@ -1603,7 +1603,9 @@ class LLObjectTouch : public view_listener_t
msg->addVector3Fast(_PREHASH_GrabOffset, LLVector3::zero );
msg->sendMessage( object->getRegion()->getHost());
- // HACK: Hope the packets arrive safely and in order.
+ // *NOTE: Hope the packets arrive safely and in order or else
+ // there will be some problems.
+ // *TODO: Just fix this bad assumption.
msg->newMessageFast(_PREHASH_ObjectDeGrab);
msg->nextBlockFast(_PREHASH_AgentData);
msg->addUUIDFast(_PREHASH_AgentID, gAgent.getID());
@@ -1627,7 +1629,7 @@ class LLObjectEnableTouch : public view_listener_t
bool new_value = obj && obj->flagHandleTouch();
gMenuHolder->findControl(userdata["control"].asString())->setValue(new_value);
- // HACK Update label
+ // Update label based on the node touch name if available.
LLSelectNode* node = gSelectMgr->getFirstRootNode();
if (node && node->mValid && !node->mTouchName.empty())
{
@@ -3535,9 +3537,8 @@ void derez_objects(EDeRezDestination dest, const LLUUID& dest_id)
if(!object || !node->mValid) continue;
if(object->getRegion() != region)
{
- // *FIX: This doesn't work at all if the some of the
- // objects are in regions besides the first object
- // selected. We should really support this.
+ // Derez doesn't work at all if the some of the objects
+ // are in regions besides the first object selected.
// ...crosses region boundaries
error = "AcquireErrorObjectSpan";
@@ -4307,7 +4308,7 @@ class LLToolsEnableBuyOrTake : public view_listener_t
bool new_value = is_buy ? enable_buy(NULL) : enable_take();
gMenuHolder->findControl(userdata["control"].asString())->setValue(new_value);
- // HACK: Update label
+ // Update label
LLString label;
LLString buy_text;
LLString take_text;
@@ -4497,7 +4498,7 @@ class LLToolsSaveToObjectInventory : public view_listener_t
LLSelectNode* node = gSelectMgr->getFirstRootNode();
if(node && (node->mValid) && (!node->mFromTaskID.isNull()))
{
- // *FIX: check to see if the fromtaskid object exists.
+ // *TODO: check to see if the fromtaskid object exists.
derez_objects(DRD_SAVE_INTO_TASK_INVENTORY, node->mFromTaskID);
}
}
@@ -4861,7 +4862,7 @@ class LLViewEnableLastChatter : public view_listener_t
{
bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
{
- //FIXME: add check that last chatter is in range
+ // *TODO: add check that last chatter is in range
bool new_value = (gAgent.cameraThirdPerson() && gAgent.getLastChatter().notNull());
gMenuHolder->findControl(userdata["control"].asString())->setValue(new_value);
return true;
@@ -5862,7 +5863,7 @@ void upload_done_callback(const LLUUID& uuid, void* user_data, S32 result) // St
LLUploadDialog::modalUploadFinished();
delete data;
- // *FIX: This is a pretty big hack. What this does is check the
+ // *NOTE: This is a pretty big hack. What this does is check the
// file picker if there are any more pending uploads. If so,
// upload that file.
const char* next_file = LLFilePicker::instance().getNextFile();
@@ -6231,7 +6232,7 @@ class LLObjectEnableSitOrStand : public view_listener_t
}
gMenuHolder->findControl(userdata["control"].asString())->setValue(new_value);
- // HACK: Update label
+ // Update label
LLString label;
LLString sit_text;
LLString stand_text;
@@ -7751,8 +7752,7 @@ BOOL enable_save_into_task_inventory(void*)
LLSelectNode* node = gSelectMgr->getFirstRootNode();
if(node && (node->mValid) && (!node->mFromTaskID.isNull()))
{
- // *FIX: check to see if the fromtaskid object exists.
-
+ // *TODO: check to see if the fromtaskid object exists.
LLViewerObject* obj = node->getObject();
if( obj && !obj->isAttachment() )
{