VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
makVrf::DtAutoHidePanelItem Class Reference

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.

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

Signals

void signal_enter (DtAutoHidePanelItem *)
 
void signal_leave (DtAutoHidePanelItem *)
 
void signal_toggled (DtAutoHidePanelItem *)
 
void signal_clicked (DtAutoHidePanelItem *)
 
void signal_availabilityChanged (DtAutoHidePanelItem *)
 

Public Member Functions

 DtAutoHidePanelItem (makVrv::DtDe &de, QWidget *parent, QString title, const std::string &className)
 
virtual ~DtAutoHidePanelItem () override
 
DtAutoHideDockdockToManage ()
 
virtual void setDockToManage (DtAutoHideDock *widget)
 
virtual const
makVrv::DtQIconConfigurations
icon () const
 
virtual void setIcon (const makVrv::DtQIconConfigurations &p)
 
const std::string & className () const
 
virtual QString iconText ()
 
virtual void setIconText (const QString &s)
 
virtual bool toggled () const
 
virtual void setToggled (bool flag)
 
virtual void setAvailable (bool visible, bool updateVisibilityState=true)
 
virtual bool available () const
 
virtual void setAboutToBeShown (bool flag)
 
virtual void refreshSize (int minsize=-1)
 
virtual void setToggle (bool flag)
 

Protected Slots

virtual void toggleItem ()
 

Protected Member Functions

virtual bool eventFilter (QObject *o, QEvent *e) override
 
virtual void enterEvent (QEvent *e) override
 
virtual void leaveEvent (QEvent *) override
 
virtual void paintEvent (QPaintEvent *p) override
 
virtual void refreshIcon ()
 

Protected Attributes

makVrv::DtQIconConfigurations myIconConfigurations
 
QIcon myIcon
 
int myIconSize
 
QString myIconText
 
int myLeftMargin
 
int myRightMargin
 
int myTopMargin
 
int myBottomMargin
 
int mySpacing
 
DtAutoHideDockmyAutoHideDock
 
bool myAboutToBeShown
 
bool myIsToggleType
 
bool myIsAvailable
 
makVrv::DtDemyDe
 
std::string myClassName
 
makVrv::DtSignalConnectionManager myConnections
 

Constructor & Destructor Documentation

makVrf::DtAutoHidePanelItem::DtAutoHidePanelItem ( makVrv::DtDe de,
QWidget *  parent,
QString  title,
const std::string &  className 
)

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

virtual makVrf::DtAutoHidePanelItem::~DtAutoHidePanelItem ( )
overridevirtual

Destructor.

Member Function Documentation

DtAutoHideDock* makVrf::DtAutoHidePanelItem::dockToManage ( )

Set/Get the dock widget associated with this item.

virtual void makVrf::DtAutoHidePanelItem::setDockToManage ( DtAutoHideDock widget)
virtual
virtual const makVrv::DtQIconConfigurations& makVrf::DtAutoHidePanelItem::icon ( ) const
virtual

Set/Get the display icon.

virtual void makVrf::DtAutoHidePanelItem::setIcon ( const makVrv::DtQIconConfigurations p)
virtual
const std::string& makVrf::DtAutoHidePanelItem::className ( ) const
inline

Class name.

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::setAvailable ( bool  visible,
bool  updateVisibilityState = true 
)
virtual

Sets the visibility of the item inside the panel. If updateVisibilityState is true, also update in layout manager.

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 bool makVrf::DtAutoHidePanelItem::eventFilter ( QObject o,
QEvent e 
)
overrideprotectedvirtual
virtual void makVrf::DtAutoHidePanelItem::enterEvent ( QEvent e)
overrideprotectedvirtual

Event that happens when the mouse enters this widget.

virtual void makVrf::DtAutoHidePanelItem::leaveEvent ( QEvent )
overrideprotectedvirtual

Event that happens when the mouse leaves this widget.

virtual void makVrf::DtAutoHidePanelItem::paintEvent ( QPaintEvent *  p)
overrideprotectedvirtual

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

virtual void makVrf::DtAutoHidePanelItem::refreshIcon ( )
protectedvirtual
void makVrf::DtAutoHidePanelItem::signal_enter ( DtAutoHidePanelItem )
signal

This signal gets emitted when the mouse enters the widget.

void makVrf::DtAutoHidePanelItem::signal_leave ( DtAutoHidePanelItem )
signal

This signal gets emitted when the mouse leaves the widget.

void makVrf::DtAutoHidePanelItem::signal_toggled ( DtAutoHidePanelItem )
signal

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 makVrf::DtAutoHidePanelItem::signal_clicked ( DtAutoHidePanelItem )
signal

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 makVrf::DtAutoHidePanelItem::signal_availabilityChanged ( DtAutoHidePanelItem )
signal

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

virtual void makVrf::DtAutoHidePanelItem::toggleItem ( )
protectedvirtualslot

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

Member Data Documentation

makVrv::DtQIconConfigurations makVrf::DtAutoHidePanelItem::myIconConfigurations
protected
QIcon makVrf::DtAutoHidePanelItem::myIcon
protected
int makVrf::DtAutoHidePanelItem::myIconSize
protected
QString makVrf::DtAutoHidePanelItem::myIconText
protected
int makVrf::DtAutoHidePanelItem::myLeftMargin
protected
int makVrf::DtAutoHidePanelItem::myRightMargin
protected
int makVrf::DtAutoHidePanelItem::myTopMargin
protected
int makVrf::DtAutoHidePanelItem::myBottomMargin
protected
int makVrf::DtAutoHidePanelItem::mySpacing
protected
DtAutoHideDock* makVrf::DtAutoHidePanelItem::myAutoHideDock
protected
bool makVrf::DtAutoHidePanelItem::myAboutToBeShown
protected
bool makVrf::DtAutoHidePanelItem::myIsToggleType
protected
bool makVrf::DtAutoHidePanelItem::myIsAvailable
protected
makVrv::DtDe& makVrf::DtAutoHidePanelItem::myDe
protected
std::string makVrf::DtAutoHidePanelItem::myClassName
protected
makVrv::DtSignalConnectionManager makVrf::DtAutoHidePanelItem::myConnections
protected

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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)