API Documentation
|
Provides a wrapper for a widget that can be docked inside a Container or floated as a top-level window within the application. More...
#include <QCustomDockWidget.h>
Public Slots | |
void | highlightDock (bool highlight) |
void | setIconSlot (const QIcon &icon) |
void | setTitleSlot (const QString &title) |
Signals | |
void | closedSignal () |
void | dockSelectedSignal (bool) |
void | fullscreenSignal (bool is_fullscreen) |
void | minimizedSignal () |
void | windowIconChanged (const QIcon &icon) |
void | windowTitleChanged (const TranslatedString &new_title) |
Public Member Functions | |
SectionContent * | content () const |
int | height () const |
QIcon | icon () const |
bool | isDockFullscreen () const |
bool | isVisible () const |
QWidget * | mainWidget () |
QCustomDockWidget (QWidget *main_widget, ContainerWidgetBase *container=nullptr) | |
QCustomDockWidget (QWidget *main_widget, RibbonArea ribbon_area, ContainerWidgetBase *container=nullptr) | |
QCustomDockWidget (RibbonArea ribbon_area, ContainerWidgetBase *container=nullptr) | |
virtual void | removeButton (Button *button) |
void | removeDock (bool delete_when_finished) |
void | setAllowAutoHideTitle (bool allow_auto_hide) |
virtual void | setDockSelected (bool selected) override |
virtual void | setIcon (const QIcon &icon) override |
void | setMainWidget (QWidget *widget) |
void | setSize (QSize size) |
void | setSizeHint (const QSize &size) |
virtual void | setTitle (const TranslatedString &title) override |
void | setupButton (Button *button) |
virtual void | setupDialogButton (Button *button) |
void | setVisible (bool visible) |
void | setWindowFlag (Qt::WindowType type, bool on=true) |
void | setWindowFlags (Qt::WindowFlags type) |
void | showDock (bool show_dock) |
void | showDock (bool show_dock, const PopupInfo &start_location, const PopupInfo &end_location, SectionWidget *section=nullptr) |
void | showDock (bool show_dock, const PopupInfo &start_location, SectionWidget *section=nullptr) |
void | showDock (bool show_dock, DropArea area, SectionWidget *section) |
void | showDockFullscreen (bool show_dock, const PopupInfo &start_location=PopupInfo()) |
QSize | sizeHint () const |
int | width () const |
QString | windowTitle () const |
virtual | ~QCustomDockWidget () |
Public Member Functions inherited from DockItem | |
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) |
void | setHidable (bool hidable) |
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 | 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 () |
Protected Slots | |
void | onCloseButtonClicked () |
void | onFullscreenButtonClicked (bool fullscreen) |
Protected Member Functions | |
virtual void | createSectionContent () override |
Protected Member Functions inherited from DockItem | |
virtual void | initialize () |
Protected Attributes | |
Buffer< Button * > | m_buttons_to_add |
bool | m_highlight_dock |
QPointer< QWidget > | m_main_widget |
QSize | m_size_hint |
Protected Attributes inherited from DockItem | |
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 |
Provides a wrapper for a widget that can be docked inside a Container or floated as a top-level window within the application.
|
explicit |
|
explicit |
|
explicit |
|
virtual |
|
signal |
|
inline |
|
overrideprotectedvirtual |
Reimplemented from DockItem.
|
signal |
|
signal |
int height | ( | ) | const |
|
slot |
QIcon icon | ( | ) | const |
bool isDockFullscreen | ( | ) | const |
bool isVisible | ( | ) | const |
|
inline |
|
signal |
|
protectedslot |
|
protectedslot |
|
virtual |
void removeDock | ( | bool | delete_when_finished | ) |
void setAllowAutoHideTitle | ( | bool | allow_auto_hide | ) |
|
overridevirtual |
Reimplemented from DockItem.
|
overridevirtual |
Reimplemented from DockItem.
|
slot |
void setMainWidget | ( | QWidget * | widget | ) |
void setSize | ( | QSize | size | ) |
void setSizeHint | ( | const QSize & | size | ) |
|
overridevirtual |
Reimplemented from DockItem.
|
slot |
void setupButton | ( | Button * | button | ) |
|
virtual |
void setVisible | ( | bool | visible | ) |
void setWindowFlag | ( | Qt::WindowType | type, |
bool | on = true ) |
void setWindowFlags | ( | Qt::WindowFlags | type | ) |
void showDock | ( | bool | show_dock | ) |
void showDock | ( | bool | show_dock, |
const PopupInfo & | start_location, | ||
const PopupInfo & | end_location, | ||
SectionWidget * | section = nullptr ) |
void showDock | ( | bool | show_dock, |
const PopupInfo & | start_location, | ||
SectionWidget * | section = nullptr ) |
void showDock | ( | bool | show_dock, |
DropArea | area, | ||
SectionWidget * | section ) |
QSize sizeHint | ( | ) | const |
int width | ( | ) | const |
|
signal |
QString windowTitle | ( | ) | const |
|
signal |
|
protected |
|
protected |
|
protected |