Refinements in pad properties dialog

This commit is contained in:
jean-pierre charras 2017-09-20 16:14:23 +02:00
parent 7c1ac6fbcc
commit 8d1d37beb0
3 changed files with 4 additions and 4 deletions

View File

@ -498,8 +498,8 @@ DIALOG_PAD_PRIMITIVES_TRANSFORM::DIALOG_PAD_PRIMITIVES_TRANSFORM(
if( !aShowDuplicate ) // means no duplicate transform if( !aShowDuplicate ) // means no duplicate transform
{ {
m_staticTextDupCnt->Enable( false ); m_staticTextDupCnt->Show( false );
m_spinCtrlDuplicateCount->Enable( false ); m_spinCtrlDuplicateCount->Show( false );
} }
m_sdbSizerOK->SetDefault(); m_sdbSizerOK->SetDefault();

View File

@ -1867,7 +1867,7 @@ void DIALOG_PAD_PROPERTIES::onGeometryTransform( wxCommandEvent& event )
shapeList.push_back( &m_primitives[select] ); shapeList.push_back( &m_primitives[select] );
} }
DIALOG_PAD_PRIMITIVES_TRANSFORM dlg( this, shapeList ); DIALOG_PAD_PRIMITIVES_TRANSFORM dlg( this, shapeList, false );
if( dlg.ShowModal() != wxID_OK ) if( dlg.ShowModal() != wxID_OK )
return; return;

View File

@ -236,7 +236,7 @@ class DIALOG_PAD_PRIMITIVES_TRANSFORM : public DIALOG_PAD_PRIMITIVES_TRANSFORM_B
{ {
public: public:
DIALOG_PAD_PRIMITIVES_TRANSFORM( wxWindow* aParent, DIALOG_PAD_PRIMITIVES_TRANSFORM( wxWindow* aParent,
std::vector<PAD_CS_PRIMITIVE*>& aList, bool aShowDuplicate = false ); std::vector<PAD_CS_PRIMITIVE*>& aList, bool aShowDuplicate );
/** /**
* Apply geometric transform (rotation, move, scale) defined in dialog * Apply geometric transform (rotation, move, scale) defined in dialog