QXRD
0.11.16
|
#include <qxrdcalibrantlibrarymodel.h>
Public Types | |
enum | { IsUsedColumn, FlagsColumn, NameColumn, SymmetryColumn, DescriptionColumn, NumColumns } |
Public Member Functions | |
QxrdCalibrantLibraryModel (QxrdCalibrantLibraryPtr cal) | |
~QxrdCalibrantLibraryModel () | |
virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const |
virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const |
virtual QVariant | data (const QModelIndex &index, int role) const |
virtual QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
void | toggleIsUsed (int n) |
int | isUsed (int n) |
void | setIsUsed (int n, int v) |
void | calibrantChanged (int n) |
Private Attributes | |
QxrdCalibrantLibraryPtr | m_CalibrantLibrary |
Definition at line 7 of file qxrdcalibrantlibrarymodel.h.
anonymous enum |
Enumerator | |
---|---|
IsUsedColumn | |
FlagsColumn | |
NameColumn | |
SymmetryColumn | |
DescriptionColumn | |
NumColumns |
Definition at line 21 of file qxrdcalibrantlibrarymodel.h.
QxrdCalibrantLibraryModel::QxrdCalibrantLibraryModel | ( | QxrdCalibrantLibraryPtr | cal | ) |
Definition at line 5 of file qxrdcalibrantlibrarymodel.cpp.
QxrdCalibrantLibraryModel::~QxrdCalibrantLibraryModel | ( | ) |
Definition at line 11 of file qxrdcalibrantlibrarymodel.cpp.
void QxrdCalibrantLibraryModel::calibrantChanged | ( | int | n | ) |
Definition at line 175 of file qxrdcalibrantlibrarymodel.cpp.
References columnCount().
|
virtual |
Definition at line 25 of file qxrdcalibrantlibrarymodel.cpp.
References NumColumns.
Referenced by calibrantChanged(), and headerData().
|
virtual |
Definition at line 34 of file qxrdcalibrantlibrarymodel.cpp.
References QxrdCalibrant::BodyCenteredCubic, DescriptionColumn, QxrdCalibrant::DiamondCubic, QxrdCalibrant::FaceCenteredCubic, FlagsColumn, QxrdCalibrant::Hexagonal, IsUsedColumn, m_CalibrantLibrary, NameColumn, QxrdCalibrant::RHexagonal, QxrdCalibrant::SimpleCubic, and SymmetryColumn.
|
virtual |
Definition at line 103 of file qxrdcalibrantlibrarymodel.cpp.
References columnCount(), DescriptionColumn, FlagsColumn, IsUsedColumn, NameColumn, and SymmetryColumn.
int QxrdCalibrantLibraryModel::isUsed | ( | int | n | ) |
Definition at line 142 of file qxrdcalibrantlibrarymodel.cpp.
References m_CalibrantLibrary.
|
virtual |
Definition at line 16 of file qxrdcalibrantlibrarymodel.cpp.
References m_CalibrantLibrary.
void QxrdCalibrantLibraryModel::setIsUsed | ( | int | n, |
int | v | ||
) |
Definition at line 164 of file qxrdcalibrantlibrarymodel.cpp.
References m_CalibrantLibrary.
void QxrdCalibrantLibraryModel::toggleIsUsed | ( | int | n | ) |
Definition at line 153 of file qxrdcalibrantlibrarymodel.cpp.
References m_CalibrantLibrary.
|
private |
Definition at line 37 of file qxrdcalibrantlibrarymodel.h.
Referenced by data(), isUsed(), rowCount(), setIsUsed(), and toggleIsUsed().