![]() |
API Documentation
|
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>
Signals | |
| void | requestLayoutUpdate () |
Public Member Functions | |
| Button * | addButton (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 TranslatedString & | title () 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 |
| QCustomLabel * | m_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 |
Represents a sub-section of "Tab" of a ribbon represting a grouping of buttons or widgets within a tab that provide similar functions.
| RibbonSubGroup | ( | QWidget * | parent = nullptr | ) |
| RibbonSubGroup | ( | const TranslatedString & | title, |
| QWidget * | parent = nullptr ) |
| Button * addButton | ( | Button * | button, |
| uint04 | index = Constant< uint04 >::Invalid, | ||
| bool | update_layout = false ) |
| Vector< 2, int > calcSize | ( | ) | const |
| void clear | ( | ) |
| int currentPrimary | ( | ) | const |
| int currentSecondary | ( | ) | const |
|
inline |
| void init | ( | ) |
| int largeButtonWidth | ( | ) | const |
| int marginThickness | ( | ) | const |
| int mediumButtonWidth | ( | ) | const |
|
override |
| Vector< 2, int > minSize | ( | ) | const |
| uint04 numOfColumns | ( | ) | const |
| void removeButton | ( | Button * | button | ) |
|
signal |
|
override |
| void setExpandingIcons | ( | bool | expanding | ) |
| void setFixedNumOfRows | ( | uint01 | fixed_num_of_rows | ) |
| void setIconSizeMultiplier | ( | fltp04 | size_multiplier | ) |
| void setIgnoredSize | ( | bool | ignored | ) |
|
inline |
| void setNumberOfRows | ( | uint04 | number_of_rows | ) |
| void setSpacing | ( | int | spacing | ) |
| void setTitle | ( | const TranslatedString & | title | ) |
| void setVertical | ( | bool | is_vertical | ) |
|
overridevirtual |
|
override |
|
inline |
| void updateRibbonLayout | ( | ) |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |