![]() |
UNIVERS
15.3
UNIVERS base processing software API
|
#include <dialog.hpp>
Public Types | |
| enum | Button { OK_BUTTON = 1, APPLY_BUTTON = 2, CANCEL_BUTTON = 4 } |
Public Member Functions | |
| Dialog (QWidget *parent=0, Qt::WindowFlags f=0) | |
| virtual | ~Dialog () |
| virtual void | show () |
| virtual void | showModal () |
| virtual void | hide () |
| virtual int | exec () |
| void | setButtonsMask (int mask) |
| int | buttonsMask () const |
| QWidget & | mainWidget () |
Protected Member Functions | |
| virtual void | buttonClicked (const hds::Dialog::Button &button_type) |
Provides common dialog objects with buttons turn on/off feature (see setButtonMask). Default button mask is (OK_BUTTON | APPLY_BUTTON | CANCEL_BUTTON). Set zero button mask to turn off all buttons.
| enum hds::Dialog::Button |
Buttons of the dialog.
| hds::Dialog::Dialog | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
Default constructor of Qt dialog.
|
virtual |
Destructor.
|
protectedvirtual |
Called when button with provided button_type clicked.
Reimplemented in hds::SSOptionsDialog, hds::SAAxesDialog, hds::SAOptionsDialog, hds::SVOptionsDialog, and hds::NatgrpsOptionsDialog.
| int hds::Dialog::buttonsMask | ( | ) | const |
Get current mask of buttons to be shown.
|
virtual |
Shows the dialog as a modal dialog, blocking until the user closes it.
Accepted/rejected state returned. Reimplemented just for common interface.
|
virtual |
Hide dialog, reimplemented just for common interface.
| QWidget& hds::Dialog::mainWidget | ( | ) |
Access to dialog main widget.
| void hds::Dialog::setButtonsMask | ( | int | mask | ) |
Set mask for buttons to be shown.
|
virtual |
Show dialog, reimplemented just for common interface.
Reimplemented in hds::SAAxesDialog, hds::SAOptionsDialog, hds::SVOptionsDialog, and hds::ScaleOptionsDialog.
|
virtual |
Show dialog in modal mode.
Reimplemented in hds::SAAxesDialog, hds::SAOptionsDialog, and hds::SVOptionsDialog.
1.8.5