API Documentation
Loading...
Searching...
No Matches
QCustomToolBox Class Reference

#include <QCustomToolBox.h>

Inheritance diagram for QCustomToolBox:
[legend]
Collaboration diagram for QCustomToolBox:
[legend]

Public Slots

void setCurrentIndexSlot (int index)
 
void setCurrentWidgetSlot (QWidget *widget)
 

Signals

void currentTabChangedSignal (int index)
 
- Signals inherited from QCustomStackedWidgetBase
void animationFinished ()
 

Public Member Functions

 QCustomToolBox (QWidget *parent=nullptr)
 
virtual ~QCustomToolBox ()
 
void setMenuMode (bool menu_mode)
 
uint04 addWidget (QWidget *child) override
 
int addItem (QWidget *widget)
 
int addItem (QWidget *widget, const QString &)
 
int addItem (QWidget *widget, const TranslatedString &)
 
int addItem (QWidget *widget, const QIcon &icon, const QString &label)
 
int insertItem (int index, QWidget *widget)
 
int insertItem (int index, QWidget *widget, const QString &)
 
int insertItem (int index, QWidget *widget, const TranslatedString &)
 
int insertItem (int index, QWidget *widget, const QIcon &icon, const QString &label)
 
SectionContentcontent (int index) const
 
QWidget * removeItem (int index)
 
void removeItem (QWidget *widget)
 
bool isItemEnabled (int index) const
 
void setItemEnabled (int index, bool)
 
QString itemText (int index) const
 
void setItemText (int index, const QString &)
 
QIcon tabIcon (int index) const
 
void setTabIcon (int index, const QIcon &icon)
 
void setTabToolTip (int index, const QString &tip)
 
QString tabToolTip (int index) const
 
void setTabWhatsThis (int index, const QString &text)
 
QString tabWhatsThis (int index) const
 
int currentIndex () const
 
QWidget * currentWidget () const
 
QWidget * widget (int index) const
 
QWidget * tabArea () const
 
int indexOf (QWidget *widget) const
 
int count () const
 
void setCurrentIndex (uint04 index)
 
void setCurrentWidget (QWidget *widget)
 
void setupAsBoxWidget (bool is_box_widget)
 
void setTabVisible (bool tab_visible)
 
void setTabLock (bool lock_tab)
 
void setTabBarAutoHide (bool enabled)
 
void clear ()
 
- 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 Attributes

Dictionary< QWidget *, QCustomDockWidget * > m_managed_section_content
 
QPointer< SectionWidgetm_main_section
 
RibbonArea m_main_ribbon_area
 
- Protected Attributes inherited from ContainerWidgetBase
Dictionary< UUID, SectionWidget * > m_sections
 
Dictionary< UUID, SectionContent * > m_section_content
 
SharedSectionContentAream_top_splitter = nullptr
 
DropOverlaym_drop_overlay
 
SectionWidgetm_top_section_widget = nullptr
 
Buffer< SharedSectionContentArea * > m_shared_content
 
Buffer< std::pair< QPointer< QWidget >, Buffer< QPointer< FloatingWidget > > > > m_fullscreen_stack
 
Buffer< std::pair< QPointer< QWidget >, Buffer< QPointer< FloatingWidget > > > > m_reset_fullscreen_stack
 
Buffer< UUIDm_reset_visible_sections
 
bool m_animate_add = true
 
bool m_reset_is_on_home = false
 
- Protected Attributes inherited from QCustomStackedWidgetBase
int m_speed
 
enum QEasingCurve::Type m_animationtype
 
uint04 m_now
 
uint04 m_next
 
uint04 m_last
 
int m_last_animation_time
 
QPoint m_offset
 
PopupInfo m_popup_info
 
double m_animation_percent
 
uint04 m_current_index
 
Buffer< QWidget * > m_child_widgets
 
QPointer< QPropertyAnimation > m_move_animation
 
bool m_is_animating
 
bool m_vertical
 
bool m_wrap = false
 

Additional Inherited Members

- Public Types inherited from QCustomStackedWidgetBase
enum  t_direction {
  LEFT2RIGHT , RIGHT2LEFT , TOP2BOTTOM , BOTTOM2TOP ,
  AUTOMATIC
}
 
- Static Public Attributes inherited from QCustomStackedWidgetBase
static ApplicationOption< sint04default_stack_animation_speed
 
- Protected Slots inherited from QCustomStackedWidgetBase
void childDestroyedSlot (QObject *widget)
 
