photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandlerremovefrom.cpp
equal
deleted
inserted
replaced
76 TCommandInfo info(EGlxCmdRemoveFrom); |
76 TCommandInfo info(EGlxCmdRemoveFrom); |
77 // Filter out static items |
77 // Filter out static items |
78 info.iMinSelectionLength = 1; |
78 info.iMinSelectionLength = 1; |
79 info.iMaxSelectionLength = KMaxTInt; |
79 info.iMaxSelectionLength = KMaxTInt; |
80 AddCommandL(info); |
80 AddCommandL(info); |
81 |
|
82 TCommandInfo singleclickinfo(EGlxCmdSingleClickRemoveFrom); |
|
83 singleclickinfo.iMinSelectionLength = 1; |
|
84 singleclickinfo.iMaxSelectionLength = KMaxTInt; |
|
85 AddCommandL(singleclickinfo); |
|
86 } |
81 } |
87 |
82 |
88 // --------------------------------------------------------------------------- |
83 // --------------------------------------------------------------------------- |
89 // Destructor |
84 // Destructor |
90 // --------------------------------------------------------------------------- |
85 // --------------------------------------------------------------------------- |
172 void CGlxCommandHandlerRemoveFrom::DoActivateL(TInt /*aViewId*/) |
167 void CGlxCommandHandlerRemoveFrom::DoActivateL(TInt /*aViewId*/) |
173 { |
168 { |
174 |
169 |
175 } |
170 } |
176 |
171 |
177 // --------------------------------------------------------------------------- |
172 |
178 // CGlxCommandHandlerRemoveFrom::DoIsDisabled |
173 // End of File |
179 // --------------------------------------------------------------------------- |
|
180 // |
|
181 TBool CGlxCommandHandlerRemoveFrom::DoIsDisabled(TInt aCommandId, |
|
182 MGlxMediaList& aList) const |
|
183 { |
|
184 if (aCommandId == EGlxCmdSingleClickRemoveFrom && |
|
185 aList.SelectionCount()== 0) |
|
186 { |
|
187 return ETrue; |
|
188 } |
|
189 |
|
190 return EFalse; |
|
191 } |
|