Documents > BPS V2 C++ API
BpsApplicationWizard Class Reference

Wizard for plug ins of BPS Workplace. More...

#include <bpsapplicationwizard.h>

List of all members.

Public Slots

void setWindowModified (bool aModified=true)
 Overloaded version of QMainWindow::setWindowModified, which sends out the signal modifiedChanged.

Signals

void windowModified (bool aModified)
 Signal emitted whenever the window modification status changes.

Public Member Functions

 BpsApplicationWizard (QWidget *aParent=0, Qt::WindowFlags aFlags=0)
 Constructor.
virtual void init ()
 Do initializations immediately before showing of the window.

Detailed Description

Wizard for plug ins of BPS Workplace.

Typically a standalone wizard is derived from this class and implements a customized init function.

The wizard may receive a close request from the workplace. This request has to be handled in a close event handler, in case closing could have to be denied because of unsaved data or because a modal dialog is open. Here is an example for such an event handler:

 void AOrderWizard::closeEvent(QCloseEvent* aEvent)
 {
     bool modalChild = false;
     foreach (QWidget* widget, findChildren<QWidget*>())
         if (widget->isVisible() && widget->isModal()) {
             modalChild = true;
             break;
         } // if
     if (!modalChild) {
         writeSettings();
         aEvent->accept();
     } else
         aEvent->ignore();
 } // closeEvent 

Constructor & Destructor Documentation

BpsApplicationWizard::BpsApplicationWizard ( QWidget *  aParent = 0,
Qt::WindowFlags  aFlags = 0 
)

Constructor.

Parameters:
[in]aParentParent widget.
[in]aFlagsMain window flags.

Member Function Documentation

virtual void BpsApplicationWizard::init ( ) [virtual]

Do initializations immediately before showing of the window.

The default implementation does nothing.

void BpsApplicationWizard::setWindowModified ( bool  aModified = true) [slot]

Overloaded version of QMainWindow::setWindowModified, which sends out the signal modifiedChanged.

Parameters:
[in]aModifiedNew modification status.
void BpsApplicationWizard::windowModified ( bool  aModified) [signal]

Signal emitted whenever the window modification status changes.

Parameters:
[in]aModifiedNew modification status.

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