новые иконки в OpenBoard
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OpenBoard/src/gui/UBResources.cpp

48 lines
1.2 KiB

#include "UBResources.h"
#include <QtGui>
#include "core/UBApplication.h"
UBResources* UBResources::sSingleton = 0;
UBResources::UBResources(QObject* pParent)
: QObject(pParent)
{
// NOOP
}
UBResources::~UBResources()
{
// NOOP
}
UBResources* UBResources::resources()
{
if (!sSingleton)
{
sSingleton = new UBResources(UBApplication::staticMemoryCleaner);
sSingleton->init();
}
return sSingleton;
}
void UBResources::init()
{
// Cursors
penCursor = QCursor(Qt::CrossCursor);
eraserCursor = QCursor(QPixmap(":/images/cursors/eraser.png"), 21, 21);
markerCursor = QCursor(QPixmap(":/images/cursors/marker.png"), 3, 30);
pointerCursor = QCursor(QPixmap(":/images/cursors/laser.png"), 2, 1);
handCursor = QCursor(Qt::OpenHandCursor);
zoomInCursor = QCursor(QPixmap(":/images/cursors/zoomIn.png"), 9, 9);
zoomOutCursor = QCursor(QPixmap(":/images/cursors/zoomOut.png"), 9, 9);
arrowCursor = QCursor(Qt::ArrowCursor);
textCursor = QCursor(Qt::ArrowCursor);
rotateCursor = QCursor(QPixmap(":/images/cursors/rotate.png"), 16, 16);
drawLineRulerCursor = QCursor(QPixmap(":/images/cursors/drawRulerLine.png"), 3, 12);
}