API Documentation
|
#include <QCustomDockWidget.h>
Public Slots | |
void | highlightDock (bool highlight) |
void | setIconSlot (const QIcon &icon) |
void | setTitleSlot (const QString &title) |
Signals | |
void | closedSignal () |
void | minimizedSignal () |
void | fullscreenSignal (bool is_fullscreen) |
void | dockSelectedSignal (bool) |
void | windowTitleChanged (const TranslatedString &new_title) |
void | windowIconChanged (const QIcon &icon) |
Public Member Functions | |
QCustomDockWidget (RibbonArea ribbon_area, ContainerWidgetBase *container=nullptr) | |
QCustomDockWidget (QWidget *main_widget, RibbonArea ribbon_area, ContainerWidgetBase *container=nullptr) | |
QCustomDockWidget (QWidget *main_widget, ContainerWidgetBase *container=nullptr) | |
virtual | ~QCustomDockWidget () |
void | setMainWidget (QWidget *widget) |
QWidget * | mainWidget () |
QString | windowTitle () const |
void | setSize (QSize size) |
SectionContent * | content () const |
void | showDock (bool show_dock) |
void | removeDock (bool delete_when_finished) |
bool | isVisible () const |
void | setupButton (Button *button) |
void | showDockFullscreen (bool show_dock, const PopupInfo &start_location=PopupInfo()) |
void | showDock (bool show_dock, DropArea area, SectionWidget *section) |
void | showDock (bool show_dock, const PopupInfo &start_location, SectionWidget *section=nullptr) |
void | showDock (bool show_dock, const PopupInfo &start_location, const PopupInfo &end_location, SectionWidget *section=nullptr) |
QSize | sizeHint () const |
void | setSizeHint (const QSize &size) |
bool | isDockFullscreen () const |
virtual void | setDockSelected (bool selected) override |
virtual void | setIcon (const QIcon &icon) override |
QIcon | icon () const |
virtual void | setTitle (const TranslatedString &title) override |
virtual void | setupDialogButton (Button *button) |
virtual void | removeButton (Button *button) |
void | setWindowFlags (Qt::WindowFlags type) |
void | setWindowFlag (Qt::WindowType type, bool on=true) |
int | width () const |
int | height () const |
void | setVisible (bool visible) |
void | setAllowAutoHideTitle (bool allow_auto_hide) |
Public Member Functions inherited from DockItem | |
DockItem (RibbonArea ribbon_area, ContainerWidgetBase *container=nullptr) | |
DockItem (ContainerWidgetBase *container=nullptr) | |
virtual | ~DockItem () |
void | setRibbonArea (RibbonArea ribbon_area) |
void | setDockArea (DropArea drop_area, SectionWidget *section) |
SectionIconTab * | titleWidget () const |
ContainerWidgetBase * | container () const |
SectionWidget * | section () const |
FloatingWidget * | floatingWidget () const |
virtual void | setContainer (ContainerWidgetBase *container) |
virtual void | swapWith (DockItem *other_widget) |
void | setClosable (bool closable) |
void | setHidable (bool hidable) |
void | setWindowable (bool hidable) |
void | setShowTab (bool show_tab) |
void | setMoveable (bool movable) |
bool | isDocked () const |
bool | isDockVisible () const |
void | setTabFlat (bool flat) |
void | moveTabToEnd () |
void | moveTabToStart () |
bool | isClosable () const |
bool | isHidable () const |
bool | isWindowable () const |
bool | isMovable () const |
bool | showTab () const |
bool | useTabTitle () const |
virtual void | setUseTabTitle (bool use_tab_title) |
bool | isDockSelected () const |
virtual void | setIconID (const String &icon) |
virtual const TranslatedString & | title () const |
Protected Slots | |
void | onFullscreenButtonClicked (bool fullscreen) |
void | onCloseButtonClicked () |
Protected Member Functions | |
virtual void | createSectionContent () override |
Protected Member Functions inherited from DockItem | |
virtual void | initialize () |
Protected Attributes | |
QPointer< QWidget > | m_main_widget |
Buffer< Button * > | m_buttons_to_add |
bool | m_highlight_dock |
QSize | m_size_hint |
Protected Attributes inherited from DockItem | |
UUID | m_uuid |
SectionIconTab * | m_icon_title |
SectionContent * | m_section_content |
SectionWidget * | m_original_section |
RibbonArea | m_prefered_ribbon_area |
QPointer< ContainerWidgetBase > | m_container |
String | m_icon_id |
QIcon | m_icon |
TranslatedString | m_title |
bool | m_is_closable |
bool | m_is_windowable |
bool | m_is_hidable |
bool | m_is_movable |
bool | m_is_selected |
bool | m_show_tab |
bool | m_use_tab_title |
|
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 |