photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandlerdelete.cpp
equal
deleted
inserted
replaced
87 TCommandInfo info(EGlxCmdDelete); |
87 TCommandInfo info(EGlxCmdDelete); |
88 // Filter out static items |
88 // Filter out static items |
89 info.iMinSelectionLength = 1; |
89 info.iMinSelectionLength = 1; |
90 info.iDisallowSystemItems = aIsContainerList; |
90 info.iDisallowSystemItems = aIsContainerList; |
91 AddCommandL(info); |
91 AddCommandL(info); |
92 |
|
93 TCommandInfo singleclkinfo(EGlxCmdSingleClickDelete); |
|
94 singleclkinfo.iMinSelectionLength = 1; |
|
95 singleclkinfo.iDisallowSystemItems = aIsContainerList; |
|
96 AddCommandL(singleclkinfo); |
|
97 } |
92 } |
98 |
93 |
99 // --------------------------------------------------------------------------- |
94 // --------------------------------------------------------------------------- |
100 // Destructor |
95 // Destructor |
101 // --------------------------------------------------------------------------- |
96 // --------------------------------------------------------------------------- |
244 aNavigationalState->Close(); |
239 aNavigationalState->Close(); |
245 if (EGlxCmdDelete==aCommandId && 0 == aList.Count() && |
240 if (EGlxCmdDelete==aCommandId && 0 == aList.Count() && |
246 !fullscreenViewingMode) |
241 !fullscreenViewingMode) |
247 { |
242 { |
248 return ETrue; |
243 return ETrue; |
249 } |
244 } |
250 |
|
251 if (EGlxCmdSingleClickDelete==aCommandId && 0 == aList.SelectionCount()) |
|
252 { |
|
253 return ETrue; |
|
254 } |
|
255 |
|
256 return EFalse; |
245 return EFalse; |
257 } |
246 } |
258 //end of file |
247 //end of file |
259 |
248 |