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

List of all members.

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 std::string 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 std::string  title = "",
QWidget parent = 0,
Qt::WindowFlags  flags = 0 
)

Ctor.

Dtor.


Member Function Documentation

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

Set/Get the icon.

virtual void makVrf::DtAutoHideDock::setIcon ( QPixmap &  icon) [virtual]

Set/Get the type of dock this item represents.

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 
) [protected, virtual]

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

virtual void makVrf::DtAutoHideDock::enterEvent ( QEvent *  event) [protected, virtual]

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

Reimplemented in BHAVE::BHAVE3DGui::DtGeneratePathDataWidget.

virtual void makVrf::DtAutoHideDock::leaveEvent ( QEvent *  event) [protected, virtual]

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

Reimplemented in BHAVE::BHAVE3DGui::DtGeneratePathDataWidget.

virtual void makVrf::DtAutoHideDock::closeEvent ( QCloseEvent *  event) [protected, virtual]

This event gets automatically called when the widget is about to be closed.

Reimplemented in makVrf::DtShapeObjectDefinitionDialog, makVrf::DtPointObjectDefinitionDialog, makVrf::DtCircleObjectDefinitionDialog, and BHAVE::BHAVE3DGui::DtGeneratePathDataWidget.

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

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

virtual void makVrf::DtAutoHideDock::resizeEvent ( QResizeEvent *  event) [protected, virtual]

This signal gets emitted when the widget is closing.

It passes itself as argument.

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

It passes itself as argument.

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

It passes itself as argument.

This signal gets emitted when this widget is resized.

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

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

This signal gets emitted when the mouse leaves this widget.

virtual void makVrf::DtAutoHideDock::slot_closePressed ( ) [protected, virtual, slot]

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

Reimplemented in makVrf::DtShapeObjectDefinitionDialog, makVrf::DtPointObjectDefinitionDialog, and makVrf::DtCircleObjectDefinitionDialog.

virtual void makVrf::DtAutoHideDock::slot_pinPressed ( bool  flag) [protected, virtual, slot]

Gets called when the pin is pressed on the titleBarWidget.

virtual void makVrf::DtAutoHideDock::slot_topLevelChanged ( bool  ) [protected, virtual, slot]

Gets called when the widget changes its floating status.


Member Data Documentation

QPixmap makVrf::DtAutoHideDock::myIcon [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)