Go to the documentation of this file.
33 #ifndef TTA_OPERATION_DIALOG_HH
34 #define TTA_OPERATION_DIALOG_HH
39 #include <wx/spinctrl.h>
55 wxSizer*
createContents(wxWindow* parent,
bool call_fit,
bool set_sizer);
73 void onOK(wxCommandEvent& event);
75 void onName(wxCommandEvent& event);
154 DECLARE_EVENT_TABLE()
std::list< std::string > newResources_
List of unused resources.
wxStaticText * latencyText_
Static text control displaying the operation latency.
void updateResourceGrid()
std::set< int > operands_
List of unused operands.
OperationDialog(wxWindow *parent, TTAMachine::HWOperation *operation)
void onOperandLClick(wxGridEvent &event)
void onAddResource(wxCommandEvent &event)
TTAMachine::HWOperation * operation_
Operation to edit.
static const wxString USE_MARK
Grid marker for resource use.
wxStaticBoxSizer * usageSizer_
Static boxsizer for the operand usage grid widgets.
void onOK(wxCommandEvent &event)
wxStaticBoxSizer * resourceSizer_
Static boxsizer for the resource grid widgets.
wxSizer * createContents(wxWindow *parent, bool call_fit, bool set_sizer)
wxStaticBoxSizer * operandSizer_
Static boxsizer for the operand list widgets.
static const wxString WRITE_MARK
Grid marker for a write.
std::string selectedResource()
wxString resourceName_
Name of resource to be added.
void setOperandType(int operand, bool read)
wxString name_
Name of the operation.
wxGrid * resourceGrid_
Resource list widget.
wxListCtrl * bindList_
Bind list widget.
wxSpinCtrl * numberControl_
Spin button control for the bind operand.
void onBindOperand(wxCommandEvent &event)
wxChoice * portChoice_
Choice widget for the port to bind.
void onOperandSelection(wxListEvent &event)
static const wxString READ_MARK
Grid marker for a read.
void onDeleteResource(wxCommandEvent &event)
void onGridRClick(wxGridEvent &event)
bool TransferDataToWindow()
void onAddOperand(wxCommandEvent &event)
void warnOnResourcesWithoutUsages()
static const int GRID_COLUMN_WIDTH
Width of the resource and operand usage grid columns.
void onDeleteOperand(wxCommandEvent &event)
int operandRow(int operand)
@ ID_DELETE_RESOURCE_CYCLE
void onName(wxCommandEvent &event)
wxGrid * usageGrid_
Operand usage grid widget.
void onResourceLClick(wxGridEvent &event)
void onGridLClick(wxGridEvent &event)
void onResourceSelection(wxGridRangeSelectEvent &event)