API Documentation
|
#include <Ribbon.h>
Public Member Functions | |
Ribbon (QWidget *parent=nullptr) | |
~Ribbon () | |
bool | isVertical () |
const RibbonGroup & | group (const TranslatedString &group_name) const |
void | setGroupName (uint04 index, const TranslatedString &group_name) |
void | setInverseRibbonArea (bool inverse_ribbon_area) |
RibbonGroup & | group (const TranslatedString &group_name) |
DockWidget< RibbonGroup > * | groupDock (const RibbonGroup *group) |
DockWidget< RibbonGroup > * | groupDock (const TranslatedString &group_name) |
RibbonGroup & | group (uint04 index) |
DockWidget< RibbonGroup > * | groupDock (uint04 index) |
void | updateRibbonLayout () |
virtual RibbonGroup * | addGroup (const TranslatedString &label) |
Handle window drag events. | |
virtual void | addGroup (RibbonGroup *group) |
virtual void | removeGroup (const TranslatedString &label) |
virtual void | removeGroup (uint04 index) |
virtual void | removeAllGroups () |
virtual bool | hasGroup (const TranslatedString &group) const |
SectionWidget * | section () const |
RibbonGroup & | operator[] (const TranslatedString &location) |
void | setLayoutMode (RibbonLayoutMode mode) |
void | resizeEvent (QResizeEvent *resize_event) override |
void | setFixedNumOfRows (uint01 fixed_num_of_rows) |
QSize | sizeHint () const override |
QSize | minimumSizeHint () const override |
Dictionary< TranslatedString, DockWidget< RibbonGroup > * > & | groups () |
void | addTopLeftWidget (QWidget *widget) |
void | addBottomRightWidget (QWidget *widget) |
void | slideInIdx (uint04 idx, enum t_direction direction=t_direction::AUTOMATIC) override |
void | setTabLock (bool tab_lock) |
Public Member Functions inherited from ContainerWidgetBase | |
ContainerWidgetBase (QWidget *parent=nullptr) | |
virtual | ~ContainerWidgetBase () |
Public Member Functions inherited from QCustomStackedWidgetBase | |
void | setSpeed (int speed) |
void | setAnimation (enum QEasingCurve::Type animationtype) |
void | setVerticalMode (bool vertical=true) |
void | setWrap (bool wrap) |
void | setCustomPixmap (QPixmap *pixmap) |
Protected Member Functions | |
virtual void | _setVertical (bool is_vertical) |
Protected Member Functions inherited from ContainerWidgetBase | |
virtual SectionWidget * | addSectionContent (SectionContent *sc, SectionWidget *sw, DropArea area=e_drop_center) |
virtual FloatingWidget * | addSectionContent (SectionContent *sc) |
FloatingWidget * | makeFloating (SectionContent *sc, bool show, PopupInfo start=PopupInfo(), PopupInfo end=PopupInfo()) |
FloatingWidget * | makeFullScreen (SectionContent *sc, PopupInfo start=PopupInfo()) |
bool | popWindowStack () |
bool | hasSectionContent (SectionContent *sc) |
bool | removeSectionContent (SectionContent *sc) |
void | resizeEvent (QResizeEvent *event) override |
bool | showSectionContent (SectionContent *sc, PopupInfo start=PopupInfo(), PopupInfo end=PopupInfo()) |
bool | hideSectionContent (SectionContent *sc, PopupInfo end=PopupInfo()) |
bool | raiseSectionContent (SectionContent *sc) |
void | bringFloatingWidgetsForward () |
void | setTabLock (bool tab_lock) |
void | beginResetAll () |
void | removeFromResetShow (UUID id) |
void | endResetAll () |
bool | isSectionContentVisible (SectionContent *sc) |
void | swapSectionContent (SectionContent *section_a, SectionContent *section_b) |
Buffer< SectionContent * > | contents () const |
QRect | outerTopDropRect () const |
QRect | outerRightDropRect () const |
QRect | outerBottomDropRect () const |
QRect | outerLeftDropRect () const |
QSize | sizeHint () const override |
QSize | minimumSizeHint () const override |
DropOverlay * | dropOverlay () |
virtual void | setShouldAnimateAdd (bool animate) |
virtual void | clearAllSectionContent () |
virtual void | clearAllNonFloatingContent () |
bool | event (QEvent *event) override |
Protected Member Functions inherited from QCustomStackedWidgetBase | |
QCustomStackedWidgetBase (QWidget *parent=nullptr) | |
virtual | ~QCustomStackedWidgetBase () |
void | resizeEvent (QResizeEvent *event) override |
void | showEvent (QShowEvent *event) override |
void | setAnimationPercent (double animation_percent) |
double | animationPercent () const |
void | paintEvent (QPaintEvent *) override |
virtual void | swapIndices (uint04 a, uint04 b) |
virtual void | moveContent (uint04 from, uint04 to) |
virtual uint04 | addWidget (QWidget *w) |
void | insertWidget (uint04 index, QWidget *w) |
void | removeWidget (QWidget *widget) |
void | removeWidget (QWidget *widget, QWidget *slide_to_if_active) |
bool | eventFilter (QObject *object, QEvent *event) override |
uint04 | activeIndex () const |
QWidget * | activeWidget () const |
QWidget * | currentWidget () const |
QSize | sizeHint () const override |
QSize | minimumSizeHint () const override |
QWidget * | widget (uint04 index) const |
uint04 | indexOf (QWidget *widget) const |
uint04 | currentIndex () const |
uint04 | count () const |
virtual void | setCurrentIdx (uint04 current_index) |
virtual void | slideInNext () |
virtual void | slideInPrev () |
virtual void | slideInIdx (uint04 idx, PopupInfo origin_rect, int delay_time=0, enum t_direction direction=AUTOMATIC) |
virtual void | slideInIdx (uint04 idx, int delay_time=0, enum t_direction direction=AUTOMATIC) |
virtual void | slideInAnimation (PopupInfo origin_rect, enum t_direction direction=AUTOMATIC, bool cache_in_image=false) |
virtual void | slideInAnimation (enum t_direction direction=AUTOMATIC, bool cache_in_image=false) |
virtual void | slideInWgt (QWidget *widget, enum t_direction direction=AUTOMATIC, bool force_slide=false) |
Additional Inherited Members | |
Public Types inherited from QCustomStackedWidgetBase | |
enum | t_direction { LEFT2RIGHT , RIGHT2LEFT , TOP2BOTTOM , BOTTOM2TOP , AUTOMATIC } |
Signals inherited from QCustomStackedWidgetBase | |
void | animationFinished () |
Static Public Attributes inherited from QCustomStackedWidgetBase | |
static ApplicationOption< sint04 > | default_stack_animation_speed |
Protected Slots inherited from QCustomStackedWidgetBase | |
void | childDestroyedSlot (QObject *widget) |
void | animationDoneSlot () |
Properties inherited from QCustomStackedWidgetBase | |
double | animation_percent |
|
explicit |
~Ribbon | ( | ) |
|
protectedvirtual |
void addBottomRightWidget | ( | QWidget * | widget | ) |
|
virtual |
Handle window drag events.
|
virtual |
void addTopLeftWidget | ( | QWidget * | widget | ) |
RibbonGroup & group | ( | const TranslatedString & | group_name | ) |
const RibbonGroup & group | ( | const TranslatedString & | group_name | ) | const |
RibbonGroup & group | ( | uint04 | index | ) |
DockWidget< RibbonGroup > * groupDock | ( | const RibbonGroup * | group | ) |
|
inline |
|
inline |
|
inline |
|
virtual |
|
inline |
|
override |
|
inline |
|
virtual |
|
virtual |
|
virtual |
|
override |
SectionWidget * section | ( | ) | const |
void setFixedNumOfRows | ( | uint01 | fixed_num_of_rows | ) |
void setGroupName | ( | uint04 | index, |
const TranslatedString & | group_name ) |
void setInverseRibbonArea | ( | bool | inverse_ribbon_area | ) |
void setLayoutMode | ( | RibbonLayoutMode | mode | ) |
|
inline |
|
override |
|
inlineoverridevirtual |
Reimplemented from QCustomStackedWidgetBase.
void updateRibbonLayout | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |