OpenASIP  2.0
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
OTAFormatListDialog Class Reference

#include <OTAFormatListDialog.hh>

Inheritance diagram for OTAFormatListDialog:
Inheritance graph
Collaboration diagram for OTAFormatListDialog:
Collaboration graph

Public Member Functions

 OTAFormatListDialog (wxWindow *parent, TTAMachine::Machine *machine)
 
virtual ~OTAFormatListDialog ()
 

Private Types

enum  {
  ID_OTA_FORMAT_LIST = 10000, ID_OPERATION_LIST, ID_LINE, ID_HELP,
  ID_ADD_OTA_FORMAT, ID_DELETE_OTA_FORMAT, ID_ADD_OPERATION, ID_EDIT_OPERATION,
  ID_DELETE_OPERATION, ID_NAME, ID_LABEL_NAME
}
 

Private Member Functions

wxSizer * createContents (wxWindow *parent, bool call_fit, bool set_sizer)
 
virtual bool TransferDataToWindow ()
 
void updateOperationList ()
 
void onOTAFormatSelection (wxListEvent &event)
 
void onOperationSelection (wxListEvent &event)
 
void onOTAFormatName (wxCommandEvent &event)
 
void onAddOTAFormat (wxCommandEvent &event)
 
void onDeleteOTAFormat (wxCommandEvent &event)
 
void onAddOperation (wxCommandEvent &event)
 
void onEditOperation (wxCommandEvent &event)
 
void onDeleteOperation (wxCommandEvent &event)
 
void setTexts ()
 
bool validFormatName () const
 
TTAMachine::OperationTriggeredFormatselectedOTAFormat ()
 
std::string selectedOperation ()
 

Private Attributes

TTAMachine::Machinemachine_
 Parent machine of the instruction OTAFormats. More...
 
wxStaticBoxSizer * OTAFormatSizer_
 Box sizer around the OTAFormat list. More...
 
wxStaticBoxSizer * operationSizer_
 Box sizer around the operation list. More...
 
wxListCtrl * OTAFormatList_
 Widget for list of OTAFormats. More...
 
wxListCtrl * operationList_
 Widget for list of operations in the selected OTAFormat. More...
 
wxString OTAFormatName_
 Name of the new OTAFormat. More...
 

Detailed Description

Dialog for listing and editing instruction OTAFormats in a machine.

Definition at line 44 of file OTAFormatListDialog.hh.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
ID_OTA_FORMAT_LIST 
ID_OPERATION_LIST 
ID_LINE 
ID_HELP 
ID_ADD_OTA_FORMAT 
ID_DELETE_OTA_FORMAT 
ID_ADD_OPERATION 
ID_EDIT_OPERATION 
ID_DELETE_OPERATION 
ID_NAME 
ID_LABEL_NAME 

Definition at line 80 of file OTAFormatListDialog.hh.

Constructor & Destructor Documentation

◆ OTAFormatListDialog()

OTAFormatListDialog::OTAFormatListDialog ( wxWindow *  parent,
TTAMachine::Machine machine 
)

The Constructor.

Parameters
parentParent window of the dialog.
machineParent machine of the instruction OTAFormats.

Definition at line 70 of file OTAFormatListDialog.cc.

72  :
73  wxDialog(parent, -1, _T(""), wxDefaultPosition),
75  OTAFormatName_(_T("")) {
76 
77  createContents(this, true, true);
78 
79  OTAFormatList_ = dynamic_cast<wxListCtrl*>(FindWindow(ID_OTA_FORMAT_LIST));
80  operationList_ = dynamic_cast<wxListCtrl*>(FindWindow(ID_OPERATION_LIST));
81 
82  FindWindow(ID_NAME)->SetValidator(
83  wxTextValidator(wxFILTER_ASCII, &OTAFormatName_));
84  FindWindow(ID_ADD_OTA_FORMAT)->Disable();
85  FindWindow(ID_DELETE_OTA_FORMAT)->Disable();
86  // set widget texts
87  setTexts();
88 }

