RedPanda-CPP/RedPandaIDE/iconsmanager.h

37 lines
705 B
C
Raw Normal View History

#ifndef ICONSMANAGER_H
#define ICONSMANAGER_H
#include <QObject>
#include <QPixmap>
#include <memory>
using PIcon = std::shared_ptr<QPixmap>;
class IconsManager : public QObject
{
Q_OBJECT
public:
explicit IconsManager(QObject *parent = nullptr);
const PIcon &syntaxError() const;
const PIcon &syntaxWarning() const;
const PIcon &breakpoint() const;
const PIcon &activeBreakpoint() const;
2021-10-21 17:31:25 +08:00
const PIcon &bookmark() const;
const PIcon &folder() const;
private:
PIcon mSyntaxError;
PIcon mSyntaxWarning;
PIcon mBreakpoint;
2021-07-26 00:22:08 +08:00
PIcon mActiveBreakpoint;
2021-10-21 17:31:25 +08:00
PIcon mBookmark;
PIcon mFolder;
};
extern IconsManager* pIconsManager;
#endif // ICONSMANAGER_H