| 1 |
#ifndef BALL_VIEW_PLUGIN_VIEWPLUGIN_H |
| 2 |
#define BALL_VIEW_PLUGIN_VIEWPLUGIN_H |
| 3 |
|
| 4 |
#include <BALL/VIEW/KERNEL/preferencesEntry.h> |
| 5 |
|
| 6 |
#include <QtCore/QString> |
| 7 |
#include <QtCore/QtPlugin> |
| 8 |
|
| 9 |
#include <QtWidgets/QDialog> |
| 10 |
|
| 11 |
class QPixmap; |
| 12 |
|
| 13 |
namespace BALL |
| 14 |
{ |
| 15 |
namespace VIEW |
| 16 |
{ |
| 17 |
class ConfigDialog : public QDialog, public PreferencesEntry |
| 18 |
{ |
| 19 |
public: |
| 20 |
ConfigDialog(QWidget* parent, Qt::WindowFlags f) |
| 21 |
: QDialog(parent, f) |
| 22 |
{ |
| 23 |
} |
| 24 |
|
| 25 |
virtual ~ConfigDialog() {}; |
| 26 |
}; |
| 27 |
|
| 28 |
class VIEWPlugin |
| 29 |
{ |
| 30 |
public: |
| 31 |
virtual ~VIEWPlugin() {} |
| 32 |
|
| 33 |
virtual QString getName() const = 0; |
| 34 |
virtual QString getDescription() const = 0; |
| 35 |
virtual const QPixmap* getIcon() const = 0; |
| 36 |
|
| 37 |
virtual ConfigDialog* getConfigDialog() = 0; |
| 38 |
|
| 39 |
virtual bool isActive() = 0; |
| 40 |
}; |
| 41 |
|
| 42 |
} |
| 43 |
} |
| 44 |
|
| 45 |
Q_DECLARE_INTERFACE(BALL::VIEW::VIEWPlugin, "org.ball-project.Plugin.VIEWPlugin/1.0") |
| 46 |
|
| 47 |
#endif |