Changeset 124 for cafu/branches/cafu_to_wx/CaWE/GuiEditor/ChildFrame.cpp
- Timestamp:
- 08/20/10 15:06:58 (21 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
cafu/branches/cafu_to_wx/CaWE/GuiEditor/ChildFrame.cpp
r94 r124 497 497 { 498 498 SubmitCommand(new CommandDeleteT(m_GuiDocument, m_GuiDocument->GetSelection())); 499 SubmitCommand(CommandSelectT::Clear(m_GuiDocument));500 499 } 501 500 … … 519 518 void GuiEditor::ChildFrameT::OnUpdateEditCutCopyDelete(wxUpdateUIEvent& UE) 520 519 { 521 if (m_GuiDocument->GetSelection().Size()>0) UE.Enable(true); 522 else UE.Enable(false); 520 UE.Enable(m_GuiDocument->GetSelection().Size()>0); 523 521 } 524 522 … … 526 524 void GuiEditor::ChildFrameT::OnUpdateEditPaste(wxUpdateUIEvent& UE) 527 525 { 528 if (ClipBoard.Size()>0 && m_GuiDocument->GetSelection().Size()==1) UE.Enable(true); 529 else UE.Enable(false); 526 UE.Enable(ClipBoard.Size()>0 && m_GuiDocument->GetSelection().Size()==1); 530 527 } 531 528 … … 702 699 case ID_TOOLBAR_WINDOW_DELETE: 703 700 SubmitCommand(new CommandDeleteT(m_GuiDocument, m_GuiDocument->GetSelection())); 704 SubmitCommand(CommandSelectT::Clear(m_GuiDocument));705 701 break; 706 702
