#include <llfloaternamedesc.h>
Public Member Functions | |
LLFloaterNameDesc (const std::string &filename) | |
virtual | ~LLFloaterNameDesc () |
virtual BOOL | postBuild () |
Static Public Member Functions | |
static void | doCommit (class LLUICtrl *, void *userdata) |
Protected Member Functions | |
virtual void | onCommit () |
Static Protected Member Functions | |
static void | onBtnOK (void *) |
static void | onBtnCancel (void *) |
Protected Attributes | |
BOOL | mIsAudio |
LLString | mFilenameAndPath |
LLString | mFilename |
Definition at line 43 of file llfloaternamedesc.h.
LLFloaterNameDesc::LLFloaterNameDesc | ( | const std::string & | filename | ) |
Definition at line 67 of file llfloaternamedesc.cpp.
References FALSE, gDirUtilp, LLDir::getDirDelimiter(), mFilename, mFilenameAndPath, and mIsAudio.
LLFloaterNameDesc::~LLFloaterNameDesc | ( | ) | [virtual] |
Definition at line 156 of file llfloaternamedesc.cpp.
References gFocusMgr, and LLFocusMgr::releaseFocusIfNeeded().
BOOL LLFloaterNameDesc::postBuild | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Reimplemented in LLFloaterAnimPreview, and LLFloaterImagePreview.
Definition at line 81 of file llfloaternamedesc.cpp.
References LLView::centerWithin(), LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), LLPanel::childSetValue(), DB_INV_ITEM_DESC_STR_LEN, DB_INV_ITEM_NAME_STR_LEN, doCommit(), LLRectBase< Type >::getHeight(), LLView::getRect(), LLViewerWindow::getRootView(), LLRectBase< Type >::getWidth(), gViewerWindow, llfloor(), llmin(), mFilename, mIsAudio, onBtnCancel(), onBtnOK(), LLLineEditor::prevalidatePrintableNotPipe(), PREVIEW_HPAD, PREVIEW_LINE_HEIGHT, r, LLStringBase< char >::replaceChar(), LLStringBase< char >::replaceNonstandardASCII(), S32, LLPanel::setDefaultBtn(), LLRectBase< Type >::setLeftTopAndSize(), LLLineEditor::setMaxTextLength(), LLLineEditor::setPrevalidate(), LLFloater::setTitle(), LLStringBase< char >::stripNonprintable(), LLStringBase< char >::trim(), and TRUE.
Referenced by LLFloaterImagePreview::postBuild(), and LLFloaterAnimPreview::postBuild().
void LLFloaterNameDesc::doCommit | ( | class LLUICtrl * | , | |
void * | userdata | |||
) | [static] |
Definition at line 173 of file llfloaternamedesc.cpp.
Referenced by LLFloaterAnimPreview::onCommitName(), and postBuild().
void LLFloaterNameDesc::onCommit | ( | ) | [protected, virtual] |
void LLFloaterNameDesc::onBtnOK | ( | void * | userdata | ) | [static, protected] |
Reimplemented in LLFloaterAnimPreview.
Definition at line 183 of file llfloaternamedesc.cpp.
References LLSD::asString(), LLAssetType::AT_NONE, LLPanel::childDisable(), LLPanel::childGetValue(), LLFloater::close(), LLInventoryType::IT_NONE, mFilenameAndPath, and upload_new_resource().
Referenced by postBuild().
void LLFloaterNameDesc::onBtnCancel | ( | void * | userdata | ) | [static, protected] |
Definition at line 200 of file llfloaternamedesc.cpp.
References LLFloater::close().
Referenced by postBuild().
BOOL LLFloaterNameDesc::mIsAudio [protected] |
Definition at line 55 of file llfloaternamedesc.h.
Referenced by LLFloaterNameDesc(), and postBuild().
LLString LLFloaterNameDesc::mFilenameAndPath [protected] |
Definition at line 57 of file llfloaternamedesc.h.
Referenced by LLFloaterImagePreview::LLFloaterImagePreview(), LLFloaterNameDesc(), onBtnOK(), and LLFloaterAnimPreview::postBuild().
LLString LLFloaterNameDesc::mFilename [protected] |
Definition at line 58 of file llfloaternamedesc.h.
Referenced by LLFloaterNameDesc(), postBuild(), and LLFloaterAnimPreview::postBuild().