Go to the documentation of this file.
33 #ifndef TTA_TEMPLATE_LIST_DIALOG_HH
34 #define TTA_TEMPLATE_LIST_DIALOG_HH
37 #include <wx/listctrl.h>
43 class InstructionTemplate;
56 wxSizer*
createContents(wxWindow* parent,
bool call_fit,
bool set_sizer);
void onTemplateSelection(wxListEvent &event)
std::string selectedSlot()
wxSizer * createContents(wxWindow *parent, bool call_fit, bool set_sizer)
TTAMachine::Machine * machine
the architecture definition of the estimated processor
wxStaticBoxSizer * templateSizer_
Box sizer around the template list.
TTAMachine::Machine * machine_
Parent machine of the instruction templates.
TemplateListDialog(wxWindow *parent, TTAMachine::Machine *machine)
wxStaticBoxSizer * slotSizer_
Box sizer around the slot list.
TTAMachine::InstructionTemplate * selectedTemplate()
void onAddTemplate(wxCommandEvent &event)
void onDeleteTemplate(wxCommandEvent &event)
wxListCtrl * slotList_
Widget for list of slots in the selected template.
void onTemplateName(wxCommandEvent &event)
void onAddSlot(wxCommandEvent &event)
virtual ~TemplateListDialog()
void onDeleteSlot(wxCommandEvent &event)
wxListCtrl * templateList_
Widget for list of templates.
wxString templateName_
Name of the new template.
void onSlotSelection(wxListEvent &event)
void onEditSlot(wxCommandEvent &event)
virtual bool TransferDataToWindow()