Classes | |
| class | Setup |
| description of properties of dialog. More... | |
Public Types | |
| enum | Button { OK, SAVE, CANCEL, HELP, CREDITS } |
| enum | CtrlStyle { DoAndLeave, DoAndStay, LeaveOnly, DoAndProceed } |
Public Member Functions | |
| uiDialog (uiParent *, const Setup &) | |
| const Setup & | setup () const |
| int | go () |
| int | goMinimized () |
| void | reject (CallBacker *cb=0) |
| void | accept (CallBacker *cb=0) |
| void | done (int ret=0) |
| 0=Cancel, 1=OK, other=user defined | |
| void | setHSpacing (int) |
| void | setVSpacing (int) |
| void | setBorder (int) |
| void | setCaption (const char *txt) |
| void | setModal (bool yn) |
| bool | isModal () const |
| uiButton * | button (Button but) |
| void | setButtonText (Button but, const char *txt) |
| void | setCtrlStyle (CtrlStyle) |
| On construction, it's (of course) DoAndLeave. | |
| CtrlStyle | getCtrlStyle () const |
| OK button disabled when set to LeaveOnly. | |
| void | setOkText (const char *txt) |
| void | setCancelText (const char *txt) |
| cancel button disabled when set to empty | |
| void | enableSaveButton (const char *txt="Save defaults") |
| Save button enabled when set to non-empty. | |
| int | uiResult () const |
| 0: cancel; 1: OK | |
| void | setButtonSensitive (Button, bool) |
| void | setSaveButtonChecked (bool) |
| void | setTitleText (const char *txt) |
| bool | hasSaveButton () const |
| bool | saveButtonChecked () const |
| void | setSeparator (bool yn) |
| Separator between central dialog and Ok/Cancel bar? | |
| bool | separator () const |
| void | setHelpID (const char *) |
| virtual const char * | helpID () const |
| bool | haveCredits () const |
Protected Member Functions | |
| virtual bool | rejectOK (CallBacker *) |
| confirm reject | |
| virtual bool | acceptOK (CallBacker *) |
| confirm accept | |
| virtual bool | doneOK (int) |
| confirm exit | |
Protected Attributes | |
| bool | cancelpushed_ |
| CtrlStyle | ctrlstyle_ |
Friends | |
| class | uiDialogBody |
| enum uiDialog::Button |
| enum uiDialog::CtrlStyle |
| void uiDialog::accept | ( | CallBacker * | cb = 0 |
) |
| virtual bool uiDialog::acceptOK | ( | CallBacker * | ) | [inline, protected, virtual] |
confirm accept
| void uiDialog::done | ( | int | ret = 0 |
) |
0=Cancel, 1=OK, other=user defined
| virtual bool uiDialog::doneOK | ( | int | ) | [inline, protected, virtual] |
confirm exit
| void uiDialog::enableSaveButton | ( | const char * | txt = "Save defaults" |
) |
Save button enabled when set to non-empty.
| CtrlStyle uiDialog::getCtrlStyle | ( | ) | const [inline] |
OK button disabled when set to LeaveOnly.
| int uiDialog::go | ( | ) |
| int uiDialog::goMinimized | ( | ) |
| bool uiDialog::hasSaveButton | ( | ) | const |
| bool uiDialog::haveCredits | ( | ) | const |
| virtual const char* uiDialog::helpID | ( | ) | const [virtual] |
| bool uiDialog::isModal | ( | ) | const |
Reimplemented from uiMainWin.
| void uiDialog::reject | ( | CallBacker * | cb = 0 |
) |
| virtual bool uiDialog::rejectOK | ( | CallBacker * | ) | [inline, protected, virtual] |
confirm reject
| bool uiDialog::saveButtonChecked | ( | ) | const |
| bool uiDialog::separator | ( | ) | const |
| void uiDialog::setBorder | ( | int | ) |
| void uiDialog::setButtonSensitive | ( | Button | , | |
| bool | ||||
| ) |
| void uiDialog::setButtonText | ( | Button | but, | |
| const char * | txt | |||
| ) | [inline] |
| void uiDialog::setCancelText | ( | const char * | txt | ) |
cancel button disabled when set to empty
| void uiDialog::setCaption | ( | const char * | txt | ) |
Reimplemented from uiMainWin.
| void uiDialog::setCtrlStyle | ( | CtrlStyle | ) |
On construction, it's (of course) DoAndLeave.
| void uiDialog::setHelpID | ( | const char * | ) |
| void uiDialog::setHSpacing | ( | int | ) |
| void uiDialog::setModal | ( | bool | yn | ) |
| void uiDialog::setOkText | ( | const char * | txt | ) |
| void uiDialog::setSaveButtonChecked | ( | bool | ) |
| void uiDialog::setSeparator | ( | bool | yn | ) |
Separator between central dialog and Ok/Cancel bar?
| void uiDialog::setTitleText | ( | const char * | txt | ) |
| const Setup& uiDialog::setup | ( | ) | const |
| void uiDialog::setVSpacing | ( | int | ) |
| int uiDialog::uiResult | ( | ) | const |
0: cancel; 1: OK
friend class uiDialogBody [friend] |
bool uiDialog::cancelpushed_ [protected] |
CtrlStyle uiDialog::ctrlstyle_ [protected] |
1.7.1