Public Types | Public Slots | Signals | Public Member Functions | Private Slots | Private Attributes | Friends | List of all members
ads::CDockAreaTitleBar Class Reference

#include <DockAreaTitleBar.h>

Inheritance diagram for ads::CDockAreaTitleBar:
Inheritance graph
[legend]

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
 
CDockAreaTabBartabBar () const
 
void updateDockWidgetActionsButtons ()
 
virtual ~CDockAreaTitleBar ()
 

Private Slots

void onCloseButtonClicked ()
 
void onCurrentTabChanged (int Index)
 
void onTabsMenuAboutToShow ()
 
void onTabsMenuActionTriggered (QAction *Action)
 
void onUndockButtonClicked ()
 

Private Attributes

DockAreaTitleBarPrivated
 private data (pimpl) More...
 

Friends

struct DockAreaTitleBarPrivate
 

Detailed Description

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.

Member Typedef Documentation

Definition at line 100 of file DockAreaTitleBar.h.

Constructor & Destructor Documentation

ads::CDockAreaTitleBar::CDockAreaTitleBar ( CDockAreaWidget parent)

Default Constructor

Definition at line 256 of file DockAreaTitleBar.cpp.

ads::CDockAreaTitleBar::~CDockAreaTitleBar ( )
virtual

Virtual Destructor

Definition at line 278 of file DockAreaTitleBar.cpp.

Member Function Documentation

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.

void ads::CDockAreaTitleBar::contextMenuEvent ( QContextMenuEvent *  event)
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.

int tabBarIndex = TitleBar->indexOf(TitleBar->tabBar());
int closeButtonIndex = TitleBar->indexOf(TitleBar->button(TitleBarButtonClose));

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.

void ads::CDockAreaTitleBar::markTabsMenuOutdated ( )
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.

void ads::CDockAreaTitleBar::mouseDoubleClickEvent ( QMouseEvent *  event)
overridevirtual

Double clicking the title bar also starts floating of the complete area

Definition at line 554 of file DockAreaTitleBar.cpp.

void ads::CDockAreaTitleBar::mouseMoveEvent ( QMouseEvent *  ev)
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.

void ads::CDockAreaTitleBar::mousePressEvent ( QMouseEvent *  ev)
overridevirtual

Stores mouse position to detect dragging

Definition at line 464 of file DockAreaTitleBar.cpp.

void ads::CDockAreaTitleBar::mouseReleaseEvent ( QMouseEvent *  ev)
overridevirtual

Stores mouse position to detect dragging

Definition at line 483 of file DockAreaTitleBar.cpp.

void ads::CDockAreaTitleBar::onCloseButtonClicked ( )
privateslot

Definition at line 356 of file DockAreaTitleBar.cpp.

void ads::CDockAreaTitleBar::onCurrentTabChanged ( int  Index)
privateslot

Definition at line 424 of file DockAreaTitleBar.cpp.

void ads::CDockAreaTitleBar::onTabsMenuAboutToShow ( )
privateslot

Definition at line 330 of file DockAreaTitleBar.cpp.

void ads::CDockAreaTitleBar::onTabsMenuActionTriggered ( QAction *  Action)
privateslot

Definition at line 381 of file DockAreaTitleBar.cpp.

void ads::CDockAreaTitleBar::onUndockButtonClicked ( )
privateslot

Definition at line 371 of file DockAreaTitleBar.cpp.

void ads::CDockAreaTitleBar::setVisible ( bool  Visible)
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.

void ads::CDockAreaTitleBar::tabBarClicked ( int  index)
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.

Friends And Related Function Documentation

friend struct DockAreaTitleBarPrivate
friend

Definition at line 55 of file DockAreaTitleBar.h.

Member Data Documentation

DockAreaTitleBarPrivate* ads::CDockAreaTitleBar::d
private

private data (pimpl)

Definition at line 54 of file DockAreaTitleBar.h.


The documentation for this class was generated from the following files:


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 04:02:51