4 #ifndef BPSLABELERPLUGIN_H
5 #define BPSLABELERPLUGIN_H
91 #define BpsLabelerPlugin_IID "com.ibk-software.BPS2.BpsLabelerPlugin/1.0"
Public include file for BPS GUI library macros.
#define BPSGUI_EXPORT
Declare class an import from the shared library.
Definition: bpsgui_global.h:22
BPS datastore class.
Definition: bpsdatastore.h:61
Labeler interface.
Definition: bpslabeler.h:17
Virtual class for labeler plugin of BPS Workplace.
Definition: bpslabelerplugin.h:22
virtual ~BpsLabelerPlugin()
Virtual destructor.
Definition: bpslabelerplugin.h:27
virtual BpsConfigWidget * createConfigWidget(BpsDatastore *aDatastore, QWidget *aParent=nullptr) const =0
Create the config widget and return a pointer to it.
#define BpsLabelerPlugin_IID
IID of the plugin.
Definition: bpslabelerplugin.h:91
virtual BpsLabelerEditWidget * createEditWidget(BpsDatastore *aDatastore, QWidget *aParent=nullptr) const =0
Create the edit widget and return a pointer to it.
virtual bool check(BpsDatastore *aDatastore) const =0
Check if plugin is available for usage, e.g.
virtual QString labelerName() const =0
virtual QString labelerId() const =0
static QMap< BpsLabelerPlugin *, QVariant > plugins(BpsDatastore *aDatastore)
Get map of all labeler plugins and matching keys in table t_labelers available for usage.
static BpsLabelerPlugin * plugin(BpsDatastore *aDatastore, const QString &aId)
Find the available labeler plugin with the given ID.
virtual BpsLabeler * createLabeler(BpsDatastore *aDatastore, QObject *aParent=nullptr) const =0
Create a labeler object and return a pointer to it.
Query and edit settings.
Definition: bpssettings.h:17