![]() |
digiKam Developer Documentation
Professional Photo Management with the Power of Open Source
|
Page widget with many layouts (faces). More...
Signals | |
void | currentPageChanged (DConfigDlgWdgItem *current, DConfigDlgWdgItem *before) |
This signal is emitted whenever the current page has changed. | |
void | pageRemoved (DConfigDlgWdgItem *page) |
This signal is emitted when a page is removed. | |
void | pageToggled (DConfigDlgWdgItem *page, bool checked) |
This signal is emitted whenever a checkable page changes its state. | |
![]() | |
void | signalCurrentPageChanged (const QModelIndex ¤t, const QModelIndex &previous) |
This signal is emitted whenever the current page changes. | |
Public Member Functions | |
DConfigDlgWdg (QWidget *const parent=nullptr) | |
Creates a new page widget. | |
~DConfigDlgWdg () override=default | |
Destroys the page widget. | |
void | addPage (DConfigDlgWdgItem *item) |
Adds a new top level page to the widget. | |
DConfigDlgWdgItem * | addPage (QWidget *widget, const QString &name) |
Adds a new top level page to the widget. | |
void | addSubPage (DConfigDlgWdgItem *parent, DConfigDlgWdgItem *item) |
Inserts a new sub page in the widget. | |
DConfigDlgWdgItem * | addSubPage (DConfigDlgWdgItem *parent, QWidget *widget, const QString &name) |
Inserts a new sub page in the widget. | |
DConfigDlgWdgItem * | currentPage () const |
Returns the. | |
void | insertPage (DConfigDlgWdgItem *before, DConfigDlgWdgItem *item) |
Inserts a new page in the widget. | |
DConfigDlgWdgItem * | insertPage (DConfigDlgWdgItem *before, QWidget *widget, const QString &name) |
Inserts a new page in the widget. | |
void | removePage (DConfigDlgWdgItem *item) |
Removes the page associated with the given. | |
void | setCurrentPage (DConfigDlgWdgItem *item) |
Sets the page which is associated with the given. | |
![]() | |
DConfigDlgView (QWidget *const parent=nullptr) | |
Creates a page view with given parent. | |
~DConfigDlgView () override | |
Destroys the page view. | |
QModelIndex | currentIndex () const |
Returns the index for the current page or an invalid index if no current page exists. | |
FaceType | faceType () const |
Returns the face type of the page view. | |
QAbstractItemDelegate * | itemDelegate () const |
Returns the item delegate of the page view. | |
QAbstractItemModel * | model () const |
Returns the model of the page view. | |
void | setCurrentIndex (const QModelIndex &index) |
Sets the page with. | |
void | setDefaultWidget (QWidget *widget) |
Sets the widget which will be shown when a page is selected that has no own widget set. | |
void | setFaceType (FaceType faceType) |
Sets the face type of the page view. | |
void | setItemDelegate (QAbstractItemDelegate *delegate) |
Sets the item. | |
void | setModel (QAbstractItemModel *model) |
Sets the model of the page view. | |
Protected Member Functions | |
DConfigDlgWdg (DConfigDlgWdgPrivate &dd, QWidget *const parent) | |
![]() | |
DConfigDlgView (DConfigDlgViewPrivate &dd, QWidget *const parent) | |
virtual QAbstractItemView * | createView () |
Returns the navigation view, depending on the current face type. | |
virtual bool | showPageHeader () const |
Returns whether the page header should be visible. | |
virtual Qt::Alignment | viewPosition () const |
Returns the position where the navigation view should be located according to the page stack. | |
Additional Inherited Members | |
![]() | |
enum | FaceType { Auto , Plain , List , Tree , Tabbed } |
This enum is used to decide which type of navigation view shall be used in the page view. More... | |
![]() | |
DConfigDlgViewPrivate *const | d_ptr |
![]() | |
FaceType | faceType |
|
explicit |
parent | The parent widget. |
void Digikam::DConfigDlgWdg::addPage | ( | DConfigDlgWdgItem * | item | ) |
item | The |
DConfigDlgWdgItem * Digikam::DConfigDlgWdg::addPage | ( | QWidget * | widget, |
const QString & | name | ||
) |
widget | The widget of the page. |
name | The name which is displayed in the navigation view. |
void Digikam::DConfigDlgWdg::addSubPage | ( | DConfigDlgWdgItem * | parent, |
DConfigDlgWdgItem * | item | ||
) |
parent | The new page will be insert as child of this |
item | The |
DConfigDlgWdgItem * Digikam::DConfigDlgWdg::addSubPage | ( | DConfigDlgWdgItem * | parent, |
QWidget * | widget, | ||
const QString & | name | ||
) |
parent | The new page will be insert as child of this |
widget | The widget of the page. |
name | The name which is displayed in the navigation view. |
DConfigDlgWdgItem * Digikam::DConfigDlgWdg::currentPage | ( | ) | const |
|
signal |
current | The new current page or 0 if no current page is available. |
void Digikam::DConfigDlgWdg::insertPage | ( | DConfigDlgWdgItem * | before, |
DConfigDlgWdgItem * | item | ||
) |
before | The new page will be insert before this |
item | The |
DConfigDlgWdgItem * Digikam::DConfigDlgWdg::insertPage | ( | DConfigDlgWdgItem * | before, |
QWidget * | widget, | ||
const QString & | name | ||
) |
before | The new page will be insert before this |
widget | The widget of the page. |
name | The name which is displayed in the navigation view. |
|
signal |
page | The page which is removed |
|
signal |
checked | is true when the |
page | is checked, or false if the |
page | is unchecked. |
void Digikam::DConfigDlgWdg::removePage | ( | DConfigDlgWdgItem * | item | ) |
void Digikam::DConfigDlgWdg::setCurrentPage | ( | DConfigDlgWdgItem * | item | ) |