OpenASIP 2.2
Loading...
Searching...
No Matches
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.
 
wxStaticBoxSizer * OTAFormatSizer_
 Box sizer around the OTAFormat list.
 
wxStaticBoxSizer * operationSizer_
 Box sizer around the operation list.
 
wxListCtrl * OTAFormatList_
 Widget for list of OTAFormats.
 
wxListCtrl * operationList_
 Widget for list of operations in the selected OTAFormat.
 
wxString OTAFormatName_
 Name of the new OTAFormat.
 

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 72 of file OTAFormatListDialog.cc.

74 :
75 wxDialog(parent, -1, _T(""), wxDefaultPosition),
77 OTAFormatName_(_T("")) {
78
79 createContents(this, true, true);
80
81 OTAFormatList_ = dynamic_cast<wxListCtrl*>(FindWindow(ID_OTA_FORMAT_LIST));
82 operationList_ = dynamic_cast<wxListCtrl*>(FindWindow(ID_OPERATION_LIST));
83
84 FindWindow(ID_NAME)->SetValidator(
85 wxTextValidator(wxFILTER_ASCII, &OTAFormatName_));
86 FindWindow(ID_ADD_OTA_FORMAT)->Disable();
88 // set widget texts
89 setTexts();
90}
TTAMachine::Machine * machine
the architecture definition of the estimated processor
wxListCtrl * operationList_
Widget for list of operations in the selected OTAFormat.
wxListCtrl * OTAFormatList_
Widget for list of OTAFormats.
wxString OTAFormatName_
Name of the new OTAFormat.
TTAMachine::Machine * machine_
Parent machine of the instruction OTAFormats.
wxSizer * createContents(wxWindow *parent, bool call_fit, bool set_sizer)

◆ ~OTAFormatListDialog()

OTAFormatListDialog::~OTAFormatListDialog ( )
virtual

The Destructor.

Definition at line 96 of file OTAFormatListDialog.cc.

96 {
97}

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 417 of file OTAFormatListDialog.cc.

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

References ID_ADD_OPERATION, ID_ADD_OTA_FORMAT, ID_DELETE_OPERATION, ID_DELETE_OTA_FORMAT, ID_HELP, ID_LABEL_NAME, ID_LINE, ID_NAME, ID_OPERATION_LIST, ID_OTA_FORMAT_LIST, operationSizer_, and OTAFormatSizer_.

◆ onAddOperation()

void OTAFormatListDialog::onAddOperation ( wxCommandEvent &  event)
private

Handles the add Operation button event.

Definition at line 382 of file OTAFormatListDialog.cc.

382 {
383
384 if (selectedOTAFormat() == NULL) {
385 assert(false);
386 }
388 dialog.ShowModal();
390}
#define assert(condition)
TTAMachine::OperationTriggeredFormat * selectedOTAFormat()

References assert, selectedOTAFormat(), and updateOperationList().

Here is the call graph for this function:

◆ onAddOTAFormat()

void OTAFormatListDialog::onAddOTAFormat ( wxCommandEvent &  event)
private

Handles the Add tempalte button event.

Adds a new OTAFormat to the machine.

Definition at line 304 of file OTAFormatListDialog.cc.

