1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
|
/*
* This file is part of the xTuple ERP: PostBooks Edition, a free and
* open source Enterprise Resource Planning software suite,
* Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
* It is licensed to you under the Common Public Attribution License
* version 1.0, the full text of which (including xTuple-specific Exhibits)
* is available at www.xtuple.com/CPAL. By using this software, you agree
* to be bound by its terms.
*/
#include "widgets.h"
#include "xtupleplugin.h"
#include "plugins/addressclusterplugin.h"
#include "plugins/alarmsplugin.h"
#include "plugins/aropenclusterplugin.h"
#include "plugins/calendarcomboboxplugin.h"
#include "plugins/characteristicswidgetplugin.h"
#include "plugins/clineeditplugin.h"
#include "plugins/cmheadclusterplugin.h"
#include "plugins/commentsplugin.h"
#include "plugins/contactclusterplugin.h"
#include "plugins/contactwidgetplugin.h"
#include "plugins/crmacctclusterplugin.h"
#include "plugins/currclusterplugin.h"
#include "plugins/currdisplayplugin.h"
#include "plugins/custclusterplugin.h"
#include "plugins/customerselectorplugin.h"
#include "plugins/dateclusterplugin.h"
#include "plugins/deptclusterplugin.h"
#include "plugins/dlineeditplugin.h"
#include "plugins/documentsplugin.h"
#include "plugins/empclusterplugin.h"
#include "plugins/expenseclusterplugin.h"
#include "plugins/expenselineeditplugin.h"
#include "plugins/fileclusterplugin.h"
#include "plugins/filemoveselectorplugin.h"
#include "plugins/glclusterplugin.h"
#include "plugins/imageclusterplugin.h"
#include "plugins/invoiceclusterplugin.h"
#include "plugins/invoicelineeditplugin.h"
#include "plugins/incidentclusterplugin.h"
#include "plugins/itemclusterplugin.h"
#include "plugins/itemlineeditplugin.h"
#include "plugins/lotserialclusterplugin.h"
#include "plugins/lotserialseqclusterplugin.h"
#include "plugins/numbergencomboboxplugin.h"
#include "plugins/orderclusterplugin.h"
#include "plugins/menubuttonplugin.h"
#include "plugins/opportunityclusterplugin.h"
#include "plugins/parametergroupplugin.h"
#include "plugins/parameterwidgetplugin.h"
#include "plugins/periodslistviewplugin.h"
#include "plugins/planordclusterplugin.h"
#include "plugins/planordlineeditplugin.h"
#include "plugins/projectclusterplugin.h"
#include "plugins/projectlineeditplugin.h"
#include "plugins/querysetplugin.h"
#include "plugins/quoteclusterplugin.h"
#include "plugins/raclusterplugin.h"
#include "plugins/recurrencewidgetplugin.h"
#include "plugins/revisionclusterplugin.h"
#include "plugins/screenplugin.h"
#include "plugins/shiftclusterplugin.h"
#include "plugins/shipmentclusterplugin.h"
#include "plugins/shiptoclusterplugin.h"
#include "plugins/shiptoeditplugin.h"
#include "plugins/usernameclusterplugin.h"
#include "plugins/usernamelineeditplugin.h"
#include "plugins/vendorclusterplugin.h"
#include "plugins/vendorgroupplugin.h"
#include "plugins/vendorlineeditplugin.h"
#include "plugins/warehousegroupplugin.h"
#include "plugins/wcomboboxplugin.h"
#include "plugins/woclusterplugin.h"
#include "plugins/wolineeditplugin.h"
#include "plugins/womatlclusterplugin.h"
#include "plugins/workcenterclusterplugin.h"
#include "plugins/workcenterlineeditplugin.h"
#include "plugins/xcheckboxplugin.h"
#include "plugins/xcomboboxplugin.h"
#include "plugins/xdoccopysetterplugin.h"
#include "plugins/xlabelplugin.h"
#include "plugins/xlineeditplugin.h"
#include "plugins/xtreewidgetplugin.h"
#include "plugins/xtreeviewplugin.h"
#include "plugins/xspinboxplugin.h"
#include "plugins/xurllabelplugin.h"
#include "plugins/xtexteditplugin.h"
#include "plugins/xtableviewplugin.h"
xTuplePlugin::xTuplePlugin(QObject * parent) : QObject(parent)
{
m_plugins.append(new AddressClusterPlugin(this));
m_plugins.append(new AlarmsPlugin(this));
m_plugins.append(new AropenClusterPlugin(this));
m_plugins.append(new CalendarComboBoxPlugin(this));
m_plugins.append(new CharacteristicsWidgetPlugin(this));
m_plugins.append(new CLineEditPlugin(this));
m_plugins.append(new CmheadClusterPlugin(this));
m_plugins.append(new CommentsPlugin(this));
m_plugins.append(new ContactClusterPlugin(this));
m_plugins.append(new ContactWidgetPlugin(this));
m_plugins.append(new CRMAcctClusterPlugin(this));
m_plugins.append(new CurrClusterPlugin(this));
m_plugins.append(new CurrDisplayPlugin(this));
m_plugins.append(new CustClusterPlugin(this));
m_plugins.append(new CustomerSelectorPlugin(this));
m_plugins.append(new DateClusterPlugin(this));
m_plugins.append(new DeptClusterPlugin(this));
m_plugins.append(new DLineEditPlugin(this));
m_plugins.append(new DocumentsPlugin(this));
m_plugins.append(new EmpClusterPlugin(this));
m_plugins.append(new ExpenseClusterPlugin(this));
m_plugins.append(new ExpenseLineEditPlugin(this));
m_plugins.append(new FileClusterPlugin(this));
m_plugins.append(new FileMoveSelectorPlugin(this));
m_plugins.append(new GLClusterPlugin(this));
m_plugins.append(new ImageClusterPlugin(this));
m_plugins.append(new InvoiceClusterPlugin(this));
m_plugins.append(new InvoiceLineEditPlugin(this));
m_plugins.append(new IncidentClusterPlugin(this));
m_plugins.append(new ItemClusterPlugin(this));
m_plugins.append(new ItemLineEditPlugin(this));
m_plugins.append(new LotserialClusterPlugin(this));
m_plugins.append(new LotserialseqClusterPlugin(this));
m_plugins.append(new MenuButtonPlugin(this));
m_plugins.append(new NumberGenComboBoxPlugin(this));
m_plugins.append(new OrderClusterPlugin(this));
m_plugins.append(new OpportunityClusterPlugin(this));
m_plugins.append(new ParameterGroupPlugin(this));
m_plugins.append(new ParameterWidgetPlugin(this));
m_plugins.append(new PeriodsListViewPlugin(this));
m_plugins.append(new PlanOrdClusterPlugin(this));
m_plugins.append(new PlanOrdLineEditPlugin(this));
m_plugins.append(new ProjectClusterPlugin(this));
m_plugins.append(new ProjectLineEditPlugin(this));
m_plugins.append(new QuerySetPlugin(this));
m_plugins.append(new QuoteClusterPlugin(this));
m_plugins.append(new RaClusterPlugin(this));
m_plugins.append(new RecurrenceWidgetPlugin(this));
m_plugins.append(new RevisionClusterPlugin(this));
m_plugins.append(new ScreenPlugin(this));
m_plugins.append(new ShiftClusterPlugin(this));
m_plugins.append(new ShipmentClusterPlugin(this));
m_plugins.append(new ShiptoClusterPlugin(this));
m_plugins.append(new ShiptoEditPlugin(this));
m_plugins.append(new UsernameClusterPlugin(this));
m_plugins.append(new UsernameLineEditPlugin(this));
m_plugins.append(new VendorClusterPlugin(this));
m_plugins.append(new VendorGroupPlugin(this));
m_plugins.append(new VendorLineEditPlugin(this));
m_plugins.append(new WarehouseGroupPlugin(this));
m_plugins.append(new WComboBoxPlugin(this));
m_plugins.append(new WoClusterPlugin(this));
m_plugins.append(new WoLineEditPlugin(this));
m_plugins.append(new WomatlClusterPlugin(this));
m_plugins.append(new WorkCenterClusterPlugin(this));
m_plugins.append(new WorkCenterLineEditPlugin(this));
m_plugins.append(new XCheckBoxPlugin(this));
m_plugins.append(new XComboBoxPlugin(this));
m_plugins.append(new XDocCopySetterPlugin(this));
m_plugins.append(new XLabelPlugin(this));
m_plugins.append(new XLineEditPlugin(this));
m_plugins.append(new XSpinBoxPlugin(this));
m_plugins.append(new XTreeWidgetPlugin(this));
m_plugins.append(new XTreeViewPlugin(this));
m_plugins.append(new XURLLabelPlugin(this));
m_plugins.append(new XTextEditPlugin(this));
m_plugins.append(new XTableViewPlugin(this));
}
QList<QDesignerCustomWidgetInterface*> xTuplePlugin::customWidgets() const
{
return m_plugins;
}
#if QT_VERSION < 0x050000
#ifndef QT_STATICPLUGIN
Q_EXPORT_PLUGIN2(xtuplewidgets, xTuplePlugin)
#else
Q_EXPORT_STATIC_PLUGIN(xTuplePlugin)
#endif
#endif
Preferences *_x_preferences = 0;
Metrics *_x_metrics = 0;
QMdiArea *_x_workspace = 0;
Privileges *_x_privileges = 0;
QString _x_username;
void initializePlugin(Preferences *pPreferences, Metrics *pMetrics, Privileges *pPrivileges, QString pUsername, QMdiArea *pWorkspace)
{
_x_preferences = pPreferences;
_x_metrics = pMetrics;
_x_workspace = pWorkspace;
_x_privileges = pPrivileges;
_x_username = pUsername;
}
|