VR-Forces 4.0.4 Class Documentation
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]

List of all members.

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

default constructor

destructor


Member Function Documentation

Tells the current status of the pin button.

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

Sets the pinned state.

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.

Sets the buttons to enable/show on this widget.

virtual void makVrf::DtExtendedTitleBarWidget::paintEvent ( QPaintEvent *  p) [protected, virtual]

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

virtual void makVrf::DtExtendedTitleBarWidget::setupGui ( ) [protected, virtual]

Initializes the visuals of this widget.

virtual void makVrf::DtExtendedTitleBarWidget::updatePinStatus ( ) [protected, virtual]

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

virtual void makVrf::DtExtendedTitleBarWidget::updateCollapseStatus ( ) [protected, virtual]

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

This signal gets emitted when the pin button is pressed.

This signal gets emitted when the collapse button is pressed.

This signal gets emitted when the close button is pressed.

This signal gets emitted when the float button is pressed.

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

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


Member Data Documentation

Ui_dockHideBarWidgetUI makVrf::DtExtendedTitleBarWidget::myUiImpl [protected]

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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)