LLFloaterSnapshot::Impl Class Reference

Collaboration diagram for LLFloaterSnapshot::Impl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Impl ()
 ~Impl ()

Static Public Member Functions

static void onClickDiscard (void *data)
static void onClickKeep (void *data)
static void onClickNewSnapshot (void *data)
static void onClickAutoSnap (LLUICtrl *ctrl, void *data)
static void onClickUICheck (LLUICtrl *ctrl, void *data)
static void onClickHUDCheck (LLUICtrl *ctrl, void *data)
static void onClickKeepOpenCheck (LLUICtrl *ctrl, void *data)
static void onClickKeepAspectCheck (LLUICtrl *ctrl, void *data)
static void onCommitQuality (LLUICtrl *ctrl, void *data)
static void onCommitResolution (LLUICtrl *ctrl, void *data)
static void onCommitFreezeFrame (LLUICtrl *ctrl, void *data)
static void onCommitLayerTypes (LLUICtrl *ctrl, void *data)
static void onCommitSnapshotType (LLUICtrl *ctrl, void *data)
static void onCommitCustomResolution (LLUICtrl *ctrl, void *data)
static LLSnapshotLivePreviewgetPreviewView (LLFloaterSnapshot *floater)
static void setResolution (LLFloaterSnapshot *floater, const std::string &comboname)
static void updateControls (LLFloaterSnapshot *floater)
static void updateLayout (LLFloaterSnapshot *floater)

Public Attributes

std::vector< LLAnimPauseRequestmAvatarPauseHandles
LLToolsetmLastToolset

Static Public Attributes

static LLViewHandle sPreviewHandle

Static Private Member Functions

static LLSnapshotLivePreview::ESnapshotType getTypeIndex (LLFloaterSnapshot *floater)
static LLViewerWindow::ESnapshotType getLayerType (LLFloaterSnapshot *floater)
static void comboSetCustom (LLFloaterSnapshot *floater, const std::string &comboname)
static void checkAutoSnapshot (LLSnapshotLivePreview *floater)

Detailed Description

---------------------------------------------------------------------------- Class LLFloaterSnapshot::Impl ----------------------------------------------------------------------------

Definition at line 714 of file llfloatersnapshot.cpp.


Constructor & Destructor Documentation

LLFloaterSnapshot::Impl::Impl (  )  [inline]

Definition at line 717 of file llfloatersnapshot.cpp.

LLFloaterSnapshot::Impl::~Impl (  )  [inline]

Definition at line 720 of file llfloatersnapshot.cpp.

References mAvatarPauseHandles.


Member Function Documentation

void LLFloaterSnapshot::Impl::checkAutoSnapshot ( LLSnapshotLivePreview floater  )  [static, private]

Definition at line 940 of file llfloatersnapshot.cpp.

References LLControlGroup::getBOOL(), gSavedSettings, and LLSnapshotLivePreview::updateSnapshot().

Referenced by onClickAutoSnap(), onClickHUDCheck(), onClickKeep(), onClickKeepAspectCheck(), onClickUICheck(), onCommitCustomResolution(), onCommitLayerTypes(), onCommitQuality(), and onCommitResolution().

void LLFloaterSnapshot::Impl::comboSetCustom ( LLFloaterSnapshot floater,
const std::string &  comboname 
) [static, private]

Definition at line 1191 of file llfloatersnapshot.cpp.

References LLUICtrlFactory::getComboBoxByName(), LLComboBox::getItemCount(), and LLComboBox::setCurrentByIndex().

Referenced by onCommitCustomResolution().

LLViewerWindow::ESnapshotType LLFloaterSnapshot::Impl::getLayerType ( LLFloaterSnapshot floater  )  [static, private]

Definition at line 786 of file llfloatersnapshot.cpp.

References LLSD::asString(), LLPanel::childGetValue(), LLViewerWindow::SNAPSHOT_TYPE_COLOR, LLViewerWindow::SNAPSHOT_TYPE_DEPTH, LLViewerWindow::SNAPSHOT_TYPE_OBJECT_ID, and type.

Referenced by updateControls().

LLSnapshotLivePreview * LLFloaterSnapshot::Impl::getPreviewView ( LLFloaterSnapshot floater  )  [static]

Definition at line 764 of file llfloatersnapshot.cpp.

References LLView::getViewByHandle(), and sPreviewHandle.

Referenced by LLFloaterSnapshot::draw(), onClickAutoSnap(), onClickHUDCheck(), onClickKeep(), onClickKeepAspectCheck(), onClickNewSnapshot(), onClickUICheck(), onCommitCustomResolution(), onCommitLayerTypes(), onCommitQuality(), onCommitResolution(), onCommitSnapshotType(), updateControls(), and updateLayout().

LLSnapshotLivePreview::ESnapshotType LLFloaterSnapshot::Impl::getTypeIndex ( LLFloaterSnapshot floater  )  [static, private]

Definition at line 771 of file llfloatersnapshot.cpp.

