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