dialog_edit_module_for_Modedit.h 1.73 KB
Newer Older
charras's avatar
charras committed
1 2 3 4 5 6 7 8 9
/*****************************************************************************/
/* 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>
10
#include <dialog_edit_module_for_Modedit_base.h>
charras's avatar
charras committed
11 12 13 14 15 16 17 18 19

/**************************************/
/* class DIALOG_MODULE_MODULE_EDITOR */
/**************************************/

class DIALOG_MODULE_MODULE_EDITOR : public DIALOG_MODULE_MODULE_EDITOR_BASE
{
private:

20 21 22 23 24 25
    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;
26 27 28
    VERTEX_VALUE_CTRL * m_3D_Scale;
    VERTEX_VALUE_CTRL * m_3D_Offset;
    VERTEX_VALUE_CTRL * m_3D_Rotation;
charras's avatar
charras committed
29 30 31 32

public:

    // Constructor and destructor
33
    DIALOG_MODULE_MODULE_EDITOR( FOOTPRINT_EDIT_FRAME* aParent, MODULE* aModule );
charras's avatar
charras committed
34 35 36
    ~DIALOG_MODULE_MODULE_EDITOR();

private:
37
    void initModeditProperties();
charras's avatar
charras committed
38 39 40 41 42
    void Transfert3DValuesToDisplay( S3D_MASTER * aStruct3DSource );
    void TransfertDisplayTo3DValues( int aIndexSelection );
    void OnEditValue( wxCommandEvent& event );
    void OnEditReference( wxCommandEvent& event );
    void On3DShapeSelection( wxCommandEvent& event );
43
    void On3DShapeNameSelected( wxCommandEvent& event );
44
    void BrowseAndAdd3DLib( wxCommandEvent& event );
charras's avatar
charras committed
45 46 47 48 49 50 51
    void Remove3DShape( wxCommandEvent& event );
    void OnCancelClick( wxCommandEvent& event );
    void OnOkClick( wxCommandEvent& event );
};


#endif      //  __DIALOG_EDIT_MODULE_FOR_MODEDIT__