dialog_cleaning_options.h 1.15 KB
Newer Older
1 2 3 4 5 6 7 8
/////////////////////////////////////////////////////////////////////////////
// Name:        dialog_cleaning_options.h
// Author:      jean-pierre Charras
/////////////////////////////////////////////////////////////////////////////

#ifndef DIALOG_CLEANING_OPTIONS_H_
#define DIALOG_CLEANING_OPTIONS_H_

9
#include <dialog_cleaning_options_base.h>
10 11 12 13

class DIALOG_CLEANING_OPTIONS: public DIALOG_CLEANING_OPTIONS_BASE
{
public:
14 15 16
    static bool m_cleanVias;
    static bool m_mergeSegments;
    static bool m_deleteUnconnectedSegm;
17 18 19 20 21 22

public:
    DIALOG_CLEANING_OPTIONS( wxWindow* parent );

    ~DIALOG_CLEANING_OPTIONS()
    {
23
        GetOpts( );
24 25 26
    }

private:
27
        void OnCancelClick( wxCommandEvent& event )
28 29 30
        {
            EndModal( wxID_CANCEL );
        }
31
        void OnOKClick( wxCommandEvent& event )
32 33 34 35 36 37 38
        {
            GetOpts( );
            EndModal( wxID_OK );
        }

        void GetOpts( )
        {
39 40 41
            m_cleanVias = m_cleanViasOpt->GetValue( );
            m_mergeSegments = m_mergeSegmOpt->GetValue( );
            m_deleteUnconnectedSegm = m_deleteUnconnectedOpt->GetValue( );
42 43 44 45 46
        }
};

#endif
    // DIALOG_CLEANING_OPTIONS_H_