OpenASIP  2.0
OperationImplementationDialog.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 OperationImplementationDialog.hh
26  *
27  * Declaration of OperationImplementationDialog.
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 #include <wx/spinctrl.h>
37 
38 wxDECLARE_EVENT(BUTTON_ADD_VHDL_VAR, wxCommandEvent);
39 wxDECLARE_EVENT(BUTTON_ADD_VERILOG_VAR, wxCommandEvent);
40 
41 class OperationImplementationDialog : public wxDialog {
42 public:
44  virtual ~OperationImplementationDialog() = default;
45 
46  void onOK(wxCommandEvent&);
47  void onAddVhdlImplFile(wxFileDirPickerEvent&);
48  void onAddVerilogImplFile(wxFileDirPickerEvent&);
49 
50  void onDeleteListItem(wxCommandEvent&);
51  void onAddListItem(wxCommandEvent&);
52 
53  void onAddVHDLVariable(wxCommandEvent&);
54  void onAddVerilogVariable(wxCommandEvent&);
55 
56 private:
58  wxListCtrl *addedResourceList_;
59  wxListCtrl *addedVariableList_;
60  wxTextCtrl *nameCtrl_;
61  wxFilePickerCtrl *pick1_;
62  wxFilePickerCtrl *pick2_;
63  wxFilePickerCtrl *pick11_;
64  wxFilePickerCtrl *pick21_;
65  wxFilePickerCtrl *pick_vhdl_init_;
66  wxFilePickerCtrl *pick_vlog_init_;
67  wxFilePickerCtrl *pick31_;
68  wxSpinCtrl *latencyWheel_;
69 
71  std::string sanitize(const wxString& path);
72 
73  DECLARE_EVENT_TABLE()
74 };
OperationImplementationDialog::onAddVerilogVariable
void onAddVerilogVariable(wxCommandEvent &)
Definition: OperationImplementationDialog.cc:310
OperationImplementationDialog::addedResourceList_
wxListCtrl * addedResourceList_
Definition: OperationImplementationDialog.hh:58
OperationImplementationDialog::onAddVerilogImplFile
void onAddVerilogImplFile(wxFileDirPickerEvent &)
Definition: OperationImplementationDialog.cc:302
OperationImplementationDialog::pick11_
wxFilePickerCtrl * pick11_
Definition: OperationImplementationDialog.hh:63
OperationImplementationDialog::pick2_
wxFilePickerCtrl * pick2_
Definition: OperationImplementationDialog.hh:62
OperationImplementationDialog::OperationImplementationDialog
OperationImplementationDialog()
Constructor.
Definition: OperationImplementationDialog.cc:65
OperationImplementationDialog::pick1_
wxFilePickerCtrl * pick1_
Definition: OperationImplementationDialog.hh:61
OperationImplementationDialog::availableResourceList_
wxListCtrl * availableResourceList_
Definition: OperationImplementationDialog.hh:57
OperationImplementationDialog::pick31_
wxFilePickerCtrl * pick31_
Definition: OperationImplementationDialog.hh:67
OperationImplementationDialog::addAvailableResourcesToList
void addAvailableResourcesToList()
Definition: OperationImplementationDialog.cc:204
OperationImplementationDialog::onDeleteListItem
void onDeleteListItem(wxCommandEvent &)
Definition: OperationImplementationDialog.cc:315
OperationImplementationDialog::nameCtrl_
wxTextCtrl * nameCtrl_
Definition: OperationImplementationDialog.hh:60
OperationImplementationDialog::pick_vhdl_init_
wxFilePickerCtrl * pick_vhdl_init_
Definition: OperationImplementationDialog.hh:65
OperationImplementationDialog::pick_vlog_init_
wxFilePickerCtrl * pick_vlog_init_
Definition: OperationImplementationDialog.hh:66
OperationImplementationDialog
Definition: OperationImplementationDialog.hh:41
OperationImplementationDialog::pick21_
wxFilePickerCtrl * pick21_
Definition: OperationImplementationDialog.hh:64
wxDECLARE_EVENT
wxDECLARE_EVENT(BUTTON_ADD_VHDL_VAR, wxCommandEvent)
OperationImplementationDialog::onAddListItem
void onAddListItem(wxCommandEvent &)
Definition: OperationImplementationDialog.cc:331
OperationImplementationDialog::onOK
void onOK(wxCommandEvent &)
Definition: OperationImplementationDialog.cc:233
OperationImplementationDialog::onAddVhdlImplFile
void onAddVhdlImplFile(wxFileDirPickerEvent &)
Definition: OperationImplementationDialog.cc:299
OperationImplementationDialog::sanitize
std::string sanitize(const wxString &path)
Definition: OperationImplementationDialog.cc:218
OperationImplementationDialog::latencyWheel_
wxSpinCtrl * latencyWheel_
Definition: OperationImplementationDialog.hh:68
OperationImplementationDialog::onAddVHDLVariable
void onAddVHDLVariable(wxCommandEvent &)
Definition: OperationImplementationDialog.cc:305
OperationImplementationDialog::addedVariableList_
wxListCtrl * addedVariableList_
Definition: OperationImplementationDialog.hh:59
OperationImplementationDialog::~OperationImplementationDialog
virtual ~OperationImplementationDialog()=default