You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

122 lines
4.1 KiB

  1. ///////////////////////////////////////////////////////////////////////////
  2. // C++ code generated with wxFormBuilder (version Dec 30 2017)
  3. // http://www.wxformbuilder.org/
  4. //
  5. // PLEASE DO *NOT* EDIT THIS FILE!
  6. ///////////////////////////////////////////////////////////////////////////
  7. #ifndef __DIALOG_NETLIST_BASE_H__
  8. #define __DIALOG_NETLIST_BASE_H__
  9. #include <wx/artprov.h>
  10. #include <wx/xrc/xmlres.h>
  11. #include <wx/intl.h>
  12. #include "dialog_shim.h"
  13. #include <wx/gdicmn.h>
  14. #include <wx/notebook.h>
  15. #include <wx/font.h>
  16. #include <wx/colour.h>
  17. #include <wx/settings.h>
  18. #include <wx/string.h>
  19. #include <wx/sizer.h>
  20. #include <wx/button.h>
  21. #include <wx/statline.h>
  22. #include <wx/checkbox.h>
  23. #include <wx/stattext.h>
  24. #include <wx/textctrl.h>
  25. #include <wx/dialog.h>
  26. ///////////////////////////////////////////////////////////////////////////
  27. ///////////////////////////////////////////////////////////////////////////////
  28. /// Class NETLIST_DIALOG_BASE
  29. ///////////////////////////////////////////////////////////////////////////////
  30. class NETLIST_DIALOG_BASE : public DIALOG_SHIM
  31. {
  32. DECLARE_EVENT_TABLE()
  33. private:
  34. // Private event handlers
  35. void _wxFB_OnNetlistTypeSelection( wxNotebookEvent& event ){ OnNetlistTypeSelection( event ); }
  36. void _wxFB_GenNetlist( wxCommandEvent& event ){ GenNetlist( event ); }
  37. void _wxFB_OnCancelClick( wxCommandEvent& event ){ OnCancelClick( event ); }
  38. void _wxFB_OnAddPlugin( wxCommandEvent& event ){ OnAddPlugin( event ); }
  39. void _wxFB_OnDelPlugin( wxCommandEvent& event ){ OnDelPlugin( event ); }
  40. protected:
  41. enum
  42. {
  43. ID_CHANGE_NOTEBOOK_PAGE = 1000,
  44. ID_CREATE_NETLIST,
  45. ID_ADD_PLUGIN,
  46. ID_DEL_PLUGIN
  47. };
  48. wxNotebook* m_NoteBook;
  49. wxButton* m_buttonNetlist;
  50. wxButton* m_buttonCancel;
  51. wxButton* m_buttonAddPlugin;
  52. wxButton* m_buttonDelPlugin;
  53. wxStaticLine* m_staticline1;
  54. wxCheckBox* m_cbUseDefaultNetlistName;
  55. wxStaticText* m_staticTextDefaultFN;
  56. wxTextCtrl* m_textCtrlDefaultFileName;
  57. // Virtual event handlers, overide them in your derived class
  58. virtual void OnNetlistTypeSelection( wxNotebookEvent& event ) { event.Skip(); }
  59. virtual void GenNetlist( wxCommandEvent& event ) { event.Skip(); }
  60. virtual void OnCancelClick( wxCommandEvent& event ) { event.Skip(); }
  61. virtual void OnAddPlugin( wxCommandEvent& event ) { event.Skip(); }
  62. virtual void OnDelPlugin( wxCommandEvent& event ) { event.Skip(); }
  63. public:
  64. NETLIST_DIALOG_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Netlist"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
  65. ~NETLIST_DIALOG_BASE();
  66. };
  67. ///////////////////////////////////////////////////////////////////////////////
  68. /// Class NETLIST_DIALOG_ADD_PLUGIN_BASE
  69. ///////////////////////////////////////////////////////////////////////////////
  70. class NETLIST_DIALOG_ADD_PLUGIN_BASE : public DIALOG_SHIM
  71. {
  72. DECLARE_EVENT_TABLE()
  73. private:
  74. // Private event handlers
  75. void _wxFB_OnOKClick( wxCommandEvent& event ){ OnOKClick( event ); }
  76. void _wxFB_OnCancelClick( wxCommandEvent& event ){ OnCancelClick( event ); }
  77. void _wxFB_OnBrowsePlugins( wxCommandEvent& event ){ OnBrowsePlugins( event ); }
  78. protected:
  79. enum
  80. {
  81. wxID_BROWSE_PLUGINS = 1000
  82. };
  83. wxStaticText* m_staticTextCmd;
  84. wxTextCtrl* m_textCtrlCommand;
  85. wxStaticText* m_staticTextName;
  86. wxTextCtrl* m_textCtrlName;
  87. wxButton* m_buttonOK;
  88. wxButton* m_buttonCancel;
  89. wxButton* m_buttonPlugin;
  90. // Virtual event handlers, overide them in your derived class
  91. virtual void OnOKClick( wxCommandEvent& event ) { event.Skip(); }
  92. virtual void OnCancelClick( wxCommandEvent& event ) { event.Skip(); }
  93. virtual void OnBrowsePlugins( wxCommandEvent& event ) { event.Skip(); }
  94. public:
  95. NETLIST_DIALOG_ADD_PLUGIN_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Plugin Properties"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
  96. ~NETLIST_DIALOG_ADD_PLUGIN_BASE();
  97. };
  98. #endif //__DIALOG_NETLIST_BASE_H__