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

#include <SnapsEditorWidget.h>

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

Public Slots

void clearAll ()
 
void selectAll ()
 
void updateFromUI (Button *button)
 

Public Member Functions

 SnapsEditorWidget (const DynamicPointer< SnapsManager > &snap_manager, QWidget *parent=nullptr)
 
void setupButton (Button *button)
 
void updateUI ()
 
QSize sizeHint () const override
 
- Public Member Functions inherited from RibbonSubGroup
 RibbonSubGroup (QWidget *parent=nullptr)
 
void init ()
 
 RibbonSubGroup (const TranslatedString &title, QWidget *parent=nullptr)
 
ButtonaddButton (Button *button, uint04 index=Constant< uint04 >::NaN, bool update_layout=false)
 
const Buffer< Button * > & buttons () const
 
void removeButton (Button *button)
 
Vector< 2, int > calcSize () const
 
void clear ()
 
void setIgnoredSize (bool ignored)
 
QSize sizeHint () const override
 
QSize minimumSizeHint () const override
 
void setSpacing (int spacing)
 
int currentPrimary () const
 
int currentSecondary () const
 
int largeButtonWidth () const
 
int mediumButtonWidth () const
 
void setIconSizeMultiplier (fltp04 size_multiplier)
 
Vector< 2, int > minSize () const
 
Vector< 2, int > estimatedSize () const
 
virtual void setVisible (bool is_visible) override
 
void setLayoutMode (RibbonLayoutMode layout_mode)
 
void setNumberOfRows (uint04 number_of_rows)
 
int marginThickness () const
 
void setExpandingIcons (bool expanding)
 
void setTitle (const TranslatedString &title)
 
const TranslatedStringtitle () const
 
uint04 numOfColumns () const
 
void resizeEvent (QResizeEvent *resize_event) override
 
void setFixedNumOfRows (uint01 fixed_num_of_rows)
 
void updateRibbonLayout ()
 
virtual void sortButtons (const std::function< bool(Button *, Button *)> &sorter)
 

Additional Inherited Members

- Signals inherited from RibbonSubGroup
void requestLayoutUpdate ()
 
- Protected Member Functions inherited from RibbonSubGroup
void setVertical (bool is_vertical)
 
void updateButtonSize (uint04 button, int secondary_size, bool use_default)
 
bool event (QEvent *ev) override
 
void customLayout ()
 
void addToButtonSize (Button *button)
 
Vector< 2, int > largeButtonSize ()
 
void updateLayout (QSize size)
 
int secondarySize ()
 
void resetButtonState ()
 
bool requestLarger ()
 
bool requestLarger (int secondary_size)
 
bool requestSmaller (uint01 priority, uint04 col_count)
 
bool requestSmaller (uint01 priority, uint04 col_count, int secondary_size)
 
void autoFitIcons ()
 
uint04 weight () const
 
void updateLabel ()
 
void _ribbonResizeEvent (int primary, int secondary)
 
- Protected Attributes inherited from RibbonSubGroup
Buffer< Button * > m_buttons
 
QGridLayout * m_layout
 
QCustomLabelm_label
 
int m_last_width
 
QWidget * m_button_panel
 
RibbonLayoutMode m_layout_mode
 
Vector< 2, int > m_full_size
 
Vector< 2, int > m_large_button_size
 
Vector< 2, int > m_estimated_size
 
TranslatedString m_title
 
uint01 m_num_of_rows
 
uint01 m_fixed_num_of_rows
 
bool m_is_vertical
 
bool m_ignored_size
 
bool m_expanding_icons
 
bool m_auto_fill_table
 
fltp04 m_icon_size_multiplier
 

Constructor & Destructor Documentation

◆ SnapsEditorWidget()

SnapsEditorWidget ( const DynamicPointer< SnapsManager > & snap_manager,
QWidget * parent = nullptr )

Member Function Documentation

◆ clearAll

void clearAll ( )
slot

◆ selectAll

void selectAll ( )
slot

◆ setupButton()

void setupButton ( Button * button)

◆ sizeHint()

QSize sizeHint ( ) const
override

◆ updateFromUI

void updateFromUI ( Button * button)
slot

◆ updateUI()

void updateUI ( )

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