| OpenASIP 2.2
    | 
#include <RFGuardDialog.hh>


| Public Member Functions | |
| RFGuardDialog (wxWindow *parent, TTAMachine::Bus *bus, TTAMachine::RegisterGuard *guard=NULL) | |
| virtual | ~RFGuardDialog () | 
| virtual bool | TransferDataToWindow () | 
| Private Types | |
| enum | { ID_LABEL_NAME = 10000 , ID_RF_NAME , ID_LABEL_INDEX , ID_RF_INDEX , ID_INVERTED , ID_HELP , ID_LINE } | 
| Private Member Functions | |
| wxSizer * | createContents (wxWindow *parent, bool call_fit, bool set_sizer) | 
| void | onRFChoice (wxCommandEvent &event) | 
| void | onOK (wxCommandEvent &event) | 
| void | onCancel (wxCommandEvent &event) | 
| const TTAMachine::RegisterFile * | selectedRF () const | 
| void | setTexts () | 
| Private Attributes | |
| wxChoice * | nameChoice_ | 
| Choice widget for register file name selection. | |
| wxChoice * | indexChoice_ | 
| Choice widget for register index selection. | |
| wxCheckBox * | invertedBox_ | 
| Checkbox widget for the inverted flag. | |
| bool | inverted_ | 
| Inverted flag of the guard. | |
| bool | newInverted_ | 
| Modified inverted flag of the guard. | |
| int | index_ | 
| Register index of the guard. | |
| int | newIndex_ | 
| Modified register index of the guard. | |
| const TTAMachine::RegisterFile * | rf_ | 
| Guard register. | |
| TTAMachine::Bus * | bus_ | 
| Parent bus of the register guard. | |
| bool | adding_ | 
| True if a new guard is being added, false otherwise. | |
Dialog for editing register file guard properties.
Definition at line 46 of file RFGuardDialog.hh.
| 
 | private | 
| Enumerator | |
|---|---|
| ID_LABEL_NAME | |
| ID_RF_NAME | |
| ID_LABEL_INDEX | |
| ID_RF_INDEX | |
| ID_INVERTED | |
| ID_HELP | |
| ID_LINE | |
Definition at line 86 of file RFGuardDialog.hh.
| RFGuardDialog::RFGuardDialog | ( | wxWindow * | parent, | 
| TTAMachine::Bus * | bus, | ||
| TTAMachine::RegisterGuard * | guard = NULL | ||
| ) | 
The Constructor.
| parent | Parent window of the dialog. | 
Definition at line 62 of file RFGuardDialog.cc.
| 
 | virtual | 
| 
 | private | 
Creates contents of the dialog window.
Code generated with wxDesigner.
| parent | Parent dialog of the contents. | 
| call_fit | If true, fits sizer in dialog window. | 
| set_sizer | If true, sets sizer as dialog's sizer. | 
Definition at line 347 of file RFGuardDialog.cc.
References ID_HELP, ID_INVERTED, ID_LABEL_INDEX, ID_LABEL_NAME, ID_LINE, ID_RF_INDEX, and ID_RF_NAME.
| 
 | private | 
Cancels the dialog effects by creating the original register guard.
Closes the dialog.
Definition at line 328 of file RFGuardDialog.cc.
| 
 | private | 
Updates the guard object when the OK-button is pressed.
Closes the dialog.
Definition at line 244 of file RFGuardDialog.cc.
References adding_, assert, bus_, TTAMachine::Bus::guard(), TTAMachine::Bus::guardCount(), indexChoice_, ProDeTextGenerator::instance(), TTAMachine::Guard::isInverted(), ProDeTextGenerator::MSG_ERROR_GUARD_EXISTS, TTAMachine::Component::name(), nameChoice_, newIndex_, newInverted_, TTAMachine::BaseRegisterFile::numberOfRegisters(), TTAMachine::RegisterGuard::registerFile(), selectedRF(), Texts::TextGenerator::text(), WxConversion::toString(), WxConversion::toWxString(), and ProDeTextGenerator::TXT_ALL.

| 
 | private | 
Updates the index choice when the register file selection is changed.
Definition at line 196 of file RFGuardDialog.cc.
References adding_, indexChoice_, ProDeTextGenerator::instance(), TTAMachine::BaseRegisterFile::numberOfRegisters(), selectedRF(), Texts::TextGenerator::text(), WxConversion::toWxString(), and ProDeTextGenerator::TXT_ALL.

| 
 | private | 
Returns a pointer to the selected register file.
Definition at line 229 of file RFGuardDialog.cc.
References bus_, TTAMachine::Machine::Navigator< ComponentType >::item(), TTAMachine::Component::machine(), nameChoice_, TTAMachine::Machine::registerFileNavigator(), and WxConversion::toString().
Referenced by onOK(), onRFChoice(), and TransferDataToWindow().

| 
 | private | 
Sets texts for widgets.
Definition at line 119 of file RFGuardDialog.cc.
References ID_HELP, ID_INVERTED, ID_LABEL_INDEX, ID_LABEL_NAME, GUITextGenerator::instance(), ProDeTextGenerator::instance(), WidgetTools::setLabel(), Texts::TextGenerator::text(), WxConversion::toWxString(), GUITextGenerator::TXT_BUTTON_CANCEL, GUITextGenerator::TXT_BUTTON_HELP, GUITextGenerator::TXT_BUTTON_OK, ProDeTextGenerator::TXT_LABEL_INVERTED, ProDeTextGenerator::TXT_LABEL_REGISTER_INDEX, ProDeTextGenerator::TXT_LABEL_RF_NAME, and ProDeTextGenerator::TXT_RF_GUARD_DIALOG_TITLE.

| 
 | virtual | 
Transfers data from the Guard object to the dialog widgets.
Definition at line 156 of file RFGuardDialog.cc.
References adding_, bus_, TTAMachine::Machine::Navigator< ComponentType >::count(), indexChoice_, ProDeTextGenerator::instance(), invertedBox_, TTAMachine::Machine::Navigator< ComponentType >::item(), TTAMachine::Component::machine(), TTAMachine::Component::name(), nameChoice_, newIndex_, newInverted_, TTAMachine::BaseRegisterFile::numberOfRegisters(), TTAMachine::Machine::registerFileNavigator(), rf_, selectedRF(), Texts::TextGenerator::text(), WxConversion::toWxString(), and ProDeTextGenerator::TXT_ALL.

| 
 | private | 
True if a new guard is being added, false otherwise.
Definition at line 83 of file RFGuardDialog.hh.
Referenced by onCancel(), onOK(), onRFChoice(), and TransferDataToWindow().
| 
 | private | 
Parent bus of the register guard.
Definition at line 81 of file RFGuardDialog.hh.
Referenced by onCancel(), onOK(), selectedRF(), and TransferDataToWindow().
| 
 | private | 
Register index of the guard.
Definition at line 75 of file RFGuardDialog.hh.
Referenced by onCancel().
| 
 | private | 
Choice widget for register index selection.
Definition at line 66 of file RFGuardDialog.hh.
Referenced by onOK(), onRFChoice(), and TransferDataToWindow().
| 
 | private | 
Inverted flag of the guard.
Definition at line 71 of file RFGuardDialog.hh.
Referenced by onCancel().
| 
 | private | 
Checkbox widget for the inverted flag.
Definition at line 68 of file RFGuardDialog.hh.
Referenced by TransferDataToWindow().
| 
 | private | 
Choice widget for register file name selection.
Definition at line 64 of file RFGuardDialog.hh.
Referenced by onOK(), selectedRF(), and TransferDataToWindow().
| 
 | private | 
Modified register index of the guard.
Definition at line 77 of file RFGuardDialog.hh.
Referenced by onOK(), and TransferDataToWindow().
| 
 | private | 
Modified inverted flag of the guard.
Definition at line 73 of file RFGuardDialog.hh.
Referenced by onOK(), and TransferDataToWindow().
| 
 | private | 
Guard register.
Definition at line 79 of file RFGuardDialog.hh.
Referenced by onCancel(), and TransferDataToWindow().