#ifndef __dialog_lib_new_component__
#define __dialog_lib_new_component__

/**
@file
Subclass of DIALOG_LIB_NEW_COMPONENT, which is generated by wxFormBuilder.
*/

#include <dialog_lib_new_component_base.h>

/** Implementing DIALOG_LIB_NEW_COMPONENT */
class DIALOG_LIB_NEW_COMPONENT : public DIALOG_LIB_NEW_COMPONENT_BASE
{
public:
    /** Constructor */
    DIALOG_LIB_NEW_COMPONENT( wxWindow* parent );

    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(); }

    void SetPinNameInside( bool show )
    {
        m_checkShowPinNameInside->SetValue( show );
    }
    bool GetPinNameInside( void ) { return m_checkShowPinNameInside->GetValue(); }
};

#endif // __dialog_lib_new_component__
