|
QtCanpool 3.3.0
|
Title bar of a dock panel. 更多...
#include <qxdock/docktitlebar.h>

Public 类型 | |
| using | Super = QFrame |
Public 成员函数 | |
| DockTitleBar (DockPanel *parent=nullptr) | |
| virtual | ~DockTitleBar () |
| DockTabBar * | tabBar () const |
| DockPanel * | dockPanel () const |
| QAbstractButton * | button (Qx::DockTitleBarButton which) const |
| DockLabel * | autoHideTitleLabel () const |
| Returns the auto hide title label, used when the dock panel is expanded and auto hidden | |
| void | showAutoHideControls (bool show) |
| Call this function, to create all the required auto hide controls | |
| void | updateDockWidgetActionsButtons () |
| Updates the visibility of the dock widget actions in the title bar | |
| virtual void | setVisible (bool visible) override |
| Marks the tabs menu outdated before it calls its base class implementation | |
| void | insertWidget (int index, QWidget *widget) |
| Inserts a custom widget at position index into this title bar. | |
| int | indexOf (QWidget *widget) const |
| Searches for widget in this title bar. | |
| QString | titleBarButtonToolTip (Qx::DockTitleBarButton id) const |
| Close group tool tip based on the current state Auto hide widgets can only have one dock widget so it does not make sense for the tooltip to show close group | |
| bool | isAutoHide () const |
| void | setAreaFloating () |
| Moves the dock panel into its own floating widget if the area DockWidgetFloatable flag is true | |
| void | tabBarClicked (int index) |
| void | markTabsMenuOutdated () |
| Call this slot to tell the title bar that it should update the tabs menu the next time it is shown. | |
| void | onTabsMenuAboutToShow () |
| void | onTabsMenuActionTriggered (QAction *a) |
| void | onCurrentTabChanged (int index) |
| void | onCloseButtonClicked () |
| void | onUndockButtonClicked () |
| void | onAutoHideButtonClicked () |
| void | minimizeAutoHideContainer () |
| void | onAutoHideDockAreaActionClicked () |
| void | onAutoHideToActionClicked () |
| void | onAutoHideCloseActionTriggered () |
Protected 成员函数 | |
| virtual void | mousePressEvent (QMouseEvent *e) override |
| virtual void | mouseReleaseEvent (QMouseEvent *e) override |
| virtual void | mouseMoveEvent (QMouseEvent *e) override |
| virtual void | mouseDoubleClickEvent (QMouseEvent *e) override |
| virtual void | contextMenuEvent (QContextMenuEvent *e) override |
| virtual void | resizeEvent (QResizeEvent *e) override |
Title bar of a dock panel.
The title bar contains a tabbar with all tabs for a dock widget group and with a tabs menu button, a undock button and a close button.
在文件 docktitlebar.h 第 25 行定义.
| using QxDock::DockTitleBar::Super = QFrame |
在文件 docktitlebar.h 第 29 行定义.
|
explicit |
在文件 docktitlebar.cpp 第 351 行定义.
|
virtual |
在文件 docktitlebar.cpp 第 364 行定义.
| DockLabel * QxDock::DockTitleBar::autoHideTitleLabel | ( | ) | const |
Returns the auto hide title label, used when the dock panel is expanded and auto hidden
在文件 docktitlebar.cpp 第 404 行定义.
| QAbstractButton * QxDock::DockTitleBar::button | ( | Qx::DockTitleBarButton | which | ) | const |
在文件 docktitlebar.cpp 第 381 行定义.
|
overrideprotectedvirtual |
在文件 docktitlebar.cpp 第 780 行定义.
| DockPanel * QxDock::DockTitleBar::dockPanel | ( | ) | const |
在文件 docktitlebar.cpp 第 375 行定义.
| int QxDock::DockTitleBar::indexOf | ( | QWidget * | widget | ) | const |
Searches for widget in this title bar.
You can use this function, to get the position of the default widget in the tile bar.
在文件 docktitlebar.cpp 第 486 行定义.
| void QxDock::DockTitleBar::insertWidget | ( | int | index, |
| QWidget * | widget | ||
| ) |
Inserts a custom widget at position index into this title bar.
If index is negative, the widget is added at the end. You can use this function to insert custom widgets into the title bar.
在文件 docktitlebar.cpp 第 471 行定义.
| bool QxDock::DockTitleBar::isAutoHide | ( | ) | const |
在文件 docktitlebar.cpp 第 531 行定义.
| void QxDock::DockTitleBar::markTabsMenuOutdated | ( | ) |
Call this slot to tell the title bar that it should update the tabs menu the next time it is shown.
在文件 docktitlebar.cpp 第 562 行定义.
| void QxDock::DockTitleBar::minimizeAutoHideContainer | ( | ) |
在文件 docktitlebar.cpp 第 663 行定义.
|
overrideprotectedvirtual |
在文件 docktitlebar.cpp 第 764 行定义.
|
overrideprotectedvirtual |
在文件 docktitlebar.cpp 第 723 行定义.
|
overrideprotectedvirtual |
在文件 docktitlebar.cpp 第 691 行定义.
|
overrideprotectedvirtual |
在文件 docktitlebar.cpp 第 706 行定义.
| void QxDock::DockTitleBar::onAutoHideButtonClicked | ( | ) |
在文件 docktitlebar.cpp 第 652 行定义.
| void QxDock::DockTitleBar::onAutoHideCloseActionTriggered | ( | ) |
在文件 docktitlebar.cpp 第 685 行定义.
| void QxDock::DockTitleBar::onAutoHideDockAreaActionClicked | ( | ) |
在文件 docktitlebar.cpp 第 672 行定义.
| void QxDock::DockTitleBar::onAutoHideToActionClicked | ( | ) |
在文件 docktitlebar.cpp 第 678 行定义.
| void QxDock::DockTitleBar::onCloseButtonClicked | ( | ) |
在文件 docktitlebar.cpp 第 630 行定义.
| void QxDock::DockTitleBar::onCurrentTabChanged | ( | int | index | ) |
在文件 docktitlebar.cpp 第 617 行定义.
| void QxDock::DockTitleBar::onTabsMenuAboutToShow | ( | ) |
在文件 docktitlebar.cpp 第 589 行定义.
| void QxDock::DockTitleBar::onTabsMenuActionTriggered | ( | QAction * | a | ) |
在文件 docktitlebar.cpp 第 609 行定义.
| void QxDock::DockTitleBar::onUndockButtonClicked | ( | ) |
在文件 docktitlebar.cpp 第 644 行定义.
|
overrideprotectedvirtual |
在文件 docktitlebar.cpp 第 827 行定义.
| void QxDock::DockTitleBar::setAreaFloating | ( | ) |
Moves the dock panel into its own floating widget if the area DockWidgetFloatable flag is true
在文件 docktitlebar.cpp 第 541 行定义.
|
overridevirtual |
Marks the tabs menu outdated before it calls its base class implementation
在文件 docktitlebar.cpp 第 460 行定义.
| void QxDock::DockTitleBar::showAutoHideControls | ( | bool | show | ) |
Call this function, to create all the required auto hide controls
在文件 docktitlebar.cpp 第 413 行定义.
| DockTabBar * QxDock::DockTitleBar::tabBar | ( | ) | const |
在文件 docktitlebar.cpp 第 369 行定义.
| void QxDock::DockTitleBar::tabBarClicked | ( | int | index | ) |
| QString QxDock::DockTitleBar::titleBarButtonToolTip | ( | Qx::DockTitleBarButton | id | ) | const |
Close group tool tip based on the current state Auto hide widgets can only have one dock widget so it does not make sense for the tooltip to show close group
在文件 docktitlebar.cpp 第 496 行定义.
| void QxDock::DockTitleBar::updateDockWidgetActionsButtons | ( | ) |
Updates the visibility of the dock widget actions in the title bar
在文件 docktitlebar.cpp 第 424 行定义.