#include <DockAreaTitleBar.h>
Public Types | |
using | Super = QFrame |
Public Slots | |
void | markTabsMenuOutdated () |
Signals | |
void | tabBarClicked (int index) |
Public Member Functions | |
QAbstractButton * | button (TitleBarButton which) const |
CDockAreaTitleBar (CDockAreaWidget *parent) | |
virtual void | contextMenuEvent (QContextMenuEvent *event) override |
int | indexOf (QWidget *widget) const |
void | insertWidget (int index, QWidget *widget) |
virtual void | mouseDoubleClickEvent (QMouseEvent *event) override |
virtual void | mouseMoveEvent (QMouseEvent *ev) override |
virtual void | mousePressEvent (QMouseEvent *ev) override |
virtual void | mouseReleaseEvent (QMouseEvent *ev) override |
virtual void | setVisible (bool Visible) override |
CDockAreaTabBar * | tabBar () const |
void | updateDockWidgetActionsButtons () |
virtual | ~CDockAreaTitleBar () |
Private Slots | |
void | onCloseButtonClicked () |
void | onCurrentTabChanged (int Index) |
void | onTabsMenuAboutToShow () |
void | onTabsMenuActionTriggered (QAction *Action) |
void | onUndockButtonClicked () |
Private Attributes | |
DockAreaTitleBarPrivate * | d |
private data (pimpl) More... | |
Friends | |
struct | DockAreaTitleBarPrivate |
Title bar of a dock area. 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.
Definition at line 50 of file DockAreaTitleBar.h.
using ads::CDockAreaTitleBar::Super = QFrame |
Definition at line 100 of file DockAreaTitleBar.h.
ads::CDockAreaTitleBar::CDockAreaTitleBar | ( | CDockAreaWidget * | parent | ) |
Default Constructor
Definition at line 256 of file DockAreaTitleBar.cpp.
|
virtual |
Virtual Destructor
Definition at line 278 of file DockAreaTitleBar.cpp.
QAbstractButton * ads::CDockAreaTitleBar::button | ( | TitleBarButton | which | ) | const |
Returns the button corresponding to the given title bar button identifier
Definition at line 442 of file DockAreaTitleBar.cpp.
|
overridevirtual |
Show context menu
Definition at line 573 of file DockAreaTitleBar.cpp.
int ads::CDockAreaTitleBar::indexOf | ( | QWidget * | widget | ) | const |
Searches for widget widget in this title bar. You can use this function, to get the position of the default widget in the tile bar.
Definition at line 600 of file DockAreaTitleBar.cpp.
void ads::CDockAreaTitleBar::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.
Definition at line 593 of file DockAreaTitleBar.cpp.
|
slot |
Call this slot to tell the title bar that it should update the tabs menu the next time it is shown.
Definition at line 305 of file DockAreaTitleBar.cpp.
|
overridevirtual |
Double clicking the title bar also starts floating of the complete area
Definition at line 554 of file DockAreaTitleBar.cpp.
|
overridevirtual |
Starts floating the complete docking area including all dock widgets, if it is not the last dock area in a floating widget
Definition at line 504 of file DockAreaTitleBar.cpp.
|
overridevirtual |
Stores mouse position to detect dragging
Definition at line 464 of file DockAreaTitleBar.cpp.
|
overridevirtual |
Stores mouse position to detect dragging
Definition at line 483 of file DockAreaTitleBar.cpp.
|
privateslot |
Definition at line 356 of file DockAreaTitleBar.cpp.
|
privateslot |
Definition at line 424 of file DockAreaTitleBar.cpp.
|
privateslot |
Definition at line 330 of file DockAreaTitleBar.cpp.
|
privateslot |
Definition at line 381 of file DockAreaTitleBar.cpp.
|
privateslot |
Definition at line 371 of file DockAreaTitleBar.cpp.
|
overridevirtual |
Marks the tabs menu outdated before it calls its base class implementation
Definition at line 456 of file DockAreaTitleBar.cpp.
CDockAreaTabBar * ads::CDockAreaTitleBar::tabBar | ( | ) | const |
Returns the pointer to the tabBar()
Definition at line 299 of file DockAreaTitleBar.cpp.
|
signal |
This signal is emitted if a tab in the tab bar is clicked by the user or if the user clicks on a tab item in the title bar tab menu.
void ads::CDockAreaTitleBar::updateDockWidgetActionsButtons | ( | ) |
Updates the visibility of the dock widget actions in the title bar
Definition at line 390 of file DockAreaTitleBar.cpp.
|
friend |
Definition at line 55 of file DockAreaTitleBar.h.
|
private |
private data (pimpl)
Definition at line 54 of file DockAreaTitleBar.h.