dialog_erc_base.h 3.24 KB
Newer Older
1
///////////////////////////////////////////////////////////////////////////
2
// C++ code generated with wxFormBuilder (version Apr 11 2012)
3 4 5 6 7
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////

8 9
#ifndef __DIALOG_ERC_BASE_H__
#define __DIALOG_ERC_BASE_H__
10

11 12
#include <wx/artprov.h>
#include <wx/xrc/xmlres.h>
13
#include <wx/intl.h>
14 15
#include "dialog_erc_listbox.h"
#include "dialog_shim.h"
16 17 18 19 20 21 22 23
#include <wx/string.h>
#include <wx/stattext.h>
#include <wx/gdicmn.h>
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/settings.h>
#include <wx/sizer.h>
#include <wx/statbox.h>
24
#include <wx/textctrl.h>
25 26 27
#include <wx/button.h>
#include <wx/checkbox.h>
#include <wx/statline.h>
28
#include <wx/listbox.h>
29 30 31 32 33 34 35 36 37 38 39 40
#include <wx/panel.h>
#include <wx/bitmap.h>
#include <wx/image.h>
#include <wx/icon.h>
#include <wx/notebook.h>
#include <wx/dialog.h>

///////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////
/// Class DIALOG_ERC_BASE
///////////////////////////////////////////////////////////////////////////////
41
class DIALOG_ERC_BASE : public DIALOG_SHIM
42 43 44 45 46 47 48 49
{
	DECLARE_EVENT_TABLE()
	private:
		
		// Private event handlers
		void _wxFB_OnErcCmpClick( wxCommandEvent& event ){ OnErcCmpClick( event ); }
		void _wxFB_OnEraseDrcMarkersClick( wxCommandEvent& event ){ OnEraseDrcMarkersClick( event ); }
		void _wxFB_OnCancelClick( wxCommandEvent& event ){ OnCancelClick( event ); }
50
		void _wxFB_OnLeftDClickMarkersList( wxCommandEvent& event ){ OnLeftDClickMarkersList( event ); }
51 52 53 54 55 56 57 58
		void _wxFB_OnResetMatrixClick( wxCommandEvent& event ){ OnResetMatrixClick( event ); }
		
	
	protected:
		enum
		{
			ID_ERC_CMP = 1000,
			ID_ERASE_DRC_MARKERS,
59
			ID_MAKER_HTMLLISTBOX,
60
			ID_RESET_MATRIX
61 62 63 64 65 66 67 68 69 70
		};
		
		wxNotebook* m_NoteBook;
		wxPanel* m_PanelERC;
		wxStaticText* m_ErcTotalErrorsText;
		wxStaticText* m_TotalErrCount;
		wxStaticText* m_WarnErcErrorsText;
		wxStaticText* m_LastWarningCount;
		wxStaticText* m_LastErrCountText;
		wxStaticText* m_LastErrCount;
71 72
		wxStaticText* m_titleMessages;
		wxTextCtrl* m_MessagesList;
73 74 75 76 77
		wxButton* m_buttonERC;
		wxButton* m_buttondelmarkers;
		wxButton* m_buttonClose;
		wxCheckBox* m_WriteResultOpt;
		wxStaticLine* m_staticline2;
78 79
		wxStaticText* m_textMarkers;
		ERC_HTML_LISTBOX* m_MarkersList;
80 81 82 83 84 85 86
		wxPanel* m_PanelERCOptions;
		wxBoxSizer* m_PanelMatrixSizer;
		wxButton* m_ResetOptButton;
		wxStaticLine* m_staticline1;
		wxBoxSizer* m_MatrixSizer;
		
		// Virtual event handlers, overide them in your derived class
87 88 89 90 91
		virtual void OnErcCmpClick( wxCommandEvent& event ) { event.Skip(); }
		virtual void OnEraseDrcMarkersClick( wxCommandEvent& event ) { event.Skip(); }
		virtual void OnCancelClick( wxCommandEvent& event ) { event.Skip(); }
		virtual void OnLeftDClickMarkersList( wxCommandEvent& event ) { event.Skip(); }
		virtual void OnResetMatrixClick( wxCommandEvent& event ) { event.Skip(); }
92 93 94
		
	
	public:
95 96
		
		DIALOG_ERC_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("EESchema Erc"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER ); 
97 98 99 100
		~DIALOG_ERC_BASE();
	
};

101
#endif //__DIALOG_ERC_BASE_H__