summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-09-20 13:04:56 +0100
committerTofu Linden <tofu.linden@lindenlab.com>2010-09-20 13:04:56 +0100
commit34a55f2f05036d465ae1ddad5031a3e3f892d549 (patch)
treecad5b2ecec8940cfd71f59dd69303dfd149fa17f /indra/newview
parent301f0c6a3b28a3040f8cb36e73d3b367a9262724 (diff)
make this at least build, but no real flesh yet.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/lltoastscripttextbox.cpp18
-rw-r--r--indra/newview/lltoastscripttextbox.h6
2 files changed, 12 insertions, 12 deletions
diff --git a/indra/newview/lltoastscripttextbox.cpp b/indra/newview/lltoastscripttextbox.cpp
index bb06976d40..a54594e474 100644
--- a/indra/newview/lltoastscripttextbox.cpp
+++ b/indra/newview/lltoastscripttextbox.cpp
@@ -48,9 +48,9 @@
#include "llfloaterinventory.h"
#include "llinventorytype.h"
-const S32 LLToastGroupNotifyPanel::DEFAULT_MESSAGE_MAX_LINE_COUNT = 7;
+const S32 LLToastScriptTextbox::DEFAULT_MESSAGE_MAX_LINE_COUNT = 7;
-LLToastGroupNotifyPanel::LLToastGroupNotifyPanel(LLNotificationPtr& notification)
+LLToastScriptTextbox::LLToastScriptTextbox(LLNotificationPtr& notification)
: LLToastPanel(notification),
mInventoryOffer(NULL)
{
@@ -125,7 +125,7 @@ LLToastGroupNotifyPanel::LLToastGroupNotifyPanel(LLNotificationPtr& notification
mInventoryOffer = new LLOfferInfo(payload["inventory_offer"]);
getChild<LLTextBox>("attachment")->setClickedCallback(boost::bind(
- &LLToastGroupNotifyPanel::onClickAttachment, this));
+ &LLToastScriptTextbox::onClickAttachment, this));
LLUIImagePtr attachIconImg = LLInventoryIcon::getIcon(mInventoryOffer->mType,
LLInventoryType::IT_TEXTURE);
@@ -134,7 +134,7 @@ LLToastGroupNotifyPanel::LLToastGroupNotifyPanel(LLNotificationPtr& notification
//ok button
LLButton* pOkBtn = getChild<LLButton>("btn_ok");
- pOkBtn->setClickedCallback((boost::bind(&LLToastGroupNotifyPanel::onClickOk, this)));
+ pOkBtn->setClickedCallback((boost::bind(&LLToastScriptTextbox::onClickOk, this)));
setDefaultBtn(pOkBtn);
S32 maxLinesCount;
@@ -147,11 +147,11 @@ LLToastGroupNotifyPanel::LLToastGroupNotifyPanel(LLNotificationPtr& notification
}
// virtual
-LLToastGroupNotifyPanel::~LLToastGroupNotifyPanel()
+LLToastScriptTextbox::~LLToastScriptTextbox()
{
}
-void LLToastGroupNotifyPanel::close()
+void LLToastScriptTextbox::close()
{
// The group notice dialog may be an inventory offer.
// If it has an inventory save button and that button is still enabled
@@ -165,14 +165,14 @@ void LLToastGroupNotifyPanel::close()
die();
}
-void LLToastGroupNotifyPanel::onClickOk()
+void LLToastScriptTextbox::onClickOk()
{
LLSD response = mNotification->getResponseTemplate();
mNotification->respond(response);
close();
}
-void LLToastGroupNotifyPanel::onClickAttachment()
+void LLToastScriptTextbox::onClickAttachment()
{
if (mInventoryOffer != NULL) {
mInventoryOffer->forceResponse(IOR_ACCEPT);
@@ -196,7 +196,7 @@ void LLToastGroupNotifyPanel::onClickAttachment()
}
//static
-bool LLToastGroupNotifyPanel::isAttachmentOpenable(LLAssetType::EType type)
+bool LLToastScriptTextbox::isAttachmentOpenable(LLAssetType::EType type)
{
switch(type)
{
diff --git a/indra/newview/lltoastscripttextbox.h b/indra/newview/lltoastscripttextbox.h
index 4890ee1dea..2d942939bc 100644
--- a/indra/newview/lltoastscripttextbox.h
+++ b/indra/newview/lltoastscripttextbox.h
@@ -41,7 +41,7 @@ class LLButton;
*
* Replaces class LLGroupNotifyBox.
*/
-class LLToastGroupNotifyPanel
+class LLToastScriptTextbox
: public LLToastPanel
{
public:
@@ -53,9 +53,9 @@ public:
// Non-transient messages. You can specify non-default button
// layouts (like one for script dialogs) by passing various
// numbers in for "layout".
- LLToastGroupNotifyPanel(LLNotificationPtr& notification);
+ LLToastScriptTextbox(LLNotificationPtr& notification);
- /*virtual*/ ~LLToastGroupNotifyPanel();
+ /*virtual*/ ~LLToastScriptTextbox();
protected:
void onClickOk();
void onClickAttachment();