digiKam
DigikamGenericMetadataEditPlugin::EXIFEditWidget Class Reference
+ Inheritance diagram for DigikamGenericMetadataEditPlugin::EXIFEditWidget:

Public Types

enum  FaceType {
  Auto , Plain , List , Tree ,
  Tabbed
}
 

Public Slots

void slotItemChanged ()
 
void slotModified ()
 

Signals

void currentPageChanged (const QModelIndex &current, const QModelIndex &previous)
 
void currentPageChanged (DConfigDlgWdgItem *current, DConfigDlgWdgItem *before)
 
void pageRemoved (DConfigDlgWdgItem *page)
 
void pageToggled (DConfigDlgWdgItem *page, bool checked)
 
void signalModified ()
 
void signalSetReadOnly (bool)
 

Public Member Functions

void addPage (DConfigDlgWdgItem *item)
 
DConfigDlgWdgItem * addPage (QWidget *widget, const QString &name)
 
void addSubPage (DConfigDlgWdgItem *parent, DConfigDlgWdgItem *item)
 
DConfigDlgWdgItem * addSubPage (DConfigDlgWdgItem *parent, QWidget *widget, const QString &name)
 
void apply ()
 
DConfigDlgWdgItem * currentPage () const
 
 EXIFEditWidget (MetadataEditDialog *const parent)
 
FaceType faceType () const
 
void insertPage (DConfigDlgWdgItem *before, DConfigDlgWdgItem *item)
 
DConfigDlgWdgItem * insertPage (DConfigDlgWdgItem *before, QWidget *widget, const QString &name)
 
bool isModified () const
 
QAbstractItemDelegate * itemDelegate () const
 
QAbstractItemModel * model () const
 
void removePage (DConfigDlgWdgItem *item)
 
void saveSettings ()
 
void setCurrentPage (const QModelIndex &index)
 
void setCurrentPage (DConfigDlgWdgItem *item)
 
void setDefaultWidget (QWidget *widget)
 
void setFaceType (FaceType faceType)
 
void setItemDelegate (QAbstractItemDelegate *delegate)
 
void setModel (QAbstractItemModel *model)
 
 ~EXIFEditWidget () override
 

Protected Member Functions

virtual QAbstractItemView * createView ()
 
virtual bool showPageHeader () const
 
virtual Qt::Alignment viewPosition () const
 

Protected Attributes

DConfigDlgViewPrivate *const d_ptr
 

Properties

FaceType faceType
 

Member Enumeration Documentation

◆ FaceType

This enum is used to decide which type of navigation view shall be used in the page view.

  • Auto - Depending on the number of pages in the model, the Plain (one page), the List (several pages) or the Tree face (nested pages) will be used. This is the default face type.
  • Plain - No navigation view will be visible and only the first page of the model will be shown.
  • List - An icon list is used as navigation view.
  • Tree - A tree list is used as navigation view.
  • Tabbed - A tab widget is used as navigation view.
Enumerator
Auto 
Plain 
List 
Tree 
Tabbed 

Constructor & Destructor Documentation

◆ EXIFEditWidget()

DigikamGenericMetadataEditPlugin::EXIFEditWidget::EXIFEditWidget ( MetadataEditDialog *const  parent)
explicit

◆ ~EXIFEditWidget()

DigikamGenericMetadataEditPlugin::EXIFEditWidget::~EXIFEditWidget ( )
override

Member Function Documentation

◆ addPage() [1/2]

void Digikam::DConfigDlgWdg::addPage ( DConfigDlgWdgItem item)
inherited

Adds a new top level page to the widget.

Parameters
itemThe
See also
DConfigDlgWdgItem which describes the page.

◆ addPage() [2/2]

DConfigDlgWdgItem * Digikam::DConfigDlgWdg::addPage ( QWidget *  widget,
const QString &  name 
)
inherited

Adds a new top level page to the widget.

Parameters
widgetThe widget of the page.
nameThe name which is displayed in the navigation view.
Returns
The associated
See also
DConfigDlgWdgItem.

Referenced by EXIFEditWidget(), DigikamGenericMetadataEditPlugin::IPTCEditWidget::IPTCEditWidget(), and DigikamGenericMetadataEditPlugin::XMPEditWidget::XMPEditWidget().

