You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
559 B
C
33 lines
559 B
C
9 years ago
|
#ifndef DEFAULTFORMHANDLER_H
|
||
|
#define DEFAULTFORMHANDLER_H
|
||
|
|
||
|
#include "formdialog.h"
|
||
|
#include "iform.h"
|
||
|
|
||
|
#include "core_global.h"
|
||
|
|
||
|
class CORESHARED_EXPORT IFormHandler
|
||
|
{
|
||
|
public:
|
||
|
IFormHandler() {}
|
||
|
virtual ~IFormHandler() {}
|
||
|
|
||
|
virtual void showForm(IForm *formWidget) = 0;
|
||
|
};
|
||
|
|
||
|
class DefaultFormHandler : public IFormHandler
|
||
|
{
|
||
|
public:
|
||
|
DefaultFormHandler();
|
||
|
virtual ~DefaultFormHandler();
|
||
|
|
||
|
private:
|
||
|
FormDialog *m_dialog;
|
||
|
|
||
|
// IFormHandler interface
|
||
|
public:
|
||
|
void showForm(IForm *formWidget) override;
|
||
|
};
|
||
|
|
||
|
#endif // DEFAULTFORMHANDLER_H
|