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