UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Protected Member Functions | List of all members
hds::Dialog Class Reference

#include <dialog.hpp>

Inheritance diagram for hds::Dialog:
hds::AboutDlg hds::CreateDbProjectDialog hds::NatgrpsOptionsDialog hds::SAAxesDialog hds::SAManualZoomDialog hds::SAOptionsDialog hds::ScaleOptionsDialog hds::SelectionDialog hds::SSOptionsDialog hds::SVOptionsDialog

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)
 

Detailed Description

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.

Member Enumeration Documentation

Buttons of the dialog.

Constructor & Destructor Documentation

hds::Dialog::Dialog ( QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)

Default constructor of Qt dialog.

virtual hds::Dialog::~Dialog ( )
virtual

Destructor.

Member Function Documentation

virtual void hds::Dialog::buttonClicked ( const hds::Dialog::Button button_type)
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 int hds::Dialog::exec ( )
virtual
Shows the dialog as a modal dialog, blocking until the user closes it.

Accepted/rejected state returned. Reimplemented just for common interface.

virtual void hds::Dialog::hide ( )
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 void hds::Dialog::show ( )
virtual

Show dialog, reimplemented just for common interface.

Reimplemented in hds::SAAxesDialog, hds::SAOptionsDialog, hds::SVOptionsDialog, and hds::ScaleOptionsDialog.

virtual void hds::Dialog::showModal ( )
virtual

Show dialog in modal mode.

Reimplemented in hds::SAAxesDialog, hds::SAOptionsDialog, and hds::SVOptionsDialog.


The documentation for this class was generated from the following file: