34#include <NDEVR/RibbonLayoutMode.h>
35#include <NDEVR/Buffer.h>
36#include <NDEVR/String.h>
37#include <NDEVR/Dictionary.h>
45 class TranslatedString;
63 bool event(QEvent* ev)
override;
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
A hash-based key-value store, useful for quick associative lookups. Key features include:
Definition Dictionary.h:61
Represents the "Tab" of a widget. For example sections such as Home, View, Edit, Measurements would a...
Definition RibbonGroup.h:51
Buffer< QFrame * > m_seperators
Definition RibbonGroup.h:81
QSize minimumSizeHint() const override
int currentSecondaryDimension() const
int marginThickness() const
RibbonSubGroup * addSubGroup(const TranslatedString &sub_group_name)
void setupSeperator(QFrame *seperator) const
RibbonGroup(QWidget *parent=nullptr)
bool hasSubGroup(const TranslatedString &sub_group) const
Vector< 2, int > minSize() const
bool m_is_vertical
Definition RibbonGroup.h:85
int currentPrimaryDimension() const
int m_last_width
Definition RibbonGroup.h:86
int largeButtonWidth() const
void updateLayout(QSize size)
uint04 maxNumOfColumns() const
Dictionary< String, RibbonSubGroup * > m_sub_group_lookup
Definition RibbonGroup.h:82
RibbonSubGroup & operator[](const TranslatedString &location)
void adjustButtonsToFit(int primary, int secondary)
Buffer< QWidget * > m_sub_groups
Definition RibbonGroup.h:80
bool event(QEvent *ev) override
RibbonLayoutMode m_layout_mode
Definition RibbonGroup.h:84
uint01 m_fixed_num_of_rows
Definition RibbonGroup.h:87
uint04 m_row_num
Definition RibbonGroup.h:83
void setNumberOfRows(uint04 number_of_rows)
void setVertical(bool is_vertical)
void resizeEvent(QResizeEvent *resize_event) override
void ribbonResizeEvent(int primary, int secondary)
void setFixedNumOfRows(uint01 fixed_num_of_rows)
void addSubGroup(QWidget *sub_group)
QBoxLayout * m_layout
Definition RibbonGroup.h:88
int mediumButtonWidth() const
Represents a sub-section of "Tab" of a ribbon represting a grouping of buttons or widgets within a ta...
Definition RibbonSubGroup.h:47
Any text displayed to the user should be defined as a TranslatedString which allows the program to lo...
Definition TranslatedString.h:13
A fixed-size array with better performance compared to dynamic containers.
Definition Vector.hpp:60
uint8_t uint01
-Defines an alias representing a 1 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:80
RibbonLayoutMode
The orientations a ribbon can take on.
Definition RibbonLayoutMode.hpp:39
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:96