Commit 892b46c4 authored by g_harland's avatar g_harland
Browse files

Three more dialogs enhanced

parent e4a6e4e2
Loading
Loading
Loading
Loading
+12 −0
Original line number Original line Diff line number Diff line
@@ -4,6 +4,18 @@ Started 2007-June-11
Please add newer entries at the top, list the date and your name with 
Please add newer entries at the top, list the date and your name with 
email address.
email address.


2007-Nov-13 UPDATE   Geoff Harland <gharlandau@yahoo.com.au>
================================================================================
+ eeschema & pcbnew
  * The "Page Settings" dialog box has been enhanced; it now includes a
    wxStdDialogButtonSizer, and is also now designed to be expandable.
+ pcbnew
  * The "DRC Control" and "Netlist:" dialog boxes have also been enhanced. Each
    of those dialogs now includes a wxStdDialogButtonSizer and a "Cancel" button,
    (so each of those dialogs can now (otherwise) be cancelled by pressing the
    "Esc" key), and is also now designed to be expandable.


2007-Nov-11 UPDATE   Dick Hollenbeck <dick@softplc.com>
2007-Nov-11 UPDATE   Dick Hollenbeck <dick@softplc.com>
================================================================================
================================================================================
+ pcbnew
+ pcbnew
+120 −101
Original line number Original line Diff line number Diff line
@@ -47,8 +47,6 @@ IMPLEMENT_DYNAMIC_CLASS( WinEDA_DrcFrame, wxDialog )
BEGIN_EVENT_TABLE( WinEDA_DrcFrame, wxDialog )
BEGIN_EVENT_TABLE( WinEDA_DrcFrame, wxDialog )


////@begin WinEDA_DrcFrame event table entries
////@begin WinEDA_DrcFrame event table entries
    EVT_CLOSE( WinEDA_DrcFrame::OnCloseWindow )

    EVT_BUTTON( ID_DRC_RUN, WinEDA_DrcFrame::OnDrcRunClick )
    EVT_BUTTON( ID_DRC_RUN, WinEDA_DrcFrame::OnDrcRunClick )


    EVT_BUTTON( ID_STOP_CONTROL_DRC, WinEDA_DrcFrame::OnStopControlDrcClick )
    EVT_BUTTON( ID_STOP_CONTROL_DRC, WinEDA_DrcFrame::OnStopControlDrcClick )
@@ -57,10 +55,12 @@ BEGIN_EVENT_TABLE( WinEDA_DrcFrame, wxDialog )


    EVT_BUTTON( ID_LIST_UNCONNECTED_PADS, WinEDA_DrcFrame::OnListUnconnectedPadsClick )
    EVT_BUTTON( ID_LIST_UNCONNECTED_PADS, WinEDA_DrcFrame::OnListUnconnectedPadsClick )


    EVT_BUTTON( wxID_CLOSE, WinEDA_DrcFrame::OnCloseClick )

    EVT_BUTTON( ID_BUTTON_BROWSE_RPT_FILE, WinEDA_DrcFrame::OnButtonBrowseRptFileClick )
    EVT_BUTTON( ID_BUTTON_BROWSE_RPT_FILE, WinEDA_DrcFrame::OnButtonBrowseRptFileClick )


    EVT_BUTTON( wxID_OK, WinEDA_DrcFrame::OnOkClick )

    EVT_BUTTON( wxID_CANCEL, WinEDA_DrcFrame::OnCancelClick )

////@end WinEDA_DrcFrame event table entries
////@end WinEDA_DrcFrame event table entries


END_EVENT_TABLE()
END_EVENT_TABLE()
@@ -74,7 +74,11 @@ WinEDA_DrcFrame::WinEDA_DrcFrame( )
}
}


WinEDA_DrcFrame::WinEDA_DrcFrame( WinEDA_PcbFrame* parent, wxDC * panelDC,
WinEDA_DrcFrame::WinEDA_DrcFrame( WinEDA_PcbFrame* parent, wxDC * panelDC,
		wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
                                  wxWindowID id,
                                  const wxString& caption,
                                  const wxPoint& pos,
                                  const wxSize& size,
                                  long style )
{
{
    m_Parent = parent;
    m_Parent = parent;
    m_DC = panelDC;
    m_DC = panelDC;
@@ -103,6 +107,8 @@ bool WinEDA_DrcFrame::Create( wxWindow* parent, wxWindowID id, const wxString& c
    m_CreateRptCtrl = NULL;
    m_CreateRptCtrl = NULL;
    m_RptFilenameCtrl = NULL;
    m_RptFilenameCtrl = NULL;
    m_logWindow = NULL;
    m_logWindow = NULL;
    Line = NULL;
    StdDialogButtonSizer = NULL;
////@end WinEDA_DrcFrame member initialisation
////@end WinEDA_DrcFrame member initialisation


////@begin WinEDA_DrcFrame creation
////@begin WinEDA_DrcFrame creation
@@ -128,7 +134,7 @@ void WinEDA_DrcFrame::CreateControls()
    SetFont( *g_DialogFont );
    SetFont( *g_DialogFont );
    
    
////@begin WinEDA_DrcFrame content construction
////@begin WinEDA_DrcFrame content construction
    // Generated by DialogBlocks, Tue 02 Oct 2007 16:31:47 CDT (unregistered)
    // Generated by DialogBlocks, 13/11/2007 16:40:34 (unregistered)


    WinEDA_DrcFrame* itemDialog1 = this;
    WinEDA_DrcFrame* itemDialog1 = this;


@@ -136,16 +142,16 @@ void WinEDA_DrcFrame::CreateControls()
    itemDialog1->SetSizer(m_MainSizer);
    itemDialog1->SetSizer(m_MainSizer);


    m_CommandSizer = new wxBoxSizer(wxHORIZONTAL);
    m_CommandSizer = new wxBoxSizer(wxHORIZONTAL);
    m_MainSizer->Add(m_CommandSizer, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
    m_MainSizer->Add(m_CommandSizer, 0, wxGROW|wxALL, 5);


    wxStaticBox* itemStaticBoxSizer4Static = new wxStaticBox(itemDialog1, wxID_ANY, _("Options"));
    wxStaticBox* itemStaticBoxSizer4Static = new wxStaticBox(itemDialog1, wxID_ANY, _("Options"));
    wxStaticBoxSizer* itemStaticBoxSizer4 = new wxStaticBoxSizer(itemStaticBoxSizer4Static, wxVERTICAL);
    wxStaticBoxSizer* itemStaticBoxSizer4 = new wxStaticBoxSizer(itemStaticBoxSizer4Static, wxVERTICAL);
    m_CommandSizer->Add(itemStaticBoxSizer4, 0, wxGROW|wxALL, 5);
    m_CommandSizer->Add(itemStaticBoxSizer4, 0, wxALIGN_TOP|wxLEFT|wxTOP|wxBOTTOM, 5);


    m_ClearenceTitle = new wxStaticText( itemDialog1, wxID_STATIC, _("Clearance"), wxDefaultPosition, wxDefaultSize, 0 );
    m_ClearenceTitle = new wxStaticText( itemDialog1, wxID_STATIC, _("Clearance"), wxDefaultPosition, wxDefaultSize, 0 );
    itemStaticBoxSizer4->Add(m_ClearenceTitle, 0, wxGROW|wxLEFT|wxRIGHT|wxTOP|wxADJUST_MINSIZE, 5);
    itemStaticBoxSizer4->Add(m_ClearenceTitle, 0, wxGROW|wxLEFT|wxRIGHT|wxTOP|wxADJUST_MINSIZE, 5);


    m_SetClearance = new wxTextCtrl( itemDialog1, ID_TEXTCTRL1, _T(""), wxDefaultPosition, wxDefaultSize, 0 );
    m_SetClearance = new wxTextCtrl( itemDialog1, ID_TEXTCTRL_CLEARANCE, _T(""), wxDefaultPosition, wxDefaultSize, 0 );
    itemStaticBoxSizer4->Add(m_SetClearance, 0, wxGROW|wxLEFT|wxRIGHT|wxBOTTOM, 5);
    itemStaticBoxSizer4->Add(m_SetClearance, 0, wxGROW|wxLEFT|wxRIGHT|wxBOTTOM, 5);


    itemStaticBoxSizer4->Add(5, 5, 0, wxGROW|wxALL, 5);
    itemStaticBoxSizer4->Add(5, 5, 0, wxGROW|wxALL, 5);
@@ -158,7 +164,7 @@ void WinEDA_DrcFrame::CreateControls()
    m_Pad2PadTestCtrl->SetValue(false);
    m_Pad2PadTestCtrl->SetValue(false);
    itemStaticBoxSizer8->Add(m_Pad2PadTestCtrl, 0, wxGROW|wxALL, 5);
    itemStaticBoxSizer8->Add(m_Pad2PadTestCtrl, 0, wxGROW|wxALL, 5);


    m_UnconnectedTestCtrl = new wxCheckBox( itemDialog1, ID_CHECKBOX, _("Include unconnected"), wxDefaultPosition, wxDefaultSize, 0 );
    m_UnconnectedTestCtrl = new wxCheckBox( itemDialog1, ID_CHECKBOX_UNCONNECTED, _("Include unconnected"), wxDefaultPosition, wxDefaultSize, 0 );
    m_UnconnectedTestCtrl->SetValue(false);
    m_UnconnectedTestCtrl->SetValue(false);
    itemStaticBoxSizer8->Add(m_UnconnectedTestCtrl, 0, wxGROW|wxALL, 5);
    itemStaticBoxSizer8->Add(m_UnconnectedTestCtrl, 0, wxGROW|wxALL, 5);


@@ -170,40 +176,39 @@ void WinEDA_DrcFrame::CreateControls()
    m_CreateRptCtrl->SetValue(false);
    m_CreateRptCtrl->SetValue(false);
    itemStaticBoxSizer8->Add(m_CreateRptCtrl, 0, wxGROW|wxALL, 5);
    itemStaticBoxSizer8->Add(m_CreateRptCtrl, 0, wxGROW|wxALL, 5);


    wxBoxSizer* itemBoxSizer13 = new wxBoxSizer(wxVERTICAL);
    m_CommandSizer->Add(5, 5, 1, wxALIGN_CENTER_VERTICAL|wxLEFT|wxTOP|wxBOTTOM, 5);
    m_CommandSizer->Add(itemBoxSizer13, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);


    wxBoxSizer* itemBoxSizer14 = new wxBoxSizer(wxHORIZONTAL);
    wxBoxSizer* itemBoxSizer14 = new wxBoxSizer(wxVERTICAL);
    itemBoxSizer13->Add(itemBoxSizer14, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
    m_CommandSizer->Add(itemBoxSizer14, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM, 5);


    wxBoxSizer* itemBoxSizer15 = new wxBoxSizer(wxVERTICAL);
    wxBoxSizer* itemBoxSizer15 = new wxBoxSizer(wxHORIZONTAL);
    itemBoxSizer14->Add(itemBoxSizer15, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
    itemBoxSizer14->Add(itemBoxSizer15, 0, wxALIGN_CENTER_HORIZONTAL|wxRIGHT|wxTOP, 5);


    wxButton* itemButton16 = new wxButton( itemDialog1, ID_DRC_RUN, _("Test Drc"), wxDefaultPosition, wxDefaultSize, 0 );
    wxBoxSizer* itemBoxSizer16 = new wxBoxSizer(wxVERTICAL);
    itemButton16->SetForegroundColour(wxColour(202, 0, 0));
    itemBoxSizer15->Add(itemBoxSizer16, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
    itemBoxSizer15->Add(itemButton16, 0, wxGROW|wxALL, 5);


    wxButton* itemButton17 = new wxButton( itemDialog1, ID_STOP_CONTROL_DRC, _("Stop Drc"), wxDefaultPosition, wxDefaultSize, 0 );
    wxButton* itemButton17 = new wxButton( itemDialog1, ID_DRC_RUN, _("Test Drc"), wxDefaultPosition, wxDefaultSize, 0 );
    itemButton17->SetForegroundColour(wxColour(0, 128, 128));
    itemButton17->SetForegroundColour(wxColour(202, 0, 0));
    itemBoxSizer15->Add(itemButton17, 0, wxGROW|wxALL, 5);
    itemBoxSizer16->Add(itemButton17, 0, wxGROW|wxALL, 5);


    wxBoxSizer* itemBoxSizer18 = new wxBoxSizer(wxVERTICAL);
    wxButton* itemButton18 = new wxButton( itemDialog1, ID_STOP_CONTROL_DRC, _("Stop Drc"), wxDefaultPosition, wxDefaultSize, 0 );
    itemBoxSizer14->Add(itemBoxSizer18, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
    itemButton18->SetForegroundColour(wxColour(0, 128, 128));
    itemBoxSizer16->Add(itemButton18, 0, wxGROW|wxALL, 5);


    wxButton* itemButton19 = new wxButton( itemDialog1, ID_ERASE_DRC_MARKERS, _("Del Markers"), wxDefaultPosition, wxDefaultSize, 0 );
    wxBoxSizer* itemBoxSizer19 = new wxBoxSizer(wxVERTICAL);
    itemButton19->SetForegroundColour(wxColour(0, 128, 0));
    itemBoxSizer15->Add(itemBoxSizer19, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
    itemBoxSizer18->Add(itemButton19, 0, wxGROW|wxALL, 5);


    wxButton* itemButton20 = new wxButton( itemDialog1, ID_LIST_UNCONNECTED_PADS, _("List Unconn"), wxDefaultPosition, wxDefaultSize, 0 );
    wxButton* itemButton20 = new wxButton( itemDialog1, ID_ERASE_DRC_MARKERS, _("Del Markers"), wxDefaultPosition, wxDefaultSize, 0 );
    itemButton20->SetForegroundColour(wxColour(0, 0, 255));
    itemButton20->SetForegroundColour(wxColour(0, 128, 0));
    itemBoxSizer18->Add(itemButton20, 0, wxGROW|wxALL, 5);
    itemBoxSizer19->Add(itemButton20, 0, wxGROW|wxALL, 5);


    wxButton* itemButton21 = new wxButton( itemDialog1, wxID_CLOSE, _("&Close"), wxDefaultPosition, wxDefaultSize, 0 );
    wxButton* itemButton21 = new wxButton( itemDialog1, ID_LIST_UNCONNECTED_PADS, _("List Unconn"), wxDefaultPosition, wxDefaultSize, 0 );
    itemBoxSizer13->Add(itemButton21, 0, wxGROW|wxALL, 5);
    itemButton21->SetForegroundColour(wxColour(0, 0, 255));
    itemBoxSizer19->Add(itemButton21, 0, wxGROW|wxALL, 5);


    wxStaticBox* itemStaticBoxSizer22Static = new wxStaticBox(itemDialog1, wxID_ANY, _("Report File"));
    wxStaticBox* itemStaticBoxSizer22Static = new wxStaticBox(itemDialog1, wxID_ANY, _("Report File"));
    wxStaticBoxSizer* itemStaticBoxSizer22 = new wxStaticBoxSizer(itemStaticBoxSizer22Static, wxVERTICAL);
    wxStaticBoxSizer* itemStaticBoxSizer22 = new wxStaticBoxSizer(itemStaticBoxSizer22Static, wxVERTICAL);
    itemBoxSizer13->Add(itemStaticBoxSizer22, 0, wxGROW|wxALL, 5);
    itemBoxSizer14->Add(itemStaticBoxSizer22, 0, wxGROW|wxLEFT|wxRIGHT|wxTOP, 5);


    wxButton* itemButton23 = new wxButton( itemDialog1, ID_BUTTON_BROWSE_RPT_FILE, _("Browse"), wxDefaultPosition, wxDefaultSize, 0 );
    wxButton* itemButton23 = new wxButton( itemDialog1, ID_BUTTON_BROWSE_RPT_FILE, _("Browse"), wxDefaultPosition, wxDefaultSize, 0 );
    itemButton23->SetForegroundColour(wxColour(0, 128, 128));
    itemButton23->SetForegroundColour(wxColour(0, 128, 128));
@@ -213,10 +218,26 @@ void WinEDA_DrcFrame::CreateControls()
    itemStaticBoxSizer22->Add(m_RptFilenameCtrl, 0, wxGROW|wxALL, 5);
    itemStaticBoxSizer22->Add(m_RptFilenameCtrl, 0, wxGROW|wxALL, 5);


    wxStaticText* itemStaticText25 = new wxStaticText( itemDialog1, wxID_STATIC, _("Messages:"), wxDefaultPosition, wxDefaultSize, 0 );
    wxStaticText* itemStaticText25 = new wxStaticText( itemDialog1, wxID_STATIC, _("Messages:"), wxDefaultPosition, wxDefaultSize, 0 );
    m_MainSizer->Add(itemStaticText25, 0, wxGROW|wxLEFT|wxRIGHT|wxTOP|wxADJUST_MINSIZE, 5);
    m_MainSizer->Add(itemStaticText25, 0, wxGROW|wxLEFT|wxRIGHT|wxADJUST_MINSIZE, 10);


    m_logWindow = new wxTextCtrl( itemDialog1, ID_TEXTCTRL, _T(""), wxDefaultPosition, wxSize(-1, 300), wxTE_MULTILINE|wxTE_READONLY|wxHSCROLL|wxFULL_REPAINT_ON_RESIZE );
    m_logWindow = new wxTextCtrl( itemDialog1, ID_TEXTCTRL, _T(""), wxDefaultPosition, wxSize(-1, 300), wxTE_MULTILINE|wxTE_READONLY|wxHSCROLL|wxFULL_REPAINT_ON_RESIZE );
    m_MainSizer->Add(m_logWindow, 0, wxGROW|wxLEFT|wxRIGHT|wxBOTTOM, 5);
    m_MainSizer->Add(m_logWindow, 1, wxGROW|wxLEFT|wxRIGHT|wxBOTTOM, 10);

    Line = new wxStaticLine( itemDialog1, ID_STATICLINE, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
    m_MainSizer->Add(Line, 0, wxGROW|wxLEFT|wxRIGHT, 5);

    StdDialogButtonSizer = new wxStdDialogButtonSizer;

    m_MainSizer->Add(StdDialogButtonSizer, 0, wxGROW|wxALL, 10);
    wxButton* itemButton29 = new wxButton( itemDialog1, wxID_OK, _("&OK"), wxDefaultPosition, wxDefaultSize, 0 );
    itemButton29->SetForegroundColour(wxColour(200, 0, 0));
    StdDialogButtonSizer->AddButton(itemButton29);

    wxButton* itemButton30 = new wxButton( itemDialog1, wxID_CANCEL, _("&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
    itemButton30->SetForegroundColour(wxColour(0, 0, 255));
    StdDialogButtonSizer->AddButton(itemButton30);

    StdDialogButtonSizer->Realize();


    // Set validators
    // Set validators
    m_Pad2PadTestCtrl->SetValidator( wxGenericValidator(& s_Pad2PadTestOpt) );
    m_Pad2PadTestCtrl->SetValidator( wxGenericValidator(& s_Pad2PadTestOpt) );
@@ -282,8 +303,10 @@ void WinEDA_DrcFrame::OnDrcRunClick( wxCommandEvent& event )


void WinEDA_DrcFrame::OnStopControlDrcClick( wxCommandEvent& event )
void WinEDA_DrcFrame::OnStopControlDrcClick( wxCommandEvent& event )
{
{
	if ( DrcInProgress ) AbortDrc = TRUE;
    if( DrcInProgress )
	else wxBell();
        AbortDrc = TRUE;
    else
        wxBell();
}
}


/*!
/*!
@@ -304,37 +327,6 @@ void WinEDA_DrcFrame::OnListUnconnectedPadsClick( wxCommandEvent& event )
    ListUnconnectedPads(event);
    ListUnconnectedPads(event);
}
}


/*!
 * wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CLOSE
 */

void WinEDA_DrcFrame::OnCloseClick( wxCommandEvent& event )
{
    s_Pad2PadTestOpt = m_Pad2PadTestCtrl->IsChecked();
    s_UnconnectedTestOpt = m_UnconnectedTestCtrl->IsChecked();
    s_ZonesTestOpt = m_ZonesTestCtrl->IsChecked();
	s_CreateRptFileOpt = m_CreateRptCtrl->IsChecked();
	Close();
}





/*!
 * wxEVT_CLOSE_WINDOW event handler for ID_DIALOG
 */

void WinEDA_DrcFrame::OnCloseWindow( wxCloseEvent& event )
{
    s_Pad2PadTestOpt = m_Pad2PadTestCtrl->IsChecked();
    s_UnconnectedTestOpt = m_UnconnectedTestCtrl->IsChecked();
    s_ZonesTestOpt = m_ZonesTestCtrl->IsChecked();
	s_CreateRptFileOpt = m_CreateRptCtrl->IsChecked();
    event.Skip();
}


/*!
/*!
 * wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_BROWSE_RPT_FILE
 * wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_BROWSE_RPT_FILE
 */
 */
@@ -356,7 +348,8 @@ wxString FileName, Mask(wxT("*")), Ext(wxT(".rpt"));
                                 wxFD_SAVE,
                                 wxFD_SAVE,
                                 TRUE
                                 TRUE
                                 );
                                 );
	if ( FileName.IsEmpty()) return;
    if( FileName.IsEmpty() )
        return;


    m_RptFilenameCtrl->SetValue(FileName);
    m_RptFilenameCtrl->SetValue(FileName);
    s_RptFilename = FileName;
    s_RptFilename = FileName;
@@ -409,3 +402,29 @@ bool WinEDA_DrcFrame::ProcessEvent( wxEvent& event )
    }
    }
}
}



/*!
 * wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_OK
 */

void WinEDA_DrcFrame::OnOkClick( wxCommandEvent& event )
{
    s_Pad2PadTestOpt = m_Pad2PadTestCtrl->IsChecked();
    s_UnconnectedTestOpt = m_UnconnectedTestCtrl->IsChecked();
    s_ZonesTestOpt = m_ZonesTestCtrl->IsChecked();
    s_CreateRptFileOpt = m_CreateRptCtrl->IsChecked();
    event.Skip();
}


/*!
 * wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
 */

void WinEDA_DrcFrame::OnCancelClick( wxCommandEvent& event )
{
////@begin wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL in WinEDA_DrcFrame.
    // Before editing this code, remove the block markers.
    event.Skip();
////@end wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL in WinEDA_DrcFrame. 
}
+26 −16
Original line number Original line Diff line number Diff line
@@ -24,6 +24,7 @@


////@begin includes
////@begin includes
#include "wx/valgen.h"
#include "wx/valgen.h"
#include "wx/statline.h"
////@end includes
////@end includes


/*!
/*!
@@ -32,6 +33,8 @@


////@begin forward declarations
////@begin forward declarations
class wxBoxSizer;
class wxBoxSizer;
class wxStaticLine;
class wxStdDialogButtonSizer;
////@end forward declarations
////@end forward declarations


/*!
/*!
@@ -40,9 +43,9 @@ class wxBoxSizer;


////@begin control identifiers
////@begin control identifiers
#define ID_DIALOG 10000
#define ID_DIALOG 10000
#define ID_TEXTCTRL1 10002
#define ID_TEXTCTRL_CLEARANCE 10002
#define ID_CHECKBOX_PAD2PAD 10009
#define ID_CHECKBOX_PAD2PAD 10009
#define ID_CHECKBOX 10008
#define ID_CHECKBOX_UNCONNECTED 10008
#define ID_CHECKBOX_TEST_ZONES 10007
#define ID_CHECKBOX_TEST_ZONES 10007
#define ID_CHECKBOX_CREATE_FILE 10012
#define ID_CHECKBOX_CREATE_FILE 10012
#define ID_DRC_RUN 10003
#define ID_DRC_RUN 10003
@@ -52,7 +55,8 @@ class wxBoxSizer;
#define ID_BUTTON_BROWSE_RPT_FILE 10011
#define ID_BUTTON_BROWSE_RPT_FILE 10011
#define ID_TEXTCTRL_GET_RPT_FILENAME 10010
#define ID_TEXTCTRL_GET_RPT_FILENAME 10010
#define ID_TEXTCTRL 10001
#define ID_TEXTCTRL 10001
#define SYMBOL_WINEDA_DRCFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER
#define ID_STATICLINE 10013
#define SYMBOL_WINEDA_DRCFRAME_STYLE wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER
#define SYMBOL_WINEDA_DRCFRAME_TITLE _("DRC Control")
#define SYMBOL_WINEDA_DRCFRAME_TITLE _("DRC Control")
#define SYMBOL_WINEDA_DRCFRAME_IDNAME ID_DIALOG
#define SYMBOL_WINEDA_DRCFRAME_IDNAME ID_DIALOG
#define SYMBOL_WINEDA_DRCFRAME_SIZE wxSize(400, 300)
#define SYMBOL_WINEDA_DRCFRAME_SIZE wxSize(400, 300)
@@ -80,7 +84,11 @@ public:
    /// Constructors
    /// Constructors
    WinEDA_DrcFrame( );
    WinEDA_DrcFrame( );
    WinEDA_DrcFrame( WinEDA_PcbFrame* parent, wxDC * panelDC,
    WinEDA_DrcFrame( WinEDA_PcbFrame* parent, wxDC * panelDC,
		wxWindowID id = SYMBOL_WINEDA_DRCFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_DRCFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_DRCFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_DRCFRAME_SIZE, long style = SYMBOL_WINEDA_DRCFRAME_STYLE );
                     wxWindowID id = SYMBOL_WINEDA_DRCFRAME_IDNAME,
                     const wxString& caption = SYMBOL_WINEDA_DRCFRAME_TITLE,
                     const wxPoint& pos = SYMBOL_WINEDA_DRCFRAME_POSITION,
                     const wxSize& size = SYMBOL_WINEDA_DRCFRAME_SIZE,
                     long style = SYMBOL_WINEDA_DRCFRAME_STYLE );


    /// Creation
    /// Creation
    bool Create( wxWindow* parent, wxWindowID id = SYMBOL_WINEDA_DRCFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_DRCFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_DRCFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_DRCFRAME_SIZE, long style = SYMBOL_WINEDA_DRCFRAME_STYLE );
    bool Create( wxWindow* parent, wxWindowID id = SYMBOL_WINEDA_DRCFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_DRCFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_DRCFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_DRCFRAME_SIZE, long style = SYMBOL_WINEDA_DRCFRAME_STYLE );
@@ -93,9 +101,6 @@ public:


////@begin WinEDA_DrcFrame event handler declarations
////@begin WinEDA_DrcFrame event handler declarations


    /// wxEVT_CLOSE_WINDOW event handler for ID_DIALOG
    void OnCloseWindow( wxCloseEvent& event );

    /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_DRC_RUN
    /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_DRC_RUN
    void OnDrcRunClick( wxCommandEvent& event );
    void OnDrcRunClick( wxCommandEvent& event );


@@ -108,12 +113,15 @@ public:
    /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_LIST_UNCONNECTED_PADS
    /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_LIST_UNCONNECTED_PADS
    void OnListUnconnectedPadsClick( wxCommandEvent& event );
    void OnListUnconnectedPadsClick( wxCommandEvent& event );


    /// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CLOSE
    void OnCloseClick( wxCommandEvent& event );

    /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_BROWSE_RPT_FILE
    /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_BROWSE_RPT_FILE
    void OnButtonBrowseRptFileClick( wxCommandEvent& event );
    void OnButtonBrowseRptFileClick( wxCommandEvent& event );


    /// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_OK
    void OnOkClick( wxCommandEvent& event );

    /// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
    void OnCancelClick( wxCommandEvent& event );

////@end WinEDA_DrcFrame event handler declarations
////@end WinEDA_DrcFrame event handler declarations


////@begin WinEDA_DrcFrame member function declarations
////@begin WinEDA_DrcFrame member function declarations
@@ -143,6 +151,8 @@ public:
    wxCheckBox* m_CreateRptCtrl;
    wxCheckBox* m_CreateRptCtrl;
    wxTextCtrl* m_RptFilenameCtrl;
    wxTextCtrl* m_RptFilenameCtrl;
    wxTextCtrl* m_logWindow;
    wxTextCtrl* m_logWindow;
    wxStaticLine* Line;
    wxStdDialogButtonSizer* StdDialogButtonSizer;
////@end WinEDA_DrcFrame member variables
////@end WinEDA_DrcFrame member variables
    WinEDA_PcbFrame * m_Parent;
    WinEDA_PcbFrame * m_Parent;
    wxDC * m_DC;
    wxDC * m_DC;
Loading