ui/viewmanagement/viewmanager/inc/glxmenumanager.h
changeset 50 a0f57508af73
parent 26 c499df2dbb33
child 54 0f0f3f26f787
equal deleted inserted replaced
45:863223ea6961 50:a0f57508af73
    19 
    19 
    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 class GlxSettingInterface;
    24 
    25 
    25 
    26 
    26 //Grid view option menu
    27 //Grid view option menu
    27 enum {
    28 enum {
    28    GlxGridViewSend,
    29    GlxGridViewSend,
    29    GlxGridViewSlideShow,
    30    GlxGridViewSlideShow,
    30    GlxGridViewAddToAlbum,
    31    GlxGridViewAddToAlbum,
    31    GlxGridViewRemoveFromAlbum,
    32    GlxGridViewRemoveFromAlbum,
    32    GlxGridViewDelete
    33    GlxGridViewDelete,
       
    34    GlxGridView3DEffect
    33 };
    35 };
    34 
    36 
    35 class GlxMenuManager : public QObject
    37 class GlxMenuManager : public QObject
    36 {
    38 {
    37 Q_OBJECT
    39 Q_OBJECT
    38 
    40 
    39 public :
    41 public :
    40 	GlxMenuManager(HbMainWindow* mainWindow);
    42 	GlxMenuManager( HbMainWindow* mainWindow );
    41 	~GlxMenuManager();
    43 	~GlxMenuManager();
    42     void createMarkingModeMenu(HbMenu* menu);
    44     void createMarkingModeMenu( HbMenu* menu );
    43     void ShowItemSpecificMenu(qint32 viewId,QPointF pos);
    45     void ShowItemSpecificMenu( qint32 viewId,QPointF pos );
    44     void setModel(QAbstractItemModel *model) { mModel = model ; }
    46     void setModel( QAbstractItemModel *model ) { mModel = model ; }
    45     void addMenu(qint32 viewId, HbMenu* menu);
    47     void addMenu( qint32 viewId, HbMenu* menu );
    46     void removeMenu(qint32 viewId, HbMenu* menu);
    48     void removeMenu( qint32 viewId, HbMenu* menu );
    47     void disableAction(HbMenu* menu,bool disable);
    49     void disableAction( HbMenu* menu,bool disable );
    48     
    50     
    49 signals :
    51 signals :
    50     void commandTriggered(qint32 commandId);
    52     void commandTriggered( qint32 commandId );
    51     
    53     
    52 private:
    54 private:
    53     void CreateGridMenu(HbMenu* menu);
    55     void CreateGridMenu( HbMenu* menu );
    54     void CreateListMenu(HbMenu* menu);
    56     void CreateListMenu( HbMenu* menu );
    55     void CreateFullscreenMenu(HbMenu* menu);
    57     void CreateFullscreenMenu( HbMenu* menu );
       
    58     void createSlideShowMenu( HbMenu* menu );
    56     void setAllActionVisibility( QList<QAction*> actionList, bool visible );
    59     void setAllActionVisibility( QList<QAction*> actionList, bool visible );
    57     int  viewSubState();
    60     int  viewSubState();
    58 
    61 
    59 private slots:
    62 private slots:
    60     void menuItemSelected();
    63     void menuItemSelected();
    65 private:
    68 private:
    66     QAbstractItemModel *mModel; //It should point to current view model
    69     QAbstractItemModel *mModel; //It should point to current view model
    67 	HbMainWindow* mMainWindow;
    70 	HbMainWindow* mMainWindow;
    68 	HbMenu *mContextMenu;
    71 	HbMenu *mContextMenu;
    69 	HbMenu* mSubMenu;
    72 	HbMenu* mSubMenu;
       
    73 	HbMenu* m3DEffectSubMenu;
       
    74 	GlxSettingInterface *mSettings;
    70 };
    75 };