这篇教程C++ AIFilePicker类代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中AIFilePicker类的典型用法代码示例。如果您正苦于以下问题:C++ AIFilePicker类的具体用法?C++ AIFilePicker怎么用?C++ AIFilePicker使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。 在下文中一共展示了AIFilePicker类的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: file// staticvoid 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,
示例2: onExportListvoid 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,
示例3: onClickExportvoid 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,
示例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,
示例5: getItem// virtualvoid 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,
示例6: setDefaultTexturesvoid 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,
示例7: default_filename// virtualvoid 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,
示例8: start_filepickervoid 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,
示例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,
示例10: setDefaultTexturesvoid 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,
示例11: onClickImportvoid LLPanelFriends::onClickImport(void* user_data){ AIFilePicker* filepicker = AIFilePicker::create(); filepicker->open(); filepicker->run(boost::bind(&LLPanelFriends::onClickImport_filepicker_continued, filepicker));}
开发者ID:Barosonix,项目名称:AstraViewer,代码行数:6,
示例12: handle_compress_imagevoid 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,
示例13: importNewPick//Imports a new pick from an xml - RKvoid 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,
示例14: AddBitmapvoid LocalAssetBrowser::AddBitmap(){ AIFilePicker* filepicker = AIFilePicker::create(); filepicker->open(FFLOAD_IMAGE, "", "image", true); filepicker->run(boost::bind(&LocalAssetBrowser::AddBitmap_continued, filepicker));}
开发者ID:hades187,项目名称:singu,代码行数:6,
示例15: exportPick//Exports a pick to an XML - RKvoid LLPanelPick::exportPick(){ AIFilePicker* filepicker = AIFilePicker::create(); filepicker->open("", FFSAVE_XML, "", "export"); filepicker->run(boost::bind(&LLPanelPick::exportPick_continued, this, filepicker));}
开发者ID:Krazy-Bish-Margie,项目名称:SingularityViewer,代码行数:7,
示例16: onClickSave//staticvoid LLFloaterBlacklist::onClickSave(void* user_data){ AIFilePicker* filepicker = AIFilePicker::create(); filepicker->open("untitled.blacklist", FFSAVE_BLACKLIST); filepicker->run(boost::bind(&LLFloaterBlacklist::onClickSave_continued, filepicker));}
开发者ID:OS-Development,项目名称:VW.Singularity,代码行数:7,
示例17: onClickLoad//staticvoid LLFloaterBlacklist::onClickLoad(void* user_data){ AIFilePicker* filepicker = AIFilePicker::create(); filepicker->open(FFLOAD_BLACKLIST); filepicker->run(boost::bind(&LLFloaterBlacklist::onClickLoad_continued, filepicker));}
开发者ID:OS-Development,项目名称:VW.Singularity,代码行数:7,
示例18: onImportList// called when the Import List button is pressedvoid LLFloaterAutoReplaceSettings::onImportList(){ AIFilePicker* picker = AIFilePicker::create(); picker->open(FFLOAD_XML, "", "autoreplace"); picker->run(boost::bind(&LLFloaterAutoReplaceSettings::onImportList_continued, this, picker));}
开发者ID:1234-,项目名称:SingularityViewer,代码行数:7,
示例19: onBtnExport// reX: new functionvoid LLFloaterCustomize::onBtnExport(){ AIFilePicker* filepicker = AIFilePicker::create(); filepicker->open("", FFSAVE_XML); filepicker->run(boost::bind(&LLFloaterCustomize::onBtnExport_continued, filepicker));}
开发者ID:aragornarda,项目名称:SingularityViewer,代码行数:7,
注:本文中的AIFilePicker类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ AIInterface类代码示例 C++ AI类代码示例 |