diff options
author | Andrey Lihatskiy <alihatskiy@productengine.com> | 2024-04-29 07:43:28 +0300 |
---|---|---|
committer | Andrey Lihatskiy <alihatskiy@productengine.com> | 2024-04-29 07:56:09 +0300 |
commit | 1b68f71348ecf3983b76b40d7940da8377f049b7 (patch) | |
tree | 2974eddaef130a067c26033d60a59fc790365b3d /indra/newview/lltoolcomp.h | |
parent | af4ea94efc1999f3b19fd8d643d0331f0b77e265 (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/lltoolcomp.h')
-rw-r--r-- | indra/newview/lltoolcomp.h | 218 |
1 files changed, 109 insertions, 109 deletions
diff --git a/indra/newview/lltoolcomp.h b/indra/newview/lltoolcomp.h index f539a045b7..2ed8d73f41 100644 --- a/indra/newview/lltoolcomp.h +++ b/indra/newview/lltoolcomp.h @@ -1,25 +1,25 @@ -/** +/** * @file lltoolcomp.h * @brief Composite tools * * $LicenseInfo:firstyear=2001&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, 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$ */ @@ -43,58 +43,58 @@ class LLTextBox; class LLToolComposite : public LLTool { public: - LLToolComposite(const std::string& name); + LLToolComposite(const std::string& name); - virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask) = 0; // Sets the current tool - virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask); // Returns to the default tool - virtual BOOL handleDoubleClick(S32 x, S32 y, MASK mask) = 0; + virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask) = 0; // Sets the current tool + virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask); // Returns to the default tool + virtual BOOL handleDoubleClick(S32 x, S32 y, MASK mask) = 0; - // Map virtual functions to the currently active internal tool - virtual BOOL handleHover(S32 x, S32 y, MASK mask) { return mCur->handleHover( x, y, mask ); } - virtual BOOL handleScrollWheel(S32 x, S32 y, S32 clicks) { return mCur->handleScrollWheel( x, y, clicks ); } - virtual BOOL handleRightMouseDown(S32 x, S32 y, MASK mask) { return mCur->handleRightMouseDown( x, y, mask ); } + // Map virtual functions to the currently active internal tool + virtual BOOL handleHover(S32 x, S32 y, MASK mask) { return mCur->handleHover( x, y, mask ); } + virtual BOOL handleScrollWheel(S32 x, S32 y, S32 clicks) { return mCur->handleScrollWheel( x, y, clicks ); } + virtual BOOL handleRightMouseDown(S32 x, S32 y, MASK mask) { return mCur->handleRightMouseDown( x, y, mask ); } - virtual LLViewerObject* getEditingObject() { return mCur->getEditingObject(); } - virtual LLVector3d getEditingPointGlobal() { return mCur->getEditingPointGlobal(); } - virtual BOOL isEditing() { return mCur->isEditing(); } - virtual void stopEditing() { mCur->stopEditing(); mCur = mDefault; } + virtual LLViewerObject* getEditingObject() { return mCur->getEditingObject(); } + virtual LLVector3d getEditingPointGlobal() { return mCur->getEditingPointGlobal(); } + virtual BOOL isEditing() { return mCur->isEditing(); } + virtual void stopEditing() { mCur->stopEditing(); mCur = mDefault; } - virtual BOOL clipMouseWhenDown() { return mCur->clipMouseWhenDown(); } + virtual BOOL clipMouseWhenDown() { return mCur->clipMouseWhenDown(); } - virtual void handleSelect(); - virtual void handleDeselect(); + virtual void handleSelect(); + virtual void handleDeselect(); - virtual void render() { mCur->render(); } - virtual void draw() { mCur->draw(); } + virtual void render() { mCur->render(); } + virtual void draw() { mCur->draw(); } - virtual BOOL handleKey(KEY key, MASK mask) { return mCur->handleKey( key, mask ); } + virtual BOOL handleKey(KEY key, MASK mask) { return mCur->handleKey( key, mask ); } - virtual void onMouseCaptureLost(); + virtual void onMouseCaptureLost(); - virtual void screenPointToLocal(S32 screen_x, S32 screen_y, S32* local_x, S32* local_y) const - { mCur->screenPointToLocal(screen_x, screen_y, local_x, local_y); } + virtual void screenPointToLocal(S32 screen_x, S32 screen_y, S32* local_x, S32* local_y) const + { mCur->screenPointToLocal(screen_x, screen_y, local_x, local_y); } - virtual void localPointToScreen(S32 local_x, S32 local_y, S32* screen_x, S32* screen_y) const - { mCur->localPointToScreen(local_x, local_y, screen_x, screen_y); } + virtual void localPointToScreen(S32 local_x, S32 local_y, S32* screen_x, S32* screen_y) const + { mCur->localPointToScreen(local_x, local_y, screen_x, screen_y); } - BOOL isSelecting(); - LLTool* getCurrentTool() { return mCur; } + BOOL isSelecting(); + LLTool* getCurrentTool() { return mCur; } protected: - void setCurrentTool( LLTool* new_tool ); - // In hover handler, call this to auto-switch tools - void setToolFromMask( MASK mask, LLTool *normal ); + void setCurrentTool( LLTool* new_tool ); + // In hover handler, call this to auto-switch tools + void setToolFromMask( MASK mask, LLTool *normal ); protected: - LLTool* mCur; // The tool to which we're delegating. - LLTool* mDefault; - BOOL mSelected; - BOOL mMouseDown; - LLManip* mManip; - LLToolSelectRect* mSelectRect; + LLTool* mCur; // The tool to which we're delegating. + LLTool* mDefault; + BOOL mSelected; + BOOL mMouseDown; + LLManip* mManip; + LLToolSelectRect* mSelectRect; public: - static const std::string sNameComp; + static const std::string sNameComp; }; @@ -103,24 +103,24 @@ public: class LLToolCompInspect : public LLToolComposite, public LLSingleton<LLToolCompInspect> { - LLSINGLETON(LLToolCompInspect); - virtual ~LLToolCompInspect(); + LLSINGLETON(LLToolCompInspect); + virtual ~LLToolCompInspect(); public: - // Overridden from LLToolComposite - virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask) override; - virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask) override; - virtual BOOL handleDoubleClick(S32 x, S32 y, MASK mask) override; - virtual BOOL handleKey(KEY key, MASK mask) override; - virtual void onMouseCaptureLost() override; - void keyUp(KEY key, MASK mask); + // Overridden from LLToolComposite + virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask) override; + virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask) override; + virtual BOOL handleDoubleClick(S32 x, S32 y, MASK mask) override; + virtual BOOL handleKey(KEY key, MASK mask) override; + virtual void onMouseCaptureLost() override; + void keyUp(KEY key, MASK mask); - static void pickCallback(const LLPickInfo& pick_info); + static void pickCallback(const LLPickInfo& pick_info); - BOOL isToolCameraActive() const { return mIsToolCameraActive; } + BOOL isToolCameraActive() const { return mIsToolCameraActive; } private: - BOOL mIsToolCameraActive; + BOOL mIsToolCameraActive; }; //----------------------------------------------------------------------- @@ -128,20 +128,20 @@ private: class LLToolCompTranslate : public LLToolComposite, public LLSingleton<LLToolCompTranslate> { - LLSINGLETON(LLToolCompTranslate); - virtual ~LLToolCompTranslate(); + LLSINGLETON(LLToolCompTranslate); + virtual ~LLToolCompTranslate(); public: - // Overridden from LLToolComposite - virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask) override; - virtual BOOL handleDoubleClick(S32 x, S32 y, MASK mask) override; - virtual BOOL handleHover(S32 x, S32 y, MASK mask) override; - virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask) override; // Returns to the default tool - virtual void render() override; + // Overridden from LLToolComposite + virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask) override; + virtual BOOL handleDoubleClick(S32 x, S32 y, MASK mask) override; + virtual BOOL handleHover(S32 x, S32 y, MASK mask) override; + virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask) override; // Returns to the default tool + virtual void render() override; - virtual LLTool* getOverrideTool(MASK mask) override; + virtual LLTool* getOverrideTool(MASK mask) override; - static void pickCallback(const LLPickInfo& pick_info); + static void pickCallback(const LLPickInfo& pick_info); }; //----------------------------------------------------------------------- @@ -149,20 +149,20 @@ public: class LLToolCompScale : public LLToolComposite, public LLSingleton<LLToolCompScale> { - LLSINGLETON(LLToolCompScale); - virtual ~LLToolCompScale(); + LLSINGLETON(LLToolCompScale); + virtual ~LLToolCompScale(); public: - // Overridden from LLToolComposite - virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask) override; - virtual BOOL handleDoubleClick(S32 x, S32 y, MASK mask) override; - virtual BOOL handleHover(S32 x, S32 y, MASK mask) override; - virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask) override; // Returns to the default tool - virtual void render() override; + // Overridden from LLToolComposite + virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask) override; + virtual BOOL handleDoubleClick(S32 x, S32 y, MASK mask) override; + virtual BOOL handleHover(S32 x, S32 y, MASK mask) override; + virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask) override; // Returns to the default tool + virtual void render() override; + + virtual LLTool* getOverrideTool(MASK mask) override; - virtual LLTool* getOverrideTool(MASK mask) override; - - static void pickCallback(const LLPickInfo& pick_info); + static void pickCallback(const LLPickInfo& pick_info); }; @@ -171,20 +171,20 @@ public: class LLToolCompRotate : public LLToolComposite, public LLSingleton<LLToolCompRotate> { - LLSINGLETON(LLToolCompRotate); - virtual ~LLToolCompRotate(); + LLSINGLETON(LLToolCompRotate); + virtual ~LLToolCompRotate(); public: - // Overridden from LLToolComposite - virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask) override; - virtual BOOL handleDoubleClick(S32 x, S32 y, MASK mask) override; - virtual BOOL handleHover(S32 x, S32 y, MASK mask) override; - virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask) override; - virtual void render() override; + // Overridden from LLToolComposite + virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask) override; + virtual BOOL handleDoubleClick(S32 x, S32 y, MASK mask) override; + virtual BOOL handleHover(S32 x, S32 y, MASK mask) override; + virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask) override; + virtual void render() override; - virtual LLTool* getOverrideTool(MASK mask) override; + virtual LLTool* getOverrideTool(MASK mask) override; - static void pickCallback(const LLPickInfo& pick_info); + static void pickCallback(const LLPickInfo& pick_info); protected: }; @@ -194,19 +194,19 @@ protected: class LLToolCompCreate : public LLToolComposite, public LLSingleton<LLToolCompCreate> { - LLSINGLETON(LLToolCompCreate); - virtual ~LLToolCompCreate(); + LLSINGLETON(LLToolCompCreate); + virtual ~LLToolCompCreate(); public: - // Overridden from LLToolComposite - virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask) override; - virtual BOOL handleDoubleClick(S32 x, S32 y, MASK mask) override; - virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask) override; - - static void pickCallback(const LLPickInfo& pick_info); + // Overridden from LLToolComposite + virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask) override; + virtual BOOL handleDoubleClick(S32 x, S32 y, MASK mask) override; + virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask) override; + + static void pickCallback(const LLPickInfo& pick_info); protected: - LLToolPlacer* mPlacer; - BOOL mObjectPlacedOnMouseDown; + LLToolPlacer* mPlacer; + BOOL mObjectPlacedOnMouseDown; }; @@ -219,26 +219,26 @@ class LLToolSelect; class LLToolCompGun : public LLToolComposite, public LLSingleton<LLToolCompGun> { - LLSINGLETON(LLToolCompGun); - virtual ~LLToolCompGun(); + LLSINGLETON(LLToolCompGun); + virtual ~LLToolCompGun(); public: - // Overridden from LLToolComposite - virtual BOOL handleHover(S32 x, S32 y, MASK mask) override; - virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask) override; - virtual BOOL handleDoubleClick(S32 x, S32 y, MASK mask) override; - virtual BOOL handleRightMouseDown(S32 x, S32 y, MASK mask) override; - virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask) override; - virtual BOOL handleScrollWheel(S32 x, S32 y, S32 clicks) override; - virtual void onMouseCaptureLost() override; - virtual void handleSelect() override; - virtual void handleDeselect() override; - virtual LLTool* getOverrideTool(MASK mask) override { return NULL; } + // Overridden from LLToolComposite + virtual BOOL handleHover(S32 x, S32 y, MASK mask) override; + virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask) override; + virtual BOOL handleDoubleClick(S32 x, S32 y, MASK mask) override; + virtual BOOL handleRightMouseDown(S32 x, S32 y, MASK mask) override; + virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask) override; + virtual BOOL handleScrollWheel(S32 x, S32 y, S32 clicks) override; + virtual void onMouseCaptureLost() override; + virtual void handleSelect() override; + virtual void handleDeselect() override; + virtual LLTool* getOverrideTool(MASK mask) override { return NULL; } protected: - LLToolGun* mGun; - LLToolGrabBase* mGrab; - LLTool* mNull; + LLToolGun* mGun; + LLToolGrabBase* mGrab; + LLTool* mNull; }; |