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.
|
|
|
#ifndef DEFAULTFORMHANDLER_H
|
|
|
|
#define DEFAULTFORMHANDLER_H
|
|
|
|
|
|
|
|
#include "formdialog.h"
|
|
|
|
#include "iform.h"
|
|
|
|
|
|
|
|
#include "core_global.h"
|
|
|
|
|
|
|
|
class CORESHARED_EXPORT IFormHandler
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
IFormHandler() = default;
|
|
|
|
virtual ~IFormHandler() = default;
|
|
|
|
|
|
|
|
virtual void showForm(IForm *formWidget) = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
class CORESHARED_EXPORT DefaultFormHandler : public IFormHandler
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
DefaultFormHandler();
|
|
|
|
~DefaultFormHandler() override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
FormDialog *m_dialog;
|
|
|
|
|
|
|
|
// IFormHandler interface
|
|
|
|
public:
|
|
|
|
void showForm(IForm *formWidget) override;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // DEFAULTFORMHANDLER_H
|