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(); |