void animationDoneSlot ()
 
- Protected Member Functions inherited from ContainerWidgetBase
virtual SectionWidgetaddSectionContent (SectionContent *sc, SectionWidget *sw, DropArea area=e_drop_center)
 
virtual FloatingWidgetaddSectionContent (SectionContent *sc)
 
FloatingWidgetmakeFloating (SectionContent *sc, bool show, PopupInfo start=PopupInfo(), PopupInfo end=PopupInfo())
 
FloatingWidgetmakeFullScreen (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
 
DropOverlaydropOverlay ()
 
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)
 
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 slideInIdx (uint04 idx, enum t_direction direction)
 
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)
 
- Properties inherited from QCustomStackedWidgetBase
double animation_percent
 

Constructor & Destructor Documentation

◆ QCustomToolBox()

QCustomToolBox ( QWidget * parent = nullptr)
explicit

◆ ~QCustomToolBox()

~QCustomToolBox ( )
virtual

Member Function Documentation

◆ addItem() [1/4]

int addItem ( QWidget * widget)

◆ addItem() [2/4]

int addItem ( QWidget * widget,
const QIcon & icon,
const QString & label )

◆ addItem() [3/4]

int addItem ( QWidget * widget,
const QString & title )

◆ addItem() [4/4]

int addItem ( QWidget * widget,
const TranslatedString & title )

◆ addWidget()

uint04 addWidget ( QWidget * child)
overridevirtual

Reimplemented from QCustomStackedWidgetBase.

◆ clear()

void clear ( )

◆ content()

SectionContent * content ( int index) const

◆ count()

int count ( ) const

◆ currentIndex()

int currentIndex ( ) const

◆ currentTabChangedSignal

void currentTabChangedSignal ( int index)
signal

◆ currentWidget()

QWidget * currentWidget ( ) const

◆ indexOf()

int indexOf ( QWidget * widget) const

◆ insertItem() [1/4]

int insertItem ( int index,
QWidget * widget )

◆ insertItem() [2/4]

int insertItem ( int index,
QWidget * widget,
const QIcon & icon,
const QString & label )

◆ insertItem() [3/4]

int insertItem ( int index,
QWidget * widget,
const QString & title )

◆ insertItem() [4/4]

int insertItem ( int index,
QWidget * widget,
const TranslatedString & title )

◆ isItemEnabled()

bool isItemEnabled ( int index) const

◆ itemText()

QString itemText ( int index) const

◆ removeItem() [1/2]

QWidget * removeItem ( int index)

◆ removeItem() [2/2]

void removeItem ( QWidget * widget)

◆ setCurrentIndex()

void setCurrentIndex ( uint04 index)

◆ setCurrentIndexSlot

void setCurrentIndexSlot ( int index)
slot

◆ setCurrentWidget()

void setCurrentWidget ( QWidget * widget)

◆ setCurrentWidgetSlot

void setCurrentWidgetSlot ( QWidget * widget)
slot

◆ setItemEnabled()

void setItemEnabled ( int index,
bool enabled )

◆ setItemText()

void setItemText ( int index,
const QString & title )

◆ setMenuMode()

void setMenuMode ( bool menu_mode)

◆ setTabBarAutoHide()

void setTabBarAutoHide ( bool enabled)

◆ setTabIcon()

void setTabIcon ( int index,
const QIcon & icon )

◆ setTabLock()

void setTabLock ( bool lock_tab)

◆ setTabToolTip()

void setTabToolTip ( int index,
const QString & tip )

◆ setTabVisible()

void setTabVisible ( bool tab_visible)

◆ setTabWhatsThis()

void setTabWhatsThis ( int index,
const QString & text )

◆ setupAsBoxWidget()

void setupAsBoxWidget ( bool is_box_widget)

◆ tabArea()

QWidget * tabArea ( ) const

◆ tabIcon()

QIcon tabIcon ( int index) const

◆ tabToolTip()

QString tabToolTip ( int index) const

◆ tabWhatsThis()

QString tabWhatsThis ( int index) const

◆ widget()

QWidget * widget ( int index) const

Member Data Documentation

◆ m_main_ribbon_area

RibbonArea m_main_ribbon_area
protected

◆ m_main_section

QPointer<SectionWidget> m_main_section
protected

◆ m_managed_section_content

Dictionary<QWidget*, QCustomDockWidget*> m_managed_section_content
protected

The documentation for this class was generated from the following files: