digiKam
|
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) |
A dock widget specifically designed for thumbnail bars (class ThumbNailView or one of its descendants). It provides the same look as a toolbar.
|
explicit |
|
override |
|
static |
Referenced by generateFuzzyRectForGroup(), and Digikam::DItemDelegate::thumbnailBorderPixmap().
|
static |
References generateFuzzyRect().
Referenced by Digikam::DItemDelegate::thumbnailBorderPixmap().
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().
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().
void Digikam::ThumbBarDock::restoreVisibility | ( | ) |
References SHOULD_BE_HIDDEN, SHOULD_BE_SHOWN, WAS_HIDDEN, and WAS_SHOWN.
Referenced by Digikam::ImageWindow::showEvent().
void Digikam::ThumbBarDock::setShouldBeVisible | ( | bool | status | ) |
References SHOULD_BE_HIDDEN, and SHOULD_BE_SHOWN.
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.
|
slot |
References WAS_HIDDEN, and WAS_SHOWN.
Referenced by getToggleAction(), and Digikam::ItemIconView::toggleShowBar().