/////////////////////////////////////////////////////////////////////////////
// Name:        dialog_create_component.h
// Purpose:     
// Author:      
// Modified by: 
// Created:     01/14/06 10:14:28
// RCS-ID:      
// Copyright:   
// Licence:     
/////////////////////////////////////////////////////////////////////////////

// Generated by DialogBlocks (unregistered), 01/14/06 10:14:28

#ifndef _DIALOG_CREATE_COMPONENT_H_
#define _DIALOG_CREATE_COMPONENT_H_

#if defined(__GNUG__) && !defined(__APPLE__)
#pragma interface "dialog_create_component.cpp"
#endif

/*!
 * Includes
 */

////@begin includes
#include "wx/statline.h"
#include "wx/spinctrl.h"
////@end includes

/*!
 * Forward declarations
 */

////@begin forward declarations
class wxSpinCtrl;
////@end forward declarations

/*!
 * Control identifiers
 */

////@begin control identifiers
#define ID_DIALOG 10000
#define SYMBOL_WINEDA_CREATECMPDIALOG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxSTAY_ON_TOP|wxCLOSE_BOX
#define SYMBOL_WINEDA_CREATECMPDIALOG_TITLE _("Component Creation")
#define SYMBOL_WINEDA_CREATECMPDIALOG_IDNAME ID_DIALOG
#define SYMBOL_WINEDA_CREATECMPDIALOG_SIZE wxSize(400, 300)
#define SYMBOL_WINEDA_CREATECMPDIALOG_POSITION wxDefaultPosition
#define ID_TEXTCTRL1 10009
#define ID_TEXTCTRL 10008
#define ID_CHECKBOX3 10005
#define ID_CHECKBOX4 10006
#define ID_CHECKBOX2 10004
#define ID_RADIOBOX 10003
#define ID_CHECKBOX1 10002
#define ID_CHECKBOX5 10007
#define ID_CHECKBOX 10001
#define ID_SPINCTRL 10010
////@end control identifiers

/*!
 * Compatibility
 */

#ifndef wxCLOSE_BOX
#define wxCLOSE_BOX 0x1000
#endif
#ifndef wxFIXED_MINSIZE
#define wxFIXED_MINSIZE 0
#endif

/*!
 * WinEDA_CreateCmpDialog class declaration
 */

class WinEDA_CreateCmpDialog: public wxDialog
{    
    DECLARE_DYNAMIC_CLASS( WinEDA_CreateCmpDialog )
    DECLARE_EVENT_TABLE()

public:
    /// Constructors
    WinEDA_CreateCmpDialog( );
    WinEDA_CreateCmpDialog( WinEDA_DrawFrame* parent, wxWindowID id = SYMBOL_WINEDA_CREATECMPDIALOG_IDNAME, const wxString& caption = SYMBOL_WINEDA_CREATECMPDIALOG_TITLE, const wxPoint& pos = SYMBOL_WINEDA_CREATECMPDIALOG_POSITION, const wxSize& size = SYMBOL_WINEDA_CREATECMPDIALOG_SIZE, long style = SYMBOL_WINEDA_CREATECMPDIALOG_STYLE );

    /// Creation
    bool Create( WinEDA_DrawFrame* parent, wxWindowID id = SYMBOL_WINEDA_CREATECMPDIALOG_IDNAME, const wxString& caption = SYMBOL_WINEDA_CREATECMPDIALOG_TITLE, const wxPoint& pos = SYMBOL_WINEDA_CREATECMPDIALOG_POSITION, const wxSize& size = SYMBOL_WINEDA_CREATECMPDIALOG_SIZE, long style = SYMBOL_WINEDA_CREATECMPDIALOG_STYLE );

    /// Creates the controls and sizers
    void CreateControls();

    // others functions:
    wxString ReturnCmpName(void)
    {
        return m_CmpName->GetValue();
    }
    void SetComponentData( EDA_LibComponentStruct & component );
////@begin WinEDA_CreateCmpDialog event handler declarations

    /// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_OK
    void OnOkClick( wxCommandEvent& event );

    /// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
    void OnCancelClick( wxCommandEvent& event );

////@end WinEDA_CreateCmpDialog event handler declarations

////@begin WinEDA_CreateCmpDialog member function declarations

    /// Retrieves bitmap resources
    wxBitmap GetBitmapResource( const wxString& name );

    /// Retrieves icon resources
    wxIcon GetIconResource( const wxString& name );
////@end WinEDA_CreateCmpDialog member function declarations

    /// Should we show tooltips?
    static bool ShowToolTips();

////@begin WinEDA_CreateCmpDialog member variables
    wxTextCtrl* m_CmpName;
    wxTextCtrl* m_Reference;
    wxCheckBox* m_AsConvert;
    wxCheckBox* m_IsPowerSymbol;
    wxCheckBox* m_PartsAreLocked;
    wxRadioBox* m_PartsCount;
    wxCheckBox* m_ShowPinNum;
    wxCheckBox* m_ShowPinname;
    wxCheckBox* m_PinNameInside;
    wxSpinCtrl* m_SetSkew;
////@end WinEDA_CreateCmpDialog member variables
};

#endif
    // _DIALOG_CREATE_COMPONENT_H_
