Browse Source

Minor code cleaning and minor enhancement.

pull/1/head
jean-pierre charras 15 years ago
parent
commit
0b91eb30b2
  1. 8
      3d-viewer/3d_aux.cpp
  2. 10
      3d-viewer/3d_canvas.cpp
  3. 6
      3d-viewer/3d_class.cpp
  4. 7
      3d-viewer/3d_draw.cpp
  5. 11
      3d-viewer/3d_frame.cpp
  6. 6
      3d-viewer/3d_read_mesh.cpp
  7. 6
      bitmaps/CMakeLists.txt
  8. 7
      bitmaps/Rotate_CCW.xpm
  9. 6
      bitmaps/Rotate_CW.xpm
  10. 0
      bitmaps/sources/Rotate_CCW.svg
  11. 0
      bitmaps/sources/Rotate_CW.svg
  12. 9
      eeschema/lib_arc.cpp
  13. 2
      eeschema/lib_arc.h
  14. 9
      eeschema/lib_bezier.cpp
  15. 2
      eeschema/lib_bezier.h
  16. 6
      eeschema/lib_circle.cpp
  17. 2
      eeschema/lib_circle.h
  18. 4
      eeschema/lib_draw_item.h
  19. 6
      eeschema/lib_field.cpp
  20. 2
      eeschema/lib_field.h
  21. 55
      eeschema/lib_pin.cpp
  22. 2
      eeschema/lib_pin.h
  23. 6
      eeschema/lib_polyline.cpp
  24. 2
      eeschema/lib_polyline.h
  25. 7
      eeschema/lib_rectangle.cpp
  26. 2
      eeschema/lib_rectangle.h
  27. 6
      eeschema/lib_text.cpp
  28. 2
      eeschema/lib_text.h
  29. 4
      eeschema/libedit_onrightclick.cpp
  30. 10
      eeschema/onrightclick.cpp
  31. 4
      include/bitmaps.h
  32. 2
      pcbnew/modedit_onclick.cpp
  33. 4
      pcbnew/onrightclick.cpp

8
3d-viewer/3d_aux.cpp

@ -2,12 +2,6 @@
// Name: 3d_aux.cpp
/////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__
#pragma implementation
#pragma interface
#endif
#include "fctsys.h"
#if !wxUSE_GLCANVAS
@ -17,8 +11,6 @@
#include "common.h"
#include "trigo.h"
#include "bitmaps.h"
#include "3d_viewer.h"
#include "trackball.h"

10
3d-viewer/3d_canvas.cpp

@ -1,7 +1,6 @@
/////////////////////////////////////////////////////////////////////////////
// Name: 3d_canvas.cpp
/////////////////////////////////////////////////////////////////////////////
/**
* @file 3d_canvas.cpp
*/
#include "fctsys.h"
#include "trigo.h"
@ -20,9 +19,6 @@
#include "3d_viewer.h"
#include "trackball.h"
/* Tool and button Bitmaps */
#include "bitmaps.h"
// -----------------
// helper function (from wxWidgets, opengl/cube.cpp sample

6
3d-viewer/3d_class.cpp

@ -2,12 +2,6 @@
// Name: 3d_class.cpp
/////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__
#pragma implementation
#pragma interface
#endif
#include "fctsys.h"
#include "3d_viewer.h"

7
3d-viewer/3d_draw.cpp

@ -1,7 +1,6 @@
//////////////////////////////////////
// Name: 3d_draw.cpp
//////////////////////////////////////
/**
* @file 3d_draw.cpp
*/
#include "fctsys.h"
#include "common.h"

11
3d-viewer/3d_frame.cpp

@ -2,13 +2,6 @@
// Name: 3d_frame.cpp
/////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__
#pragma implementation
#pragma interface
#endif
#include "fctsys.h"
#include "appl_wxstruct.h"
@ -16,8 +9,6 @@
#error Please set wxUSE_GLCANVAS to 1 in setup.h.
#endif
#include "bitmaps.h"
#include "3d_viewer.h"
#include "trackball.h"
@ -292,7 +283,7 @@ void WinEDA3D_DrawFrame::Process_Special_Functions( wxCommandEvent& event )
case ID_MOVE3D_DOWN:
m_Canvas->SetView3D( WXK_DOWN );
return;
case ID_ORTHO:
m_Canvas->ToggleOrtho();
return;