◆ ~OTAFormatListDialog()

OTAFormatListDialog::~OTAFormatListDialog ( )
virtual

The Destructor.

Definition at line 94 of file OTAFormatListDialog.cc.

94  {
95 }

Member Function Documentation

◆ createContents()

wxSizer * OTAFormatListDialog::createContents ( wxWindow *  parent,
bool  call_fit,
bool  set_sizer 
)
private

Creates the dialog window contents.

This method was generated with wxDesigner.

Returns
Main sizer of the created contents.
Parameters
parentThe dialog window.
call_fitIf true, fits the contents inside the dialog.
set_sizerIf true, sets the main sizer as dialog contents.

Definition at line 409 of file OTAFormatListDialog.cc.

410  {
411 
412  wxBoxSizer *item0 = new wxBoxSizer( wxVERTICAL );
413 
414  wxBoxSizer *item1 = new wxBoxSizer( wxHORIZONTAL );
415 
416  wxStaticBox *item3 = new wxStaticBox( parent, -1, wxT("Instruction OTAFormats:") );
417  wxStaticBoxSizer *item2 = new wxStaticBoxSizer( item3, wxVERTICAL );
418  OTAFormatSizer_ = item2;
419 
420  wxListCtrl *item4 = new wxListCtrl( parent, ID_OTA_FORMAT_LIST, wxDefaultPosition, wxSize(160,200), wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
421  item2->Add( item4, 0, wxGROW|wxALL, 5 );
422 
423  wxBoxSizer *item5 = new wxBoxSizer( wxHORIZONTAL );
424 
425  wxStaticText *item6 = new wxStaticText( parent, ID_LABEL_NAME, wxT("Name:"), wxDefaultPosition, wxDefaultSize, 0 );
426  item5->Add( item6, 0, wxALIGN_CENTER|wxALL, 5 );
427 
428  wxTextCtrl *item7 = new wxTextCtrl( parent, ID_NAME, wxT(""), wxDefaultPosition, wxSize(120,-1), 0 );
429  item5->Add( item7, 0, wxALIGN_CENTER|wxALL, 5 );
430 
431  item2->Add( item5, 0, wxGROW|wxALL, 5 );
432 
433  wxBoxSizer *item8 = new wxBoxSizer( wxHORIZONTAL );
434 
435  wxButton *item9 = new wxButton( parent, ID_ADD_OTA_FORMAT, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
436  item8->Add( item9, 0, wxALIGN_CENTER|wxALL, 5 );
437 
438  wxButton *item10 = new wxButton( parent, ID_DELETE_OTA_FORMAT, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
439  item8->Add( item10, 0, wxALIGN_CENTER|wxALL, 5 );
440 
441  item2->Add( item8, 0, wxALIGN_CENTER|wxALL, 5 );
442 
443  item1->Add( item2, 0, wxGROW|wxALL, 5 );
444 
445  wxStaticBox *item12 = new wxStaticBox( parent, -1, wxT("OTAFormat Operations:") );
446  wxStaticBoxSizer *item11 = new wxStaticBoxSizer( item12, wxVERTICAL );
447  operationSizer_ = item11;
448 
449  wxListCtrl *item13 = new wxListCtrl( parent, ID_OPERATION_LIST, wxDefaultPosition, wxSize(250,245), wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
450  item11->Add( item13, 0, wxGROW|wxALL, 5 );
451 
452  wxBoxSizer *item14 = new wxBoxSizer( wxHORIZONTAL );
453 
454  wxButton *item15 = new wxButton( parent, ID_ADD_OPERATION, wxT("Add..."), wxDefaultPosition, wxDefaultSize, 0 );
455  item14->Add( item15, 0, wxALIGN_CENTER|wxALL, 5 );
456 
457  wxButton *item17 = new wxButton( parent, ID_DELETE_OPERATION, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
458  item14->Add( item17, 0, wxALIGN_CENTER|wxALL, 5 );
459 
460  item11->Add( item14, 0, wxALIGN_CENTER|wxALL, 5 );
461 
462  item1->Add( item11, 0, wxGROW|wxALL, 5 );
463 
464  item0->Add( item1, 0, wxALIGN_CENTER|wxALL, 5 );
465 
466  wxStaticLine *item18 = new wxStaticLine( parent, ID_LINE, wxDefaultPosition, wxSize(20,-1), wxLI_HORIZONTAL );
467  item0->Add( item18, 0, wxGROW|wxALL, 5 );
468 
469  wxGridSizer *item19 = new wxGridSizer( 2, 0, 0 );
470 
471  wxButton *item20 = new wxButton( parent, ID_HELP, wxT("&Help"), wxDefaultPosition, wxDefaultSize, 0 );
472  item19->Add( item20, 0, wxALL, 5 );
473 
474  wxBoxSizer *item21 = new wxBoxSizer( wxHORIZONTAL );
475 
476  wxButton *item22 = new wxButton( parent, wxID_OK, wxT("&OK"), wxDefaultPosition, wxDefaultSize, 0 );
477  item21->Add( item22, 0, wxALIGN_CENTER|wxALL, 5 );
478 
479  wxButton *item23 = new wxButton( parent, wxID_CANCEL, wxT("&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
480  item21->Add( item23, 0, wxALIGN_CENTER|wxALL, 5 );
481 
482  item19->Add( item21, 0, wxALL, 5 );
483 
484  item0->Add( item19, 0, wxGROW, 5 );
485 
486  if (set_sizer)
487  {
488  parent->SetSizer( item0 );
489  if (call_fit)
490  item0->SetSizeHints( parent );
491  }
492 
493  return item0;
494 }

◆ onAddOperation()

void OTAFormatListDialog::onAddOperation ( wxCommandEvent &  event)
private

Handles the add Operation button event.

Definition at line 374 of file OTAFormatListDialog.cc.

374  {
375 
376  if (selectedOTAFormat() == NULL) {
377  assert(false);
378  }
379  OTAOperationDialog dialog(this, selectedOTAFormat());
380  dialog.ShowModal();
382 }

References assert.

◆ onAddOTAFormat()

void OTAFormatListDialog::onAddOTAFormat ( wxCommandEvent &  event)
private

Handles the Add tempalte button event.

Adds a new OTAFormat to the machine.

Definition at line 299 of file OTAFormatListDialog.cc.

299  {
300  if (!TransferDataFromWindow()) {
301  assert(false);
302  }
303  string trimmedName =
304  WxConversion::toString(OTAFormatName_.Trim(false).Trim(true));
305 
306  // Check the name validity.
307  if (!validFormatName()) {
308  std::string message = "Format name is illegal. Legal names are:\n" \
309  "riscv_r_type\n" \
310  "riscv_i_type\n" \
311  "riscv_s_type\n" \
312  "riscv_b_type\n" \
313  "riscv_u_type\n" \
314  "riscv_j_type\n";
315  InformationDialog warning(
316  this, WxConversion::toWxString(message));
317  warning.ShowModal();
318  return;
319  }
320 
323 
324  if (navigator.hasItem(trimmedName)) {
325  ProDeTextGenerator* prodeTexts =
327  format message =
329  format a_tmplate =
331  format machine =
333  format tmplate =
335  message % trimmedName % a_tmplate.str() % machine.str() %
336  tmplate.str();
337  WarningDialog warning(this, WxConversion::toWxString(message.str()));
338  warning.ShowModal();
339  return;
340  }
341  new OperationTriggeredFormat(trimmedName, *machine_);
342  OTAFormatName_ = _T("");
344 }

References assert, ProDeTextGenerator::COMP_AN_OTA_FORMAT, ProDeTextGenerator::COMP_MACHINE, ProDeTextGenerator::COMP_OTA_FORMAT, TTAMachine::Machine::Navigator< ComponentType >::hasItem(), ProDeTextGenerator::instance(), machine, ProDeTextGenerator::MSG_ERROR_SAME_NAME, Texts::TextGenerator::text(), WxConversion::toString(), and WxConversion::toWxString().

Here is the call graph for this function:

◆ onDeleteOperation()

void OTAFormatListDialog::onDeleteOperation ( wxCommandEvent &  event)
private

Handles the delete Operation button event.

Definition at line 389 of file OTAFormatListDialog.cc.

389  {
390  if (selectedOTAFormat() == NULL) {
391  assert(false);
392  }
395 }

References assert.

◆ onDeleteOTAFormat()

void OTAFormatListDialog::onDeleteOTAFormat ( wxCommandEvent &  event)
private

Deletes the selected OTAFormat.

Definition at line 239 of file OTAFormatListDialog.cc.

239  {
240  delete selectedOTAFormat();
242  wxListEvent dummy;
244 }

References dummy.

◆ onEditOperation()

void OTAFormatListDialog::onEditOperation ( wxCommandEvent &  event)
private

◆ onOperationSelection()

void OTAFormatListDialog::onOperationSelection ( wxListEvent &  event)
private

Updates the edit/delete Operation buttons when the Operation selection changes.

Definition at line 226 of file OTAFormatListDialog.cc.

226  {
227  if (operationList_->GetSelectedItemCount() == 1) {
228  FindWindow(ID_DELETE_OPERATION)->Enable();
229  } else {
230  FindWindow(ID_DELETE_OPERATION)->Disable();
231  }
232 }

◆ onOTAFormatName()

void OTAFormatListDialog::onOTAFormatName ( wxCommandEvent &  event)
private

Enables and disables the Add OTAFormat button when text is entered in the OTAFormat name widget.

Definition at line 352 of file OTAFormatListDialog.cc.

352  {
353  if (!TransferDataFromWindow()) {
354  assert(false);
355  }
356  wxString trimmedName = OTAFormatName_.Trim(false).Trim(true);
359  if (trimmedName == _T("")) {
360  FindWindow(ID_ADD_OTA_FORMAT)->Disable();
361  //Only 6 formats in RISC-V
362  } else if (nav.count() > 5) {
363  FindWindow(ID_ADD_OTA_FORMAT)->Disable();
364  } else {
365  FindWindow(ID_ADD_OTA_FORMAT)->Enable();
366  }
367 }

References assert, and TTAMachine::Machine::Navigator< ComponentType >::count().

Here is the call graph for this function:

◆ onOTAFormatSelection()

void OTAFormatListDialog::onOTAFormatSelection ( wxListEvent &  event)
private

Updates the Operation list when the OTAFormat selection changes.

Definition at line 212 of file OTAFormatListDialog.cc.

212  {
213  if (OTAFormatList_->GetSelectedItemCount() == 0) {
214  FindWindow(ID_DELETE_OTA_FORMAT)->Disable();
215  } else {
216  FindWindow(ID_DELETE_OTA_FORMAT)->Enable();
217  }
219 }

◆ selectedOperation()

string OTAFormatListDialog::selectedOperation ( )
private

Returns name of the selected Operation.

Returns
Name of the selected Operation.

Definition at line 274 of file OTAFormatListDialog.cc.

274  {
276  return name;
277 }

References WidgetTools::lcStringSelection().

Here is the call graph for this function:

◆ selectedOTAFormat()

OperationTriggeredFormat * OTAFormatListDialog::selectedOTAFormat ( )
private

Returns pointer to the selected OperationTriggeredFormat.

Returns
Pointer to the selected OperationTriggeredFormat.

Definition at line 253 of file OTAFormatListDialog.cc.

253  {
254  long item = -1;
255  item = OTAFormatList_->GetNextItem(
256  item, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED);
257 
258  if (item < 0) {
259  return NULL;
260  }
261 
264  return f;
265 }

◆ setTexts()

void OTAFormatListDialog::setTexts ( )
private

Sets texts for widgets.

Definition at line 102 of file OTAFormatListDialog.cc.

102  {
105 
106  // Dialog title
107  format fmt = prodeTexts->text(
109  SetTitle(WxConversion::toWxString(fmt.str()));
110 
111  // buttons
112  WidgetTools::setLabel(generator, FindWindow(wxID_OK),
114 
115  WidgetTools::setLabel(generator, FindWindow(wxID_CANCEL),
117 
120 
123 
126 
129 
132 
133  // widget labels
136 
137  // box sizer label
140 
143 
144  // Create instruction OTAFormat list columns.
145  wxListCtrl* OTAFormatList =
146  dynamic_cast<wxListCtrl*>(FindWindow(ID_OTA_FORMAT_LIST));
147  fmt = prodeTexts->text(ProDeTextGenerator::TXT_COLUMN_NAME);
148  OTAFormatList->InsertColumn(0, WxConversion::toWxString(fmt.str()),
149  wxLIST_FORMAT_LEFT, 160);
150 
151  // Create OTAFormat Operation list columns.
152  wxListCtrl* OperationList =
153  dynamic_cast<wxListCtrl*>(FindWindow(ID_OPERATION_LIST));
155  OperationList->InsertColumn(0, WxConversion::toWxString(fmt.str()),
156  wxLIST_FORMAT_LEFT, 100);
157 }

References GUITextGenerator::instance(), ProDeTextGenerator::instance(), WidgetTools::setLabel(), WidgetTools::setWidgetLabel(), Texts::TextGenerator::text(), WxConversion::toWxString(), GUITextGenerator::TXT_BUTTON_ADD, GUITextGenerator::TXT_BUTTON_ADD_DIALOG, GUITextGenerator::TXT_BUTTON_CANCEL, GUITextGenerator::TXT_BUTTON_DELETE, GUITextGenerator::TXT_BUTTON_HELP, GUITextGenerator::TXT_BUTTON_OK, ProDeTextGenerator::TXT_COLUMN_NAME, ProDeTextGenerator::TXT_COLUMN_OTA_OPERATION, ProDeTextGenerator::TXT_LABEL_NAME, ProDeTextGenerator::TXT_OTA_FORMATS_BOX, ProDeTextGenerator::TXT_OTA_FORMATS_DIALOG_TITLE, and ProDeTextGenerator::TXT_OTA_FORMATS_OPERATIONS_BOX.

Here is the call graph for this function:

◆ TransferDataToWindow()

bool OTAFormatListDialog::TransferDataToWindow ( )
privatevirtual

Transfers data from the machine to the dialog widgets.

Definition at line 164 of file OTAFormatListDialog.cc.

164  {
165 
166  // update OTAFormat list
167  OTAFormatList_->DeleteAllItems();
170  for (int i = 0; i < navigator.count(); i++) {
171  OTAFormatList_->InsertItem(
172  i, WxConversion::toWxString(navigator.item(i)->name()));
173  }
175  return wxDialog::TransferDataToWindow();
176 }

References TTAMachine::Machine::Navigator< ComponentType >::count(), TTAMachine::Machine::Navigator< ComponentType >::item(), and WxConversion::toWxString().

Here is the call graph for this function:

◆ updateOperationList()

void OTAFormatListDialog::updateOperationList ( )
private

Updates the OTAFormat Operation list.

Definition at line 183 of file OTAFormatListDialog.cc.

183  {
184 
185 
186  operationList_->DeleteAllItems();
187  operationList_->Enable();
188 
190 
191  if (f == NULL) {
192  FindWindow(ID_ADD_OPERATION)->Disable();
193  return;
194  }
195 
196  for (int i = 0; i < f->operationCount(); i++) {
197  operationList_->InsertItem(
199  }
200 
201  FindWindow(ID_ADD_OPERATION)->Enable();
202 
203  wxListEvent dummy;
205 }

References dummy, TTAMachine::OperationTriggeredFormat::operation(), TTAMachine::OperationTriggeredFormat::operationCount(), and WxConversion::toWxString().

Here is the call graph for this function:

◆ validFormatName()

bool OTAFormatListDialog::validFormatName ( ) const
private

Definition at line 280 of file OTAFormatListDialog.cc.

280  {
281  if (OTAFormatName_ == "riscv_r_type" ||
282  OTAFormatName_ == "riscv_i_type" ||
283  OTAFormatName_ == "riscv_s_type" ||
284  OTAFormatName_ == "riscv_b_type" ||
285  OTAFormatName_ == "riscv_u_type" ||
286  OTAFormatName_ == "riscv_j_type") {
287  return true;
288  }
289  return false;
290 }

Member Data Documentation

◆ machine_

TTAMachine::Machine* OTAFormatListDialog::machine_
private

Parent machine of the instruction OTAFormats.

Definition at line 67 of file OTAFormatListDialog.hh.

◆ operationList_

wxListCtrl* OTAFormatListDialog::operationList_
private

Widget for list of operations in the selected OTAFormat.

Definition at line 75 of file OTAFormatListDialog.hh.

◆ operationSizer_

wxStaticBoxSizer* OTAFormatListDialog::operationSizer_
private

Box sizer around the operation list.

Definition at line 71 of file OTAFormatListDialog.hh.

◆ OTAFormatList_

wxListCtrl* OTAFormatListDialog::OTAFormatList_
private

Widget for list of OTAFormats.

Definition at line 73 of file OTAFormatListDialog.hh.

◆ OTAFormatName_

wxString OTAFormatListDialog::OTAFormatName_
private

Name of the new OTAFormat.

Definition at line 77 of file OTAFormatListDialog.hh.

◆ OTAFormatSizer_

wxStaticBoxSizer* OTAFormatListDialog::OTAFormatSizer_
private

Box sizer around the OTAFormat list.

Definition at line 69 of file OTAFormatListDialog.hh.


The documentation for this class was generated from the following files:
OTAFormatListDialog::ID_ADD_OTA_FORMAT
@ ID_ADD_OTA_FORMAT
Definition: OTAFormatListDialog.hh:85
WarningDialog
Definition: WarningDialog.hh:42
WxConversion::toWxString
static wxString toWxString(const std::string &source)
OTAFormatListDialog::operationSizer_
wxStaticBoxSizer * operationSizer_
Box sizer around the operation list.
Definition: OTAFormatListDialog.hh:71
OTAFormatListDialog::selectedOperation
std::string selectedOperation()
Definition: OTAFormatListDialog.cc:274
machine
TTAMachine::Machine * machine
the architecture definition of the estimated processor
Definition: EstimatorCmdLineUI.cc:59
OTAFormatListDialog::ID_NAME
@ ID_NAME
Definition: OTAFormatListDialog.hh:90
ProDeTextGenerator::COMP_AN_OTA_FORMAT
@ COMP_AN_OTA_FORMAT
Name for OTA Format (w/ article).
Definition: ProDeTextGenerator.hh:274
OTAFormatListDialog::ID_DELETE_OPERATION
@ ID_DELETE_OPERATION
Definition: OTAFormatListDialog.hh:89
OTAFormatListDialog::OTAFormatName_
wxString OTAFormatName_
Name of the new OTAFormat.
Definition: OTAFormatListDialog.hh:77
WidgetTools::setLabel
static void setLabel(Texts::TextGenerator *generator, wxWindow *widget, int textID)
Definition: WidgetTools.cc:92
GUITextGenerator::instance
static GUITextGenerator * instance()
Definition: GUITextGenerator.cc:67
TTAMachine::OperationTriggeredFormat::operation
std::string operation(int index) const
Definition: OperationTriggeredFormat.cc:132
TTAMachine::OperationTriggeredFormat::removeOperation
void removeOperation(const std::string &op)
Definition: OperationTriggeredFormat.cc:118
GUITextGenerator
Definition: GUITextGenerator.hh:46
GUITextGenerator::TXT_BUTTON_HELP
@ TXT_BUTTON_HELP
Label for help button.
Definition: GUITextGenerator.hh:60
OTAFormatListDialog::ID_HELP
@ ID_HELP
Definition: OTAFormatListDialog.hh:84
OTAFormatListDialog::ID_ADD_OPERATION
@ ID_ADD_OPERATION
Definition: OTAFormatListDialog.hh:87
FindWindow
Definition: FindWindow.hh:49
TTAMachine::Machine::Navigator::count
int count() const
Texts::TextGenerator::text
virtual boost::format text(int textId)
Definition: TextGenerator.cc:94
OTAFormatListDialog::updateOperationList
void updateOperationList()
Definition: OTAFormatListDialog.cc:183
ProDeTextGenerator
Definition: ProDeTextGenerator.hh:49
OTAFormatListDialog::createContents
wxSizer * createContents(wxWindow *parent, bool call_fit, bool set_sizer)
Definition: OTAFormatListDialog.cc:409
ProDeTextGenerator::MSG_ERROR_SAME_NAME
@ MSG_ERROR_SAME_NAME
Error: Same name exists.
Definition: ProDeTextGenerator.hh:229
assert
#define assert(condition)
Definition: Application.hh:86
OTAFormatListDialog::onOperationSelection
void onOperationSelection(wxListEvent &event)
Definition: OTAFormatListDialog.cc:226
TTAMachine::Machine::operationTriggeredFormatNavigator
virtual OperationTriggeredFormatNavigator operationTriggeredFormatNavigator() const
Definition: Machine.cc:439
GUITextGenerator::TXT_BUTTON_CANCEL
@ TXT_BUTTON_CANCEL
Label for cancel button.
Definition: GUITextGenerator.hh:55
OTAFormatListDialog::ID_DELETE_OTA_FORMAT
@ ID_DELETE_OTA_FORMAT
Definition: OTAFormatListDialog.hh:86
OTAFormatListDialog::OTAFormatList_
wxListCtrl * OTAFormatList_
Widget for list of OTAFormats.
Definition: OTAFormatListDialog.hh:73
OTAFormatListDialog::ID_LABEL_NAME
@ ID_LABEL_NAME
Definition: OTAFormatListDialog.hh:91
TTAMachine::OperationTriggeredFormat::operationCount
int operationCount() const
Definition: OperationTriggeredFormat.cc:127
dummy
SimValue dummy(32)
a dummy simvalue which is given for operands that are not bound
TTAMachine::Machine::Navigator::hasItem
bool hasItem(const std::string &name) const
WidgetTools::lcStringSelection
static std::string lcStringSelection(wxListCtrl *list, int column)
Definition: WidgetTools.cc:108
GUITextGenerator::TXT_BUTTON_ADD
@ TXT_BUTTON_ADD
Label for an add button.
Definition: GUITextGenerator.hh:53
ProDeTextGenerator::TXT_LABEL_NAME
@ TXT_LABEL_NAME
Label for component name widget.
Definition: ProDeTextGenerator.hh:56
OTAFormatListDialog::ID_OPERATION_LIST
@ ID_OPERATION_LIST
Definition: OTAFormatListDialog.hh:82
OTAFormatListDialog::ID_EDIT_OPERATION
@ ID_EDIT_OPERATION
Definition: OTAFormatListDialog.hh:88
TTAMachine::OperationTriggeredFormat
Definition: OperationTriggeredFormat.hh:44
OTAOperationDialog
Definition: OTAOperationDialog.hh:42
GUITextGenerator::TXT_BUTTON_DELETE
@ TXT_BUTTON_DELETE
Label for delete button.
Definition: GUITextGenerator.hh:56
OTAFormatListDialog::TransferDataToWindow
virtual bool TransferDataToWindow()
Definition: OTAFormatListDialog.cc:164
ProDeTextGenerator::instance
static ProDeTextGenerator * instance()
Definition: ProDeTextGenerator.cc:382
ProDeTextGenerator::COMP_OTA_FORMAT
@ COMP_OTA_FORMAT
Name for OTA Format (w/o article).
Definition: ProDeTextGenerator.hh:275
OTAFormatListDialog::validFormatName
bool validFormatName() const
Definition: OTAFormatListDialog.cc:280
GUITextGenerator::TXT_BUTTON_ADD_DIALOG
@ TXT_BUTTON_ADD_DIALOG
Label for add button (with trailing ...).
Definition: GUITextGenerator.hh:54
ProDeTextGenerator::TXT_OTA_FORMATS_BOX
@ TXT_OTA_FORMATS_BOX
OTA Formats box title.
Definition: ProDeTextGenerator.hh:170
ProDeTextGenerator::TXT_COLUMN_OTA_OPERATION
@ TXT_COLUMN_OTA_OPERATION
Label for OTA operation column in a list.
Definition: ProDeTextGenerator.hh:116
OTAFormatListDialog::OTAFormatSizer_
wxStaticBoxSizer * OTAFormatSizer_
Box sizer around the OTAFormat list.
Definition: OTAFormatListDialog.hh:69
OTAFormatListDialog::selectedOTAFormat
TTAMachine::OperationTriggeredFormat * selectedOTAFormat()
Definition: OTAFormatListDialog.cc:253
ProDeTextGenerator::TXT_OTA_FORMATS_DIALOG_TITLE
@ TXT_OTA_FORMATS_DIALOG_TITLE
OTA Formats dialog title.
Definition: ProDeTextGenerator.hh:169
OTAFormatListDialog::onOTAFormatSelection
void onOTAFormatSelection(wxListEvent &event)
Definition: OTAFormatListDialog.cc:212
OTAFormatListDialog::machine_
TTAMachine::Machine * machine_
Parent machine of the instruction OTAFormats.
Definition: OTAFormatListDialog.hh:67
OTAFormatListDialog::ID_LINE
@ ID_LINE
Definition: OTAFormatListDialog.hh:83
ProDeTextGenerator::COMP_MACHINE
@ COMP_MACHINE
Text for machine description.
Definition: ProDeTextGenerator.hh:252
TTAMachine::Machine::Navigator::item
ComponentType * item(int index) const
WidgetTools::setWidgetLabel
static void setWidgetLabel(wxWindow *widget, std::string text)
Definition: WidgetTools.cc:52
OTAFormatListDialog::setTexts
void setTexts()
Definition: OTAFormatListDialog.cc:102
InformationDialog
Definition: InformationDialog.hh:42
OTAFormatListDialog::operationList_
wxListCtrl * operationList_
Widget for list of operations in the selected OTAFormat.
Definition: OTAFormatListDialog.hh:75
WxConversion::toString
static std::string toString(const wxString &source)
ProDeTextGenerator::TXT_OTA_FORMATS_OPERATIONS_BOX
@ TXT_OTA_FORMATS_OPERATIONS_BOX
OTA Formats operations dialog title.
Definition: ProDeTextGenerator.hh:171
ProDeTextGenerator::TXT_COLUMN_NAME
@ TXT_COLUMN_NAME
Label for name column in a list.
Definition: ProDeTextGenerator.hh:105
TTAMachine::Machine::Navigator
Definition: Machine.hh:186
OTAFormatListDialog::ID_OTA_FORMAT_LIST
@ ID_OTA_FORMAT_LIST
Definition: OTAFormatListDialog.hh:81
GUITextGenerator::TXT_BUTTON_OK
@ TXT_BUTTON_OK
Label for OK button.
Definition: GUITextGenerator.hh:59