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

Public Types

enum  ColumnCompareResult { CmpEqual = 0 , CmpABiggerB = 1 , CmpALessB = 2 }
 
enum  ColumnFlag { ColumnNoFlags = 0 , ColumnCustomPainting = 1 , ColumnCustomSorting = 2 , ColumnHasConfigurationWidget = 4 }
 
enum  SubColumn {
  SubColumnAudioBitRate = 0 , SubColumnAudioChannelType = 1 , SubColumnAudioCodec = 2 , SubColumnDuration = 3 ,
  SubColumnFrameRate = 4 , SubColumnVideoCodec = 5
}
 

Signals

void signalAllDataChanged ()
 
void signalDataChanged (const qlonglong imageId)
 

Public Member Functions

virtual bool columnAffectedByChangeset (const ImageChangeset &imageChangeset) const
 
 ColumnAudioVideoProperties (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
 
void setConfiguration (const TableViewColumnConfiguration &newConfiguration) override
 
virtual QSize sizeHint (const QStyleOptionViewItem &option, TableViewModel::Item *const item) const
 
virtual void updateThumbnailSize ()
 
 ~ColumnAudioVideoProperties () 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
SubColumnAudioBitRate 
SubColumnAudioChannelType 
SubColumnAudioCodec 
SubColumnDuration 
SubColumnFrameRate 
SubColumnVideoCodec 

Constructor & Destructor Documentation

◆ ColumnAudioVideoProperties()

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

◆ ~ColumnAudioVideoProperties()

Digikam::TableViewColumns::ColumnAudioVideoProperties::~ColumnAudioVideoProperties ( )
override

Member Function Documentation

◆ columnAffectedByChangeset()

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

◆ compare()

TableViewColumn::ColumnCompareResult Digikam::TableViewColumns::ColumnAudioVideoProperties::compare ( TableViewModel::Item *const  itemA,
TableViewModel::Item *const  itemB 
) const
overridevirtual

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 from Digikam::TableViewColumn.

References Digikam::DatabaseFields::AudioBitRate, Digikam::TableViewColumn::CmpEqual, Digikam::TableViewColumn::compareHelperBoolFailCheck(), Digikam::DatabaseFields::Duration, Digikam::DatabaseFields::FrameRate, Digikam::TableViewModel::itemDatabaseFieldRaw(), Digikam::TableViewColumn::s, SubColumnAudioBitRate, SubColumnDuration, SubColumnFrameRate, and Digikam::TableViewShared::tableViewModel.

◆ 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()

TableViewColumn::ColumnFlags Digikam::TableViewColumns::ColumnAudioVideoProperties::getColumnFlags ( ) const
overridevirtual

◆ 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::ColumnAudioVideoProperties::getSubColumns ( )
static

◆ getTitle()

QString Digikam::TableViewColumns::ColumnAudioVideoProperties::getTitle ( ) const
overridevirtual

◆ paint()

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

◆ setConfiguration()

void Digikam::TableViewColumns::ColumnAudioVideoProperties::setConfiguration ( const TableViewColumnConfiguration newConfiguration)
overridevirtual

◆ 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: