Represents the "Tab" of a widget. For example sections such as Home, View, Edit, Measurements would all be RibbonGroups and children of a Ribbon object. More...
#include <RibbonGroup.h>
Public Slots | |
void | layoutSubGroups () |
Public Member Functions | |
RibbonSubGroup * | addSubGroup (const TranslatedString &sub_group_name) |
void | addSubGroup (QWidget *sub_group) |
void | adjustButtonsToFit (int primary, int secondary) |
int | currentPrimaryDimension () const |
int | currentSecondaryDimension () const |
bool | event (QEvent *ev) override |
bool | hasSubGroup (const TranslatedString &sub_group) const |
int | largeButtonWidth () const |
int | marginThickness () const |
uint04 | maxNumOfColumns () const |
int | mediumButtonWidth () const |
QSize | minimumSizeHint () const override |
Vector< 2, int > | minSize () const |
RibbonSubGroup & | operator[] (const TranslatedString &location) |
void | resetButtonStates () |
void | resizeEvent (QResizeEvent *resize_event) override |
RibbonGroup (QWidget *parent=nullptr) | |
void | ribbonResizeEvent (int primary, int secondary) |
void | setFixedNumOfRows (uint01 fixed_num_of_rows) |
void | setNumberOfRows (uint04 number_of_rows) |
void | setupSeperator (QFrame *seperator) const |
void | setVertical (bool is_vertical) |
void | updateLayout (QSize size) |
Public Attributes | |
uint01 | m_fixed_num_of_rows |
bool | m_is_vertical |
int | m_last_width |
QBoxLayout * | m_layout |
RibbonLayoutMode | m_layout_mode |
uint04 | m_row_num |
Buffer< QFrame * > | m_seperators |
Dictionary< String, RibbonSubGroup * > | m_sub_group_lookup |
Buffer< QWidget * > | m_sub_groups |
Represents the "Tab" of a widget. For example sections such as Home, View, Edit, Measurements would all be RibbonGroups and children of a Ribbon object.
RibbonGroup | ( | QWidget * | parent = nullptr | ) |
RibbonSubGroup * addSubGroup | ( | const TranslatedString & | sub_group_name | ) |
void addSubGroup | ( | QWidget * | sub_group | ) |
void adjustButtonsToFit | ( | int | primary, |
int | secondary ) |
int currentPrimaryDimension | ( | ) | const |
int currentSecondaryDimension | ( | ) | const |
|
override |
bool hasSubGroup | ( | const TranslatedString & | sub_group | ) | const |
int largeButtonWidth | ( | ) | const |
|
slot |
int marginThickness | ( | ) | const |
uint04 maxNumOfColumns | ( | ) | const |
int mediumButtonWidth | ( | ) | const |
|
override |
Vector< 2, int > minSize | ( | ) | const |
RibbonSubGroup & operator[] | ( | const TranslatedString & | location | ) |
void resetButtonStates | ( | ) |
|
override |
void ribbonResizeEvent | ( | int | primary, |
int | secondary ) |
void setFixedNumOfRows | ( | uint01 | fixed_num_of_rows | ) |
void setNumberOfRows | ( | uint04 | number_of_rows | ) |
void setupSeperator | ( | QFrame * | seperator | ) | const |
void setVertical | ( | bool | is_vertical | ) |
void updateLayout | ( | QSize | size | ) |
uint01 m_fixed_num_of_rows |
bool m_is_vertical |
int m_last_width |
QBoxLayout* m_layout |
RibbonLayoutMode m_layout_mode |
uint04 m_row_num |
Buffer<QFrame*> m_seperators |
Dictionary<String, RibbonSubGroup*> m_sub_group_lookup |
Buffer<QWidget*> m_sub_groups |