Revert "Removed Pin{Shape,Type}ComboBox::SetSelection()."

Enforcing the appropriate type is a good thing, though it results in
build warnings. For the moment we stay with the latter.

This reverts commit 6dd47119fe.
This commit is contained in:
Maciej Suminski 2017-01-18 16:46:51 +01:00
parent 5a2be26934
commit c4db8bf45f
4 changed files with 14 additions and 0 deletions

View File

@ -61,3 +61,9 @@ GRAPHIC_PINSHAPE PinShapeComboBox::GetPinShapeSelection()
{
return static_cast<GRAPHIC_PINSHAPE>( GetSelection() );
}
void PinShapeComboBox::SetSelection( GRAPHIC_PINSHAPE aShape )
{
wxBitmapComboBox::SetSelection( aShape );
}

View File

@ -47,4 +47,5 @@ public:
const wxString& name = wxBitmapComboBoxNameStr );
GRAPHIC_PINSHAPE GetPinShapeSelection();
void SetSelection( GRAPHIC_PINSHAPE aShape );
};

View File

@ -61,3 +61,9 @@ ELECTRICAL_PINTYPE PinTypeComboBox::GetPinTypeSelection()
{
return static_cast<ELECTRICAL_PINTYPE>( GetSelection() );
}
void PinTypeComboBox::SetSelection( ELECTRICAL_PINTYPE aType )
{
wxBitmapComboBox::SetSelection( aType );
}

View File

@ -47,4 +47,5 @@ public:
const wxString& name = wxBitmapComboBoxNameStr );
ELECTRICAL_PINTYPE GetPinTypeSelection();
void SetSelection( ELECTRICAL_PINTYPE aType );
};