◆ addSubPage() [1/2]

void Digikam::DConfigDlgWdg::addSubPage ( DConfigDlgWdgItem parent,
DConfigDlgWdgItem item 
)
inherited

Inserts a new sub page in the widget.

Parameters
parentThe new page will be insert as child of this
See also
DConfigDlgWdgItem.
Parameters
itemThe
See also
DConfigDlgWdgItem which describes the page.

◆ addSubPage() [2/2]

DConfigDlgWdgItem * Digikam::DConfigDlgWdg::addSubPage ( DConfigDlgWdgItem parent,
QWidget *  widget,
const QString &  name 
)
inherited

Inserts a new sub page in the widget.

Parameters
parentThe new page will be insert as child of this
See also
DConfigDlgWdgItem.
Parameters
widgetThe widget of the page.
nameThe name which is displayed in the navigation view.
Returns
The associated
See also
DConfigDlgWdgItem.

◆ apply()

void DigikamGenericMetadataEditPlugin::EXIFEditWidget::apply ( )

◆ createView()

QAbstractItemView * Digikam::DConfigDlgView::createView ( )
protectedvirtualinherited

Returns the navigation view, depending on the current face type.

This method can be reimplemented to provide custom navigation views.

References Digikam::DConfigDlgView::Auto, Digikam::DConfigDlgView::faceType, Digikam::DConfigDlgView::List, Digikam::DConfigDlgView::Plain, Digikam::DConfigDlgView::Tabbed, and Digikam::DConfigDlgView::Tree.

◆ currentPage()

DConfigDlgWdgItem * Digikam::DConfigDlgWdg::currentPage ( ) const
inherited

Returns the

See also
DConfigDlgWdgItem for the current page or 0 if there is no current page.

References Digikam::DConfigDlgView::currentPage().

◆ currentPageChanged [1/2]

void Digikam::DConfigDlgView::currentPageChanged ( const QModelIndex &  current,
const QModelIndex &  previous 
)
signalinherited

This signal is emitted whenever the current page changes. The previous page index is replaced by the current index.

◆ currentPageChanged [2/2]

void Digikam::DConfigDlgWdg::currentPageChanged ( DConfigDlgWdgItem current,
DConfigDlgWdgItem before 
)
signalinherited

This signal is emitted whenever the current page has changed.

Parameters
currentThe new current page or 0 if no current page is available.

Referenced by Digikam::DConfigDlgWdg::DConfigDlgWdg().

◆ faceType()

DConfigDlgView::FaceType Digikam::DConfigDlgView::faceType ( ) const
inherited

Returns the face type of the page view.

◆ insertPage() [1/2]

void Digikam::DConfigDlgWdg::insertPage ( DConfigDlgWdgItem before,
DConfigDlgWdgItem item 
)
inherited

Inserts a new page in the widget.

Parameters
beforeThe new page will be insert before this
See also
DConfigDlgWdgItem on the same level in hierarchy.
Parameters
itemThe
See also
DConfigDlgWdgItem which describes the page.

◆ insertPage() [2/2]

DConfigDlgWdgItem * Digikam::DConfigDlgWdg::insertPage ( DConfigDlgWdgItem before,
QWidget *  widget,
const QString &  name 
)
inherited

Inserts a new page in the widget.

Parameters
beforeThe new page will be insert before this
See also
DConfigDlgWdgItem on the same level in hierarchy.
Parameters
widgetThe widget of the page.
nameThe name which is displayed in the navigation view.
Returns
The associated
See also
DConfigDlgWdgItem.

◆ isModified()

bool DigikamGenericMetadataEditPlugin::EXIFEditWidget::isModified ( ) const

◆ itemDelegate()

QAbstractItemDelegate * Digikam::DConfigDlgView::itemDelegate ( ) const
inherited

Returns the item delegate of the page view.

◆ model()

QAbstractItemModel * Digikam::DConfigDlgView::model ( ) const
inherited

Returns the model of the page view.

Referenced by Digikam::DConfigDlgView::setModel().

◆ pageRemoved

void Digikam::DConfigDlgWdg::pageRemoved ( DConfigDlgWdgItem page)
signalinherited

This signal is emitted when a page is removed.

