31 #ifndef __vtkQtListView_h
32 #define __vtkQtListView_h
34 #include "QVTKWin32Header.h"
39 #include <QSortFilterProxyModel>
76 vtkGetMacro(FieldType,
int);
77 void SetFieldType(
int);
81 void SetEnableDragDrop(
bool);
84 void SetAlternatingRowColors(
bool);
89 void SetDecorationStrategy(
int);
93 void SetColorArrayName(
const char*
name);
94 const char* GetColorArrayName();
99 void SetColorByArray(
bool vis);
100 bool GetColorByArray();
101 vtkBooleanMacro(ColorByArray,
bool);
105 void SetVisibleColumn(
int col);
108 void SetFilterRegExp(
const QRegExp& pattern);
113 void SetIconSheet(QImage sheet);
114 void SetIconSize(
int w,
int h);
115 void SetIconSheetSize(
int w,
int h);
116 void SetIconArrayName(
const char*
name);
132 void slotQtSelectionChanged(
const QItemSelection&,
const QItemSelection&);
135 void SetVTKSelection();
137 unsigned long LastSelectionMTime;
138 unsigned long LastInputMTime;
139 unsigned long LastMTime;
141 vtkSetStringMacro(ColorArrayNameInternal);
142 vtkGetStringMacro(ColorArrayNameInternal);
143 vtkSetStringMacro(IconIndexArrayNameInternal);
144 vtkGetStringMacro(IconIndexArrayNameInternal);
146 QPointer<QListView> ListView;
148 QSortFilterProxyModel* TableSorter;
149 char* ColorArrayNameInternal;
150 char* IconIndexArrayNameInternal;
151 char* VisibleColumnName;
152 bool SortSelectionToTop;