ui/viewmanagement/viewmanager/inc/glxmenumanager.h
changeset 26 c499df2dbb33
parent 24 99ad1390cd33
child 50 a0f57508af73
child 55 fb37077c270f
equal deleted inserted replaced
24:99ad1390cd33 26:c499df2dbb33
    20 class HbMenu;
    20 class HbMenu;
    21 class QAbstractItemModel;
    21 class QAbstractItemModel;
    22 class QAction;
    22 class QAction;
    23 class HbMainWindow;
    23 class HbMainWindow;
    24 
    24 
       
    25 
    25 //Grid view option menu
    26 //Grid view option menu
    26 enum {
    27 enum {
    27    GlxGridViewSend,
    28    GlxGridViewSend,
    28    GlxGridViewSlideShow,
    29    GlxGridViewSlideShow,
    29    GlxGridViewAddToAlbum,
    30    GlxGridViewAddToAlbum,
    41     void createMarkingModeMenu(HbMenu* menu);
    42     void createMarkingModeMenu(HbMenu* menu);
    42     void ShowItemSpecificMenu(qint32 viewId,QPointF pos);
    43     void ShowItemSpecificMenu(qint32 viewId,QPointF pos);
    43     void setModel(QAbstractItemModel *model) { mModel = model ; }
    44     void setModel(QAbstractItemModel *model) { mModel = model ; }
    44     void addMenu(qint32 viewId, HbMenu* menu);
    45     void addMenu(qint32 viewId, HbMenu* menu);
    45     void removeMenu(qint32 viewId, HbMenu* menu);
    46     void removeMenu(qint32 viewId, HbMenu* menu);
       
    47     void disableAction(HbMenu* menu,bool disable);
    46     
    48     
    47 signals :
    49 signals :
    48     void commandTriggered(qint32 commandId);
    50     void commandTriggered(qint32 commandId);
    49     
    51     
    50 private:
    52 private:
    56 
    58 
    57 private slots:
    59 private slots:
    58     void menuItemSelected();
    60     void menuItemSelected();
    59     void updateGridMenu();
    61     void updateGridMenu();
    60     void updateFullscreenMenu();
    62     void updateFullscreenMenu();
       
    63     void closeContextMenu();
    61     
    64     
    62 private:
    65 private:
    63     QAbstractItemModel *mModel; //It should point to current view model
    66     QAbstractItemModel *mModel; //It should point to current view model
    64 	HbMainWindow* mMainWindow;
    67 	HbMainWindow* mMainWindow;
       
    68 	HbMenu *mContextMenu;
       
    69 	HbMenu* mSubMenu;
    65 };
    70 };