OpenASIP
2.0
|
#include <AddWatchDialog.hh>
Public Member Functions | |
AddWatchDialog (wxWindow *parent, wxWindowID id, Watch *watch=NULL) | |
virtual | ~AddWatchDialog () |
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. More... | |
wxChoice * | fuChoice_ |
Function unit choicer for port watch. More... | |
wxChoice * | portChoice_ |
Port choicer for port watch. More... | |
wxChoice * | rfChoice_ |
Register file choicer for register watch. More... | |
wxChoice * | indexChoice_ |
Register index choicer for register watch. More... | |
wxChoice * | busChoice_ |
Bus choicer for bus watch. More... | |
wxSpinCtrl * | endAddressCtrl_ |
End adderss widget for memory watch. More... | |
wxSpinCtrl * | startAddressCtrl_ |
Start address widget for memory watch. More... | |
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.
|
private |
Initializes the dialog choicer items.
Definition at line 111 of file AddWatchDialog.cc.
References TTAMachine::Machine::addressSpaceNavigator(), TTAMachine::Machine::busNavigator(), TTAMachine::Machine::Navigator< ComponentType >::count(), dummy, TTAMachine::Machine::functionUnitNavigator(), TTAMachine::Machine::Navigator< ComponentType >::item(), ProximToolbox::machine(), machine, TTAMachine::Machine::registerFileNavigator(), 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(), assert, TTAMachine::AddressSpace::end(), TTAMachine::Machine::Navigator< ComponentType >::item(), ProximToolbox::machine(), TTAMachine::AddressSpace::start(), 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, TTAMachine::Machine::functionUnitNavigator(), TTAMachine::Machine::Navigator< ComponentType >::item(), ProximToolbox::machine(), TTAMachine::Port::name(), TTAMachine::FunctionUnit::port(), 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 ProximLineReader::input(), ProximToolbox::lineReader(), ProximConstants::SCL_ADD_WATCH, ProximToolbox::testExpression(), WxConversion::toString(), and Conversion::toString().
|
private |
Sets the register index choicer items when the register file selection changes.
Definition at line 240 of file AddWatchDialog.cc.
References assert, TTAMachine::Machine::Navigator< ComponentType >::item(), ProximToolbox::machine(), TTAMachine::BaseRegisterFile::numberOfRegisters(), TTAMachine::Machine::registerFileNavigator(), 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.
|
private |
Address space choicer for memory watch.
Definition at line 88 of file AddWatchDialog.hh.
|
private |
Bus choicer for bus watch.
Definition at line 98 of file AddWatchDialog.hh.
|
private |
End adderss widget for memory watch.
Definition at line 101 of file AddWatchDialog.hh.
|
private |
Function unit choicer for port watch.
Definition at line 90 of file AddWatchDialog.hh.
|
private |
Register index choicer for register watch.
Definition at line 96 of file AddWatchDialog.hh.
|
private |
Port choicer for port watch.
Definition at line 92 of file AddWatchDialog.hh.
|
private |
Register file choicer for register watch.
Definition at line 94 of file AddWatchDialog.hh.
|
private |
Start address widget for memory watch.
Definition at line 103 of file AddWatchDialog.hh.