Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

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

enum CUSTOM_CURSOR_TYPE
 

custom cursor types

Enumeration values:
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.

00016 { 00017 CROSS_CURSOR = 0, 00018 00019 MOVE_SELECTION_CURSOR, 00020 MOVE_HOR_CURSOR, 00021 MOVE_VERT_CURSOR, 00022 MOVE_TL_CURSOR, 00023 MOVE_TR_CURSOR, 00024 00025 SCALE_SELECTION_CURSOR, 00026 ROTATE_CURSOR, 00027 00028 TARGET_CURSOR, 00029 00030 DEFAULT_CURSOR, 00031 //----------------- 00032 CUSTOM_CURSOR_COUNT 00033 } CUSTOM_CURSOR_TYPE;


Function Documentation

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(), SplitViewInterface::mouseMoveEvent(), SelectionPlacementInterface::mouseMoveEvent(), HistogramInterface::mouseMoveEvent(), SelectionPlacementInterface::mousePressEvent(), HistogramInterface::mouseReleaseEvent(), and SelectionInterface::updateCursorShape().

00053 { 00054 if( type < 0 || type >= CUSTOM_CURSOR_COUNT ) 00055 return *customCursors[DEFAULT_CURSOR]; 00056 else 00057 return *customCursors[type]; 00058 }

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 }


Generated on Sun Mar 4 19:42:58 2007 for AlbumShaper by doxygen 1.3.7