6
3d-viewer/3d_read_mesh.cpp

@ -1,6 +1,6 @@
/////////////////////////////////////////////////////////////////////////////
// Name: 3d_read_mesh.cpp
/////////////////////////////////////////////////////////////////////////////
/**
* @file 3d_read_mesh.cpp
*/
#include "fctsys.h"
#include "common.h"

6
bitmaps/CMakeLists.txt

@ -135,7 +135,7 @@ set(BITMAP_SRCS
fill_zone.xpm
find_xpm.xpm
Flag.xpm
Fonts.xpm
Fonts.xpmr
Footprint_Text.xpm
gbr_select_mode0.xpm
gbr_select_mode1.xpm
@ -362,8 +362,8 @@ set(BITMAP_SRCS
Rotate_Module-.xpm
Rotate_Module+.xpm
Rotate_Pin.xpm
Rotate-.xpm
Rotate+.xpm
Rotate_CCW.xpm
Rotate_CW.xpm
rotate-x.xpm
rotate+x.xpm
rotate-y.xpm

7
bitmaps/Rotate-.xpm → bitmaps/Rotate_CCW.xpm

@ -1,9 +1,5 @@
/* XPM */
#ifndef XPMMAIN
extern const char *rotate_neg_xpm[];
#else
const char * rotate_neg_xpm[] = {
const char *rotate_CCW_xpm[] = {
"16 16 93 2",
" c None",
". c #202020",
@ -114,4 +110,3 @@ const char * rotate_neg_xpm[] = {
" % % X B $ % % ",
" Y Z ` % ",
" .% "};
#endif

6
bitmaps/Rotate+.xpm → bitmaps/Rotate_CW.xpm

@ -1,9 +1,6 @@
/* XPM */
#ifndef XPMMAIN
extern const char *rotate_pos_xpm[];
#else
const char * rotate_pos_xpm[] = {
const char *rotate_CW_xpm[] = {
"16 16 96 2",
" c None",
". c #000000",
@ -117,4 +114,3 @@ const char * rotate_pos_xpm[] = {
" 1 .C 8 1 1 1 1 1 1 ",
" ..+.@.1 1 1 1 ",
" e ` "};
#endif

0
bitmaps/sources/Rotate+.svg → bitmaps/sources/Rotate_CCW.svg

0
bitmaps/sources/Rotate-.svg → bitmaps/sources/Rotate_CW.svg

9
eeschema/lib_arc.cpp

@ -291,11 +291,12 @@ void LIB_ARC::DoMirrorVertical( const wxPoint& aCenter )
EXCHG( m_ArcStart, m_ArcEnd );
}
void LIB_ARC::DoRotate( const wxPoint& aCenter )
void LIB_ARC::DoRotate( const wxPoint& aCenter, bool aRotateCCW )
{
RotatePoint( &m_Pos, aCenter, -900 );
RotatePoint( &m_ArcStart, aCenter, -900 );
RotatePoint( &m_ArcEnd, aCenter, -900 );
int rot_angle = aRotateCCW ? -900 : 900;
RotatePoint( &m_Pos, aCenter, rot_angle );
RotatePoint( &m_ArcStart, aCenter, rot_angle );
RotatePoint( &m_ArcEnd, aCenter, rot_angle );
}

2
eeschema/lib_arc.h

@ -142,7 +142,7 @@ protected:
virtual wxPoint DoGetPosition() const { return m_Pos; }
virtual void DoMirrorHorizontal( const wxPoint& aCenter );
virtual void DoMirrorVertical( const wxPoint& aCenter );
virtual void DoRotate( const wxPoint& aCenter );
virtual void DoRotate( const wxPoint& aCenter, bool aRotateCCW = true );
virtual void DoPlot( PLOTTER* aPlotter, const wxPoint& aOffset, bool aFill,
const TRANSFORM& aTransform );
virtual int DoGetWidth() const { return m_Width; }

9
eeschema/lib_bezier.cpp

@ -210,19 +210,20 @@ void LIB_BEZIER::DoMirrorVertical( const wxPoint& aCenter )
}
}
void LIB_BEZIER::DoRotate( const wxPoint& aCenter )
void LIB_BEZIER::DoRotate( const wxPoint& aCenter, bool aRotateCCW )
{
size_t i, imax = m_PolyPoints.size();
int rot_angle = aRotateCCW ? -900 : 900;
size_t i, imax = m_PolyPoints.size();
for( i = 0; i < imax; i++ )
{
RotatePoint( &m_PolyPoints[i], aCenter, -900 );
RotatePoint( &m_PolyPoints[i], aCenter, rot_angle );
}
imax = m_BezierPoints.size();
for( i = 0; i < imax; i++ )
{
RotatePoint( &m_BezierPoints[i], aCenter, -900 );
RotatePoint( &m_BezierPoints[i], aCenter, rot_angle );
}
}

2
eeschema/lib_bezier.h

@ -94,7 +94,7 @@ protected:
virtual wxPoint DoGetPosition() const { return m_PolyPoints[0]; }
virtual void DoMirrorHorizontal( const wxPoint& aCenter );
virtual void DoMirrorVertical( const wxPoint& aCenter );
virtual void DoRotate( const wxPoint& aCenter );
virtual void DoRotate( const wxPoint& aCenter, bool aRotateCCW = true );
virtual void DoPlot( PLOTTER* aPlotter, const wxPoint& aOffset, bool aFill,
const TRANSFORM& aTransform );
virtual int DoGetWidth() const { return m_Width; }

6
eeschema/lib_circle.cpp

@ -169,9 +169,11 @@ void LIB_CIRCLE::DoMirrorVertical( const wxPoint& aCenter )
m_Pos.y += aCenter.y;
}
void LIB_CIRCLE::DoRotate( const wxPoint& aCenter )
void LIB_CIRCLE::DoRotate( const wxPoint& aCenter, bool aRotateCCW )
{
RotatePoint( &m_Pos, aCenter, -900 );
int rot_angle = aRotateCCW ? -900 : 900;
RotatePoint( &m_Pos, aCenter, rot_angle );
}

2
eeschema/lib_circle.h

@ -110,7 +110,7 @@ protected:
virtual wxPoint DoGetPosition() const { return m_Pos; }
virtual void DoMirrorHorizontal( const wxPoint& aCenter );
virtual void DoMirrorVertical( const wxPoint& aCenter );
virtual void DoRotate( const wxPoint& aCenter );
virtual void DoRotate( const wxPoint& aCenter, bool aRotateCCW = true );
virtual void DoPlot( PLOTTER* aPlotter, const wxPoint& aOffset, bool aFill,
const TRANSFORM& aTransform );
virtual int DoGetWidth() const { return m_Width; }

4
eeschema/lib_draw_item.h

@ -312,7 +312,7 @@ public:
/**
* Rotate about a point.
*
* @param aCenter - Point to mirror around.
* @param aCenter - Point to rotate around.
*/
void Rotate( const wxPoint& aCenter )
{
@ -398,7 +398,7 @@ protected:
virtual wxPoint DoGetPosition() const = 0;
virtual void DoMirrorHorizontal( const wxPoint& aCenter ) = 0;
virtual void DoMirrorVertical( const wxPoint& aCenter ) = 0;
virtual void DoRotate( const wxPoint& aCenter ) = 0;
virtual void DoRotate( const wxPoint& aCenter, bool aRotateCCW = true ) = 0;
virtual void DoPlot( PLOTTER* aPlotter, const wxPoint& aOffset, bool aFill,
const TRANSFORM& aTransform ) = 0;
virtual int DoGetWidth() const = 0;

6
eeschema/lib_field.cpp

@ -483,9 +483,11 @@ void LIB_FIELD::DoMirrorVertical( const wxPoint& center )
m_Pos.y += center.y;
}
void LIB_FIELD::DoRotate( const wxPoint& center )
void LIB_FIELD::DoRotate( const wxPoint& center, bool aRotateCCW )
{
RotatePoint( &m_Pos, center, -900 );
int rot_angle = aRotateCCW ? -900 : 900;
RotatePoint( &m_Pos, center, rot_angle );
m_Orient = m_Orient ? 0 : 900;
}

2
eeschema/lib_field.h

@ -246,7 +246,7 @@ protected:
virtual wxPoint DoGetPosition( void ) const { return m_Pos; }
virtual void DoMirrorHorizontal( const wxPoint& center );
virtual void DoMirrorVertical( const wxPoint& aCenter );
virtual void DoRotate( const wxPoint& aCenter );
virtual void DoRotate( const wxPoint& aCenter, bool aRotateCCW = true );
virtual void DoPlot( PLOTTER* plotter, const wxPoint& offset, bool fill,
const TRANSFORM& aTransform );
virtual int DoGetWidth( void ) const { return m_Thickness; }

55
eeschema/lib_pin.cpp

@ -1685,26 +1685,51 @@ void LIB_PIN::DoMirrorVertical( const wxPoint& center )
m_orientation = PIN_UP;
}
void LIB_PIN::DoRotate( const wxPoint& center )
void LIB_PIN::DoRotate( const wxPoint& center, bool aRotateCCW )
{
RotatePoint( &m_position, center, -900 );
int rot_angle = aRotateCCW ? -900 : 900;
switch( m_orientation )
RotatePoint( &m_position, center, rot_angle );
if( aRotateCCW )
{
case PIN_RIGHT:
m_orientation = PIN_UP;
break;
switch( m_orientation )
{
case PIN_RIGHT:
m_orientation = PIN_UP;
break;
case PIN_UP:
m_orientation = PIN_LEFT;
break;
case PIN_LEFT:
m_orientation = PIN_DOWN;
break;
case PIN_UP:
m_orientation = PIN_LEFT;
break;
case PIN_LEFT:
m_orientation = PIN_DOWN;
break;
case PIN_DOWN:
m_orientation = PIN_RIGHT;
break;
case PIN_DOWN:
m_orientation = PIN_RIGHT;
break;
}
}
else
{
switch( m_orientation )
{
case PIN_RIGHT:
m_orientation = PIN_DOWN;
break;
case PIN_UP:
m_orientation = PIN_RIGHT;
break;
case PIN_LEFT:
m_orientation = PIN_UP;
break;
case PIN_DOWN:
m_orientation = PIN_LEFT;
break;
}
}
}

2
eeschema/lib_pin.h

@ -473,7 +473,7 @@ protected:
virtual wxPoint DoGetPosition() const { return m_position; }
virtual void DoMirrorHorizontal( const wxPoint& aCenter );
virtual void DoMirrorVertical( const wxPoint& aCenter );
virtual void DoRotate( const wxPoint& aCenter );
virtual void DoRotate( const wxPoint& aCenter, bool aRotateCCW = true );
virtual void DoPlot( PLOTTER* aPlotter, const wxPoint& aOffset, bool aFill,
const TRANSFORM& aTransform );
virtual int DoGetWidth() const { return m_width; }

6
eeschema/lib_polyline.cpp

@ -189,13 +189,15 @@ void LIB_POLYLINE::DoMirrorVertical( const wxPoint& aCenter )
}
}
void LIB_POLYLINE::DoRotate( const wxPoint& aCenter )
void LIB_POLYLINE::DoRotate( const wxPoint& aCenter, bool aRotateCCW )
{
int rot_angle = aRotateCCW ? -900 : 900;
size_t i, imax = m_PolyPoints.size();
for( i = 0; i < imax; i++ )
{
RotatePoint( &m_PolyPoints[i], aCenter, -900 );
RotatePoint( &m_PolyPoints[i], aCenter, rot_angle );
}
}

