21 #ifndef __qSlicerModulesListView_h 22 #define __qSlicerModulesListView_h 28 #include "qSlicerBaseQTGUIExport.h" 30 class qSlicerModulesListViewPrivate;
39 Q_PROPERTY(
bool checkBoxVisible READ isCheckBoxVisible WRITE setCheckBoxVisible )
40 Q_PROPERTY(QStringList checkedModules READ checkedModules
41 WRITE setCheckedModules NOTIFY checkedModulesChanged
43 Q_PROPERTY(QStringList uncheckedModules READ uncheckedModules
44 WRITE setUncheckedModules NOTIFY uncheckedModulesChanged
64 QStringList modules()
const;
66 bool isCheckBoxVisible()
const;
69 QStringList checkedModules()
const;
73 QStringList uncheckedModules()
const;
76 void setCheckBoxVisible(
bool show);
79 void setCheckedModules(
const QStringList& moduleNames);
83 void setUncheckedModules(
const QStringList& moduleNames);
85 void hideSelectedModules();
86 void moveLeftSelectedModules();
87 void moveRightSelectedModules();
88 void moveSelectedModules(
int offset);
90 void scrollToSelectedModules();
93 void checkedModulesChanged(
const QStringList&);
95 void uncheckedModulesChanged(
const QStringList&);
98 void addModules(
const QStringList& moduleNames);
99 void addModule(
const QString& moduleName);
100 void updateModules();
101 void updateModules(
const QStringList& moduleName);
102 void updateModule(
const QString& moduleName);
103 void onItemChanged(QStandardItem* item);
106 QScopedPointer<qSlicerModulesListViewPrivate>
d_ptr;
108 virtual void keyPressEvent(QKeyEvent * event);
QListView Superclass
Superclass typedef.
QScopedPointer< qSlicerModulesListViewPrivate > d_ptr