2021-06-24 16:05:19 +08:00
|
|
|
#include "iconsmanager.h"
|
|
|
|
|
|
|
|
IconsManager* pIconsManager;
|
|
|
|
|
|
|
|
IconsManager::IconsManager(QObject *parent) : QObject(parent)
|
|
|
|
{
|
|
|
|
mSyntaxError = std::make_shared<QPixmap>(":/icons/images/editor/syntaxerror.png");
|
|
|
|
mSyntaxWarning = std::make_shared<QPixmap>(":/icons/images/editor/syntaxwarning.png");
|
|
|
|
mBreakpoint = std::make_shared<QPixmap>(":/icons/images/editor/breakpoint.png");
|
2021-07-26 00:22:08 +08:00
|
|
|
mActiveBreakpoint = std::make_shared<QPixmap>(":/icons/images/editor/currentline.png");
|
2021-10-21 17:31:25 +08:00
|
|
|
mBookmark = std::make_shared<QPixmap>(":/icons/images/editor/bookmark.png");
|
2021-10-23 23:10:34 +08:00
|
|
|
mFolder = std::make_shared<QPixmap>(":/icons/images/newlook24/090-explorer.png");
|
2021-06-24 16:05:19 +08:00
|
|
|
}
|
|
|
|
|
2021-10-23 23:10:34 +08:00
|
|
|
const PIcon &IconsManager::syntaxError() const
|
2021-06-24 16:05:19 +08:00
|
|
|
{
|
|
|
|
return mSyntaxError;
|
|
|
|
}
|
|
|
|
|
2021-10-23 23:10:34 +08:00
|
|
|
const PIcon &IconsManager::syntaxWarning() const
|
2021-06-24 16:05:19 +08:00
|
|
|
{
|
|
|
|
return mSyntaxWarning;
|
|
|
|
}
|
|
|
|
|
2021-10-23 23:10:34 +08:00
|
|
|
const PIcon &IconsManager::breakpoint() const
|
2021-06-24 16:05:19 +08:00
|
|
|
{
|
|
|
|
return mBreakpoint;
|
|
|
|
}
|
|
|
|
|
2021-10-23 23:10:34 +08:00
|
|
|
const PIcon &IconsManager::activeBreakpoint() const
|
2021-06-24 16:05:19 +08:00
|
|
|
{
|
2021-07-26 00:22:08 +08:00
|
|
|
return mActiveBreakpoint;
|
2021-06-24 16:05:19 +08:00
|
|
|
}
|
2021-10-21 17:31:25 +08:00
|
|
|
|
|
|
|
const PIcon &IconsManager::bookmark() const
|
|
|
|
{
|
|
|
|
return mBookmark;
|
|
|
|
}
|
2021-10-23 23:10:34 +08:00
|
|
|
|
|
|
|
const PIcon &IconsManager::folder() const
|
|
|
|
{
|
|
|
|
return mFolder;
|
|
|
|
}
|