digiKam
Digikam::TableViewColumns::ColumnItemProperties Class Reference
+ Inheritance diagram for Digikam::TableViewColumns::ColumnItemProperties:

Public Types

enum  ColumnCompareResult { CmpEqual = 0 , CmpABiggerB = 1 , CmpALessB = 2 }
 
enum  ColumnFlag { ColumnNoFlags = 0 , ColumnCustomPainting = 1 , ColumnCustomSorting = 2 , ColumnHasConfigurationWidget = 4 }
 
enum  SubColumn {
  SubColumnWidth = 0 , SubColumnHeight = 1 , SubColumnDimensions = 2 , SubColumnPixelCount = 3 ,
  SubColumnBitDepth = 4 , SubColumnColorMode = 5 , SubColumnType = 6 , SubColumnCreationDateTime = 7 ,
  SubColumnDigitizationDateTime = 8 , SubColumnAspectRatio = 9 , SubColumnSimilarity = 10
}
 

Signals

void signalAllDataChanged ()
 
void signalDataChanged (const qlonglong imageId)
 

Public Member Functions

virtual bool columnAffectedByChangeset (const ImageChangeset &imageChangeset) const
 
 ColumnItemProperties (TableViewShared *const tableViewShared, const TableViewColumnConfiguration &pConfiguration, const SubColumn pSubColumn, QObject *const parent=nullptr)
 
ColumnCompareResult compare (TableViewModel::Item *const itemA, TableViewModel::Item *const itemB) const override
 
QVariant data (TableViewModel::Item *const item, const int role) const override
 
ColumnFlags getColumnFlags () const override
 
virtual TableViewColumnConfiguration getConfiguration () const
 
virtual TableViewColumnConfigurationWidgetgetConfigurationWidget (QWidget *const parentWidget) const
 
QString getTitle () const override
 
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
 
virtual void updateThumbnailSize ()
 
 ~ColumnItemProperties () 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)
 
static QStringList getSubColumns ()
 

Protected Attributes

TableViewColumnConfiguration configuration
 
TableViewShared *const s
 

Member Enumeration Documentation

◆ ColumnCompareResult

Enumerator
CmpEqual 
CmpABiggerB 
CmpALessB 

◆ ColumnFlag

Enumerator
ColumnNoFlags 
ColumnCustomPainting 
ColumnCustomSorting 
ColumnHasConfigurationWidget 

◆ SubColumn

Enumerator
SubColumnWidth 
SubColumnHeight 
SubColumnDimensions 
SubColumnPixelCount 
SubColumnBitDepth 
SubColumnColorMode 
SubColumnType 
SubColumnCreationDateTime 
SubColumnDigitizationDateTime 
SubColumnAspectRatio 
SubColumnSimilarity 

Constructor & Destructor Documentation

◆ ColumnItemProperties()

Digikam::TableViewColumns::ColumnItemProperties::ColumnItemProperties ( TableViewShared *const  tableViewShared,
const TableViewColumnConfiguration pConfiguration,
const SubColumn  pSubColumn,
QObject *const  parent = nullptr 
)
explicit

◆ ~ColumnItemProperties()

Digikam::TableViewColumns::ColumnItemProperties::~ColumnItemProperties ( )
override

Member Function Documentation

◆ columnAffectedByChangeset()

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

◆ compare()

◆ compareHelper()

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

◆ compareHelperBoolFailCheck()

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

◆ CreateFromConfiguration()

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

◆ data()

◆ getColumnFlags()

◆ getConfiguration()

◆ getConfigurationWidget()

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

◆ getDescription()

◆ getSubColumnIndex()

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

◆ getSubColumns()

QStringList Digikam::TableViewColumns::ColumnItemProperties::getSubColumns ( )
static

◆ getTitle()

◆ paint()

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

◆ setConfiguration()

◆ signalAllDataChanged

◆ signalDataChanged

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

◆ sizeHint()

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

◆ updateThumbnailSize()

void Digikam::TableViewColumn::updateThumbnailSize ( )
virtualinherited

Member Data Documentation

◆ configuration

◆ s


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