2007-06-05 12:10:51 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: pinedit-dialog.h
|
2008-08-11 18:21:21 +00:00
|
|
|
// Purpose:
|
2007-06-05 12:10:51 +00:00
|
|
|
// Author: jean-pierre Charras
|
2008-08-11 18:21:21 +00:00
|
|
|
// Modified by:
|
2007-06-05 12:10:51 +00:00
|
|
|
// Created: 11/02/2006 13:30:59
|
2008-08-11 18:21:21 +00:00
|
|
|
// RCS-ID:
|
2007-06-05 12:10:51 +00:00
|
|
|
// Copyright: License GNU
|
2008-08-11 18:21:21 +00:00
|
|
|
// Licence:
|
2007-06-05 12:10:51 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
// Generated by DialogBlocks (unregistered), 11/02/2006 13:30:59
|
|
|
|
|
|
|
|
#ifndef _PINEDIT_DIALOG_H_
|
|
|
|
#define _PINEDIT_DIALOG_H_
|
|
|
|
|
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
|
|
|
#pragma interface "pinedit-dialog.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Includes
|
|
|
|
*/
|
|
|
|
#include "fctsys.h"
|
|
|
|
#include "gr_basic.h"
|
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
#include "program.h"
|
|
|
|
#include "libcmp.h"
|
|
|
|
#include "general.h"
|
|
|
|
#include "id.h"
|
|
|
|
|
|
|
|
#include "protos.h"
|
|
|
|
|
|
|
|
////@begin includes
|
2008-08-11 18:21:21 +00:00
|
|
|
#include "wx/spinbutt.h"
|
2007-06-05 12:10:51 +00:00
|
|
|
////@end includes
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Forward declarations
|
|
|
|
*/
|
|
|
|
|
|
|
|
////@begin forward declarations
|
2008-08-11 18:21:21 +00:00
|
|
|
class wxSpinButton;
|
2007-06-05 12:10:51 +00:00
|
|
|
////@end forward declarations
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Control identifiers
|
|
|
|
*/
|
|
|
|
|
|
|
|
////@begin control identifiers
|
|
|
|
#define ID_DIALOG 10000
|
2008-08-11 18:21:21 +00:00
|
|
|
#define ID_TEXTCTRL_PINNAME 10001
|
|
|
|
#define ID_TEXTCTRL_PINNUM 10002
|
|
|
|
#define ID_TEXTCTRL_PINSIZE 10003
|
|
|
|
#define ID_SPINBUTTON_INC_DEC_PINSIZE 10010
|
|
|
|
#define ID_CHECKBOX_COMMON_UNITS 10004
|
|
|
|
#define ID_CHECKBOX_COMMON_CONVERT 10005
|
|
|
|
#define ID_CHECKBOX_NOT_DRAWN 10006
|
|
|
|
#define ID_TEXTCTRL_PINNAME_SIZE 10007
|
|
|
|
#define ID_TEXTCTRL_PINNUM_SIZE 10008
|
2007-06-05 12:10:51 +00:00
|
|
|
#define ID_RADIOBOX 10009
|
|
|
|
#define ID_RADIOBOX1 10012
|
|
|
|
#define ID_RADIOBOX2 10013
|
2007-10-02 15:35:31 +00:00
|
|
|
#define SYMBOL_WINEDA_PINPROPERTIESFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER
|
2007-06-05 12:10:51 +00:00
|
|
|
#define SYMBOL_WINEDA_PINPROPERTIESFRAME_TITLE _("Pin properties")
|
|
|
|
#define SYMBOL_WINEDA_PINPROPERTIESFRAME_IDNAME ID_DIALOG
|
|
|
|
#define SYMBOL_WINEDA_PINPROPERTIESFRAME_SIZE wxSize(400, 300)
|
|
|
|
#define SYMBOL_WINEDA_PINPROPERTIESFRAME_POSITION wxDefaultPosition
|
|
|
|
////@end control identifiers
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Compatibility
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef wxCLOSE_BOX
|
|
|
|
#define wxCLOSE_BOX 0x1000
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* WinEDA_PinPropertiesFrame class declaration
|
|
|
|
*/
|
|
|
|
|
|
|
|
class WinEDA_PinPropertiesFrame: public wxDialog
|
2008-08-11 18:21:21 +00:00
|
|
|
{
|
2007-06-05 12:10:51 +00:00
|
|
|
DECLARE_DYNAMIC_CLASS( WinEDA_PinPropertiesFrame )
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
|
|
|
|
public:
|
|
|
|
/// Constructors
|
|
|
|
WinEDA_PinPropertiesFrame( );
|
|
|
|
WinEDA_PinPropertiesFrame( WinEDA_LibeditFrame* parent, wxWindowID id = SYMBOL_WINEDA_PINPROPERTIESFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_PINPROPERTIESFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_PINPROPERTIESFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_PINPROPERTIESFRAME_SIZE, long style = SYMBOL_WINEDA_PINPROPERTIESFRAME_STYLE );
|
|
|
|
|
|
|
|
/// Creation
|
|
|
|
bool Create( wxWindow* parent, wxWindowID id = SYMBOL_WINEDA_PINPROPERTIESFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_PINPROPERTIESFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_PINPROPERTIESFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_PINPROPERTIESFRAME_SIZE, long style = SYMBOL_WINEDA_PINPROPERTIESFRAME_STYLE );
|
|
|
|
|
|
|
|
/// Creates the controls and sizers
|
|
|
|
void CreateControls();
|
|
|
|
|
|
|
|
////@begin WinEDA_PinPropertiesFrame event handler declarations
|
|
|
|
|
2008-08-11 18:21:21 +00:00
|
|
|
/// wxEVT_SCROLL_LINEUP event handler for ID_SPINBUTTON_INC_DEC_PINSIZE
|
|
|
|
void OnSpinbuttonIncDecPinsizeUp( wxSpinEvent& event );
|
|
|
|
|
|
|
|
/// wxEVT_SCROLL_LINEDOWN event handler for ID_SPINBUTTON_INC_DEC_PINSIZE
|
|
|
|
void OnSpinbuttonIncDecPinsizeDown( wxSpinEvent& event );
|
|
|
|
|
2007-06-05 12:10:51 +00:00
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
|
|
|
|
void OnCancelClick( wxCommandEvent& event );
|
|
|
|
|
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_OK
|
|
|
|
void OnOkClick( wxCommandEvent& event );
|
|
|
|
|
|
|
|
////@end WinEDA_PinPropertiesFrame event handler declarations
|
|
|
|
|
|
|
|
////@begin WinEDA_PinPropertiesFrame member function declarations
|
|
|
|
|
|
|
|
/// Retrieves bitmap resources
|
|
|
|
wxBitmap GetBitmapResource( const wxString& name );
|
|
|
|
|
|
|
|
/// Retrieves icon resources
|
|
|
|
wxIcon GetIconResource( const wxString& name );
|
|
|
|
////@end WinEDA_PinPropertiesFrame member function declarations
|
|
|
|
|
|
|
|
/// Should we show tooltips?
|
|
|
|
static bool ShowToolTips();
|
|
|
|
|
2008-08-11 18:21:21 +00:00
|
|
|
void SetValuesInDialog(void);
|
2007-06-05 12:10:51 +00:00
|
|
|
void PinPropertiesAccept(wxCommandEvent& event);
|
|
|
|
void SetPinName(const wxString & newname, int newsize);
|
|
|
|
void SetPinNum(const wxString & newnum, int newsize);
|
|
|
|
void NewSizePin(int newsize);
|
|
|
|
void SetPinShape( int newshape);
|
|
|
|
void SetPinType(int newtype);
|
|
|
|
void SetPinOrient(int neworient);
|
|
|
|
void SetAttributsPin(bool draw, bool unit, bool convert);
|
|
|
|
|
|
|
|
////@begin WinEDA_PinPropertiesFrame member variables
|
|
|
|
wxTextCtrl* m_PinNameCtrl;
|
|
|
|
wxTextCtrl* m_PinNumCtrl;
|
2008-08-11 18:21:21 +00:00
|
|
|
wxTextCtrl* m_PinSizeCtrl;
|
|
|
|
wxSpinButton* m_PinSizeIncDecButton;
|
|
|
|
wxStaticText* m_PinSizeText;
|
2007-06-05 12:10:51 +00:00
|
|
|
wxCheckBox* m_CommonUnit;
|
|
|
|
wxCheckBox* m_CommonConvert;
|
|
|
|
wxCheckBox* m_NoDraw;
|
|
|
|
wxStaticText* m_PinNameSizeText;
|
|
|
|
wxTextCtrl* m_PinNameSizeCtrl;
|
|
|
|
wxStaticText* m_PinNumSizeText;
|
|
|
|
wxTextCtrl* m_PinNumSizeCtrl;
|
|
|
|
wxRadioBox* m_PinOrient;
|
2008-04-30 11:52:34 +00:00
|
|
|
wxButton* m_btClose;
|
2007-06-05 12:10:51 +00:00
|
|
|
wxRadioBox* m_PinShape;
|
|
|
|
wxRadioBox* m_PinElectricalType;
|
|
|
|
////@end WinEDA_PinPropertiesFrame member variables
|
|
|
|
|
|
|
|
WinEDA_LibeditFrame * m_Parent;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _PINEDIT_DIALOG_H_
|