2009-08-11 10:27:21 +00:00
|
|
|
/************************************************/
|
|
|
|
/* Module editor: Dialog box for editing module */
|
|
|
|
/* properties and carateristics */
|
|
|
|
/************************************************/
|
|
|
|
|
2012-01-23 04:33:36 +00:00
|
|
|
#include <dialog_edit_module_for_BoardEditor_base.h>
|
2009-08-11 10:27:21 +00:00
|
|
|
|
|
|
|
/**************************************/
|
|
|
|
/* class DIALOG_MODULE_BOARD_EDITOR */
|
|
|
|
/**************************************/
|
|
|
|
|
|
|
|
class DIALOG_MODULE_BOARD_EDITOR: public DIALOG_MODULE_BOARD_EDITOR_BASE
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
|
2011-03-01 19:26:17 +00:00
|
|
|
PCB_EDIT_FRAME * m_Parent;
|
2009-08-11 10:27:21 +00:00
|
|
|
wxDC * m_DC;
|
|
|
|
MODULE* m_CurrentModule;
|
|
|
|
TEXTE_MODULE* m_ReferenceCopy;
|
|
|
|
TEXTE_MODULE* m_ValueCopy;
|
|
|
|
std::vector <S3D_MASTER*> m_Shapes3D_list;
|
|
|
|
int m_LastSelected3DShapeIndex;
|
2012-08-11 12:52:13 +00:00
|
|
|
VERTEX_VALUE_CTRL * m_3D_Scale;
|
|
|
|
VERTEX_VALUE_CTRL * m_3D_Offset;
|
|
|
|
VERTEX_VALUE_CTRL * m_3D_Rotation;
|
2009-08-11 10:27:21 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
// Constructor and destructor
|
2011-03-01 19:26:17 +00:00
|
|
|
DIALOG_MODULE_BOARD_EDITOR( PCB_EDIT_FRAME* aParent, MODULE* aModule, wxDC* aDC );
|
2009-08-11 10:27:21 +00:00
|
|
|
~DIALOG_MODULE_BOARD_EDITOR();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void InitBoardProperties();
|
|
|
|
void InitModeditProperties();
|
|
|
|
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 );
|
2009-08-11 10:27:21 +00:00
|
|
|
void Browse3DLib( wxCommandEvent& event );
|
|
|
|
void Add3DShape( wxCommandEvent& event );
|
|
|
|
void Remove3DShape( wxCommandEvent& event );
|
|
|
|
void OnCancelClick( wxCommandEvent& event );
|
|
|
|
void OnOkClick( wxCommandEvent& event );
|
|
|
|
void GotoModuleEditor( wxCommandEvent& event );
|
|
|
|
void ExchangeModule( wxCommandEvent& event );
|
|
|
|
void ModuleOrientEvent( wxCommandEvent& event );
|
|
|
|
};
|
|
|
|
|