304 {
305 if (!TransferDataFromWindow()) {
306 assert(false);
307 }
308 string trimmedName =
309 WxConversion::toString(OTAFormatName_.Trim(false).Trim(true));
310
311 // Check the name validity.
312 if (!validFormatName()) {
313 std::string message = "Format name is illegal. Legal names are:\n" + \
323 InformationDialog warning(
324 this, WxConversion::toWxString(message));
325 warning.ShowModal();
326 return;
327 }
328
331
332 if (navigator.hasItem(trimmedName)) {
333 ProDeTextGenerator* prodeTexts =
335 format message =
337 format a_tmplate =
339 format machine =
341 format tmplate =
343 message % trimmedName % a_tmplate.str() % machine.str() %
344 tmplate.str();
345 WarningDialog warning(this, WxConversion::toWxString(message.str()));
346 warning.ShowModal();
347 return;
348 }
349 new OperationTriggeredFormat(trimmedName, *machine_);
350 OTAFormatName_ = _T("");
352}
virtual bool TransferDataToWindow()
static ProDeTextGenerator * instance()
@ MSG_ERROR_SAME_NAME
Error: Same name exists.
@ COMP_AN_OTA_FORMAT
Name for OTA Format (w/ article).
@ COMP_OTA_FORMAT
Name for OTA Format (w/o article).
@ COMP_MACHINE
Text for machine description.
bool hasItem(const std::string &name) const
virtual OperationTriggeredFormatNavigator operationTriggeredFormatNavigator() const
Definition Machine.cc:439
virtual boost::format text(int textId)
static wxString toWxString(const std::string &source)
static std::string toString(const wxString &source)
const std::string RISCV_S_TYPE_NAME
const std::string RISCV_R1R_TYPE_NAME
const std::string RISCV_R3R_TYPE_NAME
const std::string RISCV_B_TYPE_NAME
const std::string RISCV_J_TYPE_NAME
const std::string RISCV_R_TYPE_NAME
const std::string RISCV_R1_TYPE_NAME
const std::string RISCV_I_TYPE_NAME
const std::string RISCV_U_TYPE_NAME

References assert, ProDeTextGenerator::COMP_AN_OTA_FORMAT, ProDeTextGenerator::COMP_MACHINE, ProDeTextGenerator::COMP_OTA_FORMAT, TTAMachine::Machine::Navigator< ComponentType >::hasItem(), ProDeTextGenerator::instance(), machine, machine_, ProDeTextGenerator::MSG_ERROR_SAME_NAME, TTAMachine::Machine::operationTriggeredFormatNavigator(), OTAFormatName_, RISCVFields::RISCV_B_TYPE_NAME, RISCVFields::RISCV_I_TYPE_NAME, RISCVFields::RISCV_J_TYPE_NAME, RISCVFields::RISCV_R1_TYPE_NAME, RISCVFields::RISCV_R1R_TYPE_NAME, RISCVFields::RISCV_R3R_TYPE_NAME, RISCVFields::RISCV_R_TYPE_NAME, RISCVFields::RISCV_S_TYPE_NAME, RISCVFields::RISCV_U_TYPE_NAME, Texts::TextGenerator::text(), WxConversion::toString(), WxConversion::toWxString(), TransferDataToWindow(), and validFormatName().

Here is the call graph for this function:

◆ onDeleteOperation()

void OTAFormatListDialog::onDeleteOperation ( wxCommandEvent &  event)
private

Handles the delete Operation button event.

Definition at line 397 of file OTAFormatListDialog.cc.

397 {
398 if (selectedOTAFormat() == NULL) {
399 assert(false);
400 }
403}

References assert, TTAMachine::OperationTriggeredFormat::removeOperation(), selectedOperation(), selectedOTAFormat(), and updateOperationList().

Here is the call graph for this function:

◆ onDeleteOTAFormat()

void OTAFormatListDialog::onDeleteOTAFormat ( wxCommandEvent &  event)
private

Deletes the selected OTAFormat.

Definition at line 241 of file OTAFormatListDialog.cc.

241 {
242 delete selectedOTAFormat();
244 wxListEvent dummy;
246}
SimValue dummy(32)
a dummy simvalue which is given for operands that are not bound
void onOTAFormatSelection(wxListEvent &event)

References dummy, onOTAFormatSelection(), selectedOTAFormat(), and TransferDataToWindow().

Here is the call graph for this function:

◆ 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 228 of file OTAFormatListDialog.cc.

228 {
229 if (operationList_->GetSelectedItemCount() == 1) {
231 } else {
233 }
234}

References ID_DELETE_OPERATION, and operationList_.

Referenced by updateOperationList().

◆ 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 360 of file OTAFormatListDialog.cc.

360 {
361 if (!TransferDataFromWindow()) {
362 assert(false);
363 }
364 wxString trimmedName = OTAFormatName_.Trim(false).Trim(true);
367 if (trimmedName == _T("")) {
368 FindWindow(ID_ADD_OTA_FORMAT)->Disable();
369 //Only 6 formats in RISC-V + 3 custom formats
370 } else if (nav.count() > 8) {
371 FindWindow(ID_ADD_OTA_FORMAT)->Disable();
372 } else {
373 FindWindow(ID_ADD_OTA_FORMAT)->Enable();
374 }
375}