2
eeschema/lib_polyline.h

@ -127,7 +127,7 @@ protected:
virtual wxPoint DoGetPosition() const { return m_PolyPoints[0]; }
virtual void DoMirrorHorizontal( const wxPoint& aCenter );
virtual void DoMirrorVertical( const wxPoint& aCenter );
virtual void DoRotate( const wxPoint& aCenter );
virtual void DoRotate( const wxPoint& aCenter, bool aRotateCCW = true );
virtual void DoPlot( PLOTTER* aPlotter, const wxPoint& aOffset, bool aFill,
const TRANSFORM& aTransform );
virtual int DoGetWidth() const { return m_Width; }

7
eeschema/lib_rectangle.cpp

@ -142,10 +142,11 @@ void LIB_RECTANGLE::DoMirrorVertical( const wxPoint& aCenter )
m_End.y += aCenter.y;
}
void LIB_RECTANGLE::DoRotate( const wxPoint& aCenter )
void LIB_RECTANGLE::DoRotate( const wxPoint& aCenter, bool aRotateCCW )
{
RotatePoint( &m_Pos, aCenter, -900 );
RotatePoint( &m_End, aCenter, -900 );
int rot_angle = aRotateCCW ? -900 : 900;
RotatePoint( &m_Pos, aCenter, rot_angle );
RotatePoint( &m_End, aCenter, rot_angle );
}

