LLFloaterImagePreview Class Reference

#include <llfloaterimagepreview.h>

Inheritance diagram for LLFloaterImagePreview:

Inheritance graph
[legend]
Collaboration diagram for LLFloaterImagePreview:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLFloaterImagePreview (const char *filename)
virtual ~LLFloaterImagePreview ()
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)

Static Public Member Functions

static void onMouseCaptureLostImagePreview (LLMouseHandler *)
static void setUploadAmount (S32 amount)

Protected Member Functions

void draw ()
bool loadImage (const char *filename)

Static Protected Member Functions

static void onPreviewTypeCommit (LLUICtrl *, void *)

Protected Attributes

LLPointer< LLImageRawmRawImagep
LLImagePreviewAvatarmAvatarPreview
LLImagePreviewSculptedmSculptedPreview
S32 mLastMouseX
S32 mLastMouseY
LLRect mPreviewRect
LLRectf mPreviewImageRect
GLuint mGLName

Static Protected Attributes

static S32 sUploadAmount = 10


Detailed Description

Definition at line 102 of file llfloaterimagepreview.h.


Constructor & Destructor Documentation

LLFloaterImagePreview::LLFloaterImagePreview ( const char *  filename  ) 

Definition at line 71 of file llfloaterimagepreview.cpp.

References loadImage(), LLFloaterNameDesc::mFilenameAndPath, mGLName, mLastMouseX, and mLastMouseY.

Here is the call graph for this function:

LLFloaterImagePreview::~LLFloaterImagePreview (  )  [virtual]

Definition at line 134 of file llfloaterimagepreview.cpp.

References mAvatarPreview, mGLName, mRawImagep, mSculptedPreview, and NULL.


Member Function Documentation

BOOL LLFloaterImagePreview::postBuild ( void   )  [virtual]

BOOL LLFloaterImagePreview::handleMouseDown ( S32  x,
S32  y,
MASK  mask 
) [virtual]

BOOL LLFloaterImagePreview::handleMouseUp ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLView.

Definition at line 445 of file llfloaterimagepreview.cpp.

References FALSE, gViewerWindow, LLView::handleMouseUp(), LLViewerWindow::setMouseCapture(), and LLViewerWindow::showCursor().

Here is the call graph for this function:

BOOL LLFloaterImagePreview::handleHover ( S32  x,
S32  y,
MASK  mask 
) [virtual]

BOOL LLFloaterImagePreview::handleScrollWheel ( S32  x,
S32  y,
S32  clicks 
) [virtual]

void LLFloaterImagePreview::onMouseCaptureLostImagePreview ( LLMouseHandler handler  )  [static]

Definition at line 593 of file llfloaterimagepreview.cpp.

References gViewerWindow, and LLViewerWindow::showCursor().

Here is the call graph for this function:

static void LLFloaterImagePreview::setUploadAmount ( S32  amount  )  [inline, static]

Definition at line 116 of file llfloaterimagepreview.h.

References sUploadAmount.

Referenced by process_economy_data().

Here is the caller graph for this function:

void LLFloaterImagePreview::onPreviewTypeCommit ( LLUICtrl ctrl,
void *  userdata 
) [static, protected]

void LLFloaterImagePreview::draw ( void   )  [protected, virtual]

bool LLFloaterImagePreview::loadImage ( const char *  filename  )  [protected]

Definition at line 317 of file llfloaterimagepreview.cpp.

References codec, IMG_CODEC_BMP, IMG_CODEC_INVALID, IMG_CODEC_JPEG, IMG_CODEC_PNG, IMG_CODEC_TGA, MAX_STRING, and mRawImagep.

Referenced by LLFloaterImagePreview().

Here is the caller graph for this function:


Member Data Documentation

Definition at line 126 of file llfloaterimagepreview.h.

Referenced by handleHover(), handleMouseDown(), and LLFloaterImagePreview().

Definition at line 127 of file llfloaterimagepreview.h.

Referenced by handleHover(), handleMouseDown(), and LLFloaterImagePreview().

Definition at line 129 of file llfloaterimagepreview.h.

Referenced by draw(), handleHover(), and postBuild().

GLuint LLFloaterImagePreview::mGLName [protected]

Definition at line 130 of file llfloaterimagepreview.h.

Referenced by draw(), LLFloaterImagePreview(), and ~LLFloaterImagePreview().

S32 LLFloaterImagePreview::sUploadAmount = 10 [static, protected]

Definition at line 132 of file llfloaterimagepreview.h.

Referenced by postBuild(), and setUploadAmount().


The documentation for this class was generated from the following files:

Generated on Fri May 16 08:45:47 2008 for SecondLife by  doxygen 1.5.5