21 #ifndef __qSlicerModuleFactoryFilterModel_h 22 #define __qSlicerModuleFactoryFilterModel_h 25 #include <QSortFilterProxyModel> 26 #include <QStringList> 29 #include "qSlicerBaseQTGUIExport.h" 30 class qSlicerModuleFactoryFilterModelPrivate;
33 :
public QSortFilterProxyModel
37 Q_PROPERTY(
bool showToLoad READ showToLoad WRITE setShowToLoad)
39 Q_PROPERTY(
bool showToIgnore READ showToIgnore WRITE setShowToIgnore)
41 Q_PROPERTY(
bool showLoaded READ showLoaded WRITE setShowLoaded)
43 Q_PROPERTY(
bool showIgnored READ showIgnored WRITE setShowIgnored)
45 Q_PROPERTY(
bool showFailed READ showFailed WRITE setShowFailed)
49 Q_PROPERTY(QStringList showModules READ showModules WRITE setShowModules NOTIFY showModulesChanged)
51 Q_PROPERTY(
bool hideAllWhenShowModulesIsEmpty READ hideAllWhenShowModulesIsEmpty WRITE setHideAllWhenShowModulesIsEmpty)
62 bool showToLoad()const;
63 bool showToIgnore()const;
64 bool showLoaded()const;
65 bool showIgnored()const;
66 bool showFailed()const;
68 QStringList showModules()const;
70 bool hideAllWhenShowModulesIsEmpty()const;
71 void setHideAllWhenShowModulesIsEmpty(
bool hide);
72 virtual Qt::DropActions supportedDropActions()const;
73 virtual
bool dropMimeData(const QMimeData *data, Qt::DropAction action,
74 int row,
int column, const QModelIndex &parent);
77 void setShowToLoad(
bool show);
78 void setShowToIgnore(
bool show);
79 void setShowLoaded(
bool show);
80 void setShowIgnored(
bool show);
81 void setShowFailed(
bool show);
83 void setShowModules(const QStringList& modules);
86 void showModulesChanged(const QStringList&)const;
88 QScopedPointer<qSlicerModuleFactoryFilterModelPrivate> d_ptr;
90 virtual
bool lessThan(const QModelIndex& leftIndex,
91 const QModelIndex& rightIndex)const;
92 virtual
bool filterAcceptsRow(
int source_row, const QModelIndex& source_parent)const;
95 Q_DECLARE_PRIVATE(qSlicerModuleFactoryFilterModel);
96 Q_DISABLE_COPY(qSlicerModuleFactoryFilterModel);
QSortFilterProxyModel Superclass
Superclass typedef.