2
eeschema/lib_rectangle.h

@ -117,7 +117,7 @@ protected:
virtual wxPoint DoGetPosition() const { return m_Pos; }
virtual void DoMirrorHorizontal( const wxPoint& aCenter );
virtual void DoMirrorVertical( const wxPoint& aCenter );
virtual void DoRotate( const wxPoint& aCenter );
virtual void DoRotate( const wxPoint& aCenter, bool aRotateCCW = true );
virtual void DoPlot( PLOTTER* aPlotter, const wxPoint& aOffset, bool aFill,
const TRANSFORM& aTransform );
virtual int DoGetWidth() const { return m_Width; }

6
eeschema/lib_text.cpp

@ -271,9 +271,11 @@ void LIB_TEXT::DoMirrorVertical( const wxPoint& center )
m_Pos.y += center.y;
}
void LIB_TEXT::DoRotate( const wxPoint& center )
void LIB_TEXT::DoRotate( const wxPoint& center, bool aRotateCCW )
{
RotatePoint( &m_Pos, center, -900 );
int rot_angle = aRotateCCW ? -900 : 900;
RotatePoint( &m_Pos, center, rot_angle );
m_Orient = m_Orient ? 0 : 900;
}

2
eeschema/lib_text.h

@ -142,7 +142,7 @@ protected:
virtual wxPoint DoGetPosition() const { return m_Pos; }
virtual void DoMirrorHorizontal( const wxPoint& aCenter );
virtual void DoMirrorVertical( const wxPoint& aCenter );
virtual void DoRotate( const wxPoint& aCenter );
virtual void DoRotate( const wxPoint& aCenter, bool aRotateCCW = true );
virtual void DoPlot( PLOTTER* aPlotter, const wxPoint& aOffset, bool aFill,
const TRANSFORM& aTransform );
virtual int DoGetWidth() const { return m_Thickness; }

