#include "shop.h" #include #include "shopform.h" #include "shopservice.h" #include "settings/shopsettingsform.h" #include "shopoverview.h" Shop::Shop() { } void Shop::initServiceUi() { m_ui = new ShopForm(); m_service = new ShopService(); m_settingsUi = new ShopSettingsForm(); m_dashboardWidgets << new ShopOverview(); } QIcon Shop::pluginIcon() { return QIcon(":/icons/shop.svg"); } QWidget *Shop::ui() { QWidget *uiWidget = IPlugin::ui(); if (uiWidget == nullptr) { return nullptr; } qobject_cast(uiWidget)->setupForm(); return uiWidget; } QTranslator *Shop::translator() { return translatorFrom(":/translations/shop_"); } bool Shop::hasNumberSeries() { return true; } QString Shop::numberSeriesPrefix() { return "PD"; }