ui/viewmanagement/viewmanager/inc/glxmenumanager.h
changeset 55 fb37077c270f
parent 26 c499df2dbb33
equal deleted inserted replaced
49:f291796e213d 55:fb37077c270f
    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
       
    35 };
       
    36 
       
    37 //Fullscreen view option menu
       
    38 enum {
       
    39    GlxFullScreenViewSend,
       
    40    GlxFullScreenViewSlideShow,
       
    41 #ifndef __WINSCW__
       
    42    GlxFullScreenViewUseImage,
       
    43    GlxFullScreenViewMenuRotate,
       
    44    GlxFullScreenViewCrop,
       
    45 #endif
       
    46    GlxFullScreenViewAddToAlbum,
       
    47    GlxFullScreenViewRemoveoAlbum
    33 };
    48 };
    34 
    49 
    35 class GlxMenuManager : public QObject
    50 class GlxMenuManager : public QObject
    36 {
    51 {
    37 Q_OBJECT
    52 Q_OBJECT
    38 
    53 
    39 public :
    54 public :
    40 	GlxMenuManager(HbMainWindow* mainWindow);
    55 	GlxMenuManager( HbMainWindow* mainWindow );
    41 	~GlxMenuManager();
    56 	~GlxMenuManager();
    42     void createMarkingModeMenu(HbMenu* menu);
    57     void createMarkingModeMenu( HbMenu* menu );
    43     void ShowItemSpecificMenu(qint32 viewId,QPointF pos);
    58     void ShowItemSpecificMenu( qint32 viewId,QPointF pos );
    44     void setModel(QAbstractItemModel *model) { mModel = model ; }
    59     void setModel( QAbstractItemModel *model ) { mModel = model ; }
    45     void addMenu(qint32 viewId, HbMenu* menu);
    60     void addMenu( qint32 viewId, HbMenu* menu );
    46     void removeMenu(qint32 viewId, HbMenu* menu);
    61     void removeMenu( qint32 viewId, HbMenu* menu );
    47     void disableAction(HbMenu* menu,bool disable);
    62     void disableAction( HbMenu* menu,bool disable );
    48     
    63     
    49 signals :
    64 signals :
    50     void commandTriggered(qint32 commandId);
    65     void commandTriggered( qint32 commandId );
    51     
    66     
    52 private:
    67 private:
    53     void CreateGridMenu(HbMenu* menu);
    68     void CreateGridMenu( HbMenu* menu );
    54     void CreateListMenu(HbMenu* menu);
    69     void CreateListMenu( HbMenu* menu );
    55     void CreateFullscreenMenu(HbMenu* menu);
    70     void CreateFullscreenMenu( HbMenu* menu );
       
    71     void createSlideShowMenu( HbMenu* menu );
    56     void setAllActionVisibility( QList<QAction*> actionList, bool visible );
    72     void setAllActionVisibility( QList<QAction*> actionList, bool visible );
    57     int  viewSubState();
    73     int  viewSubState();
    58 
    74 
    59 private slots:
    75 private slots:
    60     void menuItemSelected();
    76     void menuItemSelected();
    65 private:
    81 private:
    66     QAbstractItemModel *mModel; //It should point to current view model
    82     QAbstractItemModel *mModel; //It should point to current view model
    67 	HbMainWindow* mMainWindow;
    83 	HbMainWindow* mMainWindow;
    68 	HbMenu *mContextMenu;
    84 	HbMenu *mContextMenu;
    69 	HbMenu* mSubMenu;
    85 	HbMenu* mSubMenu;
       
    86 	HbMenu* m3DEffectSubMenu;
       
    87 	HbMenu* mRotateSubMenu;
       
    88 	HbMenu* mUseImgSubMenu;
       
    89 	GlxSettingInterface *mSettings;
    70 };
    90 };