dialog_sch_edit_sheet_pin.h 1.26 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
#ifndef __dialog_sch_edit_sheet_pin__
#define __dialog_sch_edit_sheet_pin__


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


11
#include <dialog_sch_edit_sheet_pin_base.h>
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35


class DIALOG_SCH_EDIT_SHEET_PIN : public DIALOG_SCH_EDIT_SHEET_PIN_BASE
{
public:
    DIALOG_SCH_EDIT_SHEET_PIN( wxWindow* parent );

    void SetLabelName( const wxString& aName ) { m_textName->SetValue( aName ); }
    wxString GetLabelName() const { return m_textName->GetValue(); }

    void SetTextHeight( const wxString& aHeight ) { m_textHeight->SetValue( aHeight ); }
    wxString GetTextHeight() const { return m_textHeight->GetValue(); }

    void SetTextWidth( const wxString& aWidth ) { m_textWidth->SetValue( aWidth ); }
    wxString GetTextWidth() const { return m_textWidth->GetValue(); }

    void SetConnectionType( int aType ) { m_choiceConnectionType->SetSelection( aType ); }
    int GetConnectionType() const { return m_choiceConnectionType->GetCurrentSelection(); }

    void SetTextHeightUnits( const wxString& aUnit ) { m_staticHeightUnits->SetLabel( aUnit ); }
    void SetTextWidthUnits( const wxString& aUnit ) { m_staticWidthUnits->SetLabel( aUnit ); }
};

#endif // __dialog_sch_edit_sheet_pin__