dialog_lib_edit_draw_item.h 1.05 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
#ifndef __dialog_lib_edit_draw_item__
#define __dialog_lib_edit_draw_item__

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

class LIB_DRAW_ITEM;


#include <dialog_lib_edit_draw_item_base.h>


/**
 * Dialog to edit library component graphic items.
 */
class DIALOG_LIB_EDIT_DRAW_ITEM : public DIALOG_LIB_EDIT_DRAW_ITEM_BASE
{
public:
    /** Constructor */
    DIALOG_LIB_EDIT_DRAW_ITEM( wxWindow* parent, const wxString& itemName );

    wxString GetWidth( void );
    void SetWidth( const wxString& width );

    bool GetApplyToAllConversions( void );
    void SetApplyToAllConversions( bool applyToAll );
    void EnableApplyToAllConversions( bool enable = true );

    bool GetApplyToAllUnits( void );
    void SetApplyToAllUnits( bool applyToAll );
    void EnableApplyToAllUnits( bool enable = true );

    int GetFillStyle( void );
    void SetFillStyle( int fillStyle );
    void EnableFillStyle( bool enable = true );

    void SetWidthUnits( const wxString& units );
};

#endif // __dialog_lib_edit_draw_item__