AlbumShaper  1.0a3
Enumerations | Functions
cursors.h File Reference
This graph shows which files directly or indirectly include this file:

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)
 

Enumeration Type Documentation

◆ CUSTOM_CURSOR_TYPE

custom cursor types

Enumerator
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.

16 {
17  CROSS_CURSOR = 0,
18 
24 
27 
29 
31  //-----------------
CUSTOM_CURSOR_TYPE
custom cursor types
Definition: cursors.h:16
@ SCALE_SELECTION_CURSOR
Definition: cursors.h:25
@ MOVE_TR_CURSOR
Definition: cursors.h:23
@ DEFAULT_CURSOR
Definition: cursors.h:30
@ ROTATE_CURSOR
Definition: cursors.h:26
@ MOVE_VERT_CURSOR
Definition: cursors.h:21
@ TARGET_CURSOR
Definition: cursors.h:28
@ MOVE_HOR_CURSOR
Definition: cursors.h:20
@ CUSTOM_CURSOR_COUNT
Definition: cursors.h:32
@ MOVE_TL_CURSOR
Definition: cursors.h:22
@ CROSS_CURSOR
Definition: cursors.h:17
@ MOVE_SELECTION_CURSOR
Definition: cursors.h:19

Function Documentation

◆ getCursor()

const QCursor& getCursor ( CUSTOM_CURSOR_TYPE  type)

◆ loadCursors()

void loadCursors ( )

Definition at line 34 of file cursors.cpp.

35 {
36  customCursors[CROSS_CURSOR] = new QCursor( QPixmap( (const char**)crossCursor_xpm));
37 
38  customCursors[MOVE_SELECTION_CURSOR] = new QCursor( QPixmap( (const char**)moveSelectionCursor_xpm));
39  customCursors[MOVE_HOR_CURSOR] = new QCursor( QPixmap( (const char**)moveHorCursor_xpm));
40  customCursors[MOVE_VERT_CURSOR] = new QCursor( QPixmap( (const char**)moveVertCursor_xpm));
41  customCursors[MOVE_TL_CURSOR] = new QCursor( QPixmap( (const char**)moveTLCursor_xpm));
42  customCursors[MOVE_TR_CURSOR] = new QCursor( QPixmap( (const char**)moveTRCursor_xpm));
43 
44  customCursors[SCALE_SELECTION_CURSOR] = new QCursor( QPixmap( (const char**)scaleSelectionCursor_xpm));
45  customCursors[ROTATE_CURSOR] = new QCursor( QPixmap( (const char**)rotateCursor_xpm));
46 
47  customCursors[TARGET_CURSOR] = new QCursor( QPixmap( (const char**)targetCursor_xpm));
48 
49  customCursors[DEFAULT_CURSOR] = new QCursor( Qt::ArrowCursor );
50 }

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().