cursors.cpp File Reference

#include <qcursor.h>
#include <qpixmap.h>
#include "cursors.h"
Include dependency graph for cursors.cpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void loadCursors ()
const QCursor & getCursor (CUSTOM_CURSOR_TYPE type)

Variables

QCursor ** customCursors = new QCursor*[CUSTOM_CURSOR_COUNT]

Function Documentation

const QCursor& getCursor ( CUSTOM_CURSOR_TYPE  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().

00035 {
00036   customCursors[CROSS_CURSOR]           = new QCursor( QPixmap( (const char**)crossCursor_xpm));                              
00037 
00038   customCursors[MOVE_SELECTION_CURSOR]  = new QCursor( QPixmap( (const char**)moveSelectionCursor_xpm));                              
00039   customCursors[MOVE_HOR_CURSOR]        = new QCursor( QPixmap( (const char**)moveHorCursor_xpm));                              
00040   customCursors[MOVE_VERT_CURSOR]       = new QCursor( QPixmap( (const char**)moveVertCursor_xpm));                              
00041   customCursors[MOVE_TL_CURSOR]         = new QCursor( QPixmap( (const char**)moveTLCursor_xpm));                              
00042   customCursors[MOVE_TR_CURSOR]         = new QCursor( QPixmap( (const char**)moveTRCursor_xpm));                              
00043 
00044   customCursors[SCALE_SELECTION_CURSOR] = new QCursor( QPixmap( (const char**)scaleSelectionCursor_xpm));                              
00045   customCursors[ROTATE_CURSOR]          = new QCursor( QPixmap( (const char**)rotateCursor_xpm));                              
00046 
00047   customCursors[TARGET_CURSOR]          = new QCursor( QPixmap( (const char**)targetCursor_xpm));                              
00048 
00049   customCursors[DEFAULT_CURSOR]         = new QCursor( Qt::ArrowCursor );
00050 }


Variable Documentation

QCursor** customCursors = new QCursor*[CUSTOM_CURSOR_COUNT]

Definition at line 32 of file cursors.cpp.

Referenced by getCursor(), and loadCursors().

Generated on Sun Dec 5 14:44:54 2010 for AlbumShaper by  doxygen 1.6.3