applicationresourcebundle.cpp
来自「这是VCF框架的代码」· C++ 代码 · 共 37 行
CPP
37 行
/*Copyright 2000-2004 The VCF Project.Please see License.txt in the top level directorywhere you installed the VCF.*///ApplicationResourceBundle.cpp#include "vcf/ApplicationKit/ApplicationKit.h"#include "vcf/FoundationKit/ResourceBundlePeer.h"#include "vcf/GraphicsKit/GraphicsResourceBundlePeer.h"#include "vcf/ApplicationKit/ApplicationResourceBundle.h"using namespace VCF;ApplicationResourceBundle::ApplicationResourceBundle( AbstractApplication* app ): GraphicsResourceBundle(), app_(app){ //destroy the old peer delete graphicsResPeer_; graphicsResPeer_ = UIToolkit::createGraphicsResourceBundlePeer( app ); if ( NULL == graphicsResPeer_ ) { throw InvalidPeer( MAKE_ERROR_MSG_2("Unable to create a graphics resource bundle instance for the application!") ); } peer_ = dynamic_cast<ResourceBundlePeer*>( graphicsResPeer_ );}String ApplicationResourceBundle::getResourcesDirectory(){ return System::findResourceDirectoryForExecutable( app_->getFileName() );}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?