Commit 9252a3ae authored by Tobias Hunger's avatar Tobias Hunger
Browse files

CMake: Add fileoverlay icons for cmake project files



Change-Id: Id9b8aa9b1902e6f88ca4e8bde2e5f20281a77437
Reviewed-by: Tobias Hunger's avatarTobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Alessandro Portale's avatarAlessandro Portale <alessandro.portale@qt.io>
parent 39e2c013
<RCC>
<qresource prefix="/cmakeproject">
<file>CMakeProjectManager.mimetypes.xml</file>
<file>images/fileoverlay_cmake.png</file>
<file>images/fileoverlay_cmake@2x.png</file>
</qresource>
</RCC>
......@@ -54,5 +54,8 @@ const char CMAKE_SETTINGSPAGE_ID[] = "Z.CMake";
// Snippets
const char CMAKE_SNIPPETS_GROUP_ID[] = "CMake";
// Icons
const char FILEOVERLAY_CMAKE[] = ":/cmakeproject/images/fileoverlay_cmake.png";
} // namespace Constants
} // namespace CMakeProjectManager
......@@ -37,9 +37,11 @@
#include "cmaketoolmanager.h"
#include "cmakekitinformation.h"
#include <utils/mimetypes/mimedatabase.h>
#include <coreplugin/fileiconprovider.h>
#include <projectexplorer/kitmanager.h>
#include <utils/mimetypes/mimedatabase.h>
using namespace CMakeProjectManager::Internal;
bool CMakeProjectPlugin::initialize(const QStringList & /*arguments*/, QString *errorMessage)
......@@ -47,6 +49,9 @@ bool CMakeProjectPlugin::initialize(const QStringList & /*arguments*/, QString *
Q_UNUSED(errorMessage)
Utils::MimeDatabase::addMimeTypes(QLatin1String(":cmakeproject/CMakeProjectManager.mimetypes.xml"));
Core::FileIconProvider::registerIconOverlayForSuffix(Constants::FILEOVERLAY_CMAKE, "cmake");
Core::FileIconProvider::registerIconOverlayForFilename(Constants::FILEOVERLAY_CMAKE, "CMakeLists.txt");
addAutoReleasedObject(new Internal::CMakeSnippetProvider);
addAutoReleasedObject(new CMakeSettingsPage);
addAutoReleasedObject(new CMakeManager);
......
......@@ -6764,6 +6764,39 @@
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccccc" />
</g>
<g
id="src/plugins/cmakeprojectmanager/images/fileoverlay_cmake">
<rect
style="fill:none"
id="rect6843-2-6"
width="16"
height="16"
x="192"
y="520" />
<path
d="m 197,535 5,-9.5 5,9.5 z"
id="path5434"
inkscape:connector-curvature="0"
style="fill:#ffffff;fill-opacity:0.74901961;stroke:#ffffff;stroke-width:2;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:0.74901961" />
<path
sodipodi:nodetypes="cccc"
inkscape:connector-curvature="0"
id="path4544"
d="M 202.70313,533.34375 207,535 l -5,-9.5 z"
style="fill:#ce3434;fill-opacity:1" />
<path
sodipodi:nodetypes="cccc"
inkscape:connector-curvature="0"
id="path4544-6"
d="M 202.46673,530.56042 202,525.5 197,535 Z"
style="fill:#4a4bd0;fill-opacity:1" />
<path
sodipodi:nodetypes="cccc"
inkscape:connector-curvature="0"
id="path4544-6-2"
d="M 200.23323,532.37183 197,535 l 10,0 z"
style="fill:#0dbf0d;fill-opacity:1" />
</g>
<g
transform="translate(-48,32)"
id="src/plugins/baremetal/images/baremetaldevice">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment