2009-08-11 10:27:21 +00:00
|
|
|
/*****************************************************************************/
|
|
|
|
/* Module editor: Dialog box for editing module properties and carateristics */
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
|
|
#ifndef __DIALOG_EDIT_MODULE_FOR_MODEDIT__
|
|
|
|
#define __DIALOG_EDIT_MODULE_FOR_MODEDIT__
|
|
|
|
|
|
|
|
// Include the wxFormBuider header base:
|
|
|
|
#include <vector>
|
2009-08-13 10:24:16 +00:00
|
|
|
#include "dialog_edit_module_for_Modedit_base.h"
|
2009-08-11 10:27:21 +00:00
|
|
|
|
|
|
|
/**************************************/
|
|
|
|
/* class DIALOG_MODULE_MODULE_EDITOR */
|
|
|
|
/**************************************/
|
|
|
|
|
|
|
|
class DIALOG_MODULE_MODULE_EDITOR : public DIALOG_MODULE_MODULE_EDITOR_BASE
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
|
|
|
|
WinEDA_ModuleEditFrame* m_Parent;
|
|
|
|
MODULE* m_CurrentModule;
|
|
|
|
TEXTE_MODULE* m_ReferenceCopy;
|
|
|
|
TEXTE_MODULE* m_ValueCopy;
|
|
|
|
std::vector <S3D_MASTER*> m_Shapes3D_list;
|
|
|
|
int m_LastSelected3DShapeIndex;
|
|
|
|
WinEDA_VertexCtrl * m_3D_Scale;
|
|
|
|
WinEDA_VertexCtrl * m_3D_Offset;
|
|
|
|
WinEDA_VertexCtrl * m_3D_Rotation;
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
// Constructor and destructor
|
|
|
|
DIALOG_MODULE_MODULE_EDITOR( WinEDA_ModuleEditFrame* aParent, MODULE* aModule );
|
|
|
|
~DIALOG_MODULE_MODULE_EDITOR();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void InitModeditProperties();
|
|
|
|
void Transfert3DValuesToDisplay( S3D_MASTER * aStruct3DSource );
|
|
|
|
void TransfertDisplayTo3DValues( int aIndexSelection );
|
|
|
|
void OnEditValue( wxCommandEvent& event );
|
|
|
|
void OnEditReference( wxCommandEvent& event );
|
|
|
|
void On3DShapeSelection( wxCommandEvent& event );
|
|
|
|
void On3DShapeNameSelected( wxCommandEvent& event );
|
|
|
|
void Browse3DLib( wxCommandEvent& event );
|
|
|
|
void Add3DShape( wxCommandEvent& event );
|
|
|
|
void Remove3DShape( wxCommandEvent& event );
|
|
|
|
void OnCancelClick( wxCommandEvent& event );
|
|
|
|
void OnOkClick( wxCommandEvent& event );
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // __DIALOG_EDIT_MODULE_FOR_MODEDIT__
|