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

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

Member Enumeration Documentation

◆ Status

Enumerator
Unknown 
Hidden 
Showing 
Shown 
Hiding 

Constructor & Destructor Documentation

◆ VisibilityController()

Digikam::VisibilityController::VisibilityController ( QObject *const  parent)
explicit

◆ ~VisibilityController()

Digikam::VisibilityController::~VisibilityController ( )
override

Member Function Documentation

◆ addObject()

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

◆ addWidget()

void Digikam::VisibilityController::addWidget ( QWidget *const  widget)

Add a widget to this controller.

References addObject().

◆ allSteps()

void Digikam::VisibilityController::allSteps ( )
protected

◆ beginStatusChange()

void Digikam::VisibilityController::beginStatusChange ( )
protectedvirtual

References allSteps().

Referenced by setVisible().

◆ hide

void Digikam::VisibilityController::hide ( )
slot

References setVisible().

◆ isVisible()

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

◆ setContainerWidget()

void Digikam::VisibilityController::setContainerWidget ( QWidget *const  widget)

Set the widget containing the widgets added to this controller

Referenced by Digikam::SearchFieldGroup::SearchFieldGroup().

◆ setVisible

void Digikam::VisibilityController::setVisible ( bool  visible)
slot

Shows/hides all added objects.

References beginStatusChange(), Hidden, Hiding, Showing, and Shown.

Referenced by hide(), Digikam::SearchFieldGroup::setFieldsVisible(), show(), and triggerVisibility().

◆ show

void Digikam::VisibilityController::show ( )
slot

References setVisible().

◆ step()

void Digikam::VisibilityController::step ( )
protected

◆ triggerVisibility

void Digikam::VisibilityController::triggerVisibility ( )
slot

Shows if hidden and hides if visible.

References setVisible(), Showing, Shown, and Unknown.

Referenced by Digikam::SearchFieldGroup::slotLabelClicked().


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