OpenASIP
2.0
|
#include <WatchPropertiesDialog.hh>
Public Member Functions | |
WatchPropertiesDialog (wxWindow *parent, wxWindowID id, StopPointManager &manager, int handle) | |
~WatchPropertiesDialog () | |
Private Types | |
enum | { ID_LABEL_WATCH = 10000, ID_LABEL_EXPRESSION, ID_LABEL_CONDITION, ID_LABEL_IGNORE_COUNT, ID_WATCH_HANDLE, ID_EXPRESSION, ID_CONDITION, ID_IGNORE_COUNT, ID_LINE } |
Widget IDs. More... | |
Private Member Functions | |
wxSizer * | createContents (wxWindow *parent, bool call_fit, bool call_sizer) |
virtual bool | TransferDataToWindow () |
void | onOK (wxCommandEvent &event) |
Private Attributes | |
StopPointManager & | manager_ |
Stop point manager of the simulator. More... | |
int | handle_ |
Handle of the watch to modify. More... | |
wxTextCtrl * | expressionCtrl_ |
Text widget for the watch expression script. More... | |
wxTextCtrl * | conditionCtrl_ |
Text widget fot the watch condition script. More... | |
wxSpinCtrl * | ignoreCtrl_ |
Spin button widget for the watch ignore count. More... | |
Dialog for modifying watchpoint properties.
Definition at line 43 of file WatchPropertiesDialog.hh.
|
private |
Widget IDs.
Enumerator | |
---|---|
ID_LABEL_WATCH | |
ID_LABEL_EXPRESSION | |
ID_LABEL_CONDITION | |
ID_LABEL_IGNORE_COUNT | |
ID_WATCH_HANDLE | |
ID_EXPRESSION | |
ID_CONDITION | |
ID_IGNORE_COUNT | |
ID_LINE |
Definition at line 55 of file WatchPropertiesDialog.hh.
WatchPropertiesDialog::WatchPropertiesDialog | ( | wxWindow * | parent, |
wxWindowID | id, | ||
StopPointManager & | manager, | ||
int | handle | ||
) |
The Constructor.
parent | Parent window of the dialog. |
id | Window identifier for the dialog. |
manager | Stoppoint manager of the simulator. |
handle | Watch handle. |
Definition at line 58 of file WatchPropertiesDialog.cc.
WatchPropertiesDialog::~WatchPropertiesDialog | ( | ) |
|
private |
Creates the dialog contents.
Code generated by wxDesgigner. Do not modify manually.
parent | Parent window of the widgets. |
call_fit | If true, the dialog is resized to fit the widgets. |
set_sizer | If true, the created widgets are set as the parent window contents. |
Definition at line 156 of file WatchPropertiesDialog.cc.
References ID_CONDITION, ID_EXPRESSION, ID_IGNORE_COUNT, ID_LABEL_CONDITION, ID_LABEL_EXPRESSION, ID_LABEL_IGNORE_COUNT, ID_LABEL_WATCH, ID_LINE, and ID_WATCH_HANDLE.
|
private |
Event handler for the OK-button.
Updates the watch properties accordign to the values in the dialog widgets.
Definition at line 113 of file WatchPropertiesDialog.cc.
References handle_, ID_CONDITION, ignoreCtrl_, ProximLineReader::input(), ProximToolbox::lineReader(), ProximConstants::SCL_SET_CONDITION, ProximConstants::SCL_SET_IGNORE_COUNT, ProximToolbox::testCondition(), WxConversion::toString(), and Conversion::toString().
|
privatevirtual |
Initializes watch properties in the dialog widgets.
Definition at line 85 of file WatchPropertiesDialog.cc.
References StopPoint::condition(), conditionCtrl_, Watch::expression(), expressionCtrl_, handle_, ID_WATCH_HANDLE, StopPoint::ignoreCount(), ignoreCtrl_, StopPoint::isConditional(), manager_, Script::script(), StopPointManager::stopPointWithHandleConst(), and WxConversion::toWxString().
|
private |
Text widget fot the watch condition script.
Definition at line 76 of file WatchPropertiesDialog.hh.
Referenced by TransferDataToWindow().
|
private |
Text widget for the watch expression script.
Definition at line 74 of file WatchPropertiesDialog.hh.
Referenced by TransferDataToWindow().
|
private |
Handle of the watch to modify.
Definition at line 71 of file WatchPropertiesDialog.hh.
Referenced by onOK(), and TransferDataToWindow().
|
private |
Spin button widget for the watch ignore count.
Definition at line 78 of file WatchPropertiesDialog.hh.
Referenced by onOK(), and TransferDataToWindow().
|
private |
Stop point manager of the simulator.
Definition at line 69 of file WatchPropertiesDialog.hh.
Referenced by TransferDataToWindow().