~s-cecilio/lenmus/v5.1.x

« back to all changes in this revision

Viewing changes to src/app/MainFrame.cpp

  • Committer: cecilios
  • Date: 2006-03-19 16:36:00 UTC
  • Revision ID: svn-v4:2587a929-2f0e-0410-ae78-fe6f687d5efe:trunk:13

Show diffs side-by-side

added added

removed removed

Lines of Context:
202
202
    MENU_OpenBook,
203
203
 
204
204
    // Menu Print
 
205
    MENU_Print,
205
206
    MENU_Print_Preview,
206
207
    MENU_Page_Setup,
207
208
 
257
258
    EVT_MENU (MENU_File_Import, lmMainFrame::OnImportFile)
258
259
    EVT_MENU (MENU_Print_Preview, lmMainFrame::OnPrintPreview)
259
260
    EVT_MENU (wxID_PRINT_SETUP, lmMainFrame::OnPrintSetup)
260
 
    EVT_MENU (wxID_PRINT, lmMainFrame::OnPrint)
 
261
    EVT_MENU (MENU_Print, lmMainFrame::OnPrint)
261
262
 
262
263
    EVT_MENU      (MENU_View_Tools, lmMainFrame::OnViewTools)
263
264
    EVT_MENU      (MENU_View_Rulers, lmMainFrame::OnViewRulers)
445
446
    m_pToolbar->AddTool(wxID_COPY, _("Copy"), wxArtProvider::GetIcon(_T("tool_copy"), wxART_TOOLBAR, nSize), _("Copy"));
446
447
    m_pToolbar->AddTool(wxID_CUT, _("Cut"), wxArtProvider::GetIcon(_T("tool_cut"), wxART_TOOLBAR, nSize), _("Cut"));
447
448
    m_pToolbar->AddTool(wxID_PASTE, _("Paste"), wxArtProvider::GetIcon(_T("tool_paste"), wxART_TOOLBAR, nSize), _("Paste"));
448
 
    m_pToolbar->AddTool(wxID_PRINT, _("Print"), wxArtProvider::GetIcon(_T("tool_print"), wxART_TOOLBAR, nSize), _("Print document"));
 
449
    m_pToolbar->AddTool(MENU_Print, _("Print"), wxArtProvider::GetIcon(_T("tool_print"), wxART_TOOLBAR, nSize), _("Print document"));
449
450
    m_pToolbar->AddSeparator();
450
451
    m_pToolbar->AddTool(MENU_Options, _("Options"), wxArtProvider::GetIcon(_T("tool_options"), wxART_TOOLBAR, nSize), _("Options"));
451
452
    m_pToolbar->AddTool(MENU_OpenHelp, _("Help"), wxArtProvider::GetIcon(_T("tool_help"), wxART_TOOLBAR, nSize), _("Help button"), wxITEM_CHECK);
641
642
    file_menu->Append(wxID_CLOSE, _("&Close\tCtrl+W"));
642
643
    file_menu->AppendSeparator();
643
644
 
644
 
    pItem = new wxMenuItem(file_menu, wxID_PRINT, _("&Print ...\tCtrl+P"));
 
645
    pItem = new wxMenuItem(file_menu, MENU_Print, _("&Print ...\tCtrl+P"));
645
646
    pItem->SetBitmap( wxArtProvider::GetBitmap(_T("tool_print"), wxART_TOOLBAR, nIconSize) );
646
647
    file_menu->Append(pItem); 
647
648
 
659
660
    file_menu->Append(wxID_SAVEAS, _("Save &as ...\tCtrl+Shift+S"));
660
661
    file_menu->Append(wxID_CLOSE, _("&Close\tCtrl+W"));
661
662
    file_menu->AppendSeparator();
662
 
    file_menu->Append(wxID_PRINT, _("&Print ...\tCtrl+P"));
 
663
    file_menu->Append(MENU_Print, _("&Print ...\tCtrl+P"));
663
664
    file_menu->Append(wxID_PRINT_SETUP, _("Print &Setup..."));
664
665
    file_menu->Append(MENU_Print_Preview, _("Print Pre&view\tCtrl+Shift+P"));
665
666
    file_menu->AppendSeparator();
877
878
    //pToolBar->EnableTool(wxID_COPY, fEdit);
878
879
    //pToolBar->EnableTool(wxID_CUT, fEdit);
879
880
    //pToolBar->EnableTool(wxID_PASTE, fEdit);
880
 
    //pToolBar->EnableTool(wxID_PRINT, fEdit);
 
881
    //pToolBar->EnableTool(MENU_Print, fEdit);
881
882
 
882
883
    // view rulers
883
884
    pMenuBar->Enable(MENU_View_Rulers, fView);
909
910
        pToolBar->EnableTool(wxID_COPY, false);
910
911
        pToolBar->EnableTool(wxID_CUT, false);
911
912
        pToolBar->EnableTool(wxID_PASTE, false);
912
 
        pToolBar->EnableTool(wxID_PRINT, false);
 
913
        pToolBar->EnableTool(MENU_Print, false);
913
914
 
914
915
    }
915
916