OpenASIP  2.0
Functions
OperationImplementationResourceDialog.cc File Reference
#include "OperationImplementationResourceDialog.hh"
#include "HDBEditor.hh"
#include "HDBManager.hh"
#include "OperationImplementationResource.hh"
#include "HDBBrowserWindow.hh"
#include "BlockImplementationFile.hh"
Include dependency graph for OperationImplementationResourceDialog.cc:

Go to the source code of this file.

Functions

 wxDEFINE_EVENT (BUTTON_SYN_VHDL, wxFileDirPickerEvent)
 
 wxDEFINE_EVENT (BUTTON_SIM_VHDL, wxFileDirPickerEvent)
 
 wxDEFINE_EVENT (BUTTON_SYN_VERILOG, wxFileDirPickerEvent)
 
 wxDEFINE_EVENT (BUTTON_SIM_VERILOG, wxFileDirPickerEvent)
 
 wxDEFINE_EVENT (BUTTON_IPXACT, wxFileDirPickerEvent)
 
 wxDEFINE_EVENT (BUTTON_DEL, wxCommandEvent)
 
 EVT_FILEPICKER_CHANGED (BUTTON_SYN_VHDL, OperationImplementationResourceDialog::onAddVhdlSynFile) EVT_FILEPICKER_CHANGED(BUTTON_SIM_VHDL
 
OperationImplementationResourceDialog::onAddVhdlSimFile EVT_FILEPICKER_CHANGED (BUTTON_SYN_VERILOG, OperationImplementationResourceDialog::onAddVerilogSynFile) EVT_FILEPICKER_CHANGED(BUTTON_SIM_VERILOG
 
OperationImplementationResourceDialog::onAddVhdlSimFile OperationImplementationResourceDialog::onAddVerilogSimFile EVT_BUTTON (wxID_DELETE, OperationImplementationResourceDialog::onDeleteListItem) OperationImplementationResourceDialog
 Constructor. More...
 

Function Documentation

◆ EVT_BUTTON()

Constructor.

Definition at line 57 of file OperationImplementationResourceDialog.cc.

64  : wxDialog(NULL, -1, "Add Operation Implementation Resource",
65  wxDefaultPosition, wxSize(600, 480))
66 {
67  wxBoxSizer *vbox = new wxBoxSizer(wxVERTICAL);
68  wxBoxSizer *hbox1 = new wxBoxSizer(wxHORIZONTAL);
69 
70  wxButton *okButton = new wxButton(this, wxID_OK, wxT("Ok"),
71  wxDefaultPosition, wxSize(70, 30));
72  wxButton *closeButton = new wxButton(this, wxID_CANCEL, wxT("Cancel"),
73  wxDefaultPosition, wxSize(70, 30));
74 
75  wxButton *delButton = new wxButton(this , wxID_DELETE, wxT(""));
76 
77  hbox1->Add(okButton, 1);
78  hbox1->Add(closeButton, 1, wxLEFT, 5);
79 
80  wxFlexGridSizer *flex1 = new wxFlexGridSizer(7, 2, 9, 25);
81 
82  wxStaticText *title1 = new wxStaticText(
83  this, -1, wxT("Name"));
84  wxStaticText *title2 = new wxStaticText(
85  this, -1, wxT("VHDL Synthesis file"));
86  wxStaticText *title3 = new wxStaticText(
87  this, -1, wxT("VHDL Simulation file"));
88  wxStaticText *title4 = new wxStaticText(
89  this, -1, wxT("Verilog Synthesis file"));
90  wxStaticText *title5 = new wxStaticText(
91  this, -1, wxT("Verilog Simulation file"));
92  wxStaticText *title7 = new wxStaticText(
93  this, -1, wxT("IP-XACT component file"));
94  wxStaticText *title6 = new wxStaticText(
95  this, -1, wxT("Selected files"));
96 
97  nameCtrl_ = new wxTextCtrl(this, -1);
98 
99  wxFilePickerCtrl *pick1 = new wxFilePickerCtrl(this, BUTTON_SYN_VHDL,
100  "", "Select VHDL Synthesis File", "*.vhd;*.vhdl",
101  wxDefaultPosition, wxDefaultSize,
102  wxFLP_OPEN | wxFLP_FILE_MUST_EXIST | wxFLP_SMALL);
103  wxFilePickerCtrl *pick2 = new wxFilePickerCtrl(this, BUTTON_SIM_VHDL,
104  "", "Select VHDL Simulation File", "*.vhd;*.vhdl",
105  wxDefaultPosition, wxDefaultSize,
106  wxFLP_OPEN | wxFLP_FILE_MUST_EXIST | wxFLP_SMALL);
107  wxFilePickerCtrl *pick3 = new wxFilePickerCtrl(this, BUTTON_SYN_VERILOG,
108  "", "Select Verilog Synthesis File", "*.vh;*.v",
109  wxDefaultPosition, wxDefaultSize,
110  wxFLP_OPEN | wxFLP_FILE_MUST_EXIST | wxFLP_SMALL);
111  wxFilePickerCtrl *pick4 = new wxFilePickerCtrl(this, BUTTON_SIM_VERILOG,
112  "", "Select Verilog Simulation File", "*.vh;*.v",
113  wxDefaultPosition, wxDefaultSize,
114  wxFLP_OPEN | wxFLP_FILE_MUST_EXIST | wxFLP_SMALL);
115  ipxactPick_ = new wxFilePickerCtrl(this, BUTTON_IPXACT,
116  "", "Select IP-XACT component File", "*.xml",
117  wxDefaultPosition, wxDefaultSize,
118  wxFLP_OPEN | wxFLP_FILE_MUST_EXIST | wxFLP_SMALL);
119 
120  flex1->Add(title1);
121  flex1->Add(nameCtrl_, 1, wxEXPAND);
122  flex1->Add(title2);
123  flex1->Add(pick1, 1, wxEXPAND);
124  flex1->Add(title3);
125  flex1->Add(pick2, 1, wxEXPAND);
126  flex1->Add(title4);
127  flex1->Add(pick3, 1, wxEXPAND);
128  flex1->Add(title5);
129  flex1->Add(pick4, 1, wxEXPAND);
130  flex1->Add(title7);
131  flex1->Add(ipxactPick_, 1, wxEXPAND);
132  flex1->Add(title6);
133  flex1->Add(delButton, 1, wxEXPAND);
134 
135 
136  fileList1_ = new wxListCtrl(this, -1,
137  wxDefaultPosition, wxDefaultSize, wxLC_REPORT);
138  fileList1_->AppendColumn("File", wxLIST_FORMAT_LEFT, 400);
139  fileList1_->AppendColumn("Type", wxLIST_FORMAT_LEFT, 150);
140 
141  vbox->Add(flex1, 1, wxALL | wxEXPAND, 15);
142  vbox->Add(fileList1_, 1, wxALL | wxEXPAND, 15);
143  vbox->Add(hbox1, 0, wxALIGN_CENTER | wxTOP | wxBOTTOM, 10);
144 
145  SetSizer(vbox);
146  Centre();
147  ShowModal();
148  Destroy();
149 }

◆ EVT_FILEPICKER_CHANGED() [1/2]

◆ EVT_FILEPICKER_CHANGED() [2/2]

EVT_FILEPICKER_CHANGED ( BUTTON_SYN_VHDL  ,
OperationImplementationResourceDialog::onAddVhdlSynFile   
)

◆ wxDEFINE_EVENT() [1/6]

wxDEFINE_EVENT ( BUTTON_DEL  ,
wxCommandEvent   
)

◆ wxDEFINE_EVENT() [2/6]

wxDEFINE_EVENT ( BUTTON_IPXACT  ,
wxFileDirPickerEvent   
)

◆ wxDEFINE_EVENT() [3/6]

wxDEFINE_EVENT ( BUTTON_SIM_VERILOG  ,
wxFileDirPickerEvent   
)

◆ wxDEFINE_EVENT() [4/6]

wxDEFINE_EVENT ( BUTTON_SIM_VHDL  ,
wxFileDirPickerEvent   
)

◆ wxDEFINE_EVENT() [5/6]

wxDEFINE_EVENT ( BUTTON_SYN_VERILOG  ,
wxFileDirPickerEvent   
)

◆ wxDEFINE_EVENT() [6/6]

wxDEFINE_EVENT ( BUTTON_SYN_VHDL  ,
wxFileDirPickerEvent   
)