Added support for dashboard.
This commit is contained in:
@@ -14,5 +14,6 @@
|
||||
#include "enums.h"
|
||||
#include "objectbinder.h"
|
||||
#include "helper.h"
|
||||
#include "idashboardwidget.h"
|
||||
|
||||
#endif // CORE_H
|
||||
|
||||
+2
-1
@@ -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
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
#ifndef IDASHBOARDWIDGET_H
|
||||
#define IDASHBOARDWIDGET_H
|
||||
|
||||
class IDashboardWidget
|
||||
{
|
||||
public:
|
||||
virtual void refresh() = 0;
|
||||
};
|
||||
|
||||
#endif // IDASHBOARDWIDGET_H
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user