VR-Forces 4.1.1 Class Documentation
List of all members | Public Types | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
makVrf::DtAutoHideDock Class Reference

Represents a new kind of dock widget: it has a "pin" button that allows the widget to pin/unpin from an autoHidePanel widget (if added to it) and a "close" button. More...

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

Public Types

enum  DtAutoHideDockType { Palette = 0, Dialog }

Signals

void signal_closing (DtAutoHideDock *dock)
 This signal gets emitted when the widget is closing.
void signal_pinPressed (DtAutoHideDock *dock)
 This signal gets emitted when the pin button is pressed on this widget.
void signal_topLevelChanged (DtAutoHideDock *dock)
 This signal gets emitted when this widget changes its status from docked to floating and vice versa.
void signal_resized (DtAutoHideDock *dock)
 This signal gets emitted when this widget is resized.
void signal_destroyed (DtAutoHideDock *dock)
 This signal gets emitted when this widget is about to be destroyed.
void signal_enter (DtAutoHideDock *dock)
 This signal gets emitted when the mouse enters on this widget.
void signal_leave (DtAutoHideDock *dock)
 This signal gets emitted when the mouse leaves this widget.

Public Member Functions

 DtAutoHideDock (makVrv::DtDe &de, const QString &title="", QWidget *parent=0, Qt::WindowFlags flags=0)
 Ctor.
 ~DtAutoHideDock ()
 Dtor.
virtual QPixmap & icon ()
 Set/Get the icon.
virtual void setIcon (QPixmap &icon)
virtual DtAutoHideDockType dockType () const
 Set/Get the type of dock this item represents.
virtual void setDockType (DtAutoHideDockType t)
virtual bool pinned () const
 Set/Get the pin status.
virtual void setPinned (bool flag)
virtual void setupGui ()
 Initializes the visuals of this object.
virtual void setTitle (const QString &title)

Protected Slots

virtual void slot_closePressed ()
 Gets called when the close button is pressed on the titleBarWidget.
virtual void slot_pinPressed (bool flag)
 Gets called when the pin is pressed on the titleBarWidget.
virtual void slot_topLevelChanged (bool)
 Gets called when the widget changes its floating status.

Protected Member Functions

virtual bool eventFilter (QObject *p, QEvent *e)
 Event filter installed to listen for mouse events from the titleBarWidget.
virtual void enterEvent (QEvent *event)
 Automatic event that gets triggered when the mouse enters the widget.
virtual void leaveEvent (QEvent *event)
 Automatic event that gets triggered when the mouse leaves the widget.
virtual void closeEvent (QCloseEvent *event)
 This event gets automatically called when the widget is about to be closed.
virtual void paintEvent (QPaintEvent *p)
 This event gets automatically called when the widget is about to be painted on screen.
virtual void resizeEvent (QResizeEvent *event)

Protected Attributes

makVrv::DtDemyDe
DtExtendedTitleBarWidgetmyTitleBarWidget
QPixmap myIcon
DtAutoHideDockType myDockType

Detailed Description

Represents a new kind of dock widget: it has a "pin" button that allows the widget to pin/unpin from an autoHidePanel widget (if added to it) and a "close" button.

It also adds an entry inside the "View" menu to show/hide the dock (if it is a palette type)

Member Enumeration Documentation

Enumerator:
Palette 
Dialog 

Constructor & Destructor Documentation

makVrf::DtAutoHideDock::DtAutoHideDock ( makVrv::DtDe de,
const QString &  title = "",
QWidget parent = 0,
Qt::WindowFlags  flags = 0 
)

Ctor.

makVrf::DtAutoHideDock::~DtAutoHideDock ( )

Dtor.

Member Function Documentation

virtual QPixmap& makVrf::DtAutoHideDock::icon ( )
virtual

Set/Get the icon.

virtual void makVrf::DtAutoHideDock::setIcon ( QPixmap &  icon)
virtual
virtual DtAutoHideDockType makVrf::DtAutoHideDock::dockType ( ) const
virtual

Set/Get the type of dock this item represents.

virtual void makVrf::DtAutoHideDock::setDockType ( DtAutoHideDockType  t)
virtual
virtual bool makVrf::DtAutoHideDock::pinned ( ) const
virtual

Set/Get the pin status.

virtual void makVrf::DtAutoHideDock::setPinned ( bool  flag)
virtual
virtual void makVrf::DtAutoHideDock::setupGui ( )
virtual
virtual void makVrf::DtAutoHideDock::setTitle ( const QString &  title)
virtual
virtual bool makVrf::DtAutoHideDock::eventFilter ( QObject p,
QEvent *  e 
)
protectedvirtual

Event filter installed to listen for mouse events from the titleBarWidget.

virtual void makVrf::DtAutoHideDock::enterEvent ( QEvent *  event)
protectedvirtual

Automatic event that gets triggered when the mouse enters the widget.

Reimplemented in BHAVE::BHAVE3DGui::DtGeneratePathDataWidget.

virtual void makVrf::DtAutoHideDock::leaveEvent ( QEvent *  event)
protectedvirtual

Automatic event that gets triggered when the mouse leaves the widget.

Reimplemented in BHAVE::BHAVE3DGui::DtGeneratePathDataWidget.

virtual void makVrf::DtAutoHideDock::closeEvent ( QCloseEvent *  event)
protectedvirtual
virtual void makVrf::DtAutoHideDock::paintEvent ( QPaintEvent *  p)
protectedvirtual

This event gets automatically called when the widget is about to be painted on screen.

virtual void makVrf::DtAutoHideDock::resizeEvent ( QResizeEvent *  event)
protectedvirtual
void makVrf::DtAutoHideDock::signal_closing ( DtAutoHideDock dock)
signal

This signal gets emitted when the widget is closing.

It passes itself as argument.

void makVrf::DtAutoHideDock::signal_pinPressed ( DtAutoHideDock dock)
signal

This signal gets emitted when the pin button is pressed on this widget.

It passes itself as argument.

void makVrf::DtAutoHideDock::signal_topLevelChanged ( DtAutoHideDock dock)
signal

This signal gets emitted when this widget changes its status from docked to floating and vice versa.

It passes itself as argument.

void makVrf::DtAutoHideDock::signal_resized ( DtAutoHideDock dock)
signal

This signal gets emitted when this widget is resized.

void makVrf::DtAutoHideDock::signal_destroyed ( DtAutoHideDock dock)
signal

This signal gets emitted when this widget is about to be destroyed.

void makVrf::DtAutoHideDock::signal_enter ( DtAutoHideDock dock)
signal

This signal gets emitted when the mouse enters on this widget.

void makVrf::DtAutoHideDock::signal_leave ( DtAutoHideDock dock)
signal

This signal gets emitted when the mouse leaves this widget.

virtual void makVrf::DtAutoHideDock::slot_closePressed ( )
protectedvirtualslot

Gets called when the close button is pressed on the titleBarWidget.

virtual void makVrf::DtAutoHideDock::slot_pinPressed ( bool  flag)
protectedvirtualslot

Gets called when the pin is pressed on the titleBarWidget.

virtual void makVrf::DtAutoHideDock::slot_topLevelChanged ( bool  )
protectedvirtualslot

Gets called when the widget changes its floating status.

Member Data Documentation

makVrv::DtDe& makVrf::DtAutoHideDock::myDe
protected
DtExtendedTitleBarWidget* makVrf::DtAutoHideDock::myTitleBarWidget
protected
QPixmap makVrf::DtAutoHideDock::myIcon
protected
DtAutoHideDockType makVrf::DtAutoHideDock::myDockType
protected

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

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)