#include "qad_widgets.h"

#include "busy_iconplugin.h"
#include "circleindicatorplugin.h"
#include "clineeditplugin.h"
#include "colorbuttonplugin.h"
#include "ecomboboxplugin.h"
#include "evalspinboxplugin.h"
#include "iconedlabelplugin.h"
#include "imageviewplugin.h"
#include "qcodeeditplugin.h"
#include "qipeditplugin.h"
#include "qpiconfigplugin.h"
#include "qpiconsoleplugin.h"
#include "qpointeditplugin.h"
#include "qrecteditplugin.h"
#include "qvarianteditplugin.h"
#include "rangesliderplugin.h"
#include "scroll_spin_boxplugin.h"
#include "shortcutsplugin.h"
#include "spinsliderplugin.h"
#include "stateiconplugin.h"


QADWidgets::QADWidgets(QObject * parent): QObject(parent) {
	// clang-format off
	m_widgets
		<< new SpinSliderPlugin(this)
		<< new ColorButtonPlugin(this)
		<< new ShortcutsPlugin(this)
		<< new CLineEditPlugin(this)
		<< new QIPEditPlugin(this)
		<< new QPointEditPlugin(this)
		<< new QRectEditPlugin(this)
		<< new EComboBoxPlugin(this)
		<< new QPIConsolePlugin(this)
		<< new IconedLabelPlugin(this)
		<< new QCodeEditPlugin(this)
		<< new QVariantEditPlugin(this)
		<< new QPIConfigPlugin(this)
		<< new EvalSpinBoxPlugin(this)
		<< new ImageViewPlugin(this)
		<< new ScrollSpinBoxPlugin(this)
		<< new RangeSliderPlugin(this)
		<< new StateIconPlugin(this)
		<< new CircleIndicatorPlugin(this)
		<< new BusyIconPlugin(this)
		   ;
	// clang-format on
}


QList<QDesignerCustomWidgetInterface *> QADWidgets::customWidgets() const {
	return m_widgets;
}


#if QT_VERSION < 0x050000
Q_EXPORT_PLUGIN2(qad_widgets_plugin, QADWidgets)
#endif
