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

#include <RibbonSubGroup.h>

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

Signals

void requestLayoutUpdate ()
 

Public Member Functions

 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)
 

Protected Member Functions

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

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
 

Friends

class RibbonGroup
 

Constructor & Destructor Documentation

◆ RibbonSubGroup() [1/2]

RibbonSubGroup ( QWidget * parent = nullptr)

◆ RibbonSubGroup() [2/2]

RibbonSubGroup ( const TranslatedString & title,
QWidget * parent = nullptr )

Member Function Documentation

◆ _ribbonResizeEvent()

void _ribbonResizeEvent ( int primary,
int secondary )
protected

◆ addButton()

Button * addButton ( Button * button,
uint04 index = Constant<uint04>::NaN,
bool update_layout = false )

◆ addToButtonSize()

void addToButtonSize ( Button * button)
protected

◆ autoFitIcons()

void autoFitIcons ( )
protected

◆ buttons()

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

◆ calcSize()

Vector< 2, int > calcSize ( ) const

◆ clear()

void clear ( )

◆ currentPrimary()

int currentPrimary ( ) const

◆ currentSecondary()

int currentSecondary ( ) const

◆ customLayout()

void customLayout ( )
protected

◆ estimatedSize()

Vector< 2, int > estimatedSize ( ) const
inline

◆ event()

bool event ( QEvent * ev)
overrideprotected

◆ init()

void init ( )

◆ largeButtonSize()

Vector< 2, int > largeButtonSize ( )
inlineprotected

◆ largeButtonWidth()

int largeButtonWidth ( ) const

◆ marginThickness()

int marginThickness ( ) const

◆ mediumButtonWidth()

int mediumButtonWidth ( ) const

◆ minimumSizeHint()

QSize minimumSizeHint ( ) const
override

◆ minSize()

Vector< 2, int > minSize ( ) const

◆ numOfColumns()

uint04 numOfColumns ( ) const

◆ removeButton()

void removeButton ( Button * button)

◆ requestLarger() [1/2]

bool requestLarger ( )
protected

◆ requestLarger() [2/2]

bool requestLarger ( int secondary_size)
protected

◆ requestLayoutUpdate

void requestLayoutUpdate ( )
signal

◆ requestSmaller() [1/2]

bool requestSmaller ( uint01 priority,
uint04 col_count )
protected

◆ requestSmaller() [2/2]

bool requestSmaller ( uint01 priority,
uint04 col_count,
int secondary_size )
protected

◆ resetButtonState()

void resetButtonState ( )
protected

◆ resizeEvent()

void resizeEvent ( QResizeEvent * resize_event)
override

◆ secondarySize()

int secondarySize ( )
protected

◆ setExpandingIcons()

void setExpandingIcons ( bool expanding)

◆ setFixedNumOfRows()

void setFixedNumOfRows ( uint01 fixed_num_of_rows)

◆ setIconSizeMultiplier()

void setIconSizeMultiplier ( fltp04 size_multiplier)

◆ setIgnoredSize()

void setIgnoredSize ( bool ignored)

◆ setLayoutMode()

void setLayoutMode ( RibbonLayoutMode layout_mode)
inline

◆ setNumberOfRows()

void setNumberOfRows ( uint04 number_of_rows)

◆ setSpacing()

void setSpacing ( int spacing)

◆ setTitle()

void setTitle ( const TranslatedString & title)

◆ setVertical()

void setVertical ( bool is_vertical)
protected

◆ setVisible()

void setVisible ( bool is_visible)
overridevirtual

◆ sizeHint()

QSize sizeHint ( ) const
override

◆ sortButtons()

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

◆ title()

const TranslatedString & title ( ) const
inline

◆ updateButtonSize()

void updateButtonSize ( uint04 button,
int secondary_size,
bool use_default )
protected

◆ updateLabel()

void updateLabel ( )
protected

◆ updateLayout()

void updateLayout ( QSize size)
protected

◆ updateRibbonLayout()

void updateRibbonLayout ( )

◆ weight()

uint04 weight ( ) const
protected

Friends And Related Symbol Documentation

◆ RibbonGroup

friend class RibbonGroup
friend

Member Data Documentation

◆ m_auto_fill_table

bool m_auto_fill_table
protected

◆ m_button_panel

QWidget* m_button_panel
protected

◆ m_buttons

Buffer<Button*> m_buttons
protected

◆ m_estimated_size

Vector<2, int> m_estimated_size
protected

◆ m_expanding_icons

bool m_expanding_icons
protected

◆ m_fixed_num_of_rows

uint01 m_fixed_num_of_rows
protected

◆ m_full_size

Vector<2, int> m_full_size
protected

◆ m_icon_size_multiplier

fltp04 m_icon_size_multiplier
protected

◆ m_ignored_size

bool m_ignored_size
protected

◆ m_is_vertical

bool m_is_vertical
protected

◆ m_label

QCustomLabel* m_label
protected

◆ m_large_button_size

Vector<2, int> m_large_button_size
protected

◆ m_last_width

int m_last_width
protected

◆ m_layout

QGridLayout* m_layout
protected

◆ m_layout_mode

RibbonLayoutMode m_layout_mode
protected

◆ m_num_of_rows

uint01 m_num_of_rows
protected

◆ m_title

TranslatedString m_title
protected

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