digiKam
|
Public Types | |
enum | ColumnCompareResult { CmpEqual = 0 , CmpABiggerB = 1 , CmpALessB = 2 } |
enum | ColumnFlag { ColumnNoFlags = 0 , ColumnCustomPainting = 1 , ColumnCustomSorting = 2 , ColumnHasConfigurationWidget = 4 } |
Signals | |
void | signalAllDataChanged () |
void | signalDataChanged (const qlonglong imageId) |
Public Member Functions | |
virtual bool | columnAffectedByChangeset (const ImageChangeset &imageChangeset) const |
virtual ColumnCompareResult | compare (TableViewModel::Item *const itemA, TableViewModel::Item *const itemB) const |
virtual QVariant | data (TableViewModel::Item *const item, const int role) const |
virtual ColumnFlags | getColumnFlags () const |
virtual TableViewColumnConfiguration | getConfiguration () const |
virtual TableViewColumnConfigurationWidget * | getConfigurationWidget (QWidget *const parentWidget) const |
virtual QString | getTitle () const =0 |
virtual bool | paint (QPainter *const painter, const QStyleOptionViewItem &option, TableViewModel::Item *const item) const |
virtual void | setConfiguration (const TableViewColumnConfiguration &newConfiguration) |
virtual QSize | sizeHint (const QStyleOptionViewItem &option, TableViewModel::Item *const item) const |
TableViewColumn (TableViewShared *const tableViewShared, const TableViewColumnConfiguration &pConfiguration, QObject *const parent=nullptr) | |
virtual void | updateThumbnailSize () |
~TableViewColumn () override | |
Static Public Member Functions | |
template<class MyType > | |
static ColumnCompareResult | compareHelper (const MyType &A, const MyType &B) |
static bool | compareHelperBoolFailCheck (const bool okA, const bool okB, ColumnCompareResult *const result) |
template<typename columnClass > | |
static bool | CreateFromConfiguration (TableViewShared *const tableViewShared, const TableViewColumnConfiguration &pConfiguration, TableViewColumn **const pNewColumn, QObject *const parent) |
static TableViewColumnDescription | getDescription () |
template<typename columnClass > | |
static bool | getSubColumnIndex (const QString &subColumnId, typename columnClass::SubColumn *const subColumn) |
Protected Attributes | |
TableViewColumnConfiguration | configuration |
TableViewShared *const | s |
|
explicit |
|
override |
|
virtual |
Reimplemented in Digikam::TableViewColumns::ColumnDigikamProperties.
|
virtual |
This function should never be called, because subclasses have to do the comparison on their own. But it can not be pure, since then every subclass which does not do custom comparison would have to implement an empty stub.
Reimplemented in Digikam::TableViewColumns::ColumnPhotoProperties, Digikam::TableViewColumns::ColumnItemProperties, Digikam::TableViewColumns::ColumnGeoProperties, Digikam::TableViewColumns::ColumnFileProperties, Digikam::TableViewColumns::ColumnDigikamProperties, and Digikam::TableViewColumns::ColumnAudioVideoProperties.
References CmpEqual.
Referenced by Digikam::TableViewModel::lessThan().
|
inlinestatic |
References CmpABiggerB, CmpALessB, and CmpEqual.
|
static |
References CmpABiggerB, CmpALessB, and CmpEqual.
Referenced by Digikam::TableViewColumns::ColumnAudioVideoProperties::compare().
|
inlinestatic |
References Digikam::TableViewColumnConfiguration::columnId.
|
virtual |
Reimplemented in Digikam::TableViewColumns::ColumnThumbnail, Digikam::TableViewColumns::ColumnPhotoProperties, Digikam::TableViewColumns::ColumnItemProperties, Digikam::TableViewColumns::ColumnGeoProperties, Digikam::TableViewColumns::ColumnFileProperties, Digikam::TableViewColumns::ColumnDigikamProperties, and Digikam::TableViewColumns::ColumnAudioVideoProperties.
Referenced by Digikam::TableViewModel::data(), and Digikam::TableViewModel::lessThan().
|
virtual |
Reimplemented in Digikam::TableViewColumns::ColumnThumbnail, Digikam::TableViewColumns::ColumnPhotoProperties, Digikam::TableViewColumns::ColumnItemProperties, Digikam::TableViewColumns::ColumnGeoProperties, Digikam::TableViewColumns::ColumnFileProperties, Digikam::TableViewColumns::ColumnDigikamProperties, and Digikam::TableViewColumns::ColumnAudioVideoProperties.
References ColumnNoFlags.
Referenced by Digikam::TableViewModel::lessThan(), and Digikam::TableViewItemDelegate::paint().
|
virtual |
|
virtual |
|
static |
|
inlinestatic |
|
pure virtual |
Implemented in Digikam::TableViewColumns::ColumnThumbnail, Digikam::TableViewColumns::ColumnPhotoProperties, Digikam::TableViewColumns::ColumnItemProperties, Digikam::TableViewColumns::ColumnGeoProperties, Digikam::TableViewColumns::ColumnFileProperties, Digikam::TableViewColumns::ColumnDigikamProperties, and Digikam::TableViewColumns::ColumnAudioVideoProperties.
Referenced by Digikam::TableViewModel::headerData().
|
virtual |
Reimplemented in Digikam::TableViewColumns::ColumnThumbnail.
Referenced by Digikam::TableViewItemDelegate::paint().
|
virtual |
|
signal |
|
signal |
|
virtual |
Reimplemented in Digikam::TableViewColumns::ColumnThumbnail.
Referenced by Digikam::TableViewItemDelegate::sizeHint().
|
virtual |
Reimplemented in Digikam::TableViewColumns::ColumnThumbnail.
Referenced by Digikam::TableView::setThumbnailSize().
|
protected |
Referenced by Digikam::TableViewColumns::ColumnFileProperties::data(), Digikam::TableViewColumns::ColumnGeoProperties::data(), Digikam::TableViewColumns::ColumnPhotoProperties::data(), getConfiguration(), Digikam::TableViewColumns::ColumnFileProperties::getConfigurationWidget(), Digikam::TableViewColumns::ColumnAudioVideoProperties::setConfiguration(), Digikam::TableViewColumns::ColumnFileProperties::setConfiguration(), Digikam::TableViewColumns::ColumnGeoProperties::setConfiguration(), and Digikam::TableViewColumns::ColumnPhotoProperties::setConfiguration().
|
protected |
Referenced by Digikam::TableViewColumns::ColumnAudioVideoProperties::compare(), Digikam::TableViewColumns::ColumnDigikamProperties::compare(), Digikam::TableViewColumns::ColumnFileProperties::compare(), Digikam::TableViewColumns::ColumnGeoProperties::compare(), Digikam::TableViewColumns::ColumnItemProperties::compare(), Digikam::TableViewColumns::ColumnPhotoProperties::compare(), Digikam::TableViewColumns::ColumnAudioVideoProperties::data(), Digikam::TableViewColumns::ColumnDigikamProperties::data(), Digikam::TableViewColumns::ColumnFileProperties::data(), Digikam::TableViewColumns::ColumnGeoProperties::data(), Digikam::TableViewColumns::ColumnItemProperties::data(), Digikam::TableViewColumns::ColumnPhotoProperties::data(), Digikam::TableViewColumns::ColumnFileProperties::getConfigurationWidget(), Digikam::TableViewColumns::ColumnGeoProperties::getConfigurationWidget(), and Digikam::TableViewColumns::ColumnPhotoProperties::getConfigurationWidget().