ui/views/fullscreenview/inc/glxcoverflow.h
changeset 55 fb37077c270f
parent 49 f291796e213d
child 61 743eb0b9959e
equal deleted inserted replaced
49:f291796e213d 55:fb37077c270f
    42 
    42 
    43 typedef enum
    43 typedef enum
    44 {
    44 {
    45     TAP_EVENT, //send the signal when user tap on full screen
    45     TAP_EVENT, //send the signal when user tap on full screen
    46     PANNING_START_EVENT, //send the signal when panning of full screen start
    46     PANNING_START_EVENT, //send the signal when panning of full screen start
    47     EMPTY_ROW_EVENT //send the signal when model have no data
    47     EMPTY_ROW_EVENT, //send the signal when model have no data
       
    48     ZOOM_START_EVENT
    48 } GlxCoverFlowEvent;
    49 } GlxCoverFlowEvent;
    49 
    50 
    50 class GlxCoverFlow : public HbWidget
    51 class GlxCoverFlow : public HbWidget
    51 {
    52 {
    52 Q_OBJECT
    53 Q_OBJECT
    57     void setItemSize (QSize &size);
    58     void setItemSize (QSize &size);
    58     void setModel (QAbstractItemModel *model);
    59     void setModel (QAbstractItemModel *model);
    59     void indexChanged (int index);
    60     void indexChanged (int index);
    60     void setUiOn(bool uiOn) { mUiOn = uiOn; }
    61     void setUiOn(bool uiOn) { mUiOn = uiOn; }
    61     void partiallyClean();
    62     void partiallyClean();
    62     void partiallyCreate(QAbstractItemModel *model, QSize itemSize);
    63     void partiallyCreate(QAbstractItemModel *model, QSize itemSize, int posY = 0 );
    63 	void setCoverFlow();
    64 	void setCoverFlow();
    64     void ClearCoverFlow();
    65     void ClearCoverFlow();
    65 	void setMultitouchFilter(QGraphicsItem* multitouchFilter);
    66 	void setMultitouchFilter(QGraphicsItem* multitouchFilter);
       
    67 	
       
    68 	/*
       
    69      * To get the focus index
       
    70      */
       
    71     int getFocusIndex( );
       
    72 
       
    73     /*
       
    74      * To get the full screen icon of the image
       
    75      */
       
    76     HbIcon getIcon( int index );
    66 		    
    77 		    
    67 public slots:
    78 public slots:
    68 	void zoomStarted(int index);
    79 	void zoomStarted(int index);
    69 	void zoomFinished(int index);
    80 	void zoomFinished(int index);
    70 
    81 
   119      * reset all the data of cover flow
   130      * reset all the data of cover flow
   120      */    
   131      */    
   121     void resetCoverFlow();
   132     void resetCoverFlow();
   122     int getSubState();
   133     int getSubState();
   123     void timerEvent(QTimerEvent *event);
   134     void timerEvent(QTimerEvent *event);
   124 
       
   125     /*
       
   126      * To get the focus index
       
   127      */
       
   128     int getFocusIndex( );
       
   129 
       
   130     /*
       
   131      * To get the full screen icon of the image
       
   132      */
       
   133     HbIcon getIcon( int index );
       
   134     
   135     
   135     /*
   136     /*
   136      * To get the URI of the image
   137      * To get the URI of the image
   137      */
   138      */
   138     QString getUri( int index );
   139     QString getUri( int index );
   157     GlxUserMove mMoveDir;
   158     GlxUserMove mMoveDir;
   158     int mSpeed;        
   159     int mSpeed;        
   159 	bool mZoomOn;
   160 	bool mZoomOn;
   160 	QGraphicsItem* mMultitouchFilter;
   161 	QGraphicsItem* mMultitouchFilter;
   161     int mTimerId;
   162     int mTimerId;
       
   163     bool mIsInit;
   162 };
   164 };
   163 
   165 
   164 #endif /* GLXCOVERFLOW_H_ */
   166 #endif /* GLXCOVERFLOW_H_ */