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)
47 Q_PROPERTY(
bool showBuiltIn READ showBuiltIn WRITE setShowBuiltIn)
49 Q_PROPERTY(
bool showTesting READ showTesting WRITE setShowTesting)
51 Q_PROPERTY(
bool showHidden READ showHidden WRITE setShowHidden)
55 Q_PROPERTY(QStringList showModules READ showModules WRITE setShowModules NOTIFY showModulesChanged)
57 Q_PROPERTY(
bool hideAllWhenShowModulesIsEmpty READ hideAllWhenShowModulesIsEmpty WRITE setHideAllWhenShowModulesIsEmpty)
68 bool showToLoad()const;
69 bool showToIgnore()const;
70 bool showLoaded()const;
71 bool showIgnored()const;
72 bool showFailed()const;
73 bool showBuiltIn()const;
74 bool showTesting()const;
75 bool showHidden()const;
77 QStringList showModules()const;
79 bool hideAllWhenShowModulesIsEmpty()const;
80 void setHideAllWhenShowModulesIsEmpty(
bool hide);
81 Qt::DropActions supportedDropActions()const override;
82 bool dropMimeData(const QMimeData *data, Qt::DropAction action,
83 int row,
int column, const QModelIndex &parent) override;
86 void setShowToLoad(
bool show);
87 void setShowToIgnore(
bool show);
88 void setShowLoaded(
bool show);
89 void setShowIgnored(
bool show);
90 void setShowFailed(
bool show);
91 void setShowBuiltIn(
bool show);
92 void setShowTesting(
bool show);
93 void setShowHidden(
bool show);
95 void setShowModules(const QStringList& modules);
98 void showModulesChanged(const QStringList&)const;
100 QScopedPointer<qSlicerModuleFactoryFilterModelPrivate> d_ptr;
102 bool lessThan(const QModelIndex& leftIndex,
103 const QModelIndex& rightIndex)const override;
104 bool filterAcceptsRow(
int source_row, const QModelIndex& source_parent)const override;
QSortFilterProxyModel Superclass
Superclass typedef.