ui/views/gridview/inc/glxgridview.h
changeset 70 a91aa46552be
parent 55 fb37077c270f
equal deleted inserted replaced
67:199e6e1e0b54 70:a91aa46552be
    69     void clearCurrentModel();
    69     void clearCurrentModel();
    70     //add the connection to the model
    70     //add the connection to the model
    71     void initializeNewModel();
    71     void initializeNewModel();
    72     void showAlbumTitle(QString aTitle);
    72     void showAlbumTitle(QString aTitle);
    73     void populated();
    73     void populated();
       
    74     
       
    75     /**
       
    76      * rowsInserted() - call back of new row inserted in the model.
       
    77      */    
       
    78     void rowsInserted();
       
    79     
       
    80     /**
       
    81      * rowsRemoved() - call back of new row removed in the model.
       
    82      */    
       
    83     void rowsRemoved( );
       
    84     
       
    85     /**
       
    86      * rowsRemoved() - call back to handle the user action in album grid view toolbar.
       
    87      */ 
       
    88     void handleToolBarAction();    
    74 
    89 
    75 protected :
    90 protected :
    76    
    91    
    77 
    92 
    78 private slots:
    93 private slots:
    91     void showNoImageString();
   106     void showNoImageString();
    92     
   107     
    93     //It is used to hide and show the toolbar
   108     //It is used to hide and show the toolbar
    94     //In album grid it is not required to show the tool bar
   109     //In album grid it is not required to show the tool bar
    95     void updateToolBar();
   110     void updateToolBar();
       
   111 	
       
   112 	/**
       
   113      * createAlbumGridToolBar() - Create a new album grid view toolbar.
       
   114      */ 
       
   115     void createAlbumGridToolBar();
    96 
   116 
    97 	HbMainWindow        *mWindow;          // no ownership
   117 	HbMainWindow        *mWindow;          // no ownership
    98 	QAbstractItemModel  *mModel ;
   118 	QAbstractItemModel  *mModel ;
    99 	HgGrid              *mWidget;          // HG Grid Widget
   119 	HgGrid              *mWidget;          // HG Grid Widget
   100 	QItemSelectionModel *mSelectionModel;  // Selected items model
   120 	QItemSelectionModel *mSelectionModel;  // Selected items model
   108     HbLabel             *mMarkCountLabel;      // Marked item count
   128     HbLabel             *mMarkCountLabel;      // Marked item count
   109     HbLabel             *mZeroItemLabel;   // zero itemcount
   129     HbLabel             *mZeroItemLabel;   // zero itemcount
   110     HbGroupBox          *mAlbumNameHeading;
   130     HbGroupBox          *mAlbumNameHeading;
   111     QGraphicsLinearLayout *mMarkContainer;
   131     QGraphicsLinearLayout *mMarkContainer;
   112     GlxSettingInterface *mSettings;    
   132     GlxSettingInterface *mSettings;    
   113     HbWidget *mMarkingWidget;
   133     HbWidget            *mMarkingWidget;
       
   134     HbToolBar           *mToolBar;   //This toolbar is used for album grid
       
   135     //no ownership only pointed to the current toolbar, this view have three toolbar
       
   136     //View manager has ownership of two tool bar and above one is ownership by itself.
       
   137     // This variable is required to tackle the complexity of these three tool bar
       
   138     HbToolBar           *mCurrentToolBar;  
   114 };
   139 };
   115 
   140 
   116 #endif /* GLXGRIDVIEW_H_ */
   141 #endif /* GLXGRIDVIEW_H_ */