summaryrefslogtreecommitdiff
path: root/eeschema/dialogs/dialog_netlist_base.h
blob: 6cfeda28d89cb823200706c4b8bacfe1adc9e48d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Mar  9 2015)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////

#ifndef __DIALOG_NETLIST_BASE_H__
#define __DIALOG_NETLIST_BASE_H__

#include <wx/artprov.h>
#include <wx/xrc/xmlres.h>
#include <wx/intl.h>
class DIALOG_SHIM;

#include "dialog_shim.h"
#include <wx/gdicmn.h>
#include <wx/notebook.h>
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/settings.h>
#include <wx/string.h>
#include <wx/sizer.h>
#include <wx/button.h>
#include <wx/statline.h>
#include <wx/checkbox.h>
#include <wx/stattext.h>
#include <wx/textctrl.h>
#include <wx/dialog.h>

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

///////////////////////////////////////////////////////////////////////////////
/// Class NETLIST_DIALOG_BASE
///////////////////////////////////////////////////////////////////////////////
class NETLIST_DIALOG_BASE : public DIALOG_SHIM
{
	DECLARE_EVENT_TABLE()
	private:
		
		// Private event handlers
		void _wxFB_OnNetlistTypeSelection( wxNotebookEvent& event ){ OnNetlistTypeSelection( event ); }
		void _wxFB_GenNetlist( wxCommandEvent& event ){ GenNetlist( event ); }
		void _wxFB_OnCancelClick( wxCommandEvent& event ){ OnCancelClick( event ); }
		void _wxFB_OnAddPlugin( wxCommandEvent& event ){ OnAddPlugin( event ); }
		void _wxFB_OnDelPlugin( wxCommandEvent& event ){ OnDelPlugin( event ); }
		
	
	protected:
		enum
		{
			ID_CHANGE_NOTEBOOK_PAGE = 1000,
			ID_CREATE_NETLIST,
			ID_ADD_PLUGIN,
			ID_DEL_PLUGIN
		};
		
		wxNotebook* m_NoteBook;
		wxButton* m_buttonNetlist;
		wxButton* m_buttonCancel;
		wxButton* m_buttonAddPlugin;
		wxButton* m_buttonDelPlugin;
		wxStaticLine* m_staticline1;
		wxCheckBox* m_cbUseDefaultNetlistName;
		wxStaticText* m_staticTextDefaultFN;
		wxTextCtrl* m_textCtrlDefaultFileName;
		
		// Virtual event handlers, overide them in your derived class
		virtual void OnNetlistTypeSelection( wxNotebookEvent& event ) { event.Skip(); }
		virtual void GenNetlist( wxCommandEvent& event ) { event.Skip(); }
		virtual void OnCancelClick( wxCommandEvent& event ) { event.Skip(); }
		virtual void OnAddPlugin( wxCommandEvent& event ) { event.Skip(); }
		virtual void OnDelPlugin( wxCommandEvent& event ) { event.Skip(); }
		
	
	public:
		
		NETLIST_DIALOG_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Netlist"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 404,334 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER ); 
		~NETLIST_DIALOG_BASE();
	
};

///////////////////////////////////////////////////////////////////////////////
/// Class NETLIST_DIALOG_ADD_PLUGIN_BASE
///////////////////////////////////////////////////////////////////////////////
class NETLIST_DIALOG_ADD_PLUGIN_BASE : public DIALOG_SHIM
{
	DECLARE_EVENT_TABLE()
	private:
		
		// Private event handlers
		void _wxFB_OnOKClick( wxCommandEvent& event ){ OnOKClick( event ); }
		void _wxFB_OnCancelClick( wxCommandEvent& event ){ OnCancelClick( event ); }
		void _wxFB_OnBrowsePlugins( wxCommandEvent& event ){ OnBrowsePlugins( event ); }
		
	
	protected:
		enum
		{
			wxID_BROWSE_PLUGINS = 1000
		};
		
		wxStaticText* m_staticTextCmd;
		wxTextCtrl* m_textCtrlCommand;
		wxStaticText* m_staticTextName;
		wxTextCtrl* m_textCtrlName;
		wxButton* m_buttonOK;
		wxButton* m_buttonCancel;
		wxButton* m_buttonPlugin;
		
		// Virtual event handlers, overide them in your derived class
		virtual void OnOKClick( wxCommandEvent& event ) { event.Skip(); }
		virtual void OnCancelClick( wxCommandEvent& event ) { event.Skip(); }
		virtual void OnBrowsePlugins( wxCommandEvent& event ) { event.Skip(); }
		
	
	public:
		
		NETLIST_DIALOG_ADD_PLUGIN_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Plugins:"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 312,144 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER ); 
		~NETLIST_DIALOG_ADD_PLUGIN_BASE();
	
};

#endif //__DIALOG_NETLIST_BASE_H__