34#include <NDEVR/RibbonLayoutMode.h>
35#include <NDEVR/ContainerWidget.h>
36#include <NDEVR/QCustomDockWidget.h>
37#include <NDEVR/RibbonArea.h>
38#include <NDEVR/String.h>
39#include <NDEVR/BaseValues.h>
40#include <NDEVR/Dictionary.h>
56 explicit Ribbon(QWidget* parent =
nullptr);
66 return m_groups[group_name];
72 return m_index_groups[index];
85 if (!hasGroup(location))
87 return group(location);
98 QCustomStackedWidgetBase::slideInIdx(idx, direction);
100 void setTabLock(
bool tab_lock) { ContainerWidgetBase::setTabLock(tab_lock); }
102 virtual void _setVertical(
bool is_vertical);
105 bool m_inverse_ribbon_area;
107 uint01 m_fixed_num_of_rows;
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
The UI ribbon is a horizontal menu bar typically located at the top of the application interface or a...
Definition Ribbon.h:54
DockWidget< RibbonGroup > * groupDock(uint04 index)
Definition Ribbon.h:70
Ribbon(QWidget *parent=nullptr)
QSize minimumSizeHint() const override
void setTabLock(bool tab_lock)
Definition Ribbon.h:100
QSize sizeHint() const override
void setLayoutMode(RibbonLayoutMode mode)
Dictionary< TranslatedString, DockWidget< RibbonGroup > * > & groups()
Definition Ribbon.h:94
virtual void removeAllGroups()
void setGroupName(uint04 index, const TranslatedString &group_name)
void updateRibbonLayout()
const RibbonGroup & group(const TranslatedString &group_name) const
void setInverseRibbonArea(bool inverse_ribbon_area)
void slideInIdx(uint04 idx, enum StackAnimationDirection direction=StackAnimationDirection::e_automatic) override
Definition Ribbon.h:97
virtual bool hasGroup(const TranslatedString &group) const
RibbonGroup & group(const TranslatedString &group_name)
RibbonGroup & operator[](const TranslatedString &location)
Definition Ribbon.h:83
bool isVertical()
Definition Ribbon.h:58
DockWidget< RibbonGroup > * groupDock(const TranslatedString &group_name)
Definition Ribbon.h:64
void addBottomRightWidget(QWidget *widget)
virtual void removeGroup(uint04 index)
RibbonGroup & group(uint04 index)
virtual void addGroup(RibbonGroup *group)
void resizeEvent(QResizeEvent *resize_event) override
void setFixedNumOfRows(uint01 fixed_num_of_rows)
virtual RibbonGroup * addGroup(const TranslatedString &label)
Handle window drag events.
void addTopLeftWidget(QWidget *widget)
virtual void removeGroup(const TranslatedString &label)
SectionWidget * section() const
DockWidget< RibbonGroup > * groupDock(const RibbonGroup *group)
Any text displayed to the user should be defined as a TranslatedString which allows the program to lo...
Definition TranslatedString.h:13
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