4
eeschema/libedit_onrightclick.cpp

@ -6,7 +6,7 @@
*/
#include "fctsys.h"
#include "gr_basic.h"
//#include "gr_basic.h"
#include "common.h"
#include "macros.h"
#include "confirm.h"
@ -300,7 +300,7 @@ void AddMenusForBlock( wxMenu* PopMenu, LIB_EDIT_FRAME* frame )
ADD_MENUITEM( PopMenu, ID_POPUP_COPY_BLOCK, _( "Copy Block" ), copyblock_xpm );
ADD_MENUITEM( PopMenu, ID_POPUP_MIRROR_Y_BLOCK, _( "Mirror Block ||" ), mirror_H_xpm );
ADD_MENUITEM( PopMenu, ID_POPUP_MIRROR_X_BLOCK, _( "Mirror Block --" ), mirror_V_xpm );
ADD_MENUITEM( PopMenu, ID_POPUP_ROTATE_BLOCK, _( "Rotate Block ccw" ), rotate_pos_xpm );
ADD_MENUITEM( PopMenu, ID_POPUP_ROTATE_BLOCK, _( "Rotate Block ccw" ), rotate_CCW_xpm );
ADD_MENUITEM( PopMenu, ID_POPUP_DELETE_BLOCK, _( "Delete Block" ), delete_xpm );
}
}

