Commit f9426909 authored by plyatov's avatar plyatov
Browse files

Additions to the menu (see changelog).

parent 6383b636
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -26,7 +26,7 @@




BEGIN_EVENT_TABLE(WinEDA3D_DrawFrame, wxFrame)
BEGIN_EVENT_TABLE(WinEDA3D_DrawFrame, wxFrame)
	EVT_TOOL_RANGE(ID_ZOOM_PLUS_BUTT, ID_ZOOM_PAGE_BUTT,
	EVT_TOOL_RANGE(ID_ZOOM_IN_BUTT, ID_ZOOM_PAGE_BUTT,
			WinEDA3D_DrawFrame::Process_Zoom)
			WinEDA3D_DrawFrame::Process_Zoom)
	EVT_TOOL_RANGE(ID_START_COMMAND_3D, ID_END_COMMAND_3D,
	EVT_TOOL_RANGE(ID_START_COMMAND_3D, ID_END_COMMAND_3D,
			WinEDA3D_DrawFrame::Process_Special_Functions)
			WinEDA3D_DrawFrame::Process_Special_Functions)
@@ -164,13 +164,13 @@ int ii;
		trackball(g_Parm_3D_Visu.m_Quat, 0.0, 0.0, 0.0, 0.0 );
		trackball(g_Parm_3D_Visu.m_Quat, 0.0, 0.0, 0.0, 0.0 );
		break;
		break;


		case ID_ZOOM_PLUS_BUTT:
		case ID_ZOOM_IN_BUTT:
			g_Parm_3D_Visu.m_Zoom /= 1.2;
			g_Parm_3D_Visu.m_Zoom /= 1.2;
			if ( g_Parm_3D_Visu.m_Zoom <= 0.01)
			if ( g_Parm_3D_Visu.m_Zoom <= 0.01)
				g_Parm_3D_Visu.m_Zoom = 0.01;
				g_Parm_3D_Visu.m_Zoom = 0.01;
			break;
			break;


		case ID_ZOOM_MOINS_BUTT:
		case ID_ZOOM_OUT_BUTT:
			g_Parm_3D_Visu.m_Zoom *= 1.2;
			g_Parm_3D_Visu.m_Zoom *= 1.2;
			break;
			break;


