summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelprofileclassifieds.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llpanelprofileclassifieds.cpp')
-rw-r--r--indra/newview/llpanelprofileclassifieds.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/indra/newview/llpanelprofileclassifieds.cpp b/indra/newview/llpanelprofileclassifieds.cpp
index 1eb12051ee..b0ee96c04b 100644
--- a/indra/newview/llpanelprofileclassifieds.cpp
+++ b/indra/newview/llpanelprofileclassifieds.cpp
@@ -135,7 +135,7 @@ public:
// get the ID for the classified
LLUUID classified_id;
- if (!classified_id.set(params[0], FALSE))
+ if (!classified_id.set(params[0], false))
{
return false;
}
@@ -241,11 +241,11 @@ void LLPanelProfileClassifieds::onOpen(const LLSD& key)
bool own_profile = getSelfProfile();
if (own_profile)
{
- mNewButton->setVisible(TRUE);
- mNewButton->setEnabled(FALSE);
+ mNewButton->setVisible(true);
+ mNewButton->setEnabled(false);
- mDeleteButton->setVisible(TRUE);
- mDeleteButton->setEnabled(FALSE);
+ mDeleteButton->setVisible(true);
+ mDeleteButton->setEnabled(false);
}
childSetVisible("buttons_header", own_profile);
@@ -266,7 +266,7 @@ void LLPanelProfileClassifieds::selectClassified(const LLUUID& classified_id, bo
mTabContainer->selectTabPanel(classified_panel);
if (edit)
{
- classified_panel->setEditMode(TRUE);
+ classified_panel->setEditMode(true);
}
break;
}
@@ -284,7 +284,7 @@ void LLPanelProfileClassifieds::createClassified()
{
if (getIsLoaded())
{
- mNoItemsLabel->setVisible(FALSE);
+ mNoItemsLabel->setVisible(false);
LLPanelProfileClassified* classified_panel = LLPanelProfileClassified::create();
classified_panel->onOpen(LLSD());
mTabContainer->addTabPanel(
@@ -315,7 +315,7 @@ bool LLPanelProfileClassifieds::postBuild()
void LLPanelProfileClassifieds::onClickNewBtn()
{
- mNoItemsLabel->setVisible(FALSE);
+ mNoItemsLabel->setVisible(false);
LLPanelProfileClassified* classified_panel = LLPanelProfileClassified::create();
classified_panel->onOpen(LLSD());
mTabContainer->addTabPanel(
@@ -364,7 +364,7 @@ void LLPanelProfileClassifieds::callbackDeleteClassified(const LLSD& notificatio
updateButtons();
- BOOL no_data = !mTabContainer->getTabCount();
+ bool no_data = !mTabContainer->getTabCount();
mNoItemsLabel->setVisible(no_data);
}
}
@@ -474,7 +474,7 @@ void LLPanelProfileClassifieds::updateData()
{
setIsLoading();
mNoItemsLabel->setValue(LLTrans::getString("PicksClassifiedsLoadingText"));
- mNoItemsLabel->setVisible(TRUE);
+ mNoItemsLabel->setVisible(true);
LLAvatarPropertiesProcessor::getInstance()->sendAvatarClassifiedsRequest(avatar_id);
}
@@ -718,7 +718,7 @@ void LLPanelProfileClassified::onOpen(const LLSD& key)
mSaveButton->setLabelArg("[LABEL]", getString("publish_label"));
- setEditMode(TRUE);
+ setEditMode(true);
enableSave(true);
enableEditing(true);
resetDirty();
@@ -791,7 +791,7 @@ void LLPanelProfileClassified::processProperties(void* data, EAvatarProcessorTyp
if (mIsNewWithErrors)
{
// We just published it
- setEditMode(FALSE);
+ setEditMode(false);
}
mIsNewWithErrors = false;
mIsNew = false;
@@ -839,13 +839,13 @@ void LLPanelProfileClassified::processProperties(void* data, EAvatarProcessorTyp
if (mEditOnLoad)
{
- setEditMode(TRUE);
+ setEditMode(true);
}
}
}
-void LLPanelProfileClassified::setEditMode(BOOL edit_mode)
+void LLPanelProfileClassified::setEditMode(bool edit_mode)
{
mEditMode = edit_mode;
@@ -881,7 +881,7 @@ void LLPanelProfileClassified::updateInfoRect()
// info_scroll_content_panel contains both info and edit panel
// info panel can be very large and scroll bar will carry over.
// Resize info panel to prevent scroll carry over when in edit mode.
- mInfoScroll->reshape(mInfoScroll->getRect().getWidth(), DEFAULT_EDIT_CLASSIFIED_SCROLL_HEIGHT, FALSE);
+ mInfoScroll->reshape(mInfoScroll->getRect().getWidth(), DEFAULT_EDIT_CLASSIFIED_SCROLL_HEIGHT, false);
}
else
{
@@ -891,7 +891,7 @@ void LLPanelProfileClassified::updateInfoRect()
S32 delta_height = new_height - visible_rect.getHeight() + 5;
LLRect rect = mInfoScroll->getRect();
- mInfoScroll->reshape(rect.getWidth(), rect.getHeight() + delta_height, FALSE);
+ mInfoScroll->reshape(rect.getWidth(), rect.getHeight() + delta_height, false);
}
}
@@ -918,7 +918,7 @@ void LLPanelProfileClassified::resetControls()
void LLPanelProfileClassified::onEditClick()
{
- setEditMode(TRUE);
+ setEditMode(true);
}
void LLPanelProfileClassified::onCancelClick()
@@ -941,7 +941,7 @@ void LLPanelProfileClassified::onCancelClick()
setInfoLoaded(false);
- setEditMode(FALSE);
+ setEditMode(false);
}
void LLPanelProfileClassified::onSaveClick()
@@ -1028,8 +1028,8 @@ void LLPanelProfileClassified::resetData()
getChild<LLUICtrl>("click_through_text")->setValue(LLStringUtil::null);
mEditButton->setValue(LLStringUtil::null);
getChild<LLUICtrl>("creation_date")->setValue(LLStringUtil::null);
- mContentTypeM->setVisible(FALSE);
- mContentTypeG->setVisible(FALSE);
+ mContentTypeM->setVisible(false);
+ mContentTypeG->setVisible(false);
}
void LLPanelProfileClassified::setClassifiedName(const std::string& name)
@@ -1419,7 +1419,7 @@ void LLPanelProfileClassified::doSave()
if (!isNew() && !isNewWithErrors())
{
- setEditMode(FALSE);
+ setEditMode(false);
return;
}
@@ -1469,12 +1469,12 @@ void LLPanelProfileClassified::notifyInvalidName()
void LLPanelProfileClassified::onTexturePickerMouseEnter()
{
- mEditIcon->setVisible(TRUE);
+ mEditIcon->setVisible(true);
}
void LLPanelProfileClassified::onTexturePickerMouseLeave()
{
- mEditIcon->setVisible(FALSE);
+ mEditIcon->setVisible(false);
}
void LLPanelProfileClassified::onTextureSelected()