diff options
author | Ansariel <ansariel.hiller@phoenixviewer.com> | 2024-05-22 21:25:21 +0200 |
---|---|---|
committer | Andrey Lihatskiy <alihatskiy@productengine.com> | 2024-05-22 22:40:26 +0300 |
commit | e2e37cced861b98de8c1a7c9c0d3a50d2d90e433 (patch) | |
tree | 1bb897489ce524986f6196201c10ac0d8861aa5f /indra/newview/llfloaterlinkreplace.h | |
parent | 069ea06848f766466f1a281144c82a0f2bd79f3a (diff) |
Fix line endlings
Diffstat (limited to 'indra/newview/llfloaterlinkreplace.h')
-rw-r--r-- | indra/newview/llfloaterlinkreplace.h | 246 |
1 files changed, 123 insertions, 123 deletions
diff --git a/indra/newview/llfloaterlinkreplace.h b/indra/newview/llfloaterlinkreplace.h index b056b71aab..7f9f0b59e1 100644 --- a/indra/newview/llfloaterlinkreplace.h +++ b/indra/newview/llfloaterlinkreplace.h @@ -1,123 +1,123 @@ -/**
- * @file llfloaterlinkreplace.h
- * @brief Allows replacing link targets in inventory links
- * @author Ansariel Hiller
- *
- * $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$
- */
-
-#ifndef LL_FLOATERLINKREPLACE_H
-#define LL_FLOATERLINKREPLACE_H
-
-#include "llfloater.h"
-#include "lleventtimer.h"
-#include "lllineeditor.h"
-#include "llinventoryfunctions.h"
-#include "llviewerinventory.h"
-
-class LLButton;
-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);
-
-private:
- LLUUID mItemID;
-
- item_dad_callback_t mDADSignal;
-};
-
-
-class LLFloaterLinkReplace : public LLFloater, LLEventTimer
-{
- LOG_CLASS(LLFloaterLinkReplace);
-
-public:
- LLFloaterLinkReplace(const LLSD& key);
- virtual ~LLFloaterLinkReplace();
-
- bool postBuild();
- virtual void onOpen(const LLSD& key);
-
- 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;
-};
-
-#endif // LL_FLOATERLINKREPLACE_H
+/** + * @file llfloaterlinkreplace.h + * @brief Allows replacing link targets in inventory links + * @author Ansariel Hiller + * + * $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$ + */ + +#ifndef LL_FLOATERLINKREPLACE_H +#define LL_FLOATERLINKREPLACE_H + +#include "llfloater.h" +#include "lleventtimer.h" +#include "lllineeditor.h" +#include "llinventoryfunctions.h" +#include "llviewerinventory.h" + +class LLButton; +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); + +private: + LLUUID mItemID; + + item_dad_callback_t mDADSignal; +}; + + +class LLFloaterLinkReplace : public LLFloater, LLEventTimer +{ + LOG_CLASS(LLFloaterLinkReplace); + +public: + LLFloaterLinkReplace(const LLSD& key); + virtual ~LLFloaterLinkReplace(); + + bool postBuild(); + virtual void onOpen(const LLSD& key); + + 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; +}; + +#endif // LL_FLOATERLINKREPLACE_H |