digiKam
Digikam::TableViewColumn Class Referenceabstract
+ Inheritance diagram for Digikam::TableViewColumn:

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 TableViewColumnConfigurationWidgetgetConfigurationWidget (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
 

Member Enumeration Documentation

◆ ColumnCompareResult

Enumerator
CmpEqual 
CmpABiggerB 
CmpALessB 

◆ ColumnFlag

Enumerator
ColumnNoFlags 
ColumnCustomPainting 
ColumnCustomSorting 
ColumnHasConfigurationWidget 

Constructor & Destructor Documentation

◆ TableViewColumn()

Digikam::TableViewColumn::TableViewColumn ( TableViewShared *const  tableViewShared,
const TableViewColumnConfiguration pConfiguration,
QObject *const  parent = nullptr 
)
explicit

◆ ~TableViewColumn()

Digikam::TableViewColumn::~TableViewColumn ( )
override

Member Function Documentation

◆ columnAffectedByChangeset()

bool Digikam::TableViewColumn::columnAffectedByChangeset ( const ImageChangeset imageChangeset) const
virtual

◆ compare()

TableViewColumn::ColumnCompareResult Digikam::TableViewColumn::compare ( TableViewModel::Item *const  itemA,
TableViewModel::Item *const  itemB 
) const
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().

◆ compareHelper()

template<class MyType >
static ColumnCompareResult Digikam::TableViewColumn::compareHelper ( const MyType &  A,
const MyType &  B 
)
inlinestatic

References CmpABiggerB, CmpALessB, and CmpEqual.

◆ compareHelperBoolFailCheck()

bool Digikam::TableViewColumn::compareHelperBoolFailCheck ( const bool  okA,
const bool  okB,
ColumnCompareResult *const  result 
)
static

◆ CreateFromConfiguration()

template<typename columnClass >
static bool Digikam::TableViewColumn::CreateFromConfiguration ( TableViewShared *const  tableViewShared,
const TableViewColumnConfiguration pConfiguration,
TableViewColumn **const  pNewColumn,
QObject *const  parent 
)
inlinestatic

◆ data()

◆ getColumnFlags()

◆ getConfiguration()

◆ getConfigurationWidget()

TableViewColumnConfigurationWidget * Digikam::TableViewColumn::getConfigurationWidget ( QWidget *const  parentWidget) const
virtual

◆ getDescription()

static TableViewColumnDescription Digikam::TableViewColumn::getDescription ( )
static

◆ getSubColumnIndex()

template<typename columnClass >
static bool Digikam::TableViewColumn::getSubColumnIndex ( const QString &  subColumnId,
typename columnClass::SubColumn *const  subColumn 
)
inlinestatic

◆ getTitle()

◆ paint()

bool Digikam::TableViewColumn::paint ( QPainter *const  painter,
const QStyleOptionViewItem &  option,
TableViewModel::Item *const  item 
) const
virtual

◆ setConfiguration()

◆ signalAllDataChanged

◆ signalDataChanged

void Digikam::TableViewColumn::signalDataChanged ( const qlonglong  imageId)
signal

◆ sizeHint()

QSize Digikam::TableViewColumn::sizeHint ( const QStyleOptionViewItem &  option,
TableViewModel::Item *const  item 
) const
virtual

◆ updateThumbnailSize()

void Digikam::TableViewColumn::updateThumbnailSize ( )
virtual

Member Data Documentation

◆ configuration

◆ s


The documentation for this class was generated from the following files: