void CDirstatDoc::OnUpdateExplorerHere(CCmdUI *pCmdUI) { pCmdUI->Enable( DirectoryListHasFocus() && GetSelection() != NULL && GetSelection()->GetType() != IT_FREESPACE && GetSelection()->GetType() != IT_UNKNOWN ); }
void CDirstatDoc::OnUpdateCleanupProperties(CCmdUI *pCmdUI) { pCmdUI->Enable( DirectoryListHasFocus() && GetSelection() != NULL && GetSelection()->GetType() != IT_FREESPACE && GetSelection()->GetType() != IT_UNKNOWN && GetSelection()->GetType() != IT_FILESFOLDER ); }
void CDirstatDoc::OnUpdateUserdefinedcleanup(CCmdUI *pCmdUI) { int i= pCmdUI->m_nID - ID_USERDEFINEDCLEANUP0; CItem *item= GetSelection(); pCmdUI->Enable( DirectoryListHasFocus() && GetOptions()->IsUserDefinedCleanupEnabled(i) && UserDefinedCleanupWorksForItem(GetOptions()->GetUserDefinedCleanup(i), item) ); }
void CDirstatDoc::OnUpdateCleanupDelete(CCmdUI *pCmdUI) { CItem *item= GetSelection(); pCmdUI->Enable( DirectoryListHasFocus() && item != NULL && (item->GetType() == IT_DIRECTORY || item->GetType() == IT_FILE) && !item->IsRootItem() ); }
void CDirstatDoc::OnUpdateCommandPromptHere(CCmdUI *pCmdUI) { pCmdUI->Enable( DirectoryListHasFocus() && GetSelection() != NULL && GetSelection()->GetType() != IT_MYCOMPUTER && GetSelection()->GetType() != IT_FREESPACE && GetSelection()->GetType() != IT_UNKNOWN && ! GetSelection()->HasUncPath() ); }
void CDirstatDoc::OnUpdateEditCopy(CCmdUI *pCmdUI) { const CItem *item= GetSelection(); pCmdUI->Enable( DirectoryListHasFocus() && item != NULL && item->GetType() != IT_MYCOMPUTER && item->GetType() != IT_FILESFOLDER && item->GetType() != IT_FREESPACE && item->GetType() != IT_UNKNOWN ); }
void CDirstatDoc::OnUpdateCleanupDelete(CCmdUI *pCmdUI) { // FIXME: Multi-select CItem *item = GetSelection(0); pCmdUI->Enable( DirectoryListHasFocus() && item != NULL && (IT_DIRECTORY == item->GetType() || IT_FILE == item->GetType()) && !item->IsRootItem() ); }
void CDirstatDoc::OnUpdateExplorerHere(CCmdUI *pCmdUI) { pCmdUI->Enable( DirectoryListHasFocus() // FIXME: Multi-select && GetSelection(0) != NULL // FIXME: Multi-select && GetSelection(0)->GetType() != IT_FREESPACE // FIXME: Multi-select && GetSelection(0)->GetType() != IT_UNKNOWN ); }
void CDirstatDoc::OnUpdateCommandPromptHere(CCmdUI *pCmdUI) { pCmdUI->Enable( DirectoryListHasFocus() // FIXME: Multi-select && GetSelection(0) != NULL // FIXME: Multi-select && GetSelection(0)->GetType() != IT_MYCOMPUTER // FIXME: Multi-select && GetSelection(0)->GetType() != IT_FREESPACE // FIXME: Multi-select && GetSelection(0)->GetType() != IT_UNKNOWN // FIXME: Multi-select && ! GetSelection(0)->HasUncPath() ); }