23 |
23 |
24 |
24 |
25 // SYSTEM INCLUDES |
25 // SYSTEM INCLUDES |
26 #include <AknDialog.h> |
26 #include <AknDialog.h> |
27 |
27 |
|
28 #include <alf/alfscreenbuffer.h> |
28 #include <glximgvwrmetadatacontainer.h> |
29 #include <glximgvwrmetadatacontainer.h> |
29 |
30 // FORWARD DECLARATIONS |
|
31 class CGlxMetadataCommandHandler; |
|
32 class CGlxCommandHandlerAddToContainer; |
|
33 class CGlxUiUtility; |
30 |
34 |
31 // CLASS DECLARATION |
35 // CLASS DECLARATION |
32 /** |
36 /** |
33 * CGlxImgVwrMetadataDialog |
37 * CGlxImgVwrMetadataDialog |
34 * |
38 * |
35 * Image Viewer Metadata dialog implementation |
39 * Metadata dialog implementation |
36 */ |
40 */ |
37 class CGlxImgVwrMetadataDialog : public CAknDialog |
41 class CGlxImgVwrMetadataDialog : public CAknDialog |
|
42 |
38 { |
43 { |
39 public: |
44 public: // Constructors and destructor |
40 // Constructors and destructor |
|
41 |
45 |
42 /** |
46 /** |
43 * Two-phased constructor. |
47 * Two-phased constructor. |
44 * |
48 * |
45 * @param aURI uri or file name of item |
49 * @param aURI uri or file name of item |
46 */ |
50 */ |
47 IMPORT_C static CGlxImgVwrMetadataDialog* NewL(const TDesC& aUri); |
51 IMPORT_C static CGlxImgVwrMetadataDialog* NewL( const TDesC& aUri ); |
48 |
52 |
49 /** |
53 /** |
50 * Destructor. |
54 * Destructor. |
51 */ |
55 */ |
52 virtual ~CGlxImgVwrMetadataDialog(); |
56 virtual ~CGlxImgVwrMetadataDialog(); |
53 |
57 |
54 private: |
58 private : |
55 /** |
|
56 * Constructor. |
|
57 * @param aURI uri or file name of item |
|
58 */ |
|
59 CGlxImgVwrMetadataDialog(const TDesC& aUri); |
59 CGlxImgVwrMetadataDialog(const TDesC& aUri); |
60 |
60 |
61 public: |
61 |
62 // Functions from base classes |
62 public: // Functions from base classes |
63 |
63 |
64 /** |
64 /** |
65 * Initializes the dialog and calls CAknDialog's |
65 * Initializes the dialog and calls CAknDialog's |
66 * ExecuteLD() |
66 * ExecuteLD() |
67 * This method need to be called to execute the dialog. |
67 * This method need to be called to execute the dialog. |
69 * |
69 * |
70 * @return TInt ID value of the button that closed the dialog. |
70 * @return TInt ID value of the button that closed the dialog. |
71 */ |
71 */ |
72 IMPORT_C TInt ExecuteLD(); |
72 IMPORT_C TInt ExecuteLD(); |
73 |
73 |
74 protected: |
74 |
|
75 protected: // Functions from base classes |
|
76 |
75 /** |
77 /** |
76 * From MEikCommandObserver Prosesses menucommands |
78 * From MEikCommandObserver Prosesses menucommands |
77 * |
79 * |
78 * @param aCommandId Commant value defined in resources. |
80 * @param aCommandId Commant value defined in resources. |
79 */ |
81 */ |
80 void ProcessCommandL(TInt aCommandId); |
82 void ProcessCommandL( TInt aCommandId ); |
81 |
83 |
82 private: |
84 /** |
|
85 * From MEikMenuObserver Initializes items on the menu |
|
86 * |
|
87 * @param aMenuId Current menu's resource Id |
|
88 * @param aMenuPane Pointer to menupane |
|
89 */ |
|
90 void DynInitMenuPaneL(TInt aMenuId, CEikMenuPane* aMenuPane); |
|
91 //hanldes orientation changes. |
|
92 void HandleResourceChange( TInt aType ); |
|
93 void SizeChanged(); |
|
94 |
|
95 private: |
|
96 /** |
|
97 * Initializes the dialog's controls before the dialog is sized and |
|
98 * layed out. Empty by default. |
|
99 */ |
|
100 void PreLayoutDynInitL(); |
|
101 |
|
102 /** |
|
103 * Initializes the dialog's controls after the dialog has been sized |
|
104 * but before it has been activated. |
|
105 */ |
|
106 void PostLayoutDynInitL(); |
83 /** |
107 /** |
84 * Symbian 2nd phase constructor. |
108 * Symbian 2nd phase constructor. |
|
109 * |
|
110 * @param aURI |
85 */ |
111 */ |
86 void ConstructL(); |
112 void ConstructL(); |
87 |
113 |
88 /** |
114 /** |
|
115 * Constructs the Alf Environment and display |
|
116 */ |
|
117 void ConstructAlfEnvL(); |
|
118 |
|
119 /** |
89 * Initalise the resource |
120 * Initalise the resource |
|
121 * |
90 */ |
122 */ |
91 void InitResourceL(); |
123 void InitResourceL(); |
|
124 |
|
125 /** |
|
126 * To deal with any specific commands |
|
127 * |
|
128 * @param aCommand The command to respond to |
|
129 * @return ETrue if the command has been handled. |
|
130 * |
|
131 */ |
|
132 TBool HandleViewCommandL(TInt aCommand); |
|
133 |
|
134 |
92 |
135 |
93 private: |
136 private: |
|
137 |
|
138 void Draw( const TRect& /*aRect*/ ) const; |
|
139 void HandlePointerEventL(const TPointerEvent& aPointerEvent); |
94 /** |
140 /** |
95 * SetTitleL |
141 * SetTitleL |
96 * Sets title for view |
142 * Sets title for view |
97 * @param aTitleText title of view to be set |
143 * @param aTitleText title of view to be set |
98 */ |
144 */ |
99 void SetTitleL(const TDesC& aTitleText); |
145 void SetTitleL(const TDesC& aTitleText); |
100 /** |
146 /** |
101 * SetPreviousTitleL |
147 * SetPreviousTitleL |
102 * Sets title of previous view |
148 * Sets title of previous view |
103 */ |
149 */ |
104 void SetPreviousTitleL(); |
150 void SetPreviousTitleL(); |
105 |
151 |
106 /** |
|
107 * Sets the dialog toolbar visibility |
|
108 * @param aVisible - ETrue for visible; EFalse otherwise. |
|
109 */ |
|
110 void SetDetailsDlgToolbarVisibility(TBool aVisible); |
152 void SetDetailsDlgToolbarVisibility(TBool aVisible); |
111 |
153 |
112 public: |
154 public: // from MEikDialogPageObserver |
113 // from MEikDialogPageObserver |
|
114 /** |
155 /** |
115 * @ref MEikDialogPageObserver::CreateCustomControlL |
156 * @ref MEikDialogPageObserver::CreateCustomControlL |
116 */ |
157 */ |
117 SEikControlInfo CreateCustomControlL(TInt aControlType); |
158 SEikControlInfo CreateCustomControlL(TInt aControlType); |
118 |
159 |
119 public: |
160 public: |
120 /** |
161 /* |
121 * Handles the toolbar visiblity to be in sync with the calling app |
162 * |
122 * @param aVisible - ETrue for visible; EFalse otherwise. |
163 */ |
123 */ |
|
124 void HandleToolbarResetting(TBool aVisible); |
164 void HandleToolbarResetting(TBool aVisible); |
125 |
165 |
126 private: |
166 private: //data |
127 //data |
167 |
128 TInt iResourceOffset; |
168 TInt iResourceOffset; |
129 TBool iStatusPaneAvailable; |
169 TBool iStatusPaneAvailable; |
130 HBufC* iPreviousTitle; |
170 CGlxUiUtility* iUiUtility; |
131 const TDesC& iUri; |
171 HBufC* iPreviousTitle; |
|
172 const TDesC& iUri; |
132 CGlxImgVwrMetadataContainer* iContainer; |
173 CGlxImgVwrMetadataContainer* iContainer; |
133 }; |
174 }; |
134 |
175 |
135 |
176 |
136 #endif /* GLXIMGVWRMETADATADIALOG_H_ */ |
177 #endif /* GLXIMGVWRMETADATADIALOG_H_ */ |