References assert, TTAMachine::Machine::Navigator< ComponentType >::count(), ID_ADD_OTA_FORMAT, machine_, TTAMachine::Machine::operationTriggeredFormatNavigator(), and OTAFormatName_.

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 214 of file OTAFormatListDialog.cc.

214 {
215 if (OTAFormatList_->GetSelectedItemCount() == 0) {
217 } else {
219 }
221}

References ID_DELETE_OTA_FORMAT, OTAFormatList_, and updateOperationList().

Referenced by onDeleteOTAFormat().

Here is the call graph for this function:

◆ selectedOperation()

string OTAFormatListDialog::selectedOperation ( )
private

Returns name of the selected Operation.

Returns
Name of the selected Operation.

Definition at line 276 of file OTAFormatListDialog.cc.

276 {
278 return name;
279}
static std::string lcStringSelection(wxListCtrl *list, int column)

References WidgetTools::lcStringSelection(), and operationList_.

Referenced by onDeleteOperation().

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 255 of file OTAFormatListDialog.cc.

255 {
256 long item = -1;
257 item = OTAFormatList_->GetNextItem(
258 item, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED);
259
260 if (item < 0) {
261 return NULL;
262 }
263
266 return f;
267}
ComponentType * item(int index) const

References TTAMachine::Machine::Navigator< ComponentType >::item(), machine_, TTAMachine::Machine::operationTriggeredFormatNavigator(), and OTAFormatList_.

Referenced by onAddOperation(), onDeleteOperation(), onDeleteOTAFormat(), and updateOperationList().

Here is the call graph for this function:

◆ setTexts()

void OTAFormatListDialog::setTexts ( )
private

Sets texts for widgets.

Definition at line 104 of file OTAFormatListDialog.cc.