References LLSD::asString(), LLPanel::childGetValue(), LLSnapshotLivePreview::SNAPSHOT_BITMAP, LLSnapshotLivePreview::SNAPSHOT_POSTCARD, and LLSnapshotLivePreview::SNAPSHOT_TEXTURE.

Referenced by onCommitSnapshotType(), and updateControls().

void LLFloaterSnapshot::Impl::onClickAutoSnap ( LLUICtrl ctrl,
void data 
) [static]

Definition at line 1018 of file llfloatersnapshot.cpp.

References checkAutoSnapshot(), LLCheckBoxCtrl::get(), getPreviewView(), gSavedSettings, and LLControlGroup::setBOOL().

Referenced by LLFloaterSnapshot::postBuild().

void LLFloaterSnapshot::Impl::onClickDiscard ( void data  )  [static]

Definition at line 949 of file llfloatersnapshot.cpp.

Referenced by LLFloaterSnapshot::postBuild().

void LLFloaterSnapshot::Impl::onClickHUDCheck ( LLUICtrl ctrl,
void data 
) [static]

Definition at line 1044 of file llfloatersnapshot.cpp.

References checkAutoSnapshot(), LLCheckBoxCtrl::get(), getPreviewView(), gSavedSettings, and LLControlGroup::setBOOL().

Referenced by LLFloaterSnapshot::postBuild().

void LLFloaterSnapshot::Impl::onClickKeep ( void data  )  [static]

Definition at line 959 of file llfloatersnapshot.cpp.

References LLView::addChild(), LLFloater::addDependentFloater(), checkAutoSnapshot(), LLFloater::close(), FALSE, LLControlGroup::getBOOL(), getPreviewView(), LLSnapshotLivePreview::getSnapshotType(), gFloaterView, gSavedSettings, gSnapshotFloaterView, gViewerWindow, LLViewerWindow::playSnapshotAnimAndSound(), LLView::removeChild(), LLSnapshotLivePreview::saveLocal(), LLSnapshotLivePreview::savePostcard(), LLSnapshotLivePreview::saveTexture(), LLSnapshotLivePreview::SNAPSHOT_POSTCARD, LLSnapshotLivePreview::SNAPSHOT_TEXTURE, and TRUE.

Referenced by LLFloaterSnapshot::postBuild().

void LLFloaterSnapshot::Impl::onClickKeepAspectCheck ( LLUICtrl ctrl,
void data 
) [static]

Definition at line 1065 of file llfloatersnapshot.cpp.

References checkAutoSnapshot(), LLCheckBoxCtrl::get(), getPreviewView(), gSavedSettings, and LLControlGroup::setBOOL().

Referenced by LLFloaterSnapshot::postBuild().

void LLFloaterSnapshot::Impl::onClickKeepOpenCheck ( LLUICtrl ctrl,
void data 
) [static]

Definition at line 1057 of file llfloatersnapshot.cpp.

References LLCheckBoxCtrl::get(), gSavedSettings, and LLControlGroup::setBOOL().

Referenced by LLFloaterSnapshot::postBuild().

void LLFloaterSnapshot::Impl::onClickNewSnapshot ( void data  )  [static]

Definition at line 1007 of file llfloatersnapshot.cpp.

References getPreviewView(), TRUE, and LLSnapshotLivePreview::updateSnapshot().

Referenced by LLFloaterSnapshot::postBuild().

void LLFloaterSnapshot::Impl::onClickUICheck ( LLUICtrl ctrl,
void data 
) [static]

Definition at line 1031 of file llfloatersnapshot.cpp.

References checkAutoSnapshot(), LLCheckBoxCtrl::get(), getPreviewView(), gSavedSettings, and LLControlGroup::setBOOL().

Referenced by LLFloaterSnapshot::postBuild().

void LLFloaterSnapshot::Impl::onCommitCustomResolution ( LLUICtrl ctrl,
void data 
) [static]

Definition at line 1201 of file llfloatersnapshot.cpp.

References checkAutoSnapshot(), comboSetCustom(), getPreviewView(), LLSnapshotLivePreview::getSize(), gSavedSettings, llfloor(), S32, LLControlGroup::setS32(), and LLSnapshotLivePreview::setSize().

Referenced by LLFloaterSnapshot::postBuild().

void LLFloaterSnapshot::Impl::onCommitFreezeFrame ( LLUICtrl ctrl,
void data 
) [static]

Definition at line 1092 of file llfloatersnapshot.cpp.

References LLCheckBoxCtrl::get(), gSavedSettings, LLControlGroup::setBOOL(), and updateLayout().

Referenced by LLFloaterSnapshot::postBuild().

void LLFloaterSnapshot::Impl::onCommitLayerTypes ( LLUICtrl ctrl,
void data 
) [static]

Definition at line 1161 of file llfloatersnapshot.cpp.

References checkAutoSnapshot(), LLComboBox::getCurrentIndex(), getPreviewView(), and LLSnapshotLivePreview::setSnapshotBufferType().

Referenced by LLFloaterSnapshot::postBuild().

