当前位置: 首页>>代码示例>>C++>>正文


C++ AIFilePicker::open方法代码示例

本文整理汇总了C++中AIFilePicker::open方法的典型用法代码示例。如果您正苦于以下问题:C++ AIFilePicker::open方法的具体用法?C++ AIFilePicker::open怎么用?C++ AIFilePicker::open使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AIFilePicker的用法示例。


在下文中一共展示了AIFilePicker::open方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: gotAssetForSave

// static
void LLPreviewAnim::gotAssetForSave(LLVFS *vfs,
									   const LLUUID& asset_uuid,
									   LLAssetType::EType type,
									   void* user_data, S32 status, LLExtStat ext_status)
{
	LLPreviewAnim* self = (LLPreviewAnim*) user_data;
	//const LLInventoryItem *item = self->getItem();

	LLVFile file(vfs, asset_uuid, type, LLVFile::READ);
	S32 size = file.getSize();

	char* buffer = new char[size];
	if (buffer == NULL)
	{
		llerrs << "Memory Allocation Failed" << llendl;
		return;
	}

	file.read((U8*)buffer, size);

	// Write it back out...

	AIFilePicker* filepicker = AIFilePicker::create();
	filepicker->open(LLDir::getScrubbedFileName(self->getItem()->getName()) + ".animatn", FFSAVE_ANIMATN);
	filepicker->run(boost::bind(&LLPreviewAnim::gotAssetForSave_continued, buffer, size, filepicker));
}
开发者ID:1234-,项目名称:SingularityViewer,代码行数:27,代码来源:llpreviewanim.cpp

示例2: onExportList

void LLFloaterAutoReplaceSettings::onExportList()
{
	std::string listName=mListNames->getFirstSelected()->getColumn(0)->getValue().asString();
	std::string listFileName = listName + ".xml";
	AIFilePicker* picker = AIFilePicker::create();
	picker->open(listFileName, FFSAVE_XML, "", "autoreplace");
	picker->run(boost::bind(&LLFloaterAutoReplaceSettings::onExportList_continued, this, picker, mSettings.exportList(listName)));
}
开发者ID:1234-,项目名称:SingularityViewer,代码行数:8,代码来源:llfloaterautoreplacesettings.cpp

示例3: onClickExport

void LLPanelFriends::onClickExport(void* user_data)
{
	std::string agn;
	gAgent.getName(agn);
	AIFilePicker* filepicker = AIFilePicker::create();
	filepicker->open(agn + ".friendlist", FFSAVE_ALL);
	filepicker->run(boost::bind(&LLPanelFriends::onClickExport_continued, user_data, filepicker));
}
开发者ID:Barosonix,项目名称:AstraViewer,代码行数:8,代码来源:llfloaterfriends.cpp

示例4: handleEvent

	bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
	{
		LLInventoryModel* model = mPtr->getPanel()->getModel();
		if(!model) return false;
		AIFilePicker* filepicker = AIFilePicker::create();
		filepicker->open(FFLOAD_INVGZ, "", "invgz");
		filepicker->run(boost::bind(&LLLoadInvCacheFloater::filepicker_callback, this, filepicker));
		return true;
	}
开发者ID:fractured-crystal,项目名称:SssnowGlobeeE,代码行数:9,代码来源:llinventoryactions.cpp

示例5: saveAs

// virtual
void LLPreviewTexture::saveAs()
{
	if( mLoadingFullImage )
		return;

	const LLViewerInventoryItem* item = getItem() ;
	AIFilePicker* filepicker = AIFilePicker::create();
	filepicker->open(item ? LLDir::getScrubbedFileName(item->getName()) + ".png" : LLStringUtil::null, FFSAVE_IMAGE, "", "image");
	filepicker->run(boost::bind(&LLPreviewTexture::saveAs_continued, this, item, filepicker));
}
开发者ID:CmdrCupcake,项目名称:SingularityViewer,代码行数:11,代码来源:llpreviewtexture.cpp

示例6: exportObject

void LLObjectBackup::exportObject()
{
	mTexturesList.clear();
	mLLSD.clear();
	mThisGroup.clear();

	setDefaultTextures();
	LLSelectMgr::getInstance()->getSelection()->ref();	

	// Open the file save dialog
	AIFilePicker* filepicker = AIFilePicker::create();
	filepicker->open("", FFSAVE_XML);
	filepicker->run(boost::bind(&LLObjectBackup::exportObject_continued, this, filepicker));
}
开发者ID:Krazy-Bish-Margie,项目名称:SingularityViewer,代码行数:14,代码来源:llviewerobjectbackup.cpp

示例7: saveAs

// virtual
void LLPreviewNotecard::saveAs()
{
	std::string default_filename("untitled.notecard");
	const LLInventoryItem *item = getItem();
	if(item)
	{
	//	gAssetStorage->getAssetData(item->getAssetUUID(), LLAssetType::AT_NOTECARD, LLPreviewNotecard::gotAssetForSave, this, TRUE);
		default_filename = LLDir::getScrubbedFileName(item->getName()) + ".notecard";
	}

	AIFilePicker* filepicker = AIFilePicker::create();
	filepicker->open(default_filename, FFSAVE_NOTECARD);
	filepicker->run(boost::bind(&LLPreviewNotecard::saveAs_continued, this, filepicker));
}
开发者ID:aragornarda,项目名称:SingularityViewer,代码行数:15,代码来源:llpreviewnotecard.cpp