+2 −2
Original line number Original line Diff line number Diff line
@@ -40,10 +40,10 @@ void WinEDA3D_DrawFrame::ReCreateHToolbar()
#endif
#endif


    m_HToolBar->AddSeparator();
    m_HToolBar->AddSeparator();
    m_HToolBar->AddTool( ID_ZOOM_PLUS_BUTT, wxEmptyString, BITMAP( zoom_in_xpm ),
    m_HToolBar->AddTool( ID_ZOOM_IN_BUTT, wxEmptyString, BITMAP( zoom_in_xpm ),
                        _( "zoom + (F1)" ) );
                        _( "zoom + (F1)" ) );


    m_HToolBar->AddTool( ID_ZOOM_MOINS_BUTT, wxEmptyString, BITMAP( zoom_out_xpm ),
    m_HToolBar->AddTool( ID_ZOOM_OUT_BUTT, wxEmptyString, BITMAP( zoom_out_xpm ),
                        _( "zoom - (F2)" ) );
                        _( "zoom - (F2)" ) );


    m_HToolBar->AddTool( ID_ZOOM_REDRAW_BUTT, wxEmptyString, BITMAP( repaint_xpm ),
    m_HToolBar->AddTool( ID_ZOOM_REDRAW_BUTT, wxEmptyString, BITMAP( repaint_xpm ),
+8 −0
Original line number Original line Diff line number Diff line
@@ -5,6 +5,14 @@ Started 2007-June-11
Please add newer entries at the top, list the date and your name with
Please add newer entries at the top, list the date and your name with
email address.
email address.


2008-Feb-18 UPDATE Igor Plyatov <plyatov@mail.ru>
================================================================================
+eeschema
    Added menu View with all possible elements from the top toolbar.
    Find item added in to the Edit menu.
+all
    Translated part of IDs to english.

2008-Feb-15 UPDATE Igor Plyatov <plyatov@mail.ru>
2008-Feb-15 UPDATE Igor Plyatov <plyatov@mail.ru>
================================================================================
================================================================================
+eeschema
+eeschema
+5 −5
Original line number Original line Diff line number Diff line
@@ -22,7 +22,7 @@ BEGIN_EVENT_TABLE( WinEDA_DisplayFrame, wxFrame )


COMMON_EVENTS_DRAWFRAME EVT_CLOSE( WinEDA_DisplayFrame::OnCloseWindow )
COMMON_EVENTS_DRAWFRAME EVT_CLOSE( WinEDA_DisplayFrame::OnCloseWindow )
EVT_SIZE( WinEDA_DrawFrame::OnSize )
EVT_SIZE( WinEDA_DrawFrame::OnSize )
EVT_TOOL_RANGE( ID_ZOOM_PLUS_BUTT, ID_ZOOM_PAGE_BUTT,
EVT_TOOL_RANGE( ID_ZOOM_IN_BUTT, ID_ZOOM_PAGE_BUTT,
                WinEDA_DisplayFrame::Process_Zoom )
                WinEDA_DisplayFrame::Process_Zoom )
EVT_TOOL( ID_OPTIONS_SETUP, WinEDA_DisplayFrame::InstallOptionsDisplay )
EVT_TOOL( ID_OPTIONS_SETUP, WinEDA_DisplayFrame::InstallOptionsDisplay )
EVT_TOOL( ID_CVPCB_SHOW3D_FRAME, WinEDA_BasePcbFrame::Show3D_Frame )
EVT_TOOL( ID_CVPCB_SHOW3D_FRAME, WinEDA_BasePcbFrame::Show3D_Frame )
@@ -120,10 +120,10 @@ void WinEDA_DisplayFrame::ReCreateHToolbar()


    m_HToolBar->AddSeparator();
    m_HToolBar->AddSeparator();


    m_HToolBar->AddTool( ID_ZOOM_PLUS_BUTT, wxEmptyString, BITMAP( zoom_in_xpm ),
    m_HToolBar->AddTool( ID_ZOOM_IN_BUTT, wxEmptyString, BITMAP( zoom_in_xpm ),
                        _( "zoom + (F1)" ) );
                        _( "zoom + (F1)" ) );


    m_HToolBar->AddTool( ID_ZOOM_MOINS_BUTT, wxEmptyString, BITMAP( zoom_out_xpm ),
    m_HToolBar->AddTool( ID_ZOOM_OUT_BUTT, wxEmptyString, BITMAP( zoom_out_xpm ),
                        _( "zoom - (F2)" ) );
                        _( "zoom - (F2)" ) );


    m_HToolBar->AddTool( ID_ZOOM_REDRAW_BUTT, wxEmptyString, BITMAP( repaint_xpm ),
    m_HToolBar->AddTool( ID_ZOOM_REDRAW_BUTT, wxEmptyString, BITMAP( repaint_xpm ),
@@ -195,13 +195,13 @@ void WinEDA_DisplayFrame::GeneralControle( wxDC* DC, wxPoint Mouse )
        switch( g_KeyPressed )
        switch( g_KeyPressed )
        {
        {
        case WXK_F1:
        case WXK_F1:
            OnZoom( ID_ZOOM_PLUS_KEY );
            OnZoom( ID_ZOOM_IN_KEY );
            flagcurseur = 2;
            flagcurseur = 2;
            curpos = m_CurrentScreen->m_Curseur;
            curpos = m_CurrentScreen->m_Curseur;
            break;
            break;


        case WXK_F2:
        case WXK_F2:
            OnZoom( ID_ZOOM_MOINS_KEY );
            OnZoom( ID_ZOOM_OUT_KEY );
            flagcurseur = 2;
            flagcurseur = 2;
            curpos = m_CurrentScreen->m_Curseur;
            curpos = m_CurrentScreen->m_Curseur;
            break;
            break;
+2 −2
Original line number Original line Diff line number Diff line
@@ -270,12 +270,12 @@ void WinEDA_DrawFrame::GeneralControle( wxDC* DC, wxPoint MousePositionInPixels
        break;
        break;


    case EDA_ZOOM_IN_FROM_MOUSE:
    case EDA_ZOOM_IN_FROM_MOUSE:
        OnZoom( ID_ZOOM_PLUS_KEY );
        OnZoom( ID_ZOOM_IN_KEY );
		curpos = screen->m_Curseur;
		curpos = screen->m_Curseur;
        break;
        break;


    case EDA_ZOOM_OUT_FROM_MOUSE:
    case EDA_ZOOM_OUT_FROM_MOUSE:
        OnZoom( ID_ZOOM_MOINS_KEY );
        OnZoom( ID_ZOOM_OUT_KEY );
		curpos = screen->m_Curseur;
		curpos = screen->m_Curseur;
        break;
        break;


Loading