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

#include <ButtonGallery.h>

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

Public Member Functions

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

Protected Attributes

RibbonSubGroupm_gallery
 
- Protected Attributes inherited from QCustomScrollArea
bool m_use_full_scroll = false
 

Constructor & Destructor Documentation

◆ ButtonGallery()

ButtonGallery ( QWidget * parent = nullptr)
inline

Member Function Documentation

◆ addButton()

virtual void addButton ( Button * button)
inlinevirtual

◆ buttons()

const Buffer< Button * > & buttons ( ) const
inline

◆ clear()

virtual void clear ( )
inlinevirtual

Reimplemented in DesignObjectGallery.

◆ removeButton()

virtual void removeButton ( Button * button)
inlinevirtual

◆ setIconSizeMultiplier()

void setIconSizeMultiplier ( fltp04 multiplier)
inline

◆ sortButtons() [1/2]

virtual void sortButtons ( )
inlinevirtual

◆ sortButtons() [2/2]

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

◆ updateGalleryLayout()

void updateGalleryLayout ( )
inline

Member Data Documentation

◆ m_gallery

RibbonSubGroup* m_gallery
protected

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