#include <qsenormalizermodel.h>
Definition at line 9 of file qsenormalizermodel.h.
QseNormalizerModel::QseNormalizerModel |
( |
QseNormalizer * |
normalizer, |
|
|
QTableView * |
tableview, |
|
|
QObject * |
parent = 0 |
|
) |
| |
int QseNormalizerModel::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
QVariant QseNormalizerModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role |
|
) |
| const |
Definition at line 52 of file qsenormalizermodel.cpp.
References QseEXAFSOperator::backgroundColorForRole(), QseEXAFSOperator::colorForRole(), QseScan::column(), columnCount(), QseNormalizer::exceptionalColumnRole(), m_Normalizer, and QseNormalizer::patternColumnRole().
56 if (!index.isValid()) {
60 if (role == Qt::DisplayRole) {
62 int row = index.row();
63 int col = index.column();
69 return scan -> name();
72 return scan -> maxRowCount();
87 }
else if (role == Qt::BackgroundRole) {
88 int row = index.row();
89 int col = index.column();
98 return QColor(230,255,230);
100 return QColor(Qt::white);
114 }
else if (role == Qt::ForegroundRole) {
117 int row = index.row();
118 int col = index.column();
127 return QColor(Qt::black);
129 return QColor(Qt::gray);
QseNormalizer * m_Normalizer
static QColor colorForRole(QseColumnRole r)
int columnCount(const QModelIndex &parent=QModelIndex()) const
QseColumnRole exceptionalColumnRole(int s, int c)
QseColumnRole patternColumnRole(int s, int c)
QseColumn * column(int n) const
static QColor backgroundColorForRole(QseColumnRole r)
void QseNormalizerModel::dataChanged |
( |
| ) |
|
|
slot |
void QseNormalizerModel::dataCleared |
( |
| ) |
|
|
slot |
QVariant QseNormalizerModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
Definition at line 150 of file qsenormalizermodel.cpp.
152 if (orientation == Qt::Horizontal && role == Qt::DisplayRole) {
164 return tr(
"Col %1").arg(section-3);
168 if (orientation == Qt::Vertical && role == Qt::DisplayRole) {
void QseNormalizerModel::operationCompleted |
( |
| ) |
|
|
slot |
int QseNormalizerModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
void QseNormalizerModel::scanAdded |
( |
int |
n | ) |
|
|
slot |
Definition at line 224 of file qsenormalizermodel.cpp.
References QseNormalizerUI::m_Normalizer.
226 QItemSelection sel = s->selection();
227 QItemSelectionRange range;
229 foreach(range, sel) {
230 for (
int i=range.top(); i<=range.bottom(); i++) {
231 for (
int c=range.left(); c<=range.right(); c++) {
QseNormalizer * m_Normalizer
Definition at line 210 of file qsenormalizermodel.cpp.
References QseNormalizerUI::m_Normalizer.
212 QItemSelection sel = s->selection();
213 QItemSelectionRange range;
215 foreach(range, sel) {
216 for (
int i=range.top(); i<=range.bottom(); i++) {
QseNormalizer * m_Normalizer
QTableView* QseNormalizerModel::m_TableView |
|
private |
The documentation for this class was generated from the following files: