summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterlinkreplace.h
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2024-04-29 07:43:28 +0300
committerAndrey Lihatskiy <alihatskiy@productengine.com>2024-04-29 07:56:09 +0300
commit1b68f71348ecf3983b76b40d7940da8377f049b7 (patch)
tree2974eddaef130a067c26033d60a59fc790365b3d /indra/newview/llfloaterlinkreplace.h
parentaf4ea94efc1999f3b19fd8d643d0331f0b77e265 (diff)
#824 Process source files in bulk: replace tabs with spaces, convert CRLF to LF, and trim trailing whitespaces as needed
Diffstat (limited to 'indra/newview/llfloaterlinkreplace.h')
-rw-r--r--indra/newview/llfloaterlinkreplace.h136
1 files changed, 68 insertions, 68 deletions
diff --git a/indra/newview/llfloaterlinkreplace.h b/indra/newview/llfloaterlinkreplace.h
index 060773f93e..0eee0d6935 100644
--- a/indra/newview/llfloaterlinkreplace.h
+++ b/indra/newview/llfloaterlinkreplace.h
@@ -6,21 +6,21 @@
* $LicenseInfo:firstyear=2017&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2017, Linden Research, Inc.
- *
+ *
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation;
* version 2.1 of the License only.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- *
+ *
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
* $/LicenseInfo$
*/
@@ -40,84 +40,84 @@ class LLTextBox;
class LLInventoryLinkReplaceDropTarget : public LLLineEditor
{
public:
- struct Params : public LLInitParam::Block<Params, LLLineEditor::Params>
- {
- Params()
- {}
- };
-
- LLInventoryLinkReplaceDropTarget(const Params& p)
- : LLLineEditor(p) {}
- ~LLInventoryLinkReplaceDropTarget() {}
-
- typedef boost::signals2::signal<void(const LLUUID& id)> item_dad_callback_t;
- boost::signals2::connection setDADCallback(const item_dad_callback_t::slot_type& cb)
- {
- return mDADSignal.connect(cb);
- }
-
- virtual BOOL postBuild()
- {
- setEnabled(FALSE);
- return LLLineEditor::postBuild();
- }
-
- virtual BOOL handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop,
- EDragAndDropType cargo_type,
- void* cargo_data,
- EAcceptance* accept,
- std::string& tooltip_msg);
-
- LLUUID getItemID() const { return mItemID; }
- void setItem(LLInventoryItem* item);
+ struct Params : public LLInitParam::Block<Params, LLLineEditor::Params>
+ {
+ Params()
+ {}
+ };
+
+ LLInventoryLinkReplaceDropTarget(const Params& p)
+ : LLLineEditor(p) {}
+ ~LLInventoryLinkReplaceDropTarget() {}
+
+ typedef boost::signals2::signal<void(const LLUUID& id)> item_dad_callback_t;
+ boost::signals2::connection setDADCallback(const item_dad_callback_t::slot_type& cb)
+ {
+ return mDADSignal.connect(cb);
+ }
+
+ virtual BOOL postBuild()
+ {
+ setEnabled(FALSE);
+ return LLLineEditor::postBuild();
+ }
+
+ virtual BOOL handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop,
+ EDragAndDropType cargo_type,
+ void* cargo_data,
+ EAcceptance* accept,
+ std::string& tooltip_msg);
+
+ LLUUID getItemID() const { return mItemID; }
+ void setItem(LLInventoryItem* item);
private:
- LLUUID mItemID;
+ LLUUID mItemID;
- item_dad_callback_t mDADSignal;
+ item_dad_callback_t mDADSignal;
};
class LLFloaterLinkReplace : public LLFloater, LLEventTimer
{
- LOG_CLASS(LLFloaterLinkReplace);
+ LOG_CLASS(LLFloaterLinkReplace);
public:
- LLFloaterLinkReplace(const LLSD& key);
- virtual ~LLFloaterLinkReplace();
+ LLFloaterLinkReplace(const LLSD& key);
+ virtual ~LLFloaterLinkReplace();
- BOOL postBuild();
- virtual void onOpen(const LLSD& key);
+ BOOL postBuild();
+ virtual void onOpen(const LLSD& key);
- virtual BOOL tick();
+ virtual BOOL tick();
private:
- void checkEnableStart();
- void onStartClicked();
- void onStartClickedResponse(const LLSD& notification, const LLSD& response);
- void decreaseOpenItemCount();
- void updateFoundLinks();
- void processBatch(LLInventoryModel::item_array_t items);
-
- static void linkCreatedCallback(LLHandle<LLFloaterLinkReplace> floater_handle, const LLUUID& old_item_id, const LLUUID& target_item_id,
- bool needs_wearable_ordering_update, bool needs_description_update, const LLUUID& outfit_folder_id);
- static void itemRemovedCallback(LLHandle<LLFloaterLinkReplace> floater_handle, const LLUUID& outfit_folder_id);
-
- void onSourceItemDrop(const LLUUID& source_item_id);
- void onTargetItemDrop(const LLUUID& target_item_id);
-
- LLInventoryLinkReplaceDropTarget* mSourceEditor;
- LLInventoryLinkReplaceDropTarget* mTargetEditor;
- LLButton* mStartBtn;
- LLButton* mRefreshBtn;
- LLTextBox* mStatusText;
-
- LLUUID mSourceUUID;
- LLUUID mTargetUUID;
- U32 mRemainingItems;
- U32 mBatchSize;
-
- LLInventoryModel::item_array_t mRemainingInventoryItems;
+ void checkEnableStart();
+ void onStartClicked();
+ void onStartClickedResponse(const LLSD& notification, const LLSD& response);
+ void decreaseOpenItemCount();
+ void updateFoundLinks();
+ void processBatch(LLInventoryModel::item_array_t items);
+
+ static void linkCreatedCallback(LLHandle<LLFloaterLinkReplace> floater_handle, const LLUUID& old_item_id, const LLUUID& target_item_id,
+ bool needs_wearable_ordering_update, bool needs_description_update, const LLUUID& outfit_folder_id);
+ static void itemRemovedCallback(LLHandle<LLFloaterLinkReplace> floater_handle, const LLUUID& outfit_folder_id);
+
+ void onSourceItemDrop(const LLUUID& source_item_id);
+ void onTargetItemDrop(const LLUUID& target_item_id);
+
+ LLInventoryLinkReplaceDropTarget* mSourceEditor;
+ LLInventoryLinkReplaceDropTarget* mTargetEditor;
+ LLButton* mStartBtn;
+ LLButton* mRefreshBtn;
+ LLTextBox* mStatusText;
+
+ LLUUID mSourceUUID;
+ LLUUID mTargetUUID;
+ U32 mRemainingItems;
+ U32 mBatchSize;
+
+ LLInventoryModel::item_array_t mRemainingInventoryItems;
};
#endif // LL_FLOATERLINKREPLACE_H