示例#1
0
wxIcon* IconGetter::GetFolderItemIcon(const wxString& filePath, int iconSize) {
  if (wxFileName::DirExists(filePath)) {
    return GetFolderIcon(filePath, iconSize);
  } else {
    wxFileName filename(filePath);

    if ((filename.GetExt().CmpNoCase(wxT("exe")) == 0) || (filename.GetExt().CmpNoCase(wxT("ico")) == 0)) {
      return GetExecutableIcon(filePath, iconSize);
    } else {
      return GetDocumentIcon(filePath, iconSize);
    }
  }

  return NULL;
}
示例#2
0
wxImageList* Resources::GetTreeListIconList() {
  static wxImageList* icons = NULL;
  if (icons == NULL) {
    icons = new wxImageList(
        GetModuleIcon().GetWidth(),
        GetModuleIcon().GetHeight(),
        true, ICON_COUNT);
    // Important: Keep in sync with TreeListIconID enum.
    icons->Add(GetModuleIcon());
    icons->Add(GetFolderIcon());
    icons->Add(GetTypeIcon());
    icons->Add(GetFunctionIcon());
    icons->Add(GetVariableIcon());
    icons->Add(GetAliasIcon());
    icons->Add(GetConstantIcon());
    icons->Add(GetTyperefIcon());
    icons->Add(GetMetaIcon());
    icons->Add(GetDebugIcon());
  }
  return icons;
}
示例#3
0
文件: code.cpp 项目: Astade/Astade
Add(wxS("class"), AstadeIcons::GetClassIcon());
Add(wxS("component"), GetComponentIcon());
Add(wxS("composition"), GetCompositionIcon());
Add(wxS("incomposition"), wxBitmap(GetCompositionIcon().ConvertToImage().Mirror(false)));
Add(wxS("configuration"), GetConfigurationIcon());
Add(wxS("const"), GetConstIcon());
Add(wxS("constraint"), GetConstraintIcon());
Add(wxS("constructor"), GetConstructorIcon());
Add(wxS("containundocumented"), GetContainUndocumentedIcon());
Add(wxS("connection"), GetConnectionIcon());
Add(CODE_CPlusPlus, GetCppIcon());
Add(wxS("deprecated"), GetDeprecatedIcon());
Add(wxS("destructor"), GetDestructorIcon());
Add(wxS("doxygen"), GetDoxygenIcon());
Add(wxS("file"), GetFileIcon());
Add(wxS("folder"), GetFolderIcon());
Add(wxS("generalisation"), GetGeneralisationIcon());
Add(wxS("ingeneralisation"), wxBitmap(GetGeneralisationIcon().ConvertToImage().Mirror(false)));
Add(wxS("h"), GetHIcon());
Add(wxS("if"), GetIfIcon());
Add(wxS("inline"), GetInlineIcon());
Add(wxS("internaltransition"), GetInternaltransitionIcon());
Add(wxS("isundocumented"), GetIsUndocumentedIcon());
Add(CODE_JAVA, GetJavaIcon());
Add(wxS("lib"), GetLibIcon());
Add(wxS("loading"), GetLoadingIcon());
Add(wxS("make"), GetMakeIcon());
Add(wxS("manual"), GetManualIcon());
Add(wxS("model"), GetModelIcon());
Add(wxS("namespace"), GetNamespaceIcon());
Add(wxS("operation"), GetOperationIcon());