42 #ifndef BORNAGAIN_GUI_COREGUI_VIEWS_WIDGETBOX_WIDGETBOXCATEGORYLISTVIEW_H
43 #define BORNAGAIN_GUI_COREGUI_VIEWS_WIDGETBOX_WIDGETBOXCATEGORYLISTVIEW_H
45 #include <QtDesigner/QDesignerWidgetBoxInterface>
48 #include <QtCore/QList>
52 class QDesignerFormEditorInterface;
53 class QDesignerDnDItemInterface;
55 class QSortFilterProxyModel;
62 class WidgetBoxCategoryModel;
77 void dropWidgets(
const QList<QDesignerDnDItemInterface*>& item_list);
79 using QListView::contentsSize;
83 QDesignerWidgetBoxInterface::Widget
widgetAt(
EAccessMode am,
const QModelIndex& index)
const;
89 void addWidget(
const QDesignerWidgetBoxInterface::Widget& widget,
const QIcon& icon,
92 QDesignerWidgetBoxInterface::Category
category()
const;
96 static QString
widgetDomXml(
const QDesignerWidgetBoxInterface::Widget& widget);
100 void pressed(
const QString&
name,
const QString& xml,
const QPoint& globalPos);
105 void filter(
const QRegExp& re);
sample designer interface
QString const & name(EShape k)