A DockItem that represents a button. These can be placed on the Docking widget to add functionality. For example, in touch mode we use this class to have a "Add View" button. More...
#include <CustomDockButton.h>
Signals | |
void | closedSignal () |
Public Member Functions | |
const std::function< void(SectionContent *)> & | callback () |
CustomDockButton (const TranslatedString &name, const std::function< void(SectionContent *)> &callback, ContainerWidgetBase *container=nullptr) | |
CustomDockButton (const TranslatedString &name, const std::function< void(SectionContent *)> &callback, RibbonArea ribbon_area, ContainerWidgetBase *container=nullptr) | |
CustomDockButton (const TranslatedString &name, RibbonArea ribbon_area, ContainerWidgetBase *container=nullptr) | |
void | removeButton () |
void | setCallback (const std::function< void(SectionContent *)> &callback) |
virtual void | setupDialogButton (Button *button) |
void | showButton (bool show_dock, SectionWidget *section) |
virtual | ~CustomDockButton () |
![]() | |
ContainerWidgetBase * | container () const |
DockItem (ContainerWidgetBase *container=nullptr) | |
DockItem (RibbonArea ribbon_area, ContainerWidgetBase *container=nullptr) | |
FloatingWidget * | floatingWidget () const |
bool | isClosable () const |
bool | isDocked () const |
bool | isDockSelected () const |
bool | isDockVisible () const |
bool | isHidable () const |
bool | isMovable () const |
bool | isWindowable () const |
void | moveTabToEnd () |
void | moveTabToStart () |
SectionWidget * | section () const |
void | setClosable (bool closable) |
virtual void | setContainer (ContainerWidgetBase *container) |
void | setDockArea (DropArea drop_area, SectionWidget *section) |
virtual void | setDockSelected (bool selected) |
void | setHidable (bool hidable) |
virtual void | setIcon (const QIcon &icon) |
virtual void | setIconID (const String &icon) |
void | setMoveable (bool movable) |
void | setRibbonArea (RibbonArea ribbon_area) |
void | setShowTab (bool show_tab) |
void | setTabFlat (bool flat) |
virtual void | setTitle (const TranslatedString &title) |
virtual void | setUseTabTitle (bool use_tab_title) |
void | setWindowable (bool hidable) |
bool | showTab () const |
virtual void | swapWith (DockItem *other_widget) |
virtual const TranslatedString & | title () const |
SectionIconTab * | titleWidget () const |
bool | useTabTitle () const |
virtual | ~DockItem () |
Additional Inherited Members | |
![]() | |
virtual void | initialize () |
![]() | |
QPointer< ContainerWidgetBase > | m_container |
QIcon | m_icon |
String | m_icon_id |
SectionIconTab * | m_icon_title |
bool | m_is_closable |
bool | m_is_hidable |
bool | m_is_movable |
bool | m_is_selected |
bool | m_is_windowable |
SectionWidget * | m_original_section |
RibbonArea | m_prefered_ribbon_area |
SectionContent * | m_section_content |
bool | m_show_tab |
TranslatedString | m_title |
bool | m_use_tab_title |
UUID | m_uuid |
A DockItem that represents a button. These can be placed on the Docking widget to add functionality. For example, in touch mode we use this class to have a "Add View" button.
|
explicit |
|
explicit |
|
explicit |
|
virtual |
const std::function< void(SectionContent *)> & callback | ( | ) |
|
signal |
void removeButton | ( | ) |
void setCallback | ( | const std::function< void(SectionContent *)> & | callback | ) |
|
virtual |
void showButton | ( | bool | show_dock, |
SectionWidget * | section ) |