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

Represents a sub-section of "Tab" of a ribbon represting a grouping of buttons or widgets within a tab that provide similar functions. More...

#include <RibbonSubGroup.h>

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

Signals

void requestLayoutUpdate ()
 

Public Member Functions

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

Protected Attributes

bool m_auto_fill_table
 
QWidget * m_button_panel
 
Buffer< Button * > m_buttons
 
Vector< 2, int > m_estimated_size
 
bool m_expanding_icons
 
uint01 m_fixed_num_of_rows
 
Vector< 2, int > m_full_size
 
fltp04 m_icon_size_multiplier
 
bool m_ignored_size
 
bool m_is_vertical
 
QCustomLabelm_label
 
Vector< 2, int > m_large_button_size
 
int m_last_width
 
QGridLayout * m_layout
 
RibbonLayoutMode m_layout_mode
 
uint01 m_num_of_rows
 
TranslatedString m_title
 

Friends

class RibbonGroup
 

Detailed Description

Represents a sub-section of "Tab" of a ribbon represting a grouping of buttons or widgets within a tab that provide similar functions.


Constructor & Destructor Documentation

◆ RibbonSubGroup() [1/2]

RibbonSubGroup ( QWidget * parent = nullptr)

◆ RibbonSubGroup() [2/2]

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

Member Function Documentation

◆ addButton()

Button * addButton ( Button * button,
uint04 index = Constantuint04 >::Invalid,
bool update_layout = false )

◆ buttons()

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

◆ calcSize()

Vector< 2, int > calcSize ( ) const

◆ clear()

void clear ( )

◆ currentPrimary()

int currentPrimary ( ) const

◆ currentSecondary()

int currentSecondary ( ) const

◆ estimatedSize()

Vector< 2, int > estimatedSize ( ) const
inline

◆ init()

void init ( )

◆ 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)

◆ requestLayoutUpdate

void requestLayoutUpdate ( )
signal

◆ resizeEvent()

void resizeEvent ( QResizeEvent * resize_event)
override

◆ 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)

◆ setVisible()

virtual void setVisible ( bool is_visible)
overridevirtual

◆ sizeHint()

QSize sizeHint ( ) const
override

◆ sortButtons()

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

◆ title()

const TranslatedString & title ( ) const
inline

◆ updateRibbonLayout()

void updateRibbonLayout ( )

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 file: