예제 #1
0
BitmapLoader::BitmapMap_t BitmapLoader::MakeStandardMimeMap()
{
    BitmapLoader::BitmapMap_t images;
    images[FileExtManager::TypeExe] = LoadBitmap(wxT("console"));
    images[FileExtManager::TypeHtml] = LoadBitmap(wxT("mime-html"));
    images[FileExtManager::TypeArchive] = LoadBitmap(wxT("archive"));
    images[FileExtManager::TypePhp] = LoadBitmap(wxT("mime-php"));
    images[FileExtManager::TypeDll] = LoadBitmap(wxT("dll"));
    images[FileExtManager::TypeFormbuilder] = LoadBitmap(wxT("blocks"));
    images[FileExtManager::TypeCodedesigner] = LoadBitmap(wxT("mime-txt"));
    images[FileExtManager::TypeBmp] = LoadBitmap(wxT("mime-bmp"));
    images[FileExtManager::TypeMakefile] = LoadBitmap(wxT("cog"));
    images[FileExtManager::TypeSourceC] = LoadBitmap(wxT("mime-c"));
    images[FileExtManager::TypeSourceCpp] = LoadBitmap(wxT("mime-cpp"));
    images[FileExtManager::TypeHeader] = LoadBitmap(wxT("mime-h"));
    images[FileExtManager::TypeText] = LoadBitmap(wxT("mime-txt"));
    images[FileExtManager::TypeScript] = LoadBitmap(wxT("execute"));
    images[FileExtManager::TypeXml] = LoadBitmap(wxT("mime-xml"));
    images[FileExtManager::TypeErd] = LoadBitmap(wxT("mime-txt"));
    images[FileExtManager::TypePython] = LoadBitmap(wxT("mime-python"));
    images[FileExtManager::TypeCSS] = LoadBitmap(wxT("mime-css"));
    images[FileExtManager::TypeJS] = LoadBitmap(wxT("mime-js"));
    images[FileExtManager::TypeWorkspace] = LoadBitmap("cxx-workspace");
    images[FileExtManager::TypeWorkspacePHP] = LoadBitmap("php-workspace");
    images[FileExtManager::TypeWorkspaceNodeJS] = LoadBitmap("nodejs-workspace");
    images[FileExtManager::TypeProject] = LoadBitmap(wxT("project"));
    images[FileExtManager::TypeWxCrafter] = LoadBitmap(wxT("blocks"));
    images[FileExtManager::TypeXRC] = LoadBitmap(wxT("mime-xml"));
    images[FileExtManager::TypeResource] = LoadBitmap(wxT("tools"));
    images[FileExtManager::TypeSQL] = LoadBitmap(wxT("mime-sql"));
    images[FileExtManager::TypeFolder] = LoadBitmap("folder-yellow");
    images[FileExtManager::TypeFolderExpanded] = LoadBitmap("folder-yellow-opened");
    images[FileExtManager::TypeProjectActive] = LoadBitmap(wxT("project"));
    images[FileExtManager::TypeAsm] = LoadBitmap(wxT("mime-as"));
    images[FileExtManager::TypeCMake] = LoadBitmap(wxT("cmake"));
    images[FileExtManager::TypeQMake] = LoadBitmap(wxT("qt"));

    BitmapLoader::BitmapMap_t merged;
    merged.insert(m_userBitmaps.begin(), m_userBitmaps.end());
    merged.insert(images.begin(), images.end());
    return merged;
}
예제 #2
0
BitmapLoader::BitmapMap_t BitmapLoader::MakeStandardMimeMap()
{
    BitmapLoader::BitmapMap_t images;
    images[FileExtManager::TypeExe] = LoadBitmap(wxT("mime/16/exe"));
    images[FileExtManager::TypeHtml] = LoadBitmap(wxT("mime/16/html"));
    images[FileExtManager::TypeArchive] = LoadBitmap(wxT("mime/16/zip"));
    images[FileExtManager::TypePhp] = LoadBitmap(wxT("mime/16/php"));
    images[FileExtManager::TypeDll] = LoadBitmap(wxT("mime/16/dll"));
    images[FileExtManager::TypeFormbuilder] = LoadBitmap(wxT("mime/16/wxfb"));
    images[FileExtManager::TypeCodedesigner] = LoadBitmap(wxT("mime/16/cd"));
    images[FileExtManager::TypeBmp] = LoadBitmap(wxT("mime/16/bmp"));
    images[FileExtManager::TypeMakefile] = LoadBitmap(wxT("mime/16/makefile"));
    images[FileExtManager::TypeSourceC] = LoadBitmap(wxT("mime/16/c"));
    images[FileExtManager::TypeSourceCpp] = LoadBitmap(wxT("mime/16/cpp"));
    images[FileExtManager::TypeHeader] = LoadBitmap(wxT("mime/16/h"));
    images[FileExtManager::TypeText] = LoadBitmap(wxT("mime/16/text"));
    images[FileExtManager::TypeScript] = LoadBitmap(wxT("mime/16/script"));
    images[FileExtManager::TypeXml] = LoadBitmap(wxT("mime/16/xml"));
    images[FileExtManager::TypeErd] = LoadBitmap(wxT("mime/16/erd"));
    images[FileExtManager::TypePython] = LoadBitmap(wxT("mime/16/python"));
    images[FileExtManager::TypeCSS] = LoadBitmap(wxT("mime/16/css"));
    images[FileExtManager::TypeJS] = LoadBitmap(wxT("mime/16/javascript"));
    images[FileExtManager::TypeWorkspace] = LoadBitmap(wxT("workspace/16/workspace"));
    images[FileExtManager::TypeWorkspacePHP] = LoadBitmap(wxT("workspace/16/workspace_php"));
    images[FileExtManager::TypeProject] = LoadBitmap(wxT("workspace/16/project"));
    images[FileExtManager::TypeWxCrafter] = LoadBitmap(wxT("mime/16/wxcp"));
    images[FileExtManager::TypeXRC] = LoadBitmap(wxT("mime/16/xml"));
    images[FileExtManager::TypeResource] = LoadBitmap(wxT("mime/16/res"));
    images[FileExtManager::TypeSQL] = LoadBitmap(wxT("mime/16/sql"));
    images[FileExtManager::TypeFolder] = LoadBitmap(wxT("mime/16/folder"));
    images[FileExtManager::TypeProjectActive] = LoadBitmap(wxT("workspace/16/project_active"));
    images[FileExtManager::TypeAsm] = LoadBitmap(wxT("mime/16/asm"));
    images[FileExtManager::TypeCMake] = LoadBitmap(wxT("mime/16/cmake"));
    images[FileExtManager::TypeQMake] = LoadBitmap(wxT("mime/16/qmake"));

    BitmapLoader::BitmapMap_t merged;
    merged.insert(m_userBitmaps.begin(), m_userBitmaps.end());
    merged.insert(images.begin(), images.end());
    return merged;
}