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