|
BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Public Types | |
| enum | EAccessMode { FILTERED , UNFILTERED } |
Public Slots | |
| void | filter (const QRegExp &re) |
Signals | |
| void | itemRemoved () |
| void | lastItemRemoved () |
| void | pressed (const QString &name, const QString &xml, const QPoint &globalPos) |
| void | scratchPadChanged () |
Public Member Functions | |
| WidgetBoxCategoryListView (SampleDesignerInterface *core, QWidget *parent=0) | |
| void | addWidget (const QDesignerWidgetBoxInterface::Widget &widget, const QIcon &icon, bool editable) |
| QDesignerWidgetBoxInterface::Category | category () const |
| bool | containsWidget (const QString &name) |
| int | count (EAccessMode am) const |
| void | dropWidgets (const QList< QDesignerDnDItemInterface * > &item_list) |
| bool | removeCustomWidgets () |
| void | removeRow (EAccessMode am, int row) |
| void | setCurrentItem (EAccessMode am, int row) |
| void | setViewMode (ViewMode vm) |
| QDesignerWidgetBoxInterface::Widget | widgetAt (EAccessMode am, const QModelIndex &index) const |
| QDesignerWidgetBoxInterface::Widget | widgetAt (EAccessMode am, int row) const |
Static Public Member Functions | |
| static QString | widgetDomXml (const QDesignerWidgetBoxInterface::Widget &widget) |
Private Slots | |
| void | editCurrentItem () |
| void | removeCurrentItem () |
| void | slotPressed (const QModelIndex &index) |
Private Member Functions | |
| int | mapRowToSource (int filterRow) const |
Private Attributes | |
| WidgetBoxCategoryModel * | m_model |
| QSortFilterProxyModel * | m_proxyModel |
Definition at line 66 of file widgetboxcategorylistview.h.
| Enumerator | |
|---|---|
| FILTERED | |
| UNFILTERED | |
Definition at line 70 of file widgetboxcategorylistview.h.
|
explicit |
Definition at line 409 of file widgetboxcategorylistview.cpp.
References FILTER_ROLE, m_model, m_proxyModel, pressed(), scratchPadChanged(), and slotPressed().
| void qdesigner_internal::WidgetBoxCategoryListView::addWidget | ( | const QDesignerWidgetBoxInterface::Widget & | widget, |
| const QIcon & | icon, | ||
| bool | editable | ||
| ) |
Definition at line 517 of file widgetboxcategorylistview.cpp.
References qdesigner_internal::WidgetBoxCategoryModel::addWidget(), and m_model.
Referenced by qdesigner_internal::WidgetBoxTreeWidget::addCategory(), qdesigner_internal::WidgetBoxTreeWidget::addWidget(), and qdesigner_internal::WidgetBoxTreeWidget::dropWidgets().
| QDesignerWidgetBoxInterface::Category qdesigner_internal::WidgetBoxCategoryListView::category | ( | ) | const |
Definition at line 542 of file widgetboxcategorylistview.cpp.
References qdesigner_internal::WidgetBoxCategoryModel::category(), and m_model.
Referenced by qdesigner_internal::WidgetBoxTreeWidget::category().
| bool qdesigner_internal::WidgetBoxCategoryListView::containsWidget | ( | const QString & | name | ) |
Definition at line 512 of file widgetboxcategorylistview.cpp.
References qdesigner_internal::WidgetBoxCategoryModel::indexOfWidget(), m_model, and RealSpace::Particles::name().
Referenced by qdesigner_internal::WidgetBoxTreeWidget::addCategory().
| int qdesigner_internal::WidgetBoxCategoryListView::count | ( | EAccessMode | am | ) | const |
Definition at line 483 of file widgetboxcategorylistview.cpp.
References FILTERED, m_model, m_proxyModel, and qdesigner_internal::WidgetBoxCategoryModel::rowCount().
Referenced by qdesigner_internal::WidgetBoxTreeWidget::dropWidgets(), qdesigner_internal::WidgetBoxTreeWidget::filter(), qdesigner_internal::WidgetBoxTreeWidget::removeWidget(), and qdesigner_internal::WidgetBoxTreeWidget::widgetCount().
| void qdesigner_internal::WidgetBoxCategoryListView::dropWidgets | ( | const QList< QDesignerDnDItemInterface * > & | item_list | ) |
|
privateslot |
Definition at line 476 of file widgetboxcategorylistview.cpp.
|
slot |
Definition at line 537 of file widgetboxcategorylistview.cpp.
References m_proxyModel.
Referenced by qdesigner_internal::WidgetBoxTreeWidget::filter().
|
signal |
Referenced by removeCurrentItem().
|
signal |
Referenced by removeCurrentItem().
|
private |
Definition at line 488 of file widgetboxcategorylistview.cpp.
References m_proxyModel.
Referenced by removeRow(), and widgetAt().
|
signal |
Referenced by WidgetBoxCategoryListView(), and slotPressed().
|
privateslot |
Definition at line 461 of file widgetboxcategorylistview.cpp.
References itemRemoved(), lastItemRemoved(), m_model, m_proxyModel, and qdesigner_internal::WidgetBoxCategoryModel::rowCount().
| bool qdesigner_internal::WidgetBoxCategoryListView::removeCustomWidgets | ( | ) |
Definition at line 547 of file widgetboxcategorylistview.cpp.
References m_model, and qdesigner_internal::WidgetBoxCategoryModel::removeCustomWidgets().
Referenced by qdesigner_internal::WidgetBoxTreeWidget::addCustomCategories().
| void qdesigner_internal::WidgetBoxCategoryListView::removeRow | ( | EAccessMode | am, |
| int | row | ||
| ) |
Definition at line 507 of file widgetboxcategorylistview.cpp.
References m_model, mapRowToSource(), and UNFILTERED.
Referenced by qdesigner_internal::WidgetBoxTreeWidget::removeWidget().
|
signal |
Referenced by WidgetBoxCategoryListView().
| void qdesigner_internal::WidgetBoxCategoryListView::setCurrentItem | ( | EAccessMode | am, |
| int | row | ||
| ) |
Definition at line 443 of file widgetboxcategorylistview.cpp.
References FILTERED, m_model, and m_proxyModel.
Referenced by qdesigner_internal::WidgetBoxTreeWidget::dropWidgets().
| void qdesigner_internal::WidgetBoxCategoryListView::setViewMode | ( | ViewMode | vm | ) |
Definition at line 437 of file widgetboxcategorylistview.cpp.
References m_model, and qdesigner_internal::WidgetBoxCategoryModel::setViewMode().
Referenced by qdesigner_internal::WidgetBoxTreeWidget::addCategoryView().
|
privateslot |
Definition at line 452 of file widgetboxcategorylistview.cpp.
References m_model, m_proxyModel, pressed(), qdesigner_internal::WidgetBoxCategoryModel::widgetAt(), and widgetDomXml().
Referenced by WidgetBoxCategoryListView().
| QDesignerWidgetBoxInterface::Widget qdesigner_internal::WidgetBoxCategoryListView::widgetAt | ( | EAccessMode | am, |
| const QModelIndex & | index | ||
| ) | const |
Definition at line 495 of file widgetboxcategorylistview.cpp.
References FILTERED, m_model, m_proxyModel, and qdesigner_internal::WidgetBoxCategoryModel::widgetAt().
Referenced by qdesigner_internal::WidgetBoxTreeWidget::widget().
| QDesignerWidgetBoxInterface::Widget qdesigner_internal::WidgetBoxCategoryListView::widgetAt | ( | EAccessMode | am, |
| int | row | ||
| ) | const |
Definition at line 501 of file widgetboxcategorylistview.cpp.
References m_model, mapRowToSource(), UNFILTERED, and qdesigner_internal::WidgetBoxCategoryModel::widgetAt().
|
static |
Definition at line 523 of file widgetboxcategorylistview.cpp.
References uiClosingTagC, and uiOpeningTagC.
Referenced by qdesigner_internal::WidgetBoxCategoryModel::setData(), slotPressed(), and qdesigner_internal::WidgetBoxTreeWidget::writeCategories().
|
private |
Definition at line 115 of file widgetboxcategorylistview.h.
Referenced by WidgetBoxCategoryListView(), addWidget(), category(), containsWidget(), count(), removeCurrentItem(), removeCustomWidgets(), removeRow(), setCurrentItem(), setViewMode(), slotPressed(), and widgetAt().
|
private |
Definition at line 114 of file widgetboxcategorylistview.h.
Referenced by WidgetBoxCategoryListView(), count(), filter(), mapRowToSource(), removeCurrentItem(), setCurrentItem(), slotPressed(), and widgetAt().