104 {
107
108 // Dialog title
109 format fmt = prodeTexts->text(
111 SetTitle(WxConversion::toWxString(fmt.str()));
112
113 // buttons
114 WidgetTools::setLabel(generator, FindWindow(wxID_OK),
116
117 WidgetTools::setLabel(generator, FindWindow(wxID_CANCEL),
119
122
125
128
131
134
135 // widget labels
138
139 // box sizer label
142
145
146 // Create instruction OTAFormat list columns.
147 wxListCtrl* OTAFormatList =
148 dynamic_cast<wxListCtrl*>(FindWindow(ID_OTA_FORMAT_LIST));
149 fmt = prodeTexts->text(ProDeTextGenerator::TXT_COLUMN_NAME);
150 OTAFormatList->InsertColumn(0, WxConversion::toWxString(fmt.str()),
151 wxLIST_FORMAT_LEFT, 160);
152
153 // Create OTAFormat Operation list columns.
154 wxListCtrl* OperationList =
155 dynamic_cast<wxListCtrl*>(FindWindow(ID_OPERATION_LIST));
157 OperationList->InsertColumn(0, WxConversion::toWxString(fmt.str()),
158 wxLIST_FORMAT_LEFT, 100);
159}
@ TXT_BUTTON_ADD_DIALOG
Label for add button (with trailing ...).
@ TXT_BUTTON_HELP
Label for help button.
@ TXT_BUTTON_DELETE
Label for delete button.
@ TXT_BUTTON_CANCEL
Label for cancel button.
@ TXT_BUTTON_OK
Label for OK button.
@ TXT_BUTTON_ADD
Label for an add button.
static GUITextGenerator * instance()
@ TXT_OTA_FORMATS_DIALOG_TITLE
OTA Formats dialog title.
@ TXT_LABEL_NAME
Label for component name widget.
@ TXT_OTA_FORMATS_BOX
OTA Formats box title.
@ TXT_COLUMN_OTA_OPERATION
Label for OTA operation column in a list.
@ TXT_COLUMN_NAME
Label for name column in a list.
@ TXT_OTA_FORMATS_OPERATIONS_BOX
OTA Formats operations dialog title.
static void setWidgetLabel(wxWindow *widget, std::string text)
static void setLabel(Texts::TextGenerator *generator, wxWindow *widget, int textID)

References ID_ADD_OPERATION, ID_ADD_OTA_FORMAT, ID_DELETE_OPERATION, ID_DELETE_OTA_FORMAT, ID_HELP, ID_LABEL_NAME, ID_OPERATION_LIST, ID_OTA_FORMAT_LIST, GUITextGenerator::instance(), ProDeTextGenerator::instance(), operationSizer_, OTAFormatSizer_, 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 166 of file OTAFormatListDialog.cc.

166 {
167
168 // update OTAFormat list
169 OTAFormatList_->DeleteAllItems();
172 for (int i = 0; i < navigator.count(); i++) {
173 OTAFormatList_->InsertItem(
174 i, WxConversion::toWxString(navigator.item(i)->name()));
175 }
177 return wxDialog::TransferDataToWindow();
178}

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

Referenced by onAddOTAFormat(), and onDeleteOTAFormat().

Here is the call graph for this function:

◆ updateOperationList()

void OTAFormatListDialog::updateOperationList ( )
private

Updates the OTAFormat Operation list.

Definition at line 185 of file OTAFormatListDialog.cc.

185 {
186
187
188 operationList_->DeleteAllItems();
189 operationList_->Enable();
190
192
193 if (f == NULL) {
194 FindWindow(ID_ADD_OPERATION)->Disable();
195 return;
196 }
197
198 for (int i = 0; i < f->operationCount(); i++) {
199 operationList_->InsertItem(
201 }
202
203 FindWindow(ID_ADD_OPERATION)->Enable();
204
205 wxListEvent dummy;
207}
void onOperationSelection(wxListEvent &event)

References dummy, ID_ADD_OPERATION, onOperationSelection(), TTAMachine::OperationTriggeredFormat::operationAtIndex(), TTAMachine::OperationTriggeredFormat::operationCount(), operationList_, selectedOTAFormat(), and WxConversion::toWxString().

Referenced by onAddOperation(), onDeleteOperation(), onOTAFormatSelection(), and TransferDataToWindow().

Here is the call graph for this function:

◆ validFormatName()

bool OTAFormatListDialog::validFormatName ( ) const
private

Member Data Documentation

◆ machine_

TTAMachine::Machine* OTAFormatListDialog::machine_
private

Parent machine of the instruction OTAFormats.

Definition at line 67 of file OTAFormatListDialog.hh.

Referenced by onAddOTAFormat(), onOTAFormatName(), selectedOTAFormat(), and TransferDataToWindow().

◆ operationList_

wxListCtrl* OTAFormatListDialog::operationList_
private

Widget for list of operations in the selected OTAFormat.

Definition at line 75 of file OTAFormatListDialog.hh.

Referenced by onOperationSelection(), selectedOperation(), and updateOperationList().

◆ operationSizer_

wxStaticBoxSizer* OTAFormatListDialog::operationSizer_
private

Box sizer around the operation list.

Definition at line 71 of file OTAFormatListDialog.hh.

Referenced by createContents(), and setTexts().

◆ OTAFormatList_

wxListCtrl* OTAFormatListDialog::OTAFormatList_
private

Widget for list of OTAFormats.

Definition at line 73 of file OTAFormatListDialog.hh.

Referenced by onOTAFormatSelection(), selectedOTAFormat(), and TransferDataToWindow().

◆ OTAFormatName_

wxString OTAFormatListDialog::OTAFormatName_
private

Name of the new OTAFormat.

Definition at line 77 of file OTAFormatListDialog.hh.

Referenced by onAddOTAFormat(), onOTAFormatName(), and validFormatName().

◆ OTAFormatSizer_

wxStaticBoxSizer* OTAFormatListDialog::OTAFormatSizer_
private

Box sizer around the OTAFormat list.

Definition at line 69 of file OTAFormatListDialog.hh.

Referenced by createContents(), and setTexts().


The documentation for this class was generated from the following files: