dialog_global_deletion.h 894 Bytes
Newer Older
1 2 3 4 5 6 7
/////////////////////////////////////////////////////////////////////////////
// Name:        dialog_global_deletion.h
/////////////////////////////////////////////////////////////////////////////

#ifndef _DIALOG_GLOBAL_DELETION_H_
#define _DIALOG_GLOBAL_DELETION_H_

8
#include <dialog_global_deletion_base.h>
9 10 11 12

class DIALOG_GLOBAL_DELETION: public DIALOG_GLOBAL_DELETION_BASE
{
private:
13
    PCB_EDIT_FRAME * m_Parent;
14
    LAYER_NUM m_currentLayer;
15 16

public:
17
    DIALOG_GLOBAL_DELETION( PCB_EDIT_FRAME* parent );
18
    void SetCurrentLayer( LAYER_NUM aLayer );
19 20 21 22 23 24 25 26 27 28 29 30

private:
    void OnOkClick( wxCommandEvent& event )
    {
        AcceptPcbDelete();
        EndModal(wxID_OK);
    }
    void OnCancelClick( wxCommandEvent& event )
    {
        EndModal(wxID_CANCEL);
    }

31
    void AcceptPcbDelete();
32
    void OnCheckDeleteTracks( wxCommandEvent& event );
33 34
};

35
#endif  // _DIALOG_GLOBAL_DELETION_H_