VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
makVrf::DtExtendedTitleBarWidget Class Reference

Represents a widget that can be used as the titleBarWidget. More...

Inheritance diagram for makVrf::DtExtendedTitleBarWidget:
Inheritance graph
[legend]

Public Types

enum  DtExtendedTitleBarButtonFlags {
  NoButtons = 0x0000, PinButton = 0x0001, CollapseButton = 0x0010, FloatButton = 0x0100,
  CloseButton = 0x1000, AllButtons = PinButton | CollapseButton | CloseButton | FloatButton
}

Signals

void signal_pinPressed (bool flag)
 This signal gets emitted when the pin button is pressed.
void signal_collapsePressed (bool flag)
 This signal gets emitted when the collapse button is pressed.
void signal_closePressed ()
 This signal gets emitted when the close button is pressed.
void signal_floatPressed ()
 This signal gets emitted when the float button is pressed.
void signal_pinStatusChanged (bool pinned)
 This signal gets emitted when the pin status of the widget changes.
void signal_collapseStatusChanged (bool pinned)
 This signal gets emitted when the collapse status of the widget changes.

Public Member Functions

 DtExtendedTitleBarWidget (makVrv::DtDe &de, QWidget *parent=NULL, DtExtendedTitleBarButtonFlags flags=NoButtons)
 default constructor
virtual ~DtExtendedTitleBarWidget ()
 destructor
virtual bool isPinned ()
 Tells the current status of the pin button.
virtual void setPinned (bool flag)
 Sets the pinned state.
virtual bool isCollapsed ()
 Tells the current status of the collapse button.
virtual void setCollapsed (bool flag)
 Sets the collapsed state.
virtual const QString title ()
 Text displayed as the title.
virtual void setTitle (const QString &text)
 Sets the text displayed as the title.
virtual void setDrawBorder (bool flag)
 Sets drawing a box around the widget.
virtual void setButtons (DtExtendedTitleBarButtonFlags flags)
 Sets the buttons to enable/show on this widget.

Protected Slots

void slot_onPinButtonClicked ()
void slot_onCloseButtonClicked ()
void slot_onCollapseButtonClicked ()
void slot_onFloatButtonClicked ()

Protected Member Functions

virtual void paintEvent (QPaintEvent *p)
 This automatic event gets triggered every time the widget needs to be painted on the screen.
virtual void setupGui ()
 Initializes the visuals of this widget.
virtual void updatePinStatus ()
 Updates the visuals of the pin button depending on whether the status is pinned or not.
virtual void updateCollapseStatus ()
 Updates the visuals of the collapse button depending on whether the status is pinned or not.

Protected Attributes

Ui_dockHideBarWidgetUI myUiImpl
DtExtendedTitleBarButtonFlags myFlags
QPixmap myPinV
QPixmap myPinL
QPixmap myCollapseOpen
QPixmap myCollapseClosed
bool myIsPinned
bool myIsCollapsed
bool myDrawBorder
makVrv::DtDemyDe

Detailed Description

Represents a widget that can be used as the titleBarWidget.

of a QtDock widget. This widget allows for four different buttons: pin/unpin, dock/undock, expand/collapse, and close

Member Enumeration Documentation

Enumerator:
NoButtons 
PinButton 
CollapseButton 
FloatButton 
CloseButton 
AllButtons 

Constructor & Destructor Documentation

makVrf::DtExtendedTitleBarWidget::DtExtendedTitleBarWidget ( makVrv::DtDe de,
QWidget parent = NULL,
DtExtendedTitleBarButtonFlags  flags = NoButtons 
)

default constructor

virtual makVrf::DtExtendedTitleBarWidget::~DtExtendedTitleBarWidget ( )
virtual

destructor

Member Function Documentation

virtual bool makVrf::DtExtendedTitleBarWidget::isPinned ( )
virtual

Tells the current status of the pin button.

virtual void makVrf::DtExtendedTitleBarWidget::setPinned ( bool  flag)
virtual

Sets the pinned state.

virtual bool makVrf::DtExtendedTitleBarWidget::isCollapsed ( )
virtual

Tells the current status of the collapse button.

virtual void makVrf::DtExtendedTitleBarWidget::setCollapsed ( bool  flag)
virtual

Sets the collapsed state.

virtual const QString makVrf::DtExtendedTitleBarWidget::title ( )
virtual

Text displayed as the title.

virtual void makVrf::DtExtendedTitleBarWidget::setTitle ( const QString &  text)
virtual

Sets the text displayed as the title.

virtual void makVrf::DtExtendedTitleBarWidget::setDrawBorder ( bool  flag)
virtual

Sets drawing a box around the widget.

virtual void makVrf::DtExtendedTitleBarWidget::setButtons ( DtExtendedTitleBarButtonFlags  flags)
virtual

Sets the buttons to enable/show on this widget.

virtual void makVrf::DtExtendedTitleBarWidget::paintEvent ( QPaintEvent *  p)
protectedvirtual

This automatic event gets triggered every time the widget needs to be painted on the screen.

virtual void makVrf::DtExtendedTitleBarWidget::setupGui ( )
protectedvirtual

Initializes the visuals of this widget.

virtual void makVrf::DtExtendedTitleBarWidget::updatePinStatus ( )
protectedvirtual

Updates the visuals of the pin button depending on whether the status is pinned or not.

virtual void makVrf::DtExtendedTitleBarWidget::updateCollapseStatus ( )
protectedvirtual

Updates the visuals of the collapse button depending on whether the status is pinned or not.

void makVrf::DtExtendedTitleBarWidget::slot_onPinButtonClicked ( )
protectedslot
void makVrf::DtExtendedTitleBarWidget::slot_onCloseButtonClicked ( )
protectedslot
void makVrf::DtExtendedTitleBarWidget::slot_onCollapseButtonClicked ( )
protectedslot
void makVrf::DtExtendedTitleBarWidget::slot_onFloatButtonClicked ( )
protectedslot
void makVrf::DtExtendedTitleBarWidget::signal_pinPressed ( bool  flag)
signal

This signal gets emitted when the pin button is pressed.

void makVrf::DtExtendedTitleBarWidget::signal_collapsePressed ( bool  flag)
signal

This signal gets emitted when the collapse button is pressed.

void makVrf::DtExtendedTitleBarWidget::signal_closePressed ( )
signal

This signal gets emitted when the close button is pressed.

void makVrf::DtExtendedTitleBarWidget::signal_floatPressed ( )
signal

This signal gets emitted when the float button is pressed.

void makVrf::DtExtendedTitleBarWidget::signal_pinStatusChanged ( bool  pinned)
signal

This signal gets emitted when the pin status of the widget changes.

void makVrf::DtExtendedTitleBarWidget::signal_collapseStatusChanged ( bool  pinned)
signal

This signal gets emitted when the collapse status of the widget changes.

Member Data Documentation

Ui_dockHideBarWidgetUI makVrf::DtExtendedTitleBarWidget::myUiImpl
protected
DtExtendedTitleBarButtonFlags makVrf::DtExtendedTitleBarWidget::myFlags
protected
QPixmap makVrf::DtExtendedTitleBarWidget::myPinV
protected
QPixmap makVrf::DtExtendedTitleBarWidget::myPinL
protected
QPixmap makVrf::DtExtendedTitleBarWidget::myCollapseOpen
protected
QPixmap makVrf::DtExtendedTitleBarWidget::myCollapseClosed
protected
bool makVrf::DtExtendedTitleBarWidget::myIsPinned
protected
bool makVrf::DtExtendedTitleBarWidget::myIsCollapsed
protected
bool makVrf::DtExtendedTitleBarWidget::myDrawBorder
protected
makVrv::DtDe& makVrf::DtExtendedTitleBarWidget::myDe
protected

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

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)