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 | onClickLess (void *data) |
static void | onClickMore (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 void | resetSnapshotSizeOnUI (LLFloaterSnapshot *view, S32 width, S32 height) |
static BOOL | checkImageSize (LLSnapshotLivePreview *previewp, S32 &width, S32 &height, BOOL isWidthChanged, S32 max_value) |
static LLSnapshotLivePreview * | getPreviewView (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< LLAnimPauseRequest > | mAvatarPauseHandles |
LLToolset * | mLastToolset |
Static Public Attributes | |
static LLHandle< LLView > | sPreviewHandle |
static BOOL | sAspectRatioCheckOff = FALSE |
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, BOOL update_thumbnail=FALSE) |
static void | checkAspectRatio (LLFloaterSnapshot *view, S32 index) |
Definition at line 938 of file llfloatersnapshot.cpp.
LLFloaterSnapshot::Impl::Impl | ( | ) | [inline] |
Definition at line 941 of file llfloatersnapshot.cpp.
LLFloaterSnapshot::Impl::~Impl | ( | ) | [inline] |
Definition at line 946 of file llfloatersnapshot.cpp.
void LLFloaterSnapshot::Impl::onClickDiscard | ( | void * | data | ) | [static] |
Definition at line 1273 of file llfloatersnapshot.cpp.
References LLFloater::close().
Referenced by LLFloaterSnapshot::postBuild().
void LLFloaterSnapshot::Impl::onClickKeep | ( | void * | data | ) | [static] |
Definition at line 1283 of file llfloatersnapshot.cpp.
References LLView::addChild(), LLFloater::addDependentFloater(), checkAutoSnapshot(), LLFloater::close(), FALSE, LLControlGroup::getBOOL(), getPreviewView(), LLSnapshotLivePreview::getSnapshotType(), gFloaterView, gSavedSettings, LLView::removeChild(), LLSnapshotLivePreview::saveLocal(), LLSnapshotLivePreview::savePostcard(), LLSnapshotLivePreview::saveTexture(), LLSnapshotLivePreview::SNAPSHOT_POSTCARD, LLSnapshotLivePreview::SNAPSHOT_TEXTURE, and TRUE.
Referenced by LLFloaterSnapshot::postBuild().
void LLFloaterSnapshot::Impl::onClickNewSnapshot | ( | void * | data | ) | [static] |
Definition at line 1325 of file llfloatersnapshot.cpp.
References getPreviewView(), TRUE, and LLSnapshotLivePreview::updateSnapshot().
Referenced by LLFloaterSnapshot::postBuild().
void LLFloaterSnapshot::Impl::onClickAutoSnap | ( | LLUICtrl * | ctrl, | |
void * | data | |||
) | [static] |
Definition at line 1336 of file llfloatersnapshot.cpp.
References checkAutoSnapshot(), LLCheckBoxCtrl::get(), getPreviewView(), gSavedSettings, and LLControlGroup::setBOOL().
Referenced by LLFloaterSnapshot::postBuild().
void LLFloaterSnapshot::Impl::onClickLess | ( | void * | data | ) | [static] |
Definition at line 1362 of file llfloatersnapshot.cpp.
References FALSE, getPreviewView(), LLView::getRect(), LLFloaterSnapshot::getUIWinHeightLong(), LLFloaterSnapshot::getUIWinHeightShort(), LLRectBase< Type >::getWidth(), gSavedSettings, LLFloater::reshape(), LLControlGroup::setBOOL(), LLSnapshotLivePreview::setThumbnailImageSize(), LLView::translate(), updateControls(), and updateLayout().
Referenced by LLFloaterSnapshot::postBuild().
void LLFloaterSnapshot::Impl::onClickMore | ( | void * | data | ) | [static] |
Definition at line 1348 of file llfloatersnapshot.cpp.
References LLView::getRect(), LLFloaterSnapshot::getUIWinHeightLong(), LLFloaterSnapshot::getUIWinHeightShort(), LLRectBase< Type >::getWidth(), gSavedSettings, LLFloater::reshape(), LLControlGroup::setBOOL(), LLView::translate(), TRUE, updateControls(), and updateLayout().
Referenced by LLFloaterSnapshot::postBuild().
void LLFloaterSnapshot::Impl::onClickUICheck | ( | LLUICtrl * | ctrl, | |
void * | data | |||
) | [static] |
Definition at line 1383 of file llfloatersnapshot.cpp.
References checkAutoSnapshot(), LLCheckBoxCtrl::get(), getPreviewView(), gSavedSettings, LLControlGroup::setBOOL(), and TRUE.
Referenced by LLFloaterSnapshot::postBuild().
void LLFloaterSnapshot::Impl::onClickHUDCheck | ( | LLUICtrl * | ctrl, | |
void * | data | |||
) | [static] |
Definition at line 1396 of file llfloatersnapshot.cpp.
References checkAutoSnapshot(), LLCheckBoxCtrl::get(), getPreviewView(), gSavedSettings, LLControlGroup::setBOOL(), and TRUE.
Referenced by LLFloaterSnapshot::postBuild().
void LLFloaterSnapshot::Impl::onClickKeepOpenCheck | ( | LLUICtrl * | ctrl, | |
void * | data | |||
) | [static] |
Definition at line 1409 of file llfloatersnapshot.cpp.
References LLCheckBoxCtrl::get(), gSavedSettings, and LLControlGroup::setBOOL().
Referenced by LLFloaterSnapshot::postBuild().
void LLFloaterSnapshot::Impl::onClickKeepAspectCheck | ( | LLUICtrl * | ctrl, | |
void * | data | |||
) | [static] |
Definition at line 1417 of file llfloatersnapshot.cpp.
References checkAutoSnapshot(), checkImageSize(), LLCheckBoxCtrl::get(), LLControlGroup::getBOOL(), LLSnapshotLivePreview::getMaxImageSize(), getPreviewView(), LLSnapshotLivePreview::getSize(), gSavedSettings, LLSnapshotLivePreview::mKeepAspectRatio, resetSnapshotSizeOnUI(), S32, LLControlGroup::setBOOL(), LLSnapshotLivePreview::setSize(), and TRUE.
Referenced by LLFloaterSnapshot::postBuild().
void LLFloaterSnapshot::Impl::onCommitQuality | ( | LLUICtrl * | ctrl, | |
void * | data | |||
) | [static] |
Definition at line 1444 of file llfloatersnapshot.cpp.
References LLSD::asReal(), checkAutoSnapshot(), getPreviewView(), LLSliderCtrl::getValue(), llfloor(), S32, and TRUE.
Referenced by LLFloaterSnapshot::postBuild().
void LLFloaterSnapshot::Impl::onCommitResolution | ( | LLUICtrl * | ctrl, | |
void * | data | |||
) | [static] |
Definition at line 1522 of file llfloatersnapshot.cpp.
References checkAspectRatio(), checkAutoSnapshot(), checkImageSize(), LLPanel::childSetValue(), FALSE, LLSDSerialize::fromNotation(), LLView::getChild(), LLComboBox::getCurrentIndex(), LLSnapshotLivePreview::getMaxImageSize(), getPreviewView(), LLControlGroup::getS32(), LLComboBox::getSelectedValue(), LLSnapshotLivePreview::getSize(), LLViewerWindow::getWindowDisplayHeight(), LLViewerWindow::getWindowDisplayWidth(), gSavedSettings, gViewerWindow, resetSnapshotSizeOnUI(), S32, LLControlGroup::setS32(), LLSnapshotLivePreview::setSize(), LLSD::size(), and TRUE.
Referenced by LLFloaterSnapshot::postBuild(), and setResolution().
void LLFloaterSnapshot::Impl::onCommitFreezeFrame | ( | LLUICtrl * | ctrl, | |
void * | data | |||
) | [static] |
Definition at line 1458 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 1584 of file llfloatersnapshot.cpp.
References checkAutoSnapshot(), LLComboBox::getCurrentIndex(), getPreviewView(), LLSnapshotLivePreview::setSnapshotBufferType(), and TRUE.
Referenced by LLFloaterSnapshot::postBuild().
void LLFloaterSnapshot::Impl::onCommitSnapshotType | ( | LLUICtrl * | ctrl, | |
void * | data | |||
) | [static] |
Definition at line 1602 of file llfloatersnapshot.cpp.
References getPreviewView(), getTypeIndex(), gSavedSettings, LLControlGroup::setS32(), TRUE, updateControls(), and LLSnapshotLivePreview::updateSnapshot().
Referenced by LLFloaterSnapshot::postBuild().
void LLFloaterSnapshot::Impl::onCommitCustomResolution | ( | LLUICtrl * | ctrl, | |
void * | data | |||
) | [static] |
Definition at line 1711 of file llfloatersnapshot.cpp.
References LLSD::asReal(), checkAutoSnapshot(), checkImageSize(), LLPanel::childGetValue(), comboSetCustom(), FALSE, LLSnapshotLivePreview::getMaxImageSize(), getPreviewView(), LLControlGroup::getS32(), LLSnapshotLivePreview::getSize(), gSavedSettings, llfloor(), resetSnapshotSizeOnUI(), S32, LLSnapshotLivePreview::setMaxImageSize(), LLControlGroup::setS32(), LLSnapshotLivePreview::setSize(), LLSnapshotLivePreview::SNAPSHOT_TEXTURE, and TRUE.
Referenced by LLFloaterSnapshot::postBuild().
void LLFloaterSnapshot::Impl::resetSnapshotSizeOnUI | ( | LLFloaterSnapshot * | view, | |
S32 | width, | |||
S32 | height | |||
) | [static] |
Definition at line 1692 of file llfloatersnapshot.cpp.
References LLSpinCtrl::forceSetValue(), LLView::getChild(), gSavedSettings, and LLControlGroup::setS32().
Referenced by onClickKeepAspectCheck(), onCommitCustomResolution(), and onCommitResolution().
BOOL LLFloaterSnapshot::Impl::checkImageSize | ( | LLSnapshotLivePreview * | previewp, | |
S32 & | width, | |||
S32 & | height, | |||
BOOL | isWidthChanged, | |||
S32 | max_value | |||
) | [static] |
Definition at line 1628 of file llfloatersnapshot.cpp.
References FALSE, get_nearest_power_two(), LLControlGroup::getS32(), LLViewerWindow::getWindowDisplayHeight(), LLViewerWindow::getWindowDisplayWidth(), gSavedSettings, gViewerWindow, MAX_TEXTURE_SIZE, LLSnapshotLivePreview::mKeepAspectRatio, S32, and LLSnapshotLivePreview::SNAPSHOT_TEXTURE.
Referenced by onClickKeepAspectCheck(), onCommitCustomResolution(), and onCommitResolution().
LLSnapshotLivePreview * LLFloaterSnapshot::Impl::getPreviewView | ( | LLFloaterSnapshot * | floater | ) | [static] |
Definition at line 999 of file llfloatersnapshot.cpp.
References LLHandle< T >::get(), and sPreviewHandle.
Referenced by checkAspectRatio(), LLFloaterSnapshot::draw(), onClickAutoSnap(), onClickHUDCheck(), onClickKeep(), onClickKeepAspectCheck(), onClickLess(), onClickNewSnapshot(), onClickUICheck(), onCommitCustomResolution(), onCommitLayerTypes(), onCommitQuality(), onCommitResolution(), onCommitSnapshotType(), updateControls(), and updateLayout().
void LLFloaterSnapshot::Impl::setResolution | ( | LLFloaterSnapshot * | floater, | |
const std::string & | comboname | |||
) | [static] |
Definition at line 1036 of file llfloatersnapshot.cpp.
References LLView::getChild(), onCommitResolution(), LLView::setVisible(), and TRUE.
Referenced by updateControls().
void LLFloaterSnapshot::Impl::updateControls | ( | LLFloaterSnapshot * | floater | ) | [static] |
Definition at line 1142 of file llfloatersnapshot.cpp.
References LLPanel::childSetEnabled(), LLPanel::childSetValue(), LLPanel::childSetVisible(), FALSE, LLControlGroup::getBOOL(), LLView::getChild(), getLayerType(), getPreviewView(), LLControlGroup::getS32(), getTypeIndex(), gSavedSettings, sAspectRatioCheckOff, 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 onClickLess(), onClickMore(), onCommitSnapshotType(), and LLFloaterSnapshot::postBuild().
void LLFloaterSnapshot::Impl::updateLayout | ( | LLFloaterSnapshot * | floater | ) | [static] |
Definition at line 1047 of file llfloatersnapshot.cpp.
References LLSD::asBoolean(), LLPanel::childGetValue(), LLPanel::childSetEnabled(), FALSE, gCameraToolset, LLControlGroup::getBOOL(), LLView::getChild(), LLToolMgr::getCurrentToolset(), LLSingleton< LLToolMgr >::getInstance(), LLView::getParent(), getPreviewView(), LLView::getRect(), LLFloaterSnapshot::getUIWinHeightLong(), LLFloaterSnapshot::getUIWinHeightShort(), LLRectBase< Type >::getWidth(), LLViewerWindow::getWindowDisplayHeight(), LLViewerWindow::getWindowDisplayWidth(), gSavedSettings, gViewerWindow, LLFloaterSnapshot::impl, mAvatarPauseHandles, LLSnapshotLivePreview::mKeepAspectRatio, mLastToolset, LLCharacter::requestPause(), LLFloater::reshape(), S32, LLControlGroup::setBOOL(), LLComboBox::setCurrentByIndex(), LLToolMgr::setCurrentToolset(), LLView::setEnabled(), LLView::setMouseOpaque(), LLControlGroup::setS32(), LLSnapshotLivePreview::setSize(), LLView::setVisible(), LLFloaterSnapshot::sInstance, LLCharacter::sInstances, and TRUE.
Referenced by onClickLess(), onClickMore(), onCommitFreezeFrame(), and LLFloaterSnapshot::show().
LLSnapshotLivePreview::ESnapshotType LLFloaterSnapshot::Impl::getTypeIndex | ( | LLFloaterSnapshot * | floater | ) | [static, private] |
Definition at line 1006 of file llfloatersnapshot.cpp.
References LLSD::asString(), LLPanel::childGetValue(), LLSnapshotLivePreview::SNAPSHOT_BITMAP, LLSnapshotLivePreview::SNAPSHOT_POSTCARD, and LLSnapshotLivePreview::SNAPSHOT_TEXTURE.
Referenced by checkAspectRatio(), onCommitSnapshotType(), and updateControls().
LLViewerWindow::ESnapshotType LLFloaterSnapshot::Impl::getLayerType | ( | LLFloaterSnapshot * | floater | ) | [static, private] |
Definition at line 1021 of file llfloatersnapshot.cpp.
References LLSD::asString(), LLPanel::childGetValue(), LLViewerWindow::SNAPSHOT_TYPE_COLOR, LLViewerWindow::SNAPSHOT_TYPE_DEPTH, and LLViewerWindow::SNAPSHOT_TYPE_OBJECT_ID.
Referenced by updateControls().
void LLFloaterSnapshot::Impl::comboSetCustom | ( | LLFloaterSnapshot * | floater, | |
const std::string & | comboname | |||
) | [static, private] |
Definition at line 1614 of file llfloatersnapshot.cpp.
References checkAspectRatio(), LLView::getChild(), LLComboBox::getItemCount(), and LLComboBox::setCurrentByIndex().
Referenced by onCommitCustomResolution().
void LLFloaterSnapshot::Impl::checkAutoSnapshot | ( | LLSnapshotLivePreview * | floater, | |
BOOL | update_thumbnail = FALSE | |||
) | [static, private] |
Definition at line 1264 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::checkAspectRatio | ( | LLFloaterSnapshot * | view, | |
S32 | index | |||
) | [static, private] |
Definition at line 1474 of file llfloatersnapshot.cpp.
References LLPanel::childSetEnabled(), FALSE, LLControlGroup::getBOOL(), getPreviewView(), LLControlGroup::getS32(), getTypeIndex(), gSavedSettings, LLSnapshotLivePreview::mKeepAspectRatio, sAspectRatioCheckOff, LLSnapshotLivePreview::SNAPSHOT_TEXTURE, and TRUE.
Referenced by comboSetCustom(), and onCommitResolution().
LLHandle< LLView > LLFloaterSnapshot::Impl::sPreviewHandle [static] |
Definition at line 977 of file llfloatersnapshot.cpp.
Referenced by getPreviewView(), LLFloaterSnapshot::postBuild(), and LLFloaterSnapshot::~LLFloaterSnapshot().
BOOL LLFloaterSnapshot::Impl::sAspectRatioCheckOff = FALSE [static] |
Definition at line 978 of file llfloatersnapshot.cpp.
Referenced by checkAspectRatio(), and updateControls().
Definition at line 990 of file llfloatersnapshot.cpp.
Referenced by updateLayout(), and LLFloaterSnapshot::~LLFloaterSnapshot().