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/llfloaterimagepreview.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/llfloaterimagepreview.h')
-rw-r--r-- | indra/newview/llfloaterimagepreview.h | 142 |
1 files changed, 71 insertions, 71 deletions
diff --git a/indra/newview/llfloaterimagepreview.h b/indra/newview/llfloaterimagepreview.h index d034622c35..9e764e4972 100644 --- a/indra/newview/llfloaterimagepreview.h +++ b/indra/newview/llfloaterimagepreview.h @@ -1,25 +1,25 @@ -/** +/** * @file llfloaterimagepreview.h * @brief LLFloaterImagePreview class definition * * $LicenseInfo:firstyear=2004&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,102 +43,102 @@ class LLVolume; class LLImagePreviewSculpted : public LLViewerDynamicTexture { protected: - virtual ~LLImagePreviewSculpted(); + virtual ~LLImagePreviewSculpted(); public: - LLImagePreviewSculpted(S32 width, S32 height); + LLImagePreviewSculpted(S32 width, S32 height); - /*virtual*/ S8 getType() const ; + /*virtual*/ S8 getType() const ; - void setPreviewTarget(LLImageRaw *imagep, F32 distance); - void setTexture(U32 name) { mTextureName = name; } + void setPreviewTarget(LLImageRaw *imagep, F32 distance); + void setTexture(U32 name) { mTextureName = name; } - BOOL render(); - void refresh(); - void rotate(F32 yaw_radians, F32 pitch_radians); - void zoom(F32 zoom_amt); - void pan(F32 right, F32 up); - virtual BOOL needsRender() { return mNeedsUpdate; } + BOOL render(); + void refresh(); + void rotate(F32 yaw_radians, F32 pitch_radians); + void zoom(F32 zoom_amt); + void pan(F32 right, F32 up); + virtual BOOL needsRender() { return mNeedsUpdate; } protected: - BOOL mNeedsUpdate; - U32 mTextureName; - F32 mCameraDistance; - F32 mCameraYaw; - F32 mCameraPitch; - F32 mCameraZoom; - LLVector3 mCameraOffset; - LLPointer<LLVolume> mVolume; - LLPointer<LLVertexBuffer> mVertexBuffer; + BOOL mNeedsUpdate; + U32 mTextureName; + F32 mCameraDistance; + F32 mCameraYaw; + F32 mCameraPitch; + F32 mCameraZoom; + LLVector3 mCameraOffset; + LLPointer<LLVolume> mVolume; + LLPointer<LLVertexBuffer> mVertexBuffer; }; class LLImagePreviewAvatar : public LLViewerDynamicTexture { protected: - virtual ~LLImagePreviewAvatar(); + virtual ~LLImagePreviewAvatar(); public: - LLImagePreviewAvatar(S32 width, S32 height); + LLImagePreviewAvatar(S32 width, S32 height); - /*virtual*/ S8 getType() const ; + /*virtual*/ S8 getType() const ; - void setPreviewTarget(const std::string& joint_name, const std::string& mesh_name, LLImageRaw* imagep, F32 distance, BOOL male); - void setTexture(U32 name) { mTextureName = name; } - void clearPreviewTexture(const std::string& mesh_name); + void setPreviewTarget(const std::string& joint_name, const std::string& mesh_name, LLImageRaw* imagep, F32 distance, BOOL male); + void setTexture(U32 name) { mTextureName = name; } + void clearPreviewTexture(const std::string& mesh_name); - BOOL render(); - void refresh(); - void rotate(F32 yaw_radians, F32 pitch_radians); - void zoom(F32 zoom_amt); - void pan(F32 right, F32 up); - virtual BOOL needsRender() { return mNeedsUpdate; } + BOOL render(); + void refresh(); + void rotate(F32 yaw_radians, F32 pitch_radians); + void zoom(F32 zoom_amt); + void pan(F32 right, F32 up); + virtual BOOL needsRender() { return mNeedsUpdate; } protected: - BOOL mNeedsUpdate; - LLJoint* mTargetJoint; - LLViewerJointMesh* mTargetMesh; - F32 mCameraDistance; - F32 mCameraYaw; - F32 mCameraPitch; - F32 mCameraZoom; - LLVector3 mCameraOffset; - LLPointer<LLVOAvatar> mDummyAvatar; - U32 mTextureName; + BOOL mNeedsUpdate; + LLJoint* mTargetJoint; + LLViewerJointMesh* mTargetMesh; + F32 mCameraDistance; + F32 mCameraYaw; + F32 mCameraPitch; + F32 mCameraZoom; + LLVector3 mCameraOffset; + LLPointer<LLVOAvatar> mDummyAvatar; + U32 mTextureName; }; class LLFloaterImagePreview : public LLFloaterNameDesc { public: - LLFloaterImagePreview(const std::string& filename); - virtual ~LLFloaterImagePreview(); + LLFloaterImagePreview(const std::string& filename); + virtual ~LLFloaterImagePreview(); + + virtual BOOL postBuild(); - virtual BOOL postBuild(); - - BOOL handleMouseDown(S32 x, S32 y, MASK mask); - BOOL handleMouseUp(S32 x, S32 y, MASK mask); - BOOL handleHover(S32 x, S32 y, MASK mask); - BOOL handleScrollWheel(S32 x, S32 y, S32 clicks); + BOOL handleMouseDown(S32 x, S32 y, MASK mask); + BOOL handleMouseUp(S32 x, S32 y, MASK mask); + BOOL handleHover(S32 x, S32 y, MASK mask); + BOOL handleScrollWheel(S32 x, S32 y, S32 clicks); - static void onMouseCaptureLostImagePreview(LLMouseHandler*); + static void onMouseCaptureLostImagePreview(LLMouseHandler*); - void clearAllPreviewTextures(); + void clearAllPreviewTextures(); protected: - static void onPreviewTypeCommit(LLUICtrl*,void*); - void draw(); - bool loadImage(const std::string& filename); - - LLPointer<LLImageRaw> mRawImagep; - LLPointer<LLImagePreviewAvatar> mAvatarPreview; - LLPointer<LLImagePreviewSculpted> mSculptedPreview; - S32 mLastMouseX; - S32 mLastMouseY; - LLRect mPreviewRect; - LLRectf mPreviewImageRect; - LLPointer<LLViewerTexture> mImagep ; - - std::string mImageLoadError; + static void onPreviewTypeCommit(LLUICtrl*,void*); + void draw(); + bool loadImage(const std::string& filename); + + LLPointer<LLImageRaw> mRawImagep; + LLPointer<LLImagePreviewAvatar> mAvatarPreview; + LLPointer<LLImagePreviewSculpted> mSculptedPreview; + S32 mLastMouseX; + S32 mLastMouseY; + LLRect mPreviewRect; + LLRectf mPreviewImageRect; + LLPointer<LLViewerTexture> mImagep ; + + std::string mImageLoadError; }; #endif // LL_LLFLOATERIMAGEPREVIEW_H |