OpenASIP  2.0
OperationImplementationResourceDialog.hh
Go to the documentation of this file.
1 /*
2  Copyright (c) 2002-2017 Tampere University.
3 
4  This file is part of TTA-Based Codesign Environment (TCE).
5 
6  Permission is hereby granted, free of charge, to any person obtaining a
7  copy of this software and associated documentation files (the "Software"),
8  to deal in the Software without restriction, including without limitation
9  the rights to use, copy, modify, merge, publish, distribute, sublicense,
10  and/or sell copies of the Software, and to permit persons to whom the
11  Software is furnished to do so, subject to the following conditions:
12 
13  The above copyright notice and this permission notice shall be included in
14  all copies or substantial portions of the Software.
15 
16  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  DEALINGS IN THE SOFTWARE.
23  */
24  /**
25  * @file FUGENResourceDialog.hh
26  *
27  * Declaration of FUGENResourceDialog.
28  *
29  * @author Lasse Lehtonen 2017 (lasse.lehtonen-no.spam-tut.fi)
30  */
31 #pragma once
32 
33 #include <wx/wx.h>
34 #include <wx/listctrl.h>
35 #include <wx/filepicker.h>
36 
37 wxDECLARE_EVENT(BUTTON_SYN_VHDL, wxFileDirPickerEvent);
38 wxDECLARE_EVENT(BUTTON_SIM_VHDL, wxFileDirPickerEvent);
39 wxDECLARE_EVENT(BUTTON_SYN_VERILOG, wxFileDirPickerEvent);
40 wxDECLARE_EVENT(BUTTON_SIM_VERILOG, wxFileDirPickerEvent);
41 wxDECLARE_EVENT(BUTTON_IPXACT, wxFileDirPickerEvent);
42 wxDECLARE_EVENT(BUTTON_DEL, wxCommandEvent);
43 
44 class OperationImplementationResourceDialog : public wxDialog {
45 public:
47  virtual ~OperationImplementationResourceDialog() = default;
48 
49  void onOK(wxCommandEvent&);
50  void onAddVhdlSynFile(wxFileDirPickerEvent&);
51  void onAddVhdlSimFile(wxFileDirPickerEvent&);
52  void onAddVerilogSynFile(wxFileDirPickerEvent&);
53  void onAddVerilogSimFile(wxFileDirPickerEvent&);
54 
55  void onDeleteListItem(wxCommandEvent&);
56 
57 private:
58  wxListCtrl *fileList1_;
59  wxTextCtrl *nameCtrl_;
60  wxFilePickerCtrl *ipxactPick_;
61 
62  std::string sanitize(const wxString& path);
63 
64  DECLARE_EVENT_TABLE()
65 };
OperationImplementationResourceDialog::onAddVerilogSynFile
void onAddVerilogSynFile(wxFileDirPickerEvent &)
Definition: OperationImplementationResourceDialog.cc:241
OperationImplementationResourceDialog::onAddVhdlSimFile
void onAddVhdlSimFile(wxFileDirPickerEvent &)
Definition: OperationImplementationResourceDialog.cc:231
OperationImplementationResourceDialog::ipxactPick_
wxFilePickerCtrl * ipxactPick_
Definition: OperationImplementationResourceDialog.hh:60
OperationImplementationResourceDialog::onOK
void onOK(wxCommandEvent &)
Definition: OperationImplementationResourceDialog.cc:152
OperationImplementationResourceDialog::fileList1_
wxListCtrl * fileList1_
Definition: OperationImplementationResourceDialog.hh:58
OperationImplementationResourceDialog::OperationImplementationResourceDialog
OperationImplementationResourceDialog()
OperationImplementationResourceDialog::onAddVhdlSynFile
void onAddVhdlSynFile(wxFileDirPickerEvent &)
Definition: OperationImplementationResourceDialog.cc:221
OperationImplementationResourceDialog
Definition: OperationImplementationResourceDialog.hh:44
OperationImplementationResourceDialog::~OperationImplementationResourceDialog
virtual ~OperationImplementationResourceDialog()=default
OperationImplementationResourceDialog::nameCtrl_
wxTextCtrl * nameCtrl_
Definition: OperationImplementationResourceDialog.hh:59
OperationImplementationResourceDialog::onAddVerilogSimFile
void onAddVerilogSimFile(wxFileDirPickerEvent &)
Definition: OperationImplementationResourceDialog.cc:251
OperationImplementationResourceDialog::onDeleteListItem
void onDeleteListItem(wxCommandEvent &)
Definition: OperationImplementationResourceDialog.cc:261
wxDECLARE_EVENT
wxDECLARE_EVENT(BUTTON_SYN_VHDL, wxFileDirPickerEvent)
OperationImplementationResourceDialog::sanitize
std::string sanitize(const wxString &path)
Definition: OperationImplementationResourceDialog.cc:205