void LLFloaterSnapshot::Impl::onCommitQuality ( LLUICtrl ctrl,
void data 
) [static]

Definition at line 1078 of file llfloatersnapshot.cpp.

References LLSD::asReal(), checkAutoSnapshot(), getPreviewView(), LLSliderCtrl::getValue(), llfloor(), and S32.

Referenced by LLFloaterSnapshot::postBuild().

void LLFloaterSnapshot::Impl::onCommitResolution ( LLUICtrl ctrl,
void data 
) [static]

Definition at line 1108 of file llfloatersnapshot.cpp.

References checkAutoSnapshot(), LLPanel::childSetValue(), LLSDSerialize::fromNotation(), LLUICtrlFactory::getComboBoxByName(), LLComboBox::getCurrentIndex(), getPreviewView(), LLControlGroup::getS32(), LLComboBox::getSimpleSelectedValue(), LLSnapshotLivePreview::getSize(), LLViewerWindow::getWindowDisplayHeight(), LLViewerWindow::getWindowDisplayWidth(), gSavedSettings, gViewerWindow, height, S32, LLControlGroup::setS32(), LLSnapshotLivePreview::setSize(), and width.

Referenced by LLFloaterSnapshot::postBuild(), and setResolution().

void LLFloaterSnapshot::Impl::onCommitSnapshotType ( LLUICtrl ctrl,
void data 
) [static]

Definition at line 1179 of file llfloatersnapshot.cpp.

References getPreviewView(), getTypeIndex(), gSavedSettings, LLControlGroup::setS32(), TRUE, updateControls(), and LLSnapshotLivePreview::updateSnapshot().

Referenced by LLFloaterSnapshot::postBuild().

void LLFloaterSnapshot::Impl::setResolution ( LLFloaterSnapshot floater,
const std::string &  comboname 
) [static]

Definition at line 801 of file llfloatersnapshot.cpp.

References LLUICtrlFactory::getComboBoxByName(), onCommitResolution(), LLView::setVisible(), and TRUE.

Referenced by updateControls().

void LLFloaterSnapshot::Impl::updateControls ( LLFloaterSnapshot floater  )  [static]

Definition at line 880 of file llfloatersnapshot.cpp.

References LLPanel::childSetEnabled(), LLPanel::childSetValue(), LLPanel::childSetVisible(), FALSE, LLUICtrlFactory::getComboBoxByName(), getLayerType(), getPreviewView(), LLUICtrlFactory::getRadioGroupByName(), LLControlGroup::getS32(), getTypeIndex(), gSavedSettings, LLComboBox::selectNthItem(), setResolution(), LLRadioGroup::setSelectedIndex(), LLSnapshotLivePreview::setSnapshotBufferType(), LLSnapshotLivePreview::setSnapshotType(), LLSnapshotLivePreview::SNAPSHOT_BITMAP, LLSnapshotLivePreview::SNAPSHOT_POSTCARD, LLSnapshotLivePreview::SNAPSHOT_TEXTURE, LLViewerWindow::SNAPSHOT_TYPE_COLOR, and TRUE.

Referenced by onCommitSnapshotType(), and LLFloaterSnapshot::postBuild().

void LLFloaterSnapshot::Impl::updateLayout ( LLFloaterSnapshot floater  )  [static]

Definition at line 812 of file llfloatersnapshot.cpp.

References LLSD::asBoolean(), LLPanel::childGetValue(), FALSE, gCameraToolset, LLToolMgr::getCurrentToolset(), LLView::getParent(), getPreviewView(), LLRectBase< Type >::getWidth(), gSavedSettings, gToolMgr, LLFloaterSnapshot::impl, mAvatarPauseHandles, mLastToolset, LLView::mRect, LLCharacter::requestPause(), LLView::reshape(), LLControlGroup::setBOOL(), LLToolMgr::setCurrentToolset(), LLView::setEnabled(), LLView::setMouseOpaque(), LLView::setVisible(), LLFloaterSnapshot::sInstance, LLCharacter::sInstances, and TRUE.

Referenced by onCommitFreezeFrame(), and LLFloaterSnapshot::show().


Member Data Documentation

std::vector<LLAnimPauseRequest> LLFloaterSnapshot::Impl::mAvatarPauseHandles

Definition at line 755 of file llfloatersnapshot.cpp.

Referenced by updateLayout(), and ~Impl().

LLToolset* LLFloaterSnapshot::Impl::mLastToolset

Definition at line 757 of file llfloatersnapshot.cpp.

Referenced by updateLayout(), and LLFloaterSnapshot::~LLFloaterSnapshot().

LLViewHandle LLFloaterSnapshot::Impl::sPreviewHandle [static]

Definition at line 746 of file llfloatersnapshot.cpp.

Referenced by getPreviewView(), LLFloaterSnapshot::postBuild(), and LLFloaterSnapshot::~LLFloaterSnapshot().


The documentation for this class was generated from the following file:
Generated on Thu Jul 1 06:11:21 2010 for Second Life Viewer by  doxygen 1.4.7