10
eeschema/onrightclick.cpp

@ -248,8 +248,8 @@ void AddMenusForComponent( wxMenu* PopMenu, SCH_COMPONENT* Component )
wxMenu* orientmenu = new wxMenu;
msg = AddHotkeyName( _( "Rotate +" ), s_Schematic_Hokeys_Descr, HK_ROTATE );
ADD_MENUITEM( orientmenu, ID_POPUP_SCH_ROTATE_CMP_COUNTERCLOCKWISE, msg, rotate_pos_xpm );
ADD_MENUITEM( orientmenu, ID_POPUP_SCH_ROTATE_CMP_CLOCKWISE, _( "Rotate -" ), rotate_neg_xpm );
ADD_MENUITEM( orientmenu, ID_POPUP_SCH_ROTATE_CMP_COUNTERCLOCKWISE, msg, rotate_CCW_xpm );
ADD_MENUITEM( orientmenu, ID_POPUP_SCH_ROTATE_CMP_CLOCKWISE, _( "Rotate -" ), rotate_CW_xpm );
msg = AddHotkeyName( _( "Mirror --" ), s_Schematic_Hokeys_Descr, HK_MIRROR_X_COMPONENT );
ADD_MENUITEM( orientmenu, ID_POPUP_SCH_MIROR_X_CMP, msg, mirror_V_xpm );
msg = AddHotkeyName( _( "Mirror ||" ), s_Schematic_Hokeys_Descr, HK_MIRROR_Y_COMPONENT );
@ -407,7 +407,7 @@ void AddMenusForLabel( wxMenu* PopMenu, SCH_LABEL* Label )
ADD_MENUITEM( PopMenu, ID_POPUP_SCH_COPY_ITEM, msg, copy_button );
}
msg = AddHotkeyName( _( "Rotate Label" ), s_Schematic_Hokeys_Descr, HK_ROTATE );
ADD_MENUITEM( PopMenu, ID_POPUP_SCH_ROTATE_TEXT, msg, rotate_pos_xpm );
ADD_MENUITEM( PopMenu, ID_POPUP_SCH_ROTATE_TEXT, msg, rotate_CCW_xpm );
msg = AddHotkeyName( _( "Edit Label" ), s_Schematic_Hokeys_Descr, HK_EDIT );
ADD_MENUITEM( PopMenu, ID_POPUP_SCH_EDIT_TEXT, msg, edit_text_xpm );
msg = AddHotkeyName( _( "Delete Label" ), s_Schematic_Hokeys_Descr, HK_DELETE );
@ -441,7 +441,7 @@ void AddMenusForText( wxMenu* PopMenu, SCH_TEXT* Text )
}
msg = AddHotkeyName( _( "Rotate Text" ), s_Schematic_Hokeys_Descr, HK_ROTATE );
ADD_MENUITEM( PopMenu, ID_POPUP_SCH_ROTATE_TEXT, msg, rotate_pos_xpm );
ADD_MENUITEM( PopMenu, ID_POPUP_SCH_ROTATE_TEXT, msg, rotate_CCW_xpm );
msg = AddHotkeyName( _( "Edit Text" ), s_Schematic_Hokeys_Descr, HK_EDIT );
ADD_MENUITEM( PopMenu, ID_POPUP_SCH_EDIT_TEXT, msg, edit_text_xpm );
msg = AddHotkeyName( _( "Delete Text" ), s_Schematic_Hokeys_Descr, HK_DELETE );
@ -644,7 +644,7 @@ void AddMenusForBlock( wxMenu* PopMenu, SCH_EDIT_FRAME* frame )
ADD_MENUITEM( PopMenu, ID_POPUP_DELETE_BLOCK, _( "Delete Block" ), delete_xpm );
ADD_MENUITEM( PopMenu, ID_POPUP_MIRROR_Y_BLOCK, _( "Mirror Block ||" ), mirror_H_xpm );
ADD_MENUITEM( PopMenu, ID_POPUP_MIRROR_X_BLOCK, _( "Mirror Block --" ), mirror_V_xpm );
ADD_MENUITEM( PopMenu, ID_POPUP_ROTATE_BLOCK, _( "Rotate Block ccw" ), rotate_pos_xpm );
ADD_MENUITEM( PopMenu, ID_POPUP_ROTATE_BLOCK, _( "Rotate Block ccw" ), rotate_CCW_xpm );
#if 0
#ifdef __WINDOWS__

