20DIALOG_EXPORT_NETLIST_BASE::
DIALOG_EXPORT_NETLIST_BASE( wxWindow* parent, wxWindowID
id, const wxString& title, const wxPoint& pos, const wxSize& size,
long style ) :
DIALOG_SHIM( parent,
id, title, pos, size, style )
22 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
24 wxBoxSizer* bMainSizer;
25 bMainSizer =
new wxBoxSizer( wxVERTICAL );
27 wxBoxSizer* bUpperSizer;
28 bUpperSizer =
new wxBoxSizer( wxVERTICAL );
31 bSizer8 =
new wxBoxSizer( wxHORIZONTAL );
33 m_staticTextOutputPath =
new wxStaticText(
this, wxID_ANY,
_(
"Output Path:"), wxDefaultPosition, wxDefaultSize, 0 );
34 m_staticTextOutputPath->Wrap( -1 );
35 bSizer8->Add( m_staticTextOutputPath, 0, wxALL, 5 );
37 m_outputPath =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
38 m_outputPath->SetMinSize( wxSize( 450,-1 ) );
40 bSizer8->Add( m_outputPath, 0, wxALL, 5 );
43 bUpperSizer->Add( bSizer8, 1, wxEXPAND, 5 );
45 m_NoteBook =
new wxNotebook(
this, ID_CHANGE_NOTEBOOK_PAGE, wxDefaultPosition, wxDefaultSize, 0 );
46 m_NoteBook->SetMinSize( wxSize( 540,-1 ) );
49 bUpperSizer->Add( m_NoteBook, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
51 wxBoxSizer* bSizerMsgPanel;
52 bSizerMsgPanel =
new wxBoxSizer( wxVERTICAL );
54 m_MessagesBox =
new WX_HTML_REPORT_PANEL(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
55 bSizerMsgPanel->Add( m_MessagesBox, 1, wxEXPAND|wxTOP, 5 );
58 bUpperSizer->Add( bSizerMsgPanel, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
61 bMainSizer->Add( bUpperSizer, 1, wxEXPAND, 5 );
63 m_buttonSizer =
new wxBoxSizer( wxHORIZONTAL );
65 m_buttonAddGenerator =
new wxButton(
this, ID_ADD_PLUGIN,
_(
"Add Exporter..."), wxDefaultPosition, wxDefaultSize, 0 );
66 m_buttonSizer->Add( m_buttonAddGenerator, 0, wxALIGN_CENTER_VERTICAL, 5 );
68 m_buttonDelGenerator =
new wxButton(
this, ID_DEL_PLUGIN,
_(
"Remove Exporter"), wxDefaultPosition, wxDefaultSize, 0 );
69 m_buttonSizer->Add( m_buttonDelGenerator, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
71 m_sdbSizer2 =
new wxStdDialogButtonSizer();
72 m_sdbSizer2OK =
new wxButton(
this, wxID_OK );
73 m_sdbSizer2->AddButton( m_sdbSizer2OK );
74 m_sdbSizer2Cancel =
new wxButton(
this, wxID_CANCEL );
75 m_sdbSizer2->AddButton( m_sdbSizer2Cancel );
76 m_sdbSizer2->Realize();
78 m_buttonSizer->Add( m_sdbSizer2, 1, wxEXPAND, 5 );
81 bMainSizer->Add( m_buttonSizer, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxTOP, 5 );
84 this->SetSizer( bMainSizer );
86 bMainSizer->Fit(
this );
88 this->Centre( wxBOTH );
99NETLIST_DIALOG_ADD_GENERATOR_BASE::
NETLIST_DIALOG_ADD_GENERATOR_BASE( wxWindow* parent, wxWindowID
id, const wxString& title, const wxPoint& pos, const wxSize& size,
long style ) :
DIALOG_SHIM( parent,
id, title, pos, size, style )
101 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
103 wxBoxSizer* bSizerMain;
104 bSizerMain =
new wxBoxSizer( wxVERTICAL );
106 wxBoxSizer* bSizerTop;
107 bSizerTop =
new wxBoxSizer( wxVERTICAL );
109 m_staticTextName =
new wxStaticText(
this, wxID_ANY,
_(
"Name:"), wxDefaultPosition, wxDefaultSize, 0 );
110 m_staticTextName->Wrap( -1 );
111 bSizerTop->Add( m_staticTextName, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
113 m_textCtrlName =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
114 bSizerTop->Add( m_textCtrlName, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
116 m_staticTextCmd =
new wxStaticText(
this, wxID_ANY,
_(
"Command line to run the exporter:"), wxDefaultPosition, wxDefaultSize, 0 );
117 m_staticTextCmd->Wrap( -1 );
118 bSizerTop->Add( m_staticTextCmd, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
120 m_textCtrlCommand =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
121 m_textCtrlCommand->SetMinSize( wxSize( 500,-1 ) );
123 bSizerTop->Add( m_textCtrlCommand, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
126 bSizerMain->Add( bSizerTop, 1, wxEXPAND|wxALL, 5 );
128 wxBoxSizer* bSizerBottom;
129 bSizerBottom =
new wxBoxSizer( wxHORIZONTAL );
131 m_buttonGenerator =
new wxButton(
this, wxID_BROWSE_PLUGINS,
_(
"Browse Scripts..."), wxDefaultPosition, wxDefaultSize, 0 );
132 bSizerBottom->Add( m_buttonGenerator, 0, wxALL|wxEXPAND, 5 );
134 m_sdbSizer =
new wxStdDialogButtonSizer();
135 m_sdbSizerOK =
new wxButton(
this, wxID_OK );
136 m_sdbSizer->AddButton( m_sdbSizerOK );
137 m_sdbSizerCancel =
new wxButton(
this, wxID_CANCEL );
138 m_sdbSizer->AddButton( m_sdbSizerCancel );
139 m_sdbSizer->Realize();
141 bSizerBottom->Add( m_sdbSizer, 1, wxEXPAND, 5 );
144 bSizerMain->Add( bSizerBottom, 0, wxEXPAND|wxTOP|wxBOTTOM|wxLEFT, 5 );
147 this->SetSizer( bSizerMain );
149 bSizerMain->Fit(
this );
151 this->Centre( wxBOTH );
Class DIALOG_EXPORT_NETLIST_BASE.
~DIALOG_EXPORT_NETLIST_BASE()
void _wxFB_OnDelGenerator(wxCommandEvent &event)
void _wxFB_OnAddGenerator(wxCommandEvent &event)
void _wxFB_OnNetlistTypeSelection(wxNotebookEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Class NETLIST_DIALOG_ADD_GENERATOR_BASE.
void _wxFB_OnBrowseGenerators(wxCommandEvent &event)
~NETLIST_DIALOG_ADD_GENERATOR_BASE()
A widget for browsing a rich text error/status report.