Added base classes for plugin UI.

This commit is contained in:
2015-11-17 22:24:00 +01:00
parent 07bb708437
commit 02c5bbe788
29 changed files with 648 additions and 348 deletions
+32
View File
@@ -0,0 +1,32 @@
#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