示例8: start_filepicker

void AIFileUpload::start_filepicker(ELoadFilter filter, char const* context)
{
	if( gAgentCamera.cameraMouselook() )
	{
		gAgentCamera.changeCameraToDefault();
		// This doesn't seem necessary. JC
		// display();
	}

	AIFilePicker* picker = AIFilePicker::create();
	picker->open(filter, "", context);
	// Note that when the call back is called then we're still in the main loop of
	// the viewer and therefore the AIFileUpload still exists, since that is only
	// destructed at the end of main when exiting the viewer.
	picker->run(boost::bind(&AIFileUpload::filepicker_callback, this, filter, picker));
}
开发者ID:aragornarda,项目名称:SingularityViewer,代码行数:16,代码来源:llviewermenufile.cpp

示例9: onConfirmBulkUploadTemp

	static bool onConfirmBulkUploadTemp(const LLSD& notification, const LLSD& response )
	{
		S32 option = LLNotification::getSelectedOption(notification, response);
		bool enabled;
		if (option == 0)		// yes
			enabled = true;
		else if(option == 1)	// no
			enabled = false;
		else					// cancel
			return false;

		AIFilePicker* filepicker = AIFilePicker::create();
		filepicker->open(FFLOAD_ALL, "", "openfile", true);
		filepicker->run(boost::bind(&LLFileUploadBulk::onConfirmBulkUploadTemp_continued, enabled, filepicker));
		return true;
	}
开发者ID:aragornarda,项目名称:SingularityViewer,代码行数:16,代码来源:llviewermenufile.cpp

示例10: importObject

void LLObjectBackup::importObject(bool upload)
{
	mRetexture = upload;
	mTexturesList.clear();
	mAssetMap.clear();
	mCurrentAsset.setNull();

	mGotExtraPhysics = !gAgent.getRegion()->getCapability("GetObjectPhysicsData").empty();

	setDefaultTextures();

	// Open the file open dialog
	AIFilePicker* filepicker = AIFilePicker::create();
	filepicker->open(FFLOAD_XML, "", "import");
	filepicker->run(boost::bind(&LLObjectBackup::importObject_continued, this, filepicker));
}
开发者ID:HanHeld,项目名称:SingularityViewerFeb2016,代码行数:16,代码来源:llviewerobjectbackup.cpp

示例11: importObject

void LLObjectBackup::importObject(bool upload)
{
	mTexturesList.clear();
	mAssetMap.clear();
	mCurrentAsset = LLUUID::null;
	
	setDefaultTextures();
	
	mRetexture = upload;
	
	// Open the file open dialog
	AIFilePicker* filepicker = new AIFilePicker;
	filepicker->open(FFLOAD_XML, "", "import");
	filepicker->run(boost::bind(&LLObjectBackup::importObject_continued, this, filepicker));
	
	return;
}
开发者ID:Krazy-Bish-Margie,项目名称:SingularityViewer,代码行数:17,代码来源:llviewerobjectbackup.cpp

示例12: onClickImport

void LLPanelFriends::onClickImport(void* user_data)
{
	AIFilePicker* filepicker = AIFilePicker::create();
	filepicker->open();
	filepicker->run(boost::bind(&LLPanelFriends::onClickImport_filepicker_continued, filepicker));
}
开发者ID:Barosonix,项目名称:AstraViewer,代码行数:6,代码来源:llfloaterfriends.cpp

示例13: handle_compress_image

void handle_compress_image(void*)
{
	AIFilePicker* filepicker = AIFilePicker::create();
	filepicker->open(FFLOAD_IMAGE, "", "openfile", true);
	filepicker->run(boost::bind(&handle_compress_image_continued, filepicker));
}
开发者ID:aragornarda,项目名称:SingularityViewer,代码行数:6,代码来源:llviewermenufile.cpp

示例14: importNewPick

//Imports a new pick from an xml - RK
void LLPanelPick::importNewPick(void (*callback)(void*, bool), void* data)
{
	AIFilePicker* filepicker = AIFilePicker::create();
	filepicker->open(FFLOAD_XML, "", "export");
	filepicker->run(boost::bind(&LLPanelPick::importNewPick_continued, this, callback, data, filepicker));
}
开发者ID:Krazy-Bish-Margie,项目名称:SingularityViewer,代码行数:7,代码来源:llpanelpick.cpp

示例15: AddBitmap

void LocalAssetBrowser::AddBitmap()
{
	AIFilePicker* filepicker = AIFilePicker::create();
	filepicker->open(FFLOAD_IMAGE, "", "image", true);
	filepicker->run(boost::bind(&LocalAssetBrowser::AddBitmap_continued, filepicker));
}
开发者ID:hades187,项目名称:singu,代码行数:6,代码来源:floaterlocalassetbrowse.cpp


注:本文中的AIFilePicker::open方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。