AlbumShaper
1.0a3
|
Go to the source code of this file.
Enumerations | |
enum | CUSTOM_CURSOR_TYPE { CROSS_CURSOR = 0, MOVE_SELECTION_CURSOR, MOVE_HOR_CURSOR, MOVE_VERT_CURSOR, MOVE_TL_CURSOR, MOVE_TR_CURSOR, SCALE_SELECTION_CURSOR, ROTATE_CURSOR, TARGET_CURSOR, DEFAULT_CURSOR, CUSTOM_CURSOR_COUNT } |
custom cursor types More... | |
Functions | |
void | loadCursors () |
const QCursor & | getCursor (CUSTOM_CURSOR_TYPE type) |
enum CUSTOM_CURSOR_TYPE |
custom cursor types
CROSS_CURSOR | |
MOVE_SELECTION_CURSOR | |
MOVE_HOR_CURSOR | |
MOVE_VERT_CURSOR | |
MOVE_TL_CURSOR | |
MOVE_TR_CURSOR | |
SCALE_SELECTION_CURSOR | |
ROTATE_CURSOR | |
TARGET_CURSOR | |
DEFAULT_CURSOR | |
CUSTOM_CURSOR_COUNT |
Definition at line 15 of file cursors.h.
{ CROSS_CURSOR = 0, MOVE_SELECTION_CURSOR, MOVE_HOR_CURSOR, MOVE_VERT_CURSOR, MOVE_TL_CURSOR, MOVE_TR_CURSOR, SCALE_SELECTION_CURSOR, ROTATE_CURSOR, TARGET_CURSOR, DEFAULT_CURSOR, //----------------- CUSTOM_CURSOR_COUNT } CUSTOM_CURSOR_TYPE;
const QCursor& getCursor | ( | CUSTOM_CURSOR_TYPE | type | ) |
Definition at line 52 of file cursors.cpp.
References CUSTOM_CURSOR_COUNT, customCursors, and DEFAULT_CURSOR.
Referenced by HistogramInterface::HistogramInterface(), SelectionPlacementInterface::mouseMoveEvent(), SplitViewInterface::mouseMoveEvent(), HistogramInterface::mouseMoveEvent(), SelectionPlacementInterface::mousePressEvent(), HistogramInterface::mouseReleaseEvent(), and SelectionInterface::updateCursorShape().
{ if( type < 0 || type >= CUSTOM_CURSOR_COUNT ) return *customCursors[DEFAULT_CURSOR]; else return *customCursors[type]; }
void loadCursors | ( | ) |
Definition at line 34 of file cursors.cpp.
References CROSS_CURSOR, customCursors, DEFAULT_CURSOR, MOVE_HOR_CURSOR, MOVE_SELECTION_CURSOR, MOVE_TL_CURSOR, MOVE_TR_CURSOR, MOVE_VERT_CURSOR, ROTATE_CURSOR, SCALE_SELECTION_CURSOR, and TARGET_CURSOR.
Referenced by main().
{ customCursors[CROSS_CURSOR] = new QCursor( QPixmap( (const char**)crossCursor_xpm)); customCursors[MOVE_SELECTION_CURSOR] = new QCursor( QPixmap( (const char**)moveSelectionCursor_xpm)); customCursors[MOVE_HOR_CURSOR] = new QCursor( QPixmap( (const char**)moveHorCursor_xpm)); customCursors[MOVE_VERT_CURSOR] = new QCursor( QPixmap( (const char**)moveVertCursor_xpm)); customCursors[MOVE_TL_CURSOR] = new QCursor( QPixmap( (const char**)moveTLCursor_xpm)); customCursors[MOVE_TR_CURSOR] = new QCursor( QPixmap( (const char**)moveTRCursor_xpm)); customCursors[SCALE_SELECTION_CURSOR] = new QCursor( QPixmap( (const char**)scaleSelectionCursor_xpm)); customCursors[ROTATE_CURSOR] = new QCursor( QPixmap( (const char**)rotateCursor_xpm)); customCursors[TARGET_CURSOR] = new QCursor( QPixmap( (const char**)targetCursor_xpm)); customCursors[DEFAULT_CURSOR] = new QCursor( Qt::ArrowCursor ); }