Carousel
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Pages
Public Member Functions | List of all members
DialogConstructor< TDialog, TDialogModel > Struct Template Reference

Generic class for the dialog factory. More...

#include <IDialogService.h>

Inherits IDialogConstructor.

Public Member Functions

void * create (void *dlgModel, QWidget *mainWindow)
 
void injectServiceLocator (IServiceLocator *locator)
 

Detailed Description

template<typename TDialog, typename TDialogModel>
struct DialogConstructor< TDialog, TDialogModel >

Generic class for the dialog factory.

Member Function Documentation

template<typename TDialog , typename TDialogModel >
void* DialogConstructor< TDialog, TDialogModel >::create ( void *  dlgModel,
QWidget mainWindow 
)
inlinevirtual

Returns new instance of the dialog, and initializes it with parent window (for the default location) and dlgModel.

Implements IDialogConstructor.

template<typename TDialog , typename TDialogModel >
void DialogConstructor< TDialog, TDialogModel >::injectServiceLocator ( IServiceLocator locator)
inlinevirtual

Sets a locator wich will be set to the model during dialog creation.

Implements IDialogConstructor.