4
include/bitmaps.h

@ -356,8 +356,8 @@ extern const char* rotate_glabel_xpm[];
extern const char* rotate_module_neg_xpm[];
extern const char* rotate_module_pos_xpm[];
extern const char* rotate_pin_xpm[];
extern const char* rotate_neg_xpm[];
extern const char* rotate_pos_xpm[];
extern const char* rotate_CW_xpm[];
extern const char* rotate_CCW_xpm[];
extern const char* rotate_neg_X_xpm[];
extern const char* rotate_pos_X_xpm[];
extern const char* rotate_neg_Y_xpm[];

2
pcbnew/modedit_onclick.cpp

@ -228,7 +228,7 @@ bool WinEDA_ModuleEditFrame::OnRightClick( const wxPoint& MousePos, wxMenu* PopM
mirror_H_xpm );
ADD_MENUITEM( PopMenu, ID_POPUP_ROTATE_BLOCK,
_( "Rotate Block (ctrl + drag mouse)" ),
rotate_pos_xpm );
rotate_CCW_xpm );
ADD_MENUITEM( PopMenu, ID_POPUP_DELETE_BLOCK,
_( "Delete Block (shift+ctrl + drag mouse)" ),
delete_xpm );

4
pcbnew/onrightclick.cpp

@ -379,7 +379,7 @@ void PCB_EDIT_FRAME::createPopUpBlockMenu( wxMenu* menu )
ADD_MENUITEM( menu, ID_POPUP_PLACE_BLOCK, _( "Place Block" ), apply_xpm );
ADD_MENUITEM( menu, ID_POPUP_COPY_BLOCK, _( "Copy Block" ), copyblock_xpm );
ADD_MENUITEM( menu, ID_POPUP_FLIP_BLOCK, _( "Flip Block" ), invert_module_xpm );
ADD_MENUITEM( menu, ID_POPUP_ROTATE_BLOCK, _( "Rotate Block" ), rotate_pos_xpm );
ADD_MENUITEM( menu, ID_POPUP_ROTATE_BLOCK, _( "Rotate Block" ), rotate_CCW_xpm );
ADD_MENUITEM( menu, ID_POPUP_DELETE_BLOCK, _( "Delete Block" ), delete_xpm );
}
@ -780,7 +780,7 @@ void PCB_EDIT_FRAME::createPopUpMenuForTexts( TEXTE_PCB* Text, wxMenu* menu )
msg, move_text_xpm );
}
msg = AddHotkeyName( _( "Rotate" ), g_Board_Editor_Hokeys_Descr, HK_ROTATE_ITEM );
ADD_MENUITEM( sub_menu_Text, ID_POPUP_PCB_ROTATE_TEXTEPCB, msg, rotate_pos_xpm );
ADD_MENUITEM( sub_menu_Text, ID_POPUP_PCB_ROTATE_TEXTEPCB, msg, rotate_CCW_xpm );
msg = AddHotkeyName( _( "Edit" ), g_Board_Editor_Hokeys_Descr, HK_EDIT_ITEM );
ADD_MENUITEM( sub_menu_Text, ID_POPUP_PCB_EDIT_TEXTEPCB, msg, edit_text_xpm );
ADD_MENUITEM( sub_menu_Text, ID_POPUP_PCB_RESET_TEXT_SIZE,

Loading…
Cancel
Save