ui/views/viewbase/inc/glxview.h
changeset 50 a0f57508af73
parent 45 863223ea6961
child 54 0f0f3f26f787
equal deleted inserted replaced
45:863223ea6961 50:a0f57508af73
    35 class GlxView :public HbView
    35 class GlxView :public HbView
    36 {
    36 {
    37 Q_OBJECT
    37 Q_OBJECT
    38     
    38     
    39 public :
    39 public :
    40     GlxView(qint32 id, QGraphicsItem *parent = 0 );
    40     GlxView( qint32 id, QGraphicsItem *parent = 0 );
    41     virtual void activate() = 0;
    41     virtual void activate() = 0;
    42     virtual void deActivate() = 0;
    42     virtual void deActivate() = 0;
    43     virtual void setModel(QAbstractItemModel *model) = 0;
    43     virtual void setModel( QAbstractItemModel *model ) = 0;
    44 
    44 
    45     virtual bool compare (qint32 id);
    45     virtual bool compare ( qint32 id );
    46     virtual void addToolBar( HbToolBar *toolBar ) { Q_UNUSED(toolBar) }
    46     virtual void addToolBar( HbToolBar *toolBar ) { Q_UNUSED(toolBar) }
    47     virtual void enableMarking() { }
    47     virtual void enableMarking() { }
    48     virtual void disableMarking() { }
    48     virtual void disableMarking() { }
    49     virtual void handleUserAction(qint32 commandId) { Q_UNUSED(commandId) }
    49     virtual void handleUserAction( qint32 commandId ) { Q_UNUSED(commandId) }
    50     virtual QItemSelectionModel * getSelectionModel() { return NULL ; }
    50     virtual QItemSelectionModel * getSelectionModel() { return NULL ; }
    51     virtual void resetView() {}
    51     virtual void resetView() {}
    52     virtual void initializeView(QAbstractItemModel *model) {Q_UNUSED(model)}
    52     /*
       
    53      * model - Model to retreive the initial set up data
       
    54      * preView - previous view pointer to retrieve the mode , state information 
       
    55      */
       
    56     virtual void initializeView( QAbstractItemModel *model, GlxView *preView ) 
       
    57     {
       
    58         Q_UNUSED( model )
       
    59         Q_UNUSED( preView )
       
    60     }
       
    61      
    53     inline qint32 viewId() { return mId;}
    62     inline qint32 viewId() { return mId;}
    54     QSize screenSize();
    63     QSize screenSize();
    55     QRect screenGeometry(); 
    64     QRect screenGeometry(); 
    56     virtual QGraphicsItem * getAnimationItem( GlxEffect transtionEffect ); 
    65     virtual QGraphicsItem * getAnimationItem( GlxEffect transtionEffect ); 
    57     virtual ~GlxView() {   }   
    66     virtual ~GlxView() {   }   
    58 	
    67 	
    59 signals:
    68 signals:
    60     void actionTriggered(qint32 id);
    69     void actionTriggered( qint32 id );
    61     void itemSpecificMenuTriggered(qint32,QPointF );
    70     void itemSpecificMenuTriggered( qint32,QPointF );
    62     void gridItemSelected(const QModelIndex &);
    71     void gridItemSelected( const QModelIndex &);   
    63    
       
    64     
    72     
    65 private :
    73 private :
    66 	qint32 mId;	
    74 	qint32 mId;	
    67 };
    75 };
    68 
    76