45FXIMPLEMENT(
MFXDialogBox, FXDialogBox, MFXDialogBoxMap, ARRAYNUMBER(MFXDialogBoxMap))
52 FXint w, FXint h, FXint pl, FXint pr, FXint pt, FXint pb, FXint hs, FXint vs):
53 FXDialogBox(a, name, opts, x, y, w, h, pl, pr, pt, pb, hs, vs) {
58 FXint w, FXint h, FXint pl, FXint pr, FXint pt, FXint pb, FXint hs, FXint vs):
59 FXDialogBox(owner, name, opts, x, y, w, h, pl, pr, pt, pb, hs, vs) {
72 if (modalStep->getEvent()) {
73 handle(internalTests, modalStep->getSelector(), modalStep->getEvent());
74 }
else if (modalStep->getDialogTest()) {
75 handle(internalTests, modalStep->getSelector(), modalStep->getDialogTest());
81 return getApp()->runModalFor(
this);
96 getApp()->stopModal(
this, TRUE);
107 getApp()->stopModal(
this, FALSE);
129 return FXDialogBox::execute(placement);
@ MID_INTERNALTEST
execute internal test in modal dialog
FXDEFMAP(MFXDialogBox) MFXDialogBoxMap[]
InternalTestStep * getCurrentStep() const
get current step
dialog arguments (used for certain functions that opens modal dialogs)
const std::vector< const InternalTestStep * > & getModalDialogTestSteps() const
get key events used in certain dialogs (allowDialog, etc.)
virtual void runInternalTest(const InternalTestStep::DialogTest *dialogTest)
run internal test
long onCmdCancel(FXObject *, FXSelector, void *)
called when cancel button is pressed (or dialog is closed)
MFXDialogBox()
FOX needs this.
FXuint openModalDialog(InternalTest *internalTests, FXuint placement=PLACEMENT_CURSOR)
Run modal invocation of the dialog.
long onCmdAccept(FXObject *, FXSelector, void *)
called when accept button is pressed
bool myTesting
flag to indicate if this dialog is being tested using internal test
long onCmdInternalTest(FXObject *, FXSelector, void *ptr)
event used in internal tests
FXuint execute(FXuint placement=PLACEMENT_CURSOR)
make execute private