VR-Forces 4.0.4 Class Documentation
Signals | Public Member Functions | Protected Member Functions | Protected Attributes
makVrf::DtAutoHidePanelItem Class Reference

Represents an element of the autoHidePanel. More...

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

List of all members.

Signals

void signal_enter (DtAutoHidePanelItem *)
 This signal gets emitted when the mouse enters the widget.
void signal_leave (DtAutoHidePanelItem *)
 This signal gets emitted when the mouse leaves the widget.
void signal_toggled (DtAutoHidePanelItem *)
 This signal gets emitted when the mouse is pressed over an instance of this class -only- applies when the type of item is Toggle.
void signal_clicked (DtAutoHidePanelItem *)
 This signal gets emitted when the mouse is pressed over an instance of this class -only- applies when the type of item is not Toggle.
void signal_availabilityChanged (DtAutoHidePanelItem *)
 This signal gets emitted when the item's availability changes.

Public Member Functions

 DtAutoHidePanelItem (makVrv::DtDe &de, QWidget *parent, QString title)
 Constructor.
virtual ~DtAutoHidePanelItem ()
 Destructor.
DtAutoHideDockdockToManage ()
 Set/Get the dock widget associated with this item.
virtual void setDockToManage (DtAutoHideDock *widget)
virtual const QPixmap & icon () const
 Set/Get the display icon.
virtual void setIcon (const QPixmap &p)
virtual QString iconText ()
 Set/Get the text that gets displayed vertically next to the icon.
virtual void setIconText (const QString &s)
virtual bool toggled () const
 Set/Get the toggled status of the item.
virtual void setToggled (bool flag)
virtual void setSelected (bool flag)
 Sets the selected status of the item.
virtual void setAvailable (bool visible)
 Sets the visibility of the item inside the panel.
virtual bool available () const
virtual void setAboutToBeShown (bool flag)
 Sets whether this item is about to be shown or not.
virtual void refreshSize (int minsize=-1)
 Calculates how large the area needs to be to display both the icon and the text.
virtual void setToggle (bool flag)
 Sets the type of item.

Protected Member Functions

virtual void enterEvent (QEvent *e)
 Event that happens when the mouse enters this widget.
virtual void leaveEvent (QEvent *)
 Event that happens when the mouse leaves this widget.
virtual void mouseReleaseEvent (QMouseEvent *event)
 Event that happens when the mouse is released on this widget.
virtual void paintEvent (QPaintEvent *p)
 Event that happens when the widget is about to be drawn on the screen.

Protected Attributes

QPixmap myIcon
QString myIconText
int myLeftMargin
int myRightMargin
int myTopMargin
int myBottomMargin
int mySpacing
bool myIsSelected
bool myIsToggled
DtAutoHideDockmyAutoHideDock
bool myAboutToBeShown
bool myIsToggleType
bool myIsAvailable
makVrv::DtDemyDe

Detailed Description

Represents an element of the autoHidePanel.

This element is represented as an icon + an icon text. The icon is displayed on top and the text is displayed below the icon vertically


Constructor & Destructor Documentation

makVrf::DtAutoHidePanelItem::DtAutoHidePanelItem ( makVrv::DtDe de,
QWidget parent,
QString  title 
)

Constructor.

The title represents the text to be shown when the item is displayed.

Destructor.


Member Function Documentation

Set/Get the dock widget associated with this item.

virtual void makVrf::DtAutoHidePanelItem::setDockToManage ( DtAutoHideDock widget) [virtual]
virtual const QPixmap& makVrf::DtAutoHidePanelItem::icon ( ) const [virtual]

Set/Get the display icon.

virtual void makVrf::DtAutoHidePanelItem::setIcon ( const QPixmap &  p) [virtual]
virtual QString makVrf::DtAutoHidePanelItem::iconText ( ) [virtual]

Set/Get the text that gets displayed vertically next to the icon.

virtual void makVrf::DtAutoHidePanelItem::setIconText ( const QString &  s) [virtual]
virtual bool makVrf::DtAutoHidePanelItem::toggled ( ) const [virtual]

Set/Get the toggled status of the item.

This only applies when the item type is set to Toggled (setToggle(true))

virtual void makVrf::DtAutoHidePanelItem::setToggled ( bool  flag) [virtual]
virtual void makVrf::DtAutoHidePanelItem::setSelected ( bool  flag) [virtual]

Sets the selected status of the item.

virtual void makVrf::DtAutoHidePanelItem::setAvailable ( bool  visible) [virtual]

Sets the visibility of the item inside the panel.

virtual bool makVrf::DtAutoHidePanelItem::available ( ) const [virtual]
virtual void makVrf::DtAutoHidePanelItem::setAboutToBeShown ( bool  flag) [virtual]

Sets whether this item is about to be shown or not.

virtual void makVrf::DtAutoHidePanelItem::refreshSize ( int  minsize = -1) [virtual]

Calculates how large the area needs to be to display both the icon and the text.

virtual void makVrf::DtAutoHidePanelItem::setToggle ( bool  flag) [virtual]

Sets the type of item.

virtual void makVrf::DtAutoHidePanelItem::enterEvent ( QEvent *  e) [protected, virtual]

Event that happens when the mouse enters this widget.

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

Event that happens when the mouse leaves this widget.

virtual void makVrf::DtAutoHidePanelItem::mouseReleaseEvent ( QMouseEvent *  event) [protected, virtual]

Event that happens when the mouse is released on this widget.

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

Event that happens when the widget is about to be drawn on the screen.

This signal gets emitted when the mouse enters the widget.

This signal gets emitted when the mouse leaves the widget.

This signal gets emitted when the mouse is pressed over an instance of this class -only- applies when the type of item is Toggle.

This signal gets emitted when the mouse is pressed over an instance of this class -only- applies when the type of item is not Toggle.

This signal gets emitted when the item's availability changes.


Member Data Documentation


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)