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>
|
2012-01-23 04:33:36 +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:
|
|
|
|
|
2012-12-10 11:18:42 +00:00
|
|
|
FOOTPRINT_EDIT_FRAME* m_parent;
|
|
|
|
MODULE* m_currentModule;
|
|
|
|
TEXTE_MODULE* m_referenceCopy;
|
|
|
|
TEXTE_MODULE* m_valueCopy;
|
|
|
|
std::vector <S3D_MASTER*> m_shapes3D_list;
|
|
|
|
int m_lastSelected3DShapeIndex;
|
2014-08-09 18:18:04 +00:00
|
|
|
S3DPOINT_VALUE_CTRL * m_3D_Scale;
|
|
|
|
S3DPOINT_VALUE_CTRL * m_3D_Offset;
|
|
|
|
S3DPOINT_VALUE_CTRL * m_3D_Rotation;
|
2009-08-11 10:27:21 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
// Constructor and destructor
|
2011-08-26 17:01:17 +00:00
|
|
|
DIALOG_MODULE_MODULE_EDITOR( FOOTPRINT_EDIT_FRAME* aParent, MODULE* aModule );
|
2009-08-11 10:27:21 +00:00
|
|
|
~DIALOG_MODULE_MODULE_EDITOR();
|
|
|
|
|
|
|
|
private:
|
2012-12-10 11:18:42 +00:00
|
|
|
void initModeditProperties();
|
2009-08-11 10:27:21 +00:00
|
|
|
void Transfert3DValuesToDisplay( S3D_MASTER * aStruct3DSource );
|
|
|
|
void TransfertDisplayTo3DValues( int aIndexSelection );
|
|
|
|
void OnEditValue( wxCommandEvent& event );
|
|
|
|
void OnEditReference( wxCommandEvent& event );
|
|
|
|
void On3DShapeSelection( wxCommandEvent& event );
|
2012-01-23 04:33:36 +00:00
|
|
|
void On3DShapeNameSelected( wxCommandEvent& event );
|
2010-03-01 11:25:08 +00:00
|
|
|
void BrowseAndAdd3DLib( wxCommandEvent& event );
|
2009-08-11 10:27:21 +00:00
|
|
|
void Remove3DShape( wxCommandEvent& event );
|
|
|
|
void OnCancelClick( wxCommandEvent& event );
|
|
|
|
void OnOkClick( wxCommandEvent& event );
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // __DIALOG_EDIT_MODULE_FOR_MODEDIT__
|