digiKam
|
Public Types | |
enum | Status { Unknown , Hidden , Showing , Shown , Hiding } |
Public Slots | |
void | hide () |
void | setVisible (bool visible) |
Shows/hides all added objects. More... | |
void | show () |
void | triggerVisibility () |
Shows if hidden and hides if visible. More... | |
Public Member Functions | |
void | addObject (VisibilityObject *const object) |
void | addWidget (QWidget *const widget) |
bool | isVisible () const |
void | setContainerWidget (QWidget *const widget) |
VisibilityController (QObject *const parent) | |
~VisibilityController () override | |
Protected Member Functions | |
void | allSteps () |
virtual void | beginStatusChange () |
void | step () |
|
explicit |
|
override |
void Digikam::VisibilityController::addObject | ( | VisibilityObject *const | object | ) |
Add an object implementing the VisibilityObject interface. You can use this if you have your widgets grouped in intermediate objects.
References Hidden, Digikam::VisibilityObject::isVisible(), Showing, Shown, and Unknown.
Referenced by Digikam::SearchFieldGroup::addField(), and addWidget().
void Digikam::VisibilityController::addWidget | ( | QWidget *const | widget | ) |
Add a widget to this controller.
References addObject().
|
protected |
References Hiding, Digikam::VisibilityObject::setVisible(), and Showing.
Referenced by beginStatusChange().
|
protectedvirtual |
References allSteps().
Referenced by setVisible().
|
slot |
References setVisible().
bool Digikam::VisibilityController::isVisible | ( | ) | const |
Returns true if the contained objects are visible or becoming visible.
References Showing, and Shown.
Referenced by Digikam::SearchFieldGroup::areaOfMarkedFields().
void Digikam::VisibilityController::setContainerWidget | ( | QWidget *const | widget | ) |
Set the widget containing the widgets added to this controller
Referenced by Digikam::SearchFieldGroup::SearchFieldGroup().
|
slot |
Shows/hides all added objects.
References beginStatusChange(), Hidden, Hiding, Showing, and Shown.
Referenced by hide(), Digikam::SearchFieldGroup::setFieldsVisible(), show(), and triggerVisibility().
|
slot |
References setVisible().
|
protected |
|
slot |
Shows if hidden and hides if visible.
References setVisible(), Showing, Shown, and Unknown.
Referenced by Digikam::SearchFieldGroup::slotLabelClicked().