digiKam
Digikam::DExpanderBox Class Reference
+ Inheritance diagram for Digikam::DExpanderBox:

Signals

void signalItemExpanded (int index, bool b)
 
void signalItemToggled (int index, bool b)
 

Public Member Functions

void addItem (QWidget *const w, const QIcon &icon, const QString &txt, const QString &objName, bool expandBydefault)
 
void addItem (QWidget *const w, const QString &txt, const QString &objName, bool expandBydefault)
 
void addStretch ()
 
bool checkBoxIsVisible (int index) const
 
int count () const
 
 DExpanderBox (QWidget *const parent=nullptr)
 
int indexOf (DLabelExpander *const widget) const
 
void insertItem (int index, QWidget *const w, const QIcon &icon, const QString &txt, const QString &objName, bool expandBydefault)
 
void insertItem (int index, QWidget *const w, const QString &txt, const QString &objName, bool expandBydefault)
 
void insertStretch (int index)
 
bool isChecked (int index) const
 
bool isItemEnabled (int index) const
 
bool isItemExpanded (int index) const
 
QIcon itemIcon (int index) const
 
QString itemText (int index) const
 
QString itemToolTip (int index) const
 
virtual void readSettings (KConfigGroup &group)
 
void removeItem (int index)
 
void setCheckBoxVisible (int index, bool b)
 
void setChecked (int index, bool b)
 
void setItemEnabled (int index, bool enabled)
 
void setItemExpanded (int index, bool b)
 
void setItemIcon (int index, const QIcon &icon)
 
void setItemText (int index, const QString &txt)
 
void setItemToolTip (int index, const QString &tip)
 
DLabelExpanderwidget (int index) const
 
virtual void writeSettings (KConfigGroup &group)
 
 ~DExpanderBox () override
 

Constructor & Destructor Documentation

◆ DExpanderBox()

Digikam::DExpanderBox::DExpanderBox ( QWidget *const  parent = nullptr)
explicit

References main().

◆ ~DExpanderBox()

Digikam::DExpanderBox::~DExpanderBox ( )
override

Member Function Documentation

◆ addItem() [1/2]

void Digikam::DExpanderBox::addItem ( QWidget *const  w,
const QIcon &  icon,
const QString &  txt,
const QString &  objName,
bool  expandBydefault 
)

Add DLabelExpander item at end of box layout with these settings : 'w' : the widget hosted by DLabelExpander. 'pix' : pixmap used as icon to item title. 'txt' : text used as item title. 'objName' : item object name used to read/save expanded settings to rc file. 'expandBydefault' : item state by default (expanded or not).

Referenced by addItem(), Digikam::ImportItemPropertiesTab::ImportItemPropertiesTab(), Digikam::DRawDecoderWidget::setup(), and Digikam::TemplateViewer::TemplateViewer().

◆ addItem() [2/2]

void Digikam::DExpanderBox::addItem ( QWidget *const  w,
const QString &  txt,
const QString &  objName,
bool  expandBydefault 
)

References addItem().

◆ addStretch()

◆ checkBoxIsVisible()

bool Digikam::DExpanderBox::checkBoxIsVisible ( int  index) const

◆ count()

int Digikam::DExpanderBox::count ( ) const

◆ indexOf()

int Digikam::DExpanderBox::indexOf ( DLabelExpander *const  widget) const

References count(), and widget().

◆ insertItem() [1/2]

void Digikam::DExpanderBox::insertItem ( int  index,
QWidget *const  w,
const QIcon &  icon,
const QString &  txt,
const QString &  objName,
bool  expandBydefault 
)

Insert DLabelExpander item at box layout index with these settings : 'w' : the widget hosted by DLabelExpander. 'pix' : pixmap used as icon to item title. 'txt' : text used as item title. 'objName' : item object name used to read/save expanded settings to rc file. 'expandBydefault' : item state by default (expanded or not).

Referenced by insertItem(), Digikam::ItemPropertiesTab::ItemPropertiesTab(), and Digikam::ItemSelectionPropertiesTab::ItemSelectionPropertiesTab().

◆ insertItem() [2/2]

void Digikam::DExpanderBox::insertItem ( int  index,
QWidget *const  w,
const QString &  txt,
const QString &  objName,
bool  expandBydefault 
)

References insertItem().

◆ insertStretch()

void Digikam::DExpanderBox::insertStretch ( int  index)

◆ isChecked()

bool Digikam::DExpanderBox::isChecked ( int  index) const

◆ isItemEnabled()

bool Digikam::DExpanderBox::isItemEnabled ( int  index) const

◆ isItemExpanded()

bool Digikam::DExpanderBox::isItemExpanded ( int  index) const

◆ itemIcon()

QIcon Digikam::DExpanderBox::itemIcon ( int  index) const

◆ itemText()

QString Digikam::DExpanderBox::itemText ( int  index) const

◆ itemToolTip()

QString Digikam::DExpanderBox::itemToolTip ( int  index) const

◆ readSettings()

void Digikam::DExpanderBox::readSettings ( KConfigGroup &  group)
virtual

◆ removeItem()

void Digikam::DExpanderBox::removeItem ( int  index)

◆ setCheckBoxVisible()

void Digikam::DExpanderBox::setCheckBoxVisible ( int  index,
bool  b 
)

◆ setChecked()

void Digikam::DExpanderBox::setChecked ( int  index,
bool  b 
)

◆ setItemEnabled()

void Digikam::DExpanderBox::setItemEnabled ( int  index,
bool  enabled 
)

◆ setItemExpanded()

void Digikam::DExpanderBox::setItemExpanded ( int  index,
bool  b 
)

◆ setItemIcon()

void Digikam::DExpanderBox::setItemIcon ( int  index,
const QIcon &  icon 
)

◆ setItemText()

void Digikam::DExpanderBox::setItemText ( int  index,
const QString &  txt 
)

◆ setItemToolTip()

void Digikam::DExpanderBox::setItemToolTip ( int  index,
const QString &  tip 
)

◆ signalItemExpanded

void Digikam::DExpanderBox::signalItemExpanded ( int  index,
bool  b 
)
signal

◆ signalItemToggled

void Digikam::DExpanderBox::signalItemToggled ( int  index,
bool  b 
)
signal

◆ widget()

◆ writeSettings()

void Digikam::DExpanderBox::writeSettings ( KConfigGroup &  group)
virtual

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