Skip to content
Snippets Groups Projects
Commit abb8d040 authored by Callum Prentice's avatar Callum Prentice
Browse files

SL-20109: Some small UI tweaks before moving onto the meat of the functionality

parent 2d39f05c
No related branches found
No related tags found
No related merge requests found
......@@ -62,11 +62,11 @@ BOOL LLFloaterInventoryThumbnailsHelper::postBuild()
mOutputLog = getChild<LLTextEditor>("output_log");
mOutputLog->setMaxTextLength(0xffff * 0x10);
mMergeItemsTexturesBtn = getChild<LLUICtrl>("merge_items_textures");
mMergeItemsTexturesBtn->setCommitCallback(boost::bind(&LLFloaterInventoryThumbnailsHelper::onMergeItemsTextures, this));
mMergeItemsTexturesBtn->setEnabled(false);
//mMergeItemsTexturesBtn = getChild<LLUICtrl>("merge_items_textures");
//mMergeItemsTexturesBtn->setCommitCallback(boost::bind(&LLFloaterInventoryThumbnailsHelper::onMergeItemsTextures, this));
//mMergeItemsTexturesBtn->setEnabled(false);
mWriteThumbnailsBtn = getChild<LLUICtrl>("write_items_thumbnails");
mWriteThumbnailsBtn = getChild<LLUICtrl>("write_thumbnails_btn");
mWriteThumbnailsBtn->setCommitCallback(boost::bind(&LLFloaterInventoryThumbnailsHelper::onWriteThumbnails, this));
mWriteThumbnailsBtn->setEnabled(false);
......@@ -158,8 +158,6 @@ void LLFloaterInventoryThumbnailsHelper::onPasteItems()
}
mOutputLog->setCursorAndScrollToEnd();
mMergeItemsTexturesBtn->setEnabled(true);
}
void LLFloaterInventoryThumbnailsHelper::recordTextureItemEntry(LLViewerInventoryItem* item)
......@@ -240,11 +238,9 @@ void LLFloaterInventoryThumbnailsHelper::onPasteTextures()
}
mOutputLog->setCursorAndScrollToEnd();
mMergeItemsTexturesBtn->setEnabled(true);
}
void LLFloaterInventoryThumbnailsHelper::onMergeItemsTextures()
void LLFloaterInventoryThumbnailsHelper::mergeItemsTextures()
{
mOutputLog->appendText(
STRINGIZE(
......@@ -320,7 +316,7 @@ void LLFloaterInventoryThumbnailsHelper::onMergeItemsTextures()
#if 1
// *TODO$: LLInventoryCallback should be deprecated to conform to the new boost::bind/coroutine model.
// temp code in transition
void bulkyInventoryCb(LLPointer<LLInventoryCallback> cb, LLUUID id)
void inventoryThumbnailsHelperCb(LLPointer<LLInventoryCallback> cb, LLUUID id)
{
if (cb.notNull())
{
......@@ -329,7 +325,7 @@ void bulkyInventoryCb(LLPointer<LLInventoryCallback> cb, LLUUID id)
}
#endif
bool writeThumbnailID(LLUUID item_id, LLUUID thumbnail_asset_id)
bool writeInventoryThumbnailID(LLUUID item_id, LLUUID thumbnail_asset_id)
{
if (AISAPI::isAvailable())
{
......@@ -339,7 +335,7 @@ bool writeThumbnailID(LLUUID item_id, LLUUID thumbnail_asset_id)
LLPointer<LLInventoryCallback> cb;
AISAPI::completion_t cr = boost::bind(&bulkyInventoryCb, cb, _1);
AISAPI::completion_t cr = boost::bind(&inventoryThumbnailsHelperCb, cb, _1);
AISAPI::UpdateItem(item_id, updates, cr);
return true;
......@@ -382,7 +378,7 @@ void LLFloaterInventoryThumbnailsHelper::onWriteThumbnails()
LLUUID item_id = ((*iter).second).first;
LLUUID thumbnail_asset_id = ((*iter).second).second;
writeThumbnailID(item_id, thumbnail_asset_id);
writeInventoryThumbnailID(item_id, thumbnail_asset_id);
++iter;
}
......
......@@ -51,8 +51,7 @@ class LLFloaterInventoryThumbnailsHelper:
LLTextEditor* mOutputLog;
LLUICtrl* mMergeItemsTexturesBtn;
void onMergeItemsTextures();
void mergeItemsTextures();
LLUICtrl* mWriteThumbnailsBtn;
void onWriteThumbnails();
......
......@@ -38,7 +38,10 @@
left="8"
right="-8"
name="output_log"
width="480"></text_editor>
font="Monospace"
text_color="0.1 0.5 0.1 1.0"
width="480">
</text_editor>
<button
follows="left|bottom"
height="20"
......@@ -63,7 +66,7 @@
label="Write Thumbnails"
layout="topleft"
left_delta="0"
name="write_items_thumbnails_btn"
name="write_thumbnails_btn"
top_delta="26 "
width="235" />
<button
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment