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

#include <RibbonGroup.h>

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

Public Slots

void layoutSubGroups ()
 

Public Member Functions

 RibbonGroup (QWidget *parent=nullptr)
 
RibbonSubGroupaddSubGroup (const TranslatedString &sub_group_name)
 
void addSubGroup (QWidget *sub_group)
 
RibbonSubGroupoperator[] (const TranslatedString &location)
 
QSize minimumSizeHint () const override
 
bool hasSubGroup (const TranslatedString &sub_group) const
 
int currentPrimaryDimension () const
 
int currentSecondaryDimension () const
 
int marginThickness () const
 
bool event (QEvent *ev) override
 
int largeButtonWidth () const
 
int mediumButtonWidth () const
 
uint04 maxNumOfColumns () const
 
void setupSeperator (QFrame *seperator) const
 
Vector< 2, int > minSize () const
 
void setNumberOfRows (uint04 number_of_rows)
 
void ribbonResizeEvent (int primary, int secondary)
 
void resizeEvent (QResizeEvent *resize_event) override
 
void updateLayout (QSize size)
 
void setVertical (bool is_vertical)
 
void resetButtonStates ()
 
void adjustButtonsToFit (int primary, int secondary)
 
void setFixedNumOfRows (uint01 fixed_num_of_rows)
 

Public Attributes

Buffer< QWidget * > m_sub_groups
 
Buffer< QFrame * > m_seperators
 
Dictionary< String, RibbonSubGroup * > m_sub_group_lookup
 
uint04 m_row_num
 
RibbonLayoutMode m_layout_mode
 
bool m_is_vertical
 
int m_last_width
 
uint01 m_fixed_num_of_rows
 
QBoxLayout * m_layout
 

Constructor & Destructor Documentation

◆ RibbonGroup()

RibbonGroup ( QWidget * parent = nullptr)

Member Function Documentation

◆ addSubGroup() [1/2]

RibbonSubGroup * addSubGroup ( const TranslatedString & sub_group_name)

◆ addSubGroup() [2/2]

void addSubGroup ( QWidget * sub_group)

◆ adjustButtonsToFit()

void adjustButtonsToFit ( int primary,
int secondary )

◆ currentPrimaryDimension()

int currentPrimaryDimension ( ) const

◆ currentSecondaryDimension()

int currentSecondaryDimension ( ) const

◆ event()

bool event ( QEvent * ev)
override

◆ hasSubGroup()

bool hasSubGroup ( const TranslatedString & sub_group) const

◆ largeButtonWidth()

int largeButtonWidth ( ) const

◆ layoutSubGroups

void layoutSubGroups ( )
slot

◆ marginThickness()

int marginThickness ( ) const

◆ maxNumOfColumns()

uint04 maxNumOfColumns ( ) const

◆ mediumButtonWidth()

int mediumButtonWidth ( ) const

◆ minimumSizeHint()

QSize minimumSizeHint ( ) const
override

◆ minSize()

Vector< 2, int > minSize ( ) const

◆ operator[]()

RibbonSubGroup & operator[] ( const TranslatedString & location)

◆ resetButtonStates()

void resetButtonStates ( )

◆ resizeEvent()

void resizeEvent ( QResizeEvent * resize_event)
override

◆ ribbonResizeEvent()

void ribbonResizeEvent ( int primary,
int secondary )

◆ setFixedNumOfRows()

void setFixedNumOfRows ( uint01 fixed_num_of_rows)

◆ setNumberOfRows()

void setNumberOfRows ( uint04 number_of_rows)

◆ setupSeperator()

void setupSeperator ( QFrame * seperator) const

◆ setVertical()

void setVertical ( bool is_vertical)

◆ updateLayout()

void updateLayout ( QSize size)

Member Data Documentation

◆ m_fixed_num_of_rows

uint01 m_fixed_num_of_rows

◆ m_is_vertical

bool m_is_vertical

◆ m_last_width

int m_last_width

◆ m_layout

QBoxLayout* m_layout

◆ m_layout_mode

RibbonLayoutMode m_layout_mode

◆ m_row_num

uint04 m_row_num

◆ m_seperators

Buffer<QFrame*> m_seperators

◆ m_sub_group_lookup

Dictionary<String, RibbonSubGroup*> m_sub_group_lookup

◆ m_sub_groups

Buffer<QWidget*> m_sub_groups

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