OpenASIP 2.2
|
#include <AddWatchDialog.hh>
Public Member Functions | |
AddWatchDialog (wxWindow *parent, wxWindowID id, Watch *watch=NULL) | |
virtual | ~AddWatchDialog () |
Private Types | |
enum | { ID_RB_MEMORY , ID_RB_PORT , ID_RB_REGISTER , ID_RB_EXPRESSION , ID_RB_BUS , ID_LABEL_AS , ID_LABEL_UNIT , ID_LABEL_PORT , ID_LABEL_RF , ID_LABEL_BUS , ID_LABEL_EXPRESSION , ID_LABEL_CONDITION , ID_LABEL_START_ADDRESS , ID_LABEL_END_ADDRESS , ID_LABEL_INDEX , ID_START_ADDRESS , ID_END_ADDRESS , ID_BUS_CHOICE , ID_RF_CHOICE , ID_FU_CHOICE , ID_PORT_CHOICE , ID_INDEX_CHOICE , ID_EXPRESSION , ID_ADDRESS_SPACE , ID_LINE } |
Widget ids. More... | |
Private Member Functions | |
void | onWatchTypeChange (wxCommandEvent &event) |
void | onFUChoice (wxCommandEvent &event) |
void | onRFChoice (wxCommandEvent &event) |
void | onASChoice (wxCommandEvent &event) |
void | initialize () |
void | onOK (wxCommandEvent &event) |
wxSizer * | createContents (wxWindow *parent, bool call_fit, bool set_sizer) |
Private Attributes | |
wxChoice * | asChoice_ |
Address space choicer for memory watch. | |
wxChoice * | fuChoice_ |
Function unit choicer for port watch. | |
wxChoice * | portChoice_ |
Port choicer for port watch. | |
wxChoice * | rfChoice_ |
Register file choicer for register watch. | |
wxChoice * | indexChoice_ |
Register index choicer for register watch. | |
wxChoice * | busChoice_ |
Bus choicer for bus watch. | |
wxSpinCtrl * | endAddressCtrl_ |
End adderss widget for memory watch. | |
wxSpinCtrl * | startAddressCtrl_ |
Start address widget for memory watch. | |
Dialog for creating watch points.
Definition at line 43 of file AddWatchDialog.hh.
|
private |
Widget ids.
Definition at line 57 of file AddWatchDialog.hh.
AddWatchDialog::AddWatchDialog | ( | wxWindow * | parent, |
wxWindowID | id, | ||
Watch * | watch = NULL |
||
) |
The Constructor.
parent | Parent window of the dialog. |
id | Dialog identifier. |
watch | Watch point to edit, or NULL to create a new watch point. |
Definition at line 79 of file AddWatchDialog.cc.
|
virtual |
|
private |
Creates the dialog widgets.
Code generated by wxDesigner. Do not modify manually.
parent | Parent window for the dialog widgets. |
call_fit | If true, the dialog is resized to fit the widgets. |
set_sizer | If true, the created widgets are set as the dialog contents. |
Definition at line 415 of file AddWatchDialog.cc.
References ID_ADDRESS_SPACE, ID_BUS_CHOICE, ID_END_ADDRESS, ID_EXPRESSION, ID_FU_CHOICE, ID_INDEX_CHOICE, ID_LABEL_AS, ID_LABEL_BUS, ID_LABEL_END_ADDRESS, ID_LABEL_INDEX, ID_LABEL_PORT, ID_LABEL_RF, ID_LABEL_START_ADDRESS, ID_LABEL_UNIT, ID_LINE, ID_PORT_CHOICE, ID_RB_BUS, ID_RB_EXPRESSION, ID_RB_MEMORY, ID_RB_PORT, ID_RB_REGISTER, ID_RF_CHOICE, and ID_START_ADDRESS.
|
private |
Initializes the dialog choicer items.
Definition at line 111 of file AddWatchDialog.cc.
References TTAMachine::Machine::addressSpaceNavigator(), asChoice_, busChoice_, TTAMachine::Machine::busNavigator(), TTAMachine::Machine::Navigator< ComponentType >::count(), dummy, fuChoice_, TTAMachine::Machine::functionUnitNavigator(), ID_RB_PORT, TTAMachine::Machine::Navigator< ComponentType >::item(), machine, ProximToolbox::machine(), onWatchTypeChange(), TTAMachine::Machine::registerFileNavigator(), rfChoice_, and WxConversion::toWxString().
|
private |
Event handler for the address space choicer.
Sets the minimum and maximum start/end address values of the memory watch spin-buttons when the address space selection is changed.
Definition at line 268 of file AddWatchDialog.cc.
References TTAMachine::Machine::addressSpaceNavigator(), asChoice_, assert, TTAMachine::AddressSpace::end(), endAddressCtrl_, TTAMachine::Machine::Navigator< ComponentType >::item(), ProximToolbox::machine(), TTAMachine::AddressSpace::start(), startAddressCtrl_, and WxConversion::toString().
|
private |
Sets the function unit port choicer items when the function unit selection changes.
Definition at line 213 of file AddWatchDialog.cc.
References assert, fuChoice_, TTAMachine::Machine::functionUnitNavigator(), TTAMachine::Machine::Navigator< ComponentType >::item(), ProximToolbox::machine(), TTAMachine::Port::name(), TTAMachine::FunctionUnit::port(), portChoice_, TTAMachine::Unit::portCount(), WxConversion::toString(), and WxConversion::toWxString().
|
private |
Event handler for the dialog OK-button.
Definition at line 291 of file AddWatchDialog.cc.
References asChoice_, busChoice_, endAddressCtrl_, fuChoice_, ID_EXPRESSION, ID_RB_BUS, ID_RB_EXPRESSION, ID_RB_MEMORY, ID_RB_PORT, ID_RB_REGISTER, indexChoice_, ProximLineReader::input(), ProximToolbox::lineReader(), portChoice_, rfChoice_, ProximConstants::SCL_ADD_WATCH, startAddressCtrl_, ProximToolbox::testExpression(), Conversion::toString(), and WxConversion::toString().
|
private |
Sets the register index choicer items when the register file selection changes.
Definition at line 240 of file AddWatchDialog.cc.
References assert, indexChoice_, TTAMachine::Machine::Navigator< ComponentType >::item(), ProximToolbox::machine(), TTAMachine::BaseRegisterFile::numberOfRegisters(), TTAMachine::Machine::registerFileNavigator(), rfChoice_, WxConversion::toString(), and WxConversion::toWxString().
|
private |
Disables and enables dialog widgets when the watch type selection changes.
event | Radio-button event of the watch type changing. |
Definition at line 157 of file AddWatchDialog.cc.
References ID_ADDRESS_SPACE, ID_BUS_CHOICE, ID_END_ADDRESS, ID_EXPRESSION, ID_FU_CHOICE, ID_INDEX_CHOICE, ID_LABEL_AS, ID_LABEL_BUS, ID_LABEL_END_ADDRESS, ID_LABEL_INDEX, ID_LABEL_PORT, ID_LABEL_RF, ID_LABEL_START_ADDRESS, ID_LABEL_UNIT, ID_PORT_CHOICE, ID_RB_BUS, ID_RB_EXPRESSION, ID_RB_MEMORY, ID_RB_PORT, ID_RB_REGISTER, ID_RF_CHOICE, and ID_START_ADDRESS.
Referenced by initialize().
|
private |
Address space choicer for memory watch.
Definition at line 88 of file AddWatchDialog.hh.
Referenced by initialize(), onASChoice(), and onOK().
|
private |
Bus choicer for bus watch.
Definition at line 98 of file AddWatchDialog.hh.
Referenced by initialize(), and onOK().
|
private |
End adderss widget for memory watch.
Definition at line 101 of file AddWatchDialog.hh.
Referenced by onASChoice(), and onOK().
|
private |
Function unit choicer for port watch.
Definition at line 90 of file AddWatchDialog.hh.
Referenced by initialize(), onFUChoice(), and onOK().
|
private |
Register index choicer for register watch.
Definition at line 96 of file AddWatchDialog.hh.
Referenced by onOK(), and onRFChoice().
|
private |
Port choicer for port watch.
Definition at line 92 of file AddWatchDialog.hh.
Referenced by onFUChoice(), and onOK().
|
private |
Register file choicer for register watch.
Definition at line 94 of file AddWatchDialog.hh.
Referenced by initialize(), onOK(), and onRFChoice().
|
private |
Start address widget for memory watch.
Definition at line 103 of file AddWatchDialog.hh.
Referenced by onASChoice(), and onOK().