Gui::Dialog::DlgActivateWindowImp Class Reference

The DlgActivateWindowImp class provides a dialog to activate the MDI window of the main window you wish. More...

#include <DlgActivateWindowImp.h>

Inheritance diagram for Gui::Dialog::DlgActivateWindowImp:
Gui::Dialog::Ui_DlgActivateWindow

List of all members.

Public Member Functions

 DlgActivateWindowImp (QWidget *parent=0, Qt::WFlags fl=0)
 Constructs a DlgActivateWindowImp which is a child of 'parent', with the name 'name' and widget flags set to 'f'.
 ~DlgActivateWindowImp ()
 Destroys the object and frees any allocated resources.

Protected Member Functions

void accept ()
 Activates the MDI window you wish and closes the dialog.

Detailed Description

The DlgActivateWindowImp class provides a dialog to activate the MDI window of the main window you wish.

Since there could be a lot of MDI windows in an application you cannot put all of them into the "Windows" popup menu.

Author:
Werner Mayer

Definition at line 38 of file DlgActivateWindowImp.h.


Constructor & Destructor Documentation

DlgActivateWindowImp::DlgActivateWindowImp ( QWidget *  parent = 0,
Qt::WFlags  fl = 0 
)

Constructs a DlgActivateWindowImp which is a child of 'parent', with the name 'name' and widget flags set to 'f'.

The dialog will by default be modeless, unless you set 'modal' to TRUE to construct a modal dialog.

Definition at line 44 of file DlgActivateWindowImp.cpp.

References Gui::MainWindow::activeWindow(), Gui::Dialog::Ui_DlgActivateWindow::buttonOk, Gui::getMainWindow(), Gui::Dialog::Ui_DlgActivateWindow::setupUi(), Gui::Dialog::Ui_DlgActivateWindow::treeWidget, and Gui::MainWindow::windows().

DlgActivateWindowImp::~DlgActivateWindowImp (  ) 

Destroys the object and frees any allocated resources.

Definition at line 76 of file DlgActivateWindowImp.cpp.


Member Function Documentation

void DlgActivateWindowImp::accept (  )  [protected]

Activates the MDI window you wish and closes the dialog.

Definition at line 83 of file DlgActivateWindowImp.cpp.

References Gui::getMainWindow(), Gui::MainWindow::setActiveWindow(), Gui::Dialog::Ui_DlgActivateWindow::treeWidget, and Gui::MainWindow::windows().


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

Generated on Wed Nov 23 19:02:06 2011 for FreeCAD by  doxygen 1.6.1