Public Types | Signals | Public Member Functions | Protected Member Functions | Properties | Private Attributes | List of all members
ads::CFloatingWidgetTitleBar Class Reference

#include <FloatingWidgetTitleBar.h>

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

Public Types

using Super = QWidget
 

Signals

void closeRequested ()
 
void maximizeRequested ()
 

Public Member Functions

 CFloatingWidgetTitleBar (CFloatingDockContainer *parent=nullptr)
 
void enableCloseButton (bool Enable)
 
void setMaximizedIcon (bool maximized)
 
void setTitle (const QString &Text)
 
void updateStyle ()
 
virtual ~CFloatingWidgetTitleBar ()
 

Protected Member Functions

QIcon maximizeIcon () const
 
virtual void mouseDoubleClickEvent (QMouseEvent *event) override
 
virtual void mouseMoveEvent (QMouseEvent *ev) override
 
virtual void mousePressEvent (QMouseEvent *ev) override
 
virtual void mouseReleaseEvent (QMouseEvent *ev) override
 
QIcon normalIcon () const
 
void setMaximizeIcon (const QIcon &Icon)
 
void setNormalIcon (const QIcon &Icon)
 

Properties

QIcon maximizeIcon
 
QIcon normalIcon
 

Private Attributes

FloatingWidgetTitleBarPrivated
 private data (pimpl) More...
 

Detailed Description

Titlebar for floating widgets to capture non client are mouse events. Linux does not support NonClieantArea mouse events like QEvent::NonClientAreaMouseButtonPress. Because these events are required for the docking system to work properly, we use our own titlebar here to capture the required mouse events.

Definition at line 49 of file FloatingWidgetTitleBar.h.

Member Typedef Documentation

◆ Super

Definition at line 69 of file FloatingWidgetTitleBar.h.

Constructor & Destructor Documentation

◆ CFloatingWidgetTitleBar()

ads::CFloatingWidgetTitleBar::CFloatingWidgetTitleBar ( CFloatingDockContainer parent = nullptr)
explicit

Definition at line 133 of file FloatingWidgetTitleBar.cpp.

◆ ~CFloatingWidgetTitleBar()

ads::CFloatingWidgetTitleBar::~CFloatingWidgetTitleBar ( )
virtual

Virtual Destructor

Definition at line 151 of file FloatingWidgetTitleBar.cpp.

Member Function Documentation

◆ closeRequested

void ads::CFloatingWidgetTitleBar::closeRequested ( )
signal

This signal is emitted, if the close button is clicked.

◆ enableCloseButton()

void ads::CFloatingWidgetTitleBar::enableCloseButton ( bool  Enable)

Enables / disables the window close button.

Definition at line 208 of file FloatingWidgetTitleBar.cpp.

◆ maximizeIcon()

QIcon ads::CFloatingWidgetTitleBar::maximizeIcon ( ) const
protected

◆ maximizeRequested

void ads::CFloatingWidgetTitleBar::maximizeRequested ( )
signal

This signal is emitted, if the maximize button is clicked.

◆ mouseDoubleClickEvent()

void ads::CFloatingWidgetTitleBar::mouseDoubleClickEvent ( QMouseEvent *  event)
overrideprotectedvirtual

Definition at line 228 of file FloatingWidgetTitleBar.cpp.

◆ mouseMoveEvent()

void ads::CFloatingWidgetTitleBar::mouseMoveEvent ( QMouseEvent *  ev)
overrideprotectedvirtual

Definition at line 183 of file FloatingWidgetTitleBar.cpp.

◆ mousePressEvent()

void ads::CFloatingWidgetTitleBar::mousePressEvent ( QMouseEvent *  ev)
overrideprotectedvirtual

Definition at line 157 of file FloatingWidgetTitleBar.cpp.

◆ mouseReleaseEvent()

void ads::CFloatingWidgetTitleBar::mouseReleaseEvent ( QMouseEvent *  ev)
overrideprotectedvirtual

Definition at line 171 of file FloatingWidgetTitleBar.cpp.

◆ normalIcon()

QIcon ads::CFloatingWidgetTitleBar::normalIcon ( ) const
protected

◆ setMaximizedIcon()

void ads::CFloatingWidgetTitleBar::setMaximizedIcon ( bool  maximized)

Change the maximize button icon according to current windows state

Definition at line 243 of file FloatingWidgetTitleBar.cpp.

◆ setMaximizeIcon()

void ads::CFloatingWidgetTitleBar::setMaximizeIcon ( const QIcon &  Icon)
protected

Definition at line 258 of file FloatingWidgetTitleBar.cpp.

◆ setNormalIcon()

void ads::CFloatingWidgetTitleBar::setNormalIcon ( const QIcon &  Icon)
protected

Definition at line 269 of file FloatingWidgetTitleBar.cpp.

◆ setTitle()

void ads::CFloatingWidgetTitleBar::setTitle ( const QString &  Text)

Sets the window title, that means, the text of the internal tile label.

Definition at line 215 of file FloatingWidgetTitleBar.cpp.

◆ updateStyle()

void ads::CFloatingWidgetTitleBar::updateStyle ( )

Update stylesheet style if a property changes

Definition at line 221 of file FloatingWidgetTitleBar.cpp.

Member Data Documentation

◆ d

FloatingWidgetTitleBarPrivate* ads::CFloatingWidgetTitleBar::d
private

private data (pimpl)

Definition at line 55 of file FloatingWidgetTitleBar.h.

Property Documentation

◆ maximizeIcon

QIcon ads::CFloatingWidgetTitleBar::maximizeIcon
readwrite

Definition at line 52 of file FloatingWidgetTitleBar.h.

◆ normalIcon

QIcon ads::CFloatingWidgetTitleBar::normalIcon
readwrite

Definition at line 53 of file FloatingWidgetTitleBar.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:51