Show
Ignore:
Timestamp:
08/20/10 15:06:58 (21 months ago)
Author:
Carsten
Message:

Merged latest changes from trunk into branches/cafu_to_wx.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cafu/branches/cafu_to_wx/CaWE/GuiEditor/ChildFrame.cpp

    r94 r124  
    497497{ 
    498498    SubmitCommand(new CommandDeleteT(m_GuiDocument, m_GuiDocument->GetSelection())); 
    499     SubmitCommand(CommandSelectT::Clear(m_GuiDocument)); 
    500499} 
    501500 
     
    519518void GuiEditor::ChildFrameT::OnUpdateEditCutCopyDelete(wxUpdateUIEvent& UE) 
    520519{ 
    521     if (m_GuiDocument->GetSelection().Size()>0) UE.Enable(true); 
    522     else                                        UE.Enable(false); 
     520    UE.Enable(m_GuiDocument->GetSelection().Size()>0); 
    523521} 
    524522 
     
    526524void GuiEditor::ChildFrameT::OnUpdateEditPaste(wxUpdateUIEvent& UE) 
    527525{ 
    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); 
    530527} 
    531528 
     
    702699        case ID_TOOLBAR_WINDOW_DELETE: 
    703700            SubmitCommand(new CommandDeleteT(m_GuiDocument, m_GuiDocument->GetSelection())); 
    704             SubmitCommand(CommandSelectT::Clear(m_GuiDocument)); 
    705701            break; 
    706702