34#include <NDEVR/RibbonLayoutMode.h>
35#include <NDEVR/Buffer.h>
36#include <NDEVR/String.h>
37#include <NDEVR/Dictionary.h>
45 class TranslatedString;
52 void addSubGroup(QWidget* sub_group);
54 QSize minimumSizeHint()
const override;
56 int currentPrimaryDimension()
const;
57 int currentSecondaryDimension()
const;
58 int marginThickness()
const;
59 bool event(QEvent* ev)
override;
60 int largeButtonWidth()
const;
61 int mediumButtonWidth()
const;
62 uint04 maxNumOfColumns()
const;
63 void setupSeperator(QFrame* seperator)
const;
65 void setNumberOfRows(
uint04 number_of_rows);
66 void ribbonResizeEvent(
int primary,
int secondary);
67 void resizeEvent(QResizeEvent* resize_event)
override;
68 void updateLayout(QSize size);
69 void setVertical(
bool is_vertical);
70 void resetButtonStates();
71 void adjustButtonsToFit(
int primary,
int secondary);
72 void setFixedNumOfRows(
uint01 fixed_num_of_rows);
74 void layoutSubGroups();
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
Definition Dictionary.h:48
Definition RibbonGroup.h:47
Buffer< QFrame * > m_seperators
Definition RibbonGroup.h:77
bool m_is_vertical
Definition RibbonGroup.h:81
int m_last_width
Definition RibbonGroup.h:82
Dictionary< String, RibbonSubGroup * > m_sub_group_lookup
Definition RibbonGroup.h:78
Buffer< QWidget * > m_sub_groups
Definition RibbonGroup.h:76
RibbonLayoutMode m_layout_mode
Definition RibbonGroup.h:80
uint01 m_fixed_num_of_rows
Definition RibbonGroup.h:83
uint04 m_row_num
Definition RibbonGroup.h:79
QBoxLayout * m_layout
Definition RibbonGroup.h:84
Definition RibbonSubGroup.h:43
Definition TranslatedString.h:9
An element of a vector space. An element of the real coordinate space Rn Basis vector,...
Definition Vector.hpp:62
uint8_t uint01
-Defines an alias representing a 1 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:98
RibbonLayoutMode
Definition RibbonLayoutMode.hpp:36
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:120