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>
49 explicit Ribbon(QWidget* parent =
nullptr);
54 void setInverseRibbonArea(
bool inverse_ribbon_area);
59 return m_groups[group_name];
65 return m_index_groups[index];
67 void updateRibbonLayout();
72 virtual void removeGroup(
uint04 index);
73 virtual void removeAllGroups();
78 if (!hasGroup(location))
80 return group(location);
83 void resizeEvent(QResizeEvent *resize_event)
override;
84 void setFixedNumOfRows(
uint01 fixed_num_of_rows);
85 QSize sizeHint()
const override;
86 QSize minimumSizeHint()
const override;
88 void addTopLeftWidget(QWidget* widget);
89 void addBottomRightWidget(QWidget* widget);
91 QCustomStackedWidgetBase::slideInIdx(idx, direction);
93 void setTabLock(
bool tab_lock) { ContainerWidgetBase::setTabLock(tab_lock); }
95 virtual void _setVertical(
bool is_vertical);
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
DockWidget< RibbonGroup > * groupDock(uint04 index)
Definition Ribbon.h:63
bool m_inverse_ribbon_area
Definition Ribbon.h:99
void setTabLock(bool tab_lock)
Definition Ribbon.h:93
Dictionary< TranslatedString, DockWidget< RibbonGroup > * > & groups()
Definition Ribbon.h:87
bool m_is_vertical
Definition Ribbon.h:98
void slideInIdx(uint04 idx, enum t_direction direction=t_direction::AUTOMATIC) override
Definition Ribbon.h:90
Buffer< DockWidget< RibbonGroup > * > m_index_groups
Definition Ribbon.h:103
Buffer< QPointer< QWidget > > m_top_left_widgets
Definition Ribbon.h:104
Dictionary< TranslatedString, DockWidget< RibbonGroup > * > m_groups
Definition Ribbon.h:102
RibbonLayoutMode m_layout_mode
Definition Ribbon.h:100
uint01 m_fixed_num_of_rows
Definition Ribbon.h:101
RibbonGroup & operator[](const TranslatedString &location)
Definition Ribbon.h:76
Buffer< QPointer< QWidget > > m_bottom_right_widgets
Definition Ribbon.h:105
bool isVertical()
Definition Ribbon.h:51
DockWidget< RibbonGroup > * groupDock(const TranslatedString &group_name)
Definition Ribbon.h:57
Buffer< TranslatedString > m_index_names
Definition Ribbon.h:106
Definition TranslatedString.h:9
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