2009-10-08 13:19:28 +00:00
|
|
|
#ifndef __dialog_lib_new_component__
|
|
|
|
#define __dialog_lib_new_component__
|
|
|
|
|
|
|
|
/**
|
|
|
|
@file
|
|
|
|
Subclass of DIALOG_LIB_NEW_COMPONENT, which is generated by wxFormBuilder.
|
|
|
|
*/
|
|
|
|
|
2012-01-23 04:33:36 +00:00
|
|
|
#include <dialog_lib_new_component_base.h>
|
2009-10-08 13:19:28 +00:00
|
|
|
|
|
|
|
/** Implementing DIALOG_LIB_NEW_COMPONENT */
|
|
|
|
class DIALOG_LIB_NEW_COMPONENT : public DIALOG_LIB_NEW_COMPONENT_BASE
|
|
|
|
{
|
|
|
|
public:
|
2012-01-23 04:33:36 +00:00
|
|
|
/** Constructor */
|
|
|
|
DIALOG_LIB_NEW_COMPONENT( wxWindow* parent );
|
2009-10-08 13:19:28 +00:00
|
|
|
|
|
|
|
void SetName( const wxString& name ) { m_textName->SetValue( name ); }
|
|
|
|
wxString GetName( void ) { return m_textName->GetValue(); }
|
|
|
|
|
|
|
|
void SetReference( const wxString& reference )
|
|
|
|
{
|
|
|
|
m_textReference->SetValue( reference );
|
|
|
|
}
|
|
|
|
wxString GetReference( void ) { return m_textReference->GetValue(); }
|
|
|
|
|
|
|
|
void SetPartCount( int count ) { m_spinPartCount->SetValue( count ); }
|
|
|
|
int GetPartCount( void ) { return m_spinPartCount->GetValue(); }
|
|
|
|
|
|
|
|
void SetAlternateBodyStyle( bool enable )
|
|
|
|
{
|
|
|
|
m_checkHasConversion->SetValue( enable );
|
|
|
|
}
|
|
|
|
bool GetAlternateBodyStyle( void )
|
|
|
|
{
|
|
|
|
return m_checkHasConversion->GetValue();
|
|
|
|
}
|
|
|
|
|
|
|
|
void SetPowerSymbol( bool enable )
|
|
|
|
{
|
|
|
|
m_checkIsPowerSymbol->SetValue( enable );
|
|
|
|
}
|
|
|
|
bool GetPowerSymbol( void ) { return m_checkIsPowerSymbol->GetValue(); }
|
|
|
|
|
|
|
|
void SetLockItems( bool enable ) { m_checkLockItems->SetValue( enable ); }
|
|
|
|
bool GetLockItems( void ) { return m_checkLockItems->GetValue(); }
|
|
|
|
|
|
|
|
void SetPinTextPosition( int position )
|
|
|
|
{
|
|
|
|
m_spinPinTextPosition->SetValue( position );
|
|
|
|
}
|
|
|
|
int GetPinTextPosition( void ) { return m_spinPinTextPosition->GetValue(); }
|
|
|
|
|
|
|
|
void SetShowPinNumber( bool show )
|
|
|
|
{
|
|
|
|
m_checkShowPinNumber->SetValue( show );
|
|
|
|
}
|
|
|
|
bool GetShowPinNumber( void ) { return m_checkShowPinNumber->GetValue(); }
|
|
|
|
|
|
|
|
void SetShowPinName( bool show )
|
|
|
|
{
|
|
|
|
m_checkShowPinName->SetValue( show );
|
|
|
|
}
|
|
|
|
bool GetShowPinName( void ) { return m_checkShowPinName->GetValue(); }
|
2009-10-10 17:27:53 +00:00
|
|
|
|
|
|
|
void SetPinNameInside( bool show )
|
|
|
|
{
|
|
|
|
m_checkShowPinNameInside->SetValue( show );
|
|
|
|
}
|
|
|
|
bool GetPinNameInside( void ) { return m_checkShowPinNameInside->GetValue(); }
|
2009-10-08 13:19:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __dialog_lib_new_component__
|