API Documentation
Loading...
Searching...
No Matches
ButtonGallery Class Reference

Typically used for dialogs which have any number of buttons associated with it that are toggled on when the dialog is visible, and off when the widget is invisible. Each button controls the visibility of the dialog. More...

#include <ButtonGallery.h>

Inheritance diagram for ButtonGallery:
[legend]
Collaboration diagram for ButtonGallery:
[legend]

Public Member Functions

virtual void addButton (Button *button)
 
 ButtonGallery (QWidget *parent=nullptr)
 
const Buffer< Button * > & buttons () const
 
virtual void clear ()
 
virtual void removeButton (Button *button)
 
void setIconSizeMultiplier (fltp04 multiplier)
 
virtual void sortButtons ()
 Sorts buttons alphabetically.
 
virtual void sortButtons (const std::function< bool(Button *, Button *)> &sorter)
 
void updateGalleryLayout ()
 
- Public Member Functions inherited from QCustomScrollArea
bool eventFilter (QObject *, QEvent *event) override
 
 QCustomScrollArea (QWidget *parent=nullptr)
 
void setUseFullScroll (bool use_full_scroll)
 
void setWidget (QWidget *w)
 
QSize sizeHint () const override
 
QWidget * takeWidget ()
 
bool useFullScroll () const
 

Protected Attributes

RibbonSubGroupm_gallery
 
- Protected Attributes inherited from QCustomScrollArea
bool m_use_full_scroll = false
 

Detailed Description

Typically used for dialogs which have any number of buttons associated with it that are toggled on when the dialog is visible, and off when the widget is invisible. Each button controls the visibility of the dialog.


Constructor & Destructor Documentation

◆ ButtonGallery()

ButtonGallery ( QWidget * parent = nullptr)

Member Function Documentation

◆ addButton()

virtual void addButton ( Button * button)
virtual

◆ buttons()

const Buffer< Button * > & buttons ( ) const

◆ clear()

virtual void clear ( )
virtual

Reimplemented in DesignObjectGallery.

◆ removeButton()

virtual void removeButton ( Button * button)
virtual

◆ setIconSizeMultiplier()

void setIconSizeMultiplier ( fltp04 multiplier)

◆ sortButtons() [1/2]

virtual void sortButtons ( )
virtual

Sorts buttons alphabetically.


◆ sortButtons() [2/2]

virtual void sortButtons ( const std::function< bool(Button *, Button *)> & sorter)
virtual

◆ updateGalleryLayout()

void updateGalleryLayout ( )

Member Data Documentation

◆ m_gallery

RibbonSubGroup* m_gallery
protected

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