Update of /cvsroot/wxdevcenter/StdPlugin/src/Text
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23660/src/Text
Modified Files:
SimpleTextDocView.cpp
Log Message:
Add standard icon to commands.
Index: SimpleTextDocView.cpp
===================================================================
RCS file: /cvsroot/wxdevcenter/StdPlugin/src/Text/SimpleTextDocView.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** SimpleTextDocView.cpp 14 Sep 2005 15:36:25 -0000 1.2
--- SimpleTextDocView.cpp 14 Sep 2005 20:17:07 -0000 1.3
***************
*** 26,29 ****
--- 26,30 ----
#include <wxDevCenter/StdPlugin/Text/SimpleTextDocView.h>
+ #include <wxDevCenter/ArtProvider.h>
#include <wx/stream.h>
***************
*** 763,777 ****
{
s_pEditCommandGroup = new wxDevCenter::CommandGroup(WXDC_MENU_EDIT);
! s_pEditCommandGroup->AppendCommand(IDM_EDIT_UNDO, WXDC_MENU_EDIT_UNDO);
! s_pEditCommandGroup->AppendCommand(IDM_EDIT_REDO, WXDC_MENU_EDIT_REDO);
s_pEditCommandGroup->AppendSeparator();
! s_pEditCommandGroup->AppendCommand(IDM_EDIT_CUT, WXDC_MENU_EDIT_CUT);
! s_pEditCommandGroup->AppendCommand(IDM_EDIT_COPY, WXDC_MENU_EDIT_COPY);
! s_pEditCommandGroup->AppendCommand(IDM_EDIT_PASTE, WXDC_MENU_EDIT_PASTE);
! s_pEditCommandGroup->AppendCommand(IDM_EDIT_CLEAR, WXDC_MENU_EDIT_DEL);
s_pEditCommandGroup->AppendSeparator();
! s_pEditCommandGroup->AppendCommand(IDM_EDIT_FIND, WXDC_MENU_FIND_FIND);
! s_pEditCommandGroup->AppendCommand(IDM_EDIT_FINDNEXT, WXDC_MENU_FIND_FINDNEXT);
! s_pEditCommandGroup->AppendCommand(IDM_EDIT_REPLACE, WXDC_MENU_FIND_REPLACE);
wxDevCenter::CommandManager::GetCommandManager().AddCommandManager(s_pEditCommandGroup, CLASSINFO(SimpleTextView), CmdGrpType_View);
}
--- 764,778 ----
{
s_pEditCommandGroup = new wxDevCenter::CommandGroup(WXDC_MENU_EDIT);
! s_pEditCommandGroup->AppendCommand(IDM_EDIT_UNDO, WXDC_MENU_EDIT_UNDO, wxT(""), wxART_UNDO);
! s_pEditCommandGroup->AppendCommand(IDM_EDIT_REDO, WXDC_MENU_EDIT_REDO, wxT(""), wxART_REDO);
s_pEditCommandGroup->AppendSeparator();
! s_pEditCommandGroup->AppendCommand(IDM_EDIT_CUT, WXDC_MENU_EDIT_CUT, wxT(""), wxART_CUT);
! s_pEditCommandGroup->AppendCommand(IDM_EDIT_COPY, WXDC_MENU_EDIT_COPY, wxT(""), wxART_COPY);
! s_pEditCommandGroup->AppendCommand(IDM_EDIT_PASTE, WXDC_MENU_EDIT_PASTE, wxT(""), wxART_PASTE);
! s_pEditCommandGroup->AppendCommand(IDM_EDIT_CLEAR, WXDC_MENU_EDIT_DEL, wxT(""), wxART_DELETE);
s_pEditCommandGroup->AppendSeparator();
! s_pEditCommandGroup->AppendCommand(IDM_EDIT_FIND, WXDC_MENU_FIND_FIND, wxT(""), wxART_FIND);
! s_pEditCommandGroup->AppendCommand(IDM_EDIT_FINDNEXT, WXDC_MENU_FIND_FINDNEXT, wxT(""), wxART_GO_FORWARD);
! s_pEditCommandGroup->AppendCommand(IDM_EDIT_REPLACE, WXDC_MENU_FIND_REPLACE, wxT(""), wxART_FIND_AND_REPLACE);
wxDevCenter::CommandManager::GetCommandManager().AddCommandManager(s_pEditCommandGroup, CLASSINFO(SimpleTextView), CmdGrpType_View);
}
|