OpenASIP
2.0
|
#include <BreakpointPropertiesDialog.hh>
Public Member Functions | |
BreakpointPropertiesDialog (wxWindow *parent, StopPointManager &manager, unsigned int handle) | |
virtual | ~BreakpointPropertiesDialog () |
Private Types | |
enum | { ID_TEXT_BREAKPOINT = 10000, ID_TEXT_BP_ID, ID_LABEL_CONDITION, ID_CONDITION, ID_LABEL_IGNORE_COUNT, ID_IGNORE_CTRL, ID_LINE, ID_HELP, ID_CLOSE } |
Widget IDs. More... | |
Private Member Functions | |
wxSizer * | createContents (wxWindow *parent, bool call_fit, bool set_sizer) |
virtual bool | TransferDataToWindow () |
void | onOK (wxCommandEvent &event) |
Private Attributes | |
StopPointManager & | manager_ |
Stoppoint manager containing the breakpoint,. More... | |
unsigned int | handle_ |
Handle of the breakpoint to modify. More... | |
Dialog for editing breakpoint properties in Proxim.
Definition at line 45 of file BreakpointPropertiesDialog.hh.
|
private |
Widget IDs.
Enumerator | |
---|---|
ID_TEXT_BREAKPOINT | |
ID_TEXT_BP_ID | |
ID_LABEL_CONDITION | |
ID_CONDITION | |
ID_LABEL_IGNORE_COUNT | |
ID_IGNORE_CTRL | |
ID_LINE | |
ID_HELP | |
ID_CLOSE |
Definition at line 56 of file BreakpointPropertiesDialog.hh.
BreakpointPropertiesDialog::BreakpointPropertiesDialog | ( | wxWindow * | parent, |
StopPointManager & | manager, | ||
unsigned int | handle | ||
) |
The Constructor.
parent | Parent window of the dialog. |
breakpoint | Breakpoint to edit. |
Definition at line 57 of file BreakpointPropertiesDialog.cc.
|
virtual |
|
private |
Creates the dialog contents.
Definition at line 151 of file BreakpointPropertiesDialog.cc.
References ID_CONDITION, ID_IGNORE_CTRL, ID_LABEL_CONDITION, ID_LABEL_IGNORE_COUNT, ID_LINE, ID_TEXT_BP_ID, and ID_TEXT_BREAKPOINT.
|
private |
Handles the dialog OK-button event.
Breakpoint properties are checked for validity, and the breakpoint is modified if the properties are valid. An error dialog is displayed if the breakpoint properties are invalid.
Definition at line 110 of file BreakpointPropertiesDialog.cc.
References handle_, ID_CONDITION, ID_IGNORE_CTRL, ProximLineReader::input(), ProximToolbox::lineReader(), ProximConstants::SCL_SET_CONDITION, ProximConstants::SCL_SET_IGNORE_COUNT, ProximToolbox::testCondition(), WxConversion::toString(), and Conversion::toString().
|
privatevirtual |
Sets the widget values when the dialog is opened.
Definition at line 78 of file BreakpointPropertiesDialog.cc.
References StopPoint::condition(), handle_, ID_CONDITION, ID_IGNORE_CTRL, ID_TEXT_BP_ID, StopPoint::ignoreCount(), StopPoint::isConditional(), manager_, Script::script(), StopPointManager::stopPointWithHandleConst(), and WxConversion::toWxString().
|
private |
Handle of the breakpoint to modify.
Definition at line 70 of file BreakpointPropertiesDialog.hh.
Referenced by onOK(), and TransferDataToWindow().
|
private |
Stoppoint manager containing the breakpoint,.
Definition at line 68 of file BreakpointPropertiesDialog.hh.
Referenced by TransferDataToWindow().