Added support for dashboard.

This commit is contained in:
2018-05-23 13:10:58 +02:00
parent 5794510bd2
commit 22936f2a3f
8 changed files with 191 additions and 17 deletions
+1
View File
@@ -14,5 +14,6 @@
#include "enums.h"
#include "objectbinder.h"
#include "helper.h"
#include "idashboardwidget.h"
#endif // CORE_H
+2 -1
View File
@@ -134,7 +134,8 @@ HEADERS += core.h\
importdialog.h \
importprogress.h \
reporting/variablefiller.h \
helper.h
helper.h \
idashboardwidget.h
unix {
target.path = /usr/lib
+10
View File
@@ -0,0 +1,10 @@
#ifndef IDASHBOARDWIDGET_H
#define IDASHBOARDWIDGET_H
class IDashboardWidget
{
public:
virtual void refresh() = 0;
};
#endif // IDASHBOARDWIDGET_H
+5
View File
@@ -70,6 +70,10 @@ public:
return filled ? m_ui : NULL;
}
QList<QFrame*> dasboardWidgets() {
return m_dashboardWidgets;
}
virtual QWidget *settingsUi() {
return m_settingsUi;
}
@@ -103,6 +107,7 @@ protected:
QWidget *m_settingsUi;
IService *m_service;
QMap<QString, QString> m_translations;
QList<QFrame*> m_dashboardWidgets;
};
#define PluginInterface_iid "cz.itsolved.prodejna.IPlugin"