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

Public Types

enum  Visibility { WAS_HIDDEN , WAS_SHOWN , SHOULD_BE_HIDDEN , SHOULD_BE_SHOWN }
 

Public Slots

void showThumbBar (bool)
 

Public Member Functions

QAction * getToggleAction (QObject *const parent, const QString &caption=QString()) const
 
void reInitialize ()
 
void restoreVisibility ()
 
void setShouldBeVisible (bool)
 
bool shouldBeVisible () const
 
 ThumbBarDock (QWidget *const parent=nullptr, Qt::WindowFlags flags=Qt::WindowFlags())
 
 ~ThumbBarDock () override
 

Static Public Member Functions

static QPixmap generateFuzzyRect (const QSize &size, const QColor &color, int radius, const QColor &fillColor=Qt::transparent)
 
static QPixmap generateFuzzyRectForGroup (const QSize &size, const QColor &color, int radius)
 

Detailed Description

A dock widget specifically designed for thumbnail bars (class ThumbNailView or one of its descendants). It provides the same look as a toolbar.

Member Enumeration Documentation

◆ Visibility

Enumerator
WAS_HIDDEN 
WAS_SHOWN 
SHOULD_BE_HIDDEN 
SHOULD_BE_SHOWN 

Constructor & Destructor Documentation

◆ ThumbBarDock()

Digikam::ThumbBarDock::ThumbBarDock ( QWidget *const  parent = nullptr,
Qt::WindowFlags  flags = Qt::WindowFlags() 
)
explicit

◆ ~ThumbBarDock()

Digikam::ThumbBarDock::~ThumbBarDock ( )
override

Member Function Documentation

◆ generateFuzzyRect()

QPixmap Digikam::ThumbBarDock::generateFuzzyRect ( const QSize &  size,
const QColor &  color,
int  radius,
const QColor &  fillColor = Qt::transparent 
)
static

◆ generateFuzzyRectForGroup()

QPixmap Digikam::ThumbBarDock::generateFuzzyRectForGroup ( const QSize &  size,
const QColor &  color,
int  radius 
)
static

◆ getToggleAction()

QAction * Digikam::ThumbBarDock::getToggleAction ( QObject *const  parent,
const QString &  caption = QString() 
) const

Return an Action to show and hide the thumbnail bar.

References showThumbBar().

Referenced by Digikam::EditorWindow::setupStandardActions().

◆ reInitialize()

void Digikam::ThumbBarDock::reInitialize ( )

Measure the orientation and size of the widget and adjust the containing thumbnail bar accordingly. Normally not needed, but useful when the dock widget has changed location and/or size and the appropriate signals aren't emitted.

Referenced by ShowFoto::Showfoto::Showfoto().

◆ restoreVisibility()

void Digikam::ThumbBarDock::restoreVisibility ( )

◆ setShouldBeVisible()

void Digikam::ThumbBarDock::setShouldBeVisible ( bool  status)

◆ shouldBeVisible()

bool Digikam::ThumbBarDock::shouldBeVisible ( ) const

The normal show() and hide() functions don't apply that well, because there are two orthogonal reasons to hide the thumbbar: the user doesn't want it, and the window with the thumbbar isn't shown. The restoreVisibility() function will set the visibility status to what it should be according to the user setting. The setShouldBeVisible() function can change this setting. showThumbBar() can be used to hide and show the thumbbar according to the user preference. shouldBeVisible() tells whether the thumbbar should be shown according to the user.

References SHOULD_BE_SHOWN, and WAS_SHOWN.

◆ showThumbBar

void Digikam::ThumbBarDock::showThumbBar ( bool  status)
slot

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