Parameters
pageThe page which is removed

Referenced by Digikam::DConfigDlgWdg::removePage().

◆ pageToggled

void Digikam::DConfigDlgWdg::pageToggled ( DConfigDlgWdgItem page,
bool  checked 
)
signalinherited

This signal is emitted whenever a checkable page changes its state.

Parameters
checkedis true when the
pageis checked, or false if the
pageis unchecked.

Referenced by Digikam::DConfigDlgWdg::DConfigDlgWdg().

◆ removePage()

void Digikam::DConfigDlgWdg::removePage ( DConfigDlgWdgItem item)
inherited

Removes the page associated with the given

See also
DConfigDlgWdgItem.

References Digikam::DConfigDlgWdg::pageRemoved().

◆ saveSettings()

void DigikamGenericMetadataEditPlugin::EXIFEditWidget::saveSettings ( )

◆ setCurrentPage() [1/2]

void Digikam::DConfigDlgView::setCurrentPage ( const QModelIndex &  index)
inherited

Sets the page with

Parameters
indexto be the current page and emits the
See also
currentPageChanged signal.

Referenced by Digikam::DConfigDlgWdg::setCurrentPage().

◆ setCurrentPage() [2/2]

void Digikam::DConfigDlgWdg::setCurrentPage ( DConfigDlgWdgItem item)
inherited

Sets the page which is associated with the given

See also
DConfigDlgWdgItem to be the current page and emits the currentPageChanged() signal.

References Digikam::DConfigDlgView::setCurrentPage().

◆ setDefaultWidget()

void Digikam::DConfigDlgView::setDefaultWidget ( QWidget *  widget)
inherited

Sets the widget which will be shown when a page is selected that has no own widget set.

◆ setFaceType()

void Digikam::DConfigDlgView::setFaceType ( FaceType  faceType)
inherited

Sets the face type of the page view.

References Digikam::DConfigDlgView::faceType.

◆ setItemDelegate()

void Digikam::DConfigDlgView::setItemDelegate ( QAbstractItemDelegate *  delegate)
inherited

Sets the item

Parameters
delegatewhich can be used customize the page view.

◆ setModel()

void Digikam::DConfigDlgView::setModel ( QAbstractItemModel *  model)
inherited

Sets the model of the page view.

The model has to provide data for the roles defined in DConfigDlgModel::Role.

References Digikam::DConfigDlgView::model().

Referenced by Digikam::DConfigDlgWdg::DConfigDlgWdg().

◆ showPageHeader()

bool Digikam::DConfigDlgView::showPageHeader ( ) const
protectedvirtualinherited

Returns whether the page header should be visible.

This method can be reimplemented for adapting custom views.

References Digikam::DConfigDlgView::Auto, Digikam::DConfigDlgView::faceType, and Digikam::DConfigDlgView::Tabbed.

◆ signalModified

void DigikamGenericMetadataEditPlugin::EXIFEditWidget::signalModified ( )
signal

Referenced by EXIFEditWidget(), and slotModified().

◆ signalSetReadOnly

void DigikamGenericMetadataEditPlugin::EXIFEditWidget::signalSetReadOnly ( bool  )
signal

Referenced by slotItemChanged().

◆ slotItemChanged

void DigikamGenericMetadataEditPlugin::EXIFEditWidget::slotItemChanged ( )
slot

References signalSetReadOnly().

Referenced by EXIFEditWidget().

◆ slotModified

void DigikamGenericMetadataEditPlugin::EXIFEditWidget::slotModified ( )
slot

References signalModified().

Referenced by EXIFEditWidget().

◆ viewPosition()

Qt::Alignment Digikam::DConfigDlgView::viewPosition ( ) const
protectedvirtualinherited

Returns the position where the navigation view should be located according to the page stack.

This method can be reimplemented for adapting custom views.

References Digikam::DConfigDlgView::Auto, Digikam::DConfigDlgView::faceType, Digikam::DConfigDlgView::Plain, and Digikam::DConfigDlgView::Tabbed.

Member Data Documentation

◆ d_ptr

DConfigDlgViewPrivate* const Digikam::DConfigDlgView::d_ptr
protectedinherited

Property Documentation

◆ faceType


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