OpenASIP 2.2
Loading...
Searching...
No Matches
RFImplementationDialog.hh
Go to the documentation of this file.
1/*
2 Copyright (c) 2002-2014 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 RFImplementationDialog.hh
26 *
27 * Declaration of RFImplementationDialog class.
28 *
29 * @author Veli-Pekka Jääskeläinen 2006 (vjaaskel-no.spam-cs.tut.fi)
30 * @note rating: red
31 */
32
33#ifndef TTA_RF_IMPLEMENTATION_DIALOG_HH
34#define TTA_RF_IMPLEMENTATION_DIALOG_HH
35
36#include <wx/listctrl.h>
37#include "RFImplementation.hh"
38
39class wxListCtrl;
40class wxChoice;
41
42/**
43 * Dialog for editing RF implementations.
44 */
45class RFImplementationDialog : public wxDialog {
46public:
48 wxWindow* parent, wxWindowID id,
50
52private:
53
54 void onOK(wxCommandEvent& event);
55 void update();
56
60
61 void onSACchoise(wxCommandEvent& event);
62
63 void onPortSelection(wxListEvent& event);
64 void onAddPort(wxCommandEvent& event);
65 void onModifyPort(wxCommandEvent& event);
66 void onDeletePort(wxCommandEvent& event);
67
68 void onExternalPortActivation(wxListEvent& event);
69 void onExternalPortSelection(wxListEvent& event);
70 void onAddExternalPort(wxCommandEvent& event);
71 void onEditExternalPort(wxCommandEvent& event);
72 void onDeleteExternalPort(wxCommandEvent& event);
73
74 void onParameterActivation(wxListEvent& event);
75 void onParameterSelection(wxListEvent& event);
76 void onAddParameter(wxCommandEvent& event);
77 void onEditParameter(wxCommandEvent& event);
78 void onDeleteParameter(wxCommandEvent& event);
79
80 void onSourceFileSelection(wxListEvent& event);
81 void onAddSourceFile(wxCommandEvent& event);
82 void onDeleteSourceFile(wxCommandEvent& event);
83 void onMoveSourceFileUp(wxCommandEvent&);
84 void onMoveSourceFileDown(wxCommandEvent&);
85
86 void onSizeChoice(wxCommandEvent& event);
87 void onWidthChoice(wxCommandEvent& event);
88
89 wxString getWidthParameter();
90 wxString getSizeParameter();
91
92 wxSizer* createContents(wxWindow* parent, bool call_fit, bool set_sizer);
93
94 /// Window indentifiers for dialog widgets.
95 enum {
122
133 };
134
135 enum {
138 };
139
140 /// RF Implementation to modify.
142
143 /// Pointer to the port list widget.
144 wxListCtrl* portList_;
145 /// Pointer to the source file list widget.
146 wxListCtrl* sourceList_;
147 /// Pointer to the external port list widget.
148 wxListCtrl* externalPortList_;
149 /// Pointer to the parameter list widget.
150 wxListCtrl* parameterList_;
151 /// Pointer to size parameter choice widget
152 wxChoice* sizeChoice_;
153 /// Pointer to width parameter choice widget
154 wxChoice* widthChoice_;
155
156 wxString name_;
157 wxString clkPort_;
158 wxString rstPort_;
159 wxString gLockPort_;
160 wxString guardPort_;
162
163 DECLARE_EVENT_TABLE()
164};
165
166#endif
IDF::MachineImplementation * implementation
the implementation definition of the estimated processor
wxChoice * sizeChoice_
Pointer to size parameter choice widget.
void onAddExternalPort(wxCommandEvent &event)
HDB::RFImplementation::Parameter selectedParameter()
void onExternalPortActivation(wxListEvent &event)
wxSizer * createContents(wxWindow *parent, bool call_fit, bool set_sizer)
void onAddPort(wxCommandEvent &event)
wxListCtrl * sourceList_
Pointer to the source file list widget.
void onPortSelection(wxListEvent &event)
void onExternalPortSelection(wxListEvent &event)
HDB::RFExternalPort * selectedExternalPort()
void onDeleteExternalPort(wxCommandEvent &event)
void onDeleteParameter(wxCommandEvent &event)
HDB::RFImplementation & implementation_
RF Implementation to modify.
void onParameterActivation(wxListEvent &event)
void onSourceFileSelection(wxListEvent &event)
wxListCtrl * parameterList_
Pointer to the parameter list widget.
void onWidthChoice(wxCommandEvent &event)
void onAddSourceFile(wxCommandEvent &event)
wxListCtrl * portList_
Pointer to the port list widget.
wxListCtrl * externalPortList_
Pointer to the external port list widget.
void onMoveSourceFileDown(wxCommandEvent &)
void onSizeChoice(wxCommandEvent &event)
void onModifyPort(wxCommandEvent &event)
void onEditParameter(wxCommandEvent &event)
void onSACchoise(wxCommandEvent &event)
void onMoveSourceFileUp(wxCommandEvent &)
void onDeletePort(wxCommandEvent &event)
void onParameterSelection(wxListEvent &event)
void onDeleteSourceFile(wxCommandEvent &event)
HDB::RFPortImplementation * selectedPort()
void onOK(wxCommandEvent &event)
void onEditExternalPort(wxCommandEvent &event)
wxChoice * widthChoice_
Pointer to width parameter choice widget.
void onAddParameter(wxCommandEvent &event)