RedPanda-CPP/RedPandaIDE/iconsmanager.cpp

39 lines
923 B
C++
Raw Normal View History

#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");
}
PIcon IconsManager::syntaxError() const
{
return mSyntaxError;
}
PIcon IconsManager::syntaxWarning() const
{
return mSyntaxWarning;
}
PIcon IconsManager::breakpoint() const
{
return mBreakpoint;
}
2021-07-26 00:22:08 +08:00
PIcon IconsManager::activeBreakpoint() const
{
2021-07-26 00:22:08 +08:00
return mActiveBreakpoint;
}
2021-10-21 17:31:25 +08:00
const PIcon &IconsManager::bookmark() const
{
return mBookmark;
}