VR-Forces 5.0.3 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 Member Functions | Protected Attributes | Properties
makVrf::DtStickyButton Class Reference

This class is a subclass of the QToolButton that will allow for right clicking and making the button "sticky". A sticky button will be checked and given a different background color.

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

Signals

void rightClickReleased (const QPoint &)
 

Public Member Functions

 DtStickyButton (QWidget *p)
 
virtual ~DtStickyButton ()
 
void setSticky (bool b)
 
bool sticky () const
 
void setNot (bool b)
 
bool isNot () const
 
void setShowArrow (bool)
 
bool showArrow () const
 
void setHasBorder (bool b)
 
bool hasBorder () const
 
void setSelectedCategory (bool b)
 
bool selectedCategory () const
 
void setTextAlignment (Qt::Alignment)
 
const Qt::Alignment & textAlignment () const
 
virtual QSize sizeHint () const
 
virtual void paintEvent (QPaintEvent *)
 
void setArrow (const std::string &)
 
const std::string & arrow () const
 
void setNotIcon (const std::string &)
 
const std::string & notIcon () const
 
void setIconSize (const QSize &)
 
const QSize & iconSize () const
 
void setStickyIcon (const std::string &)
 
const std::string & stickyIcon () const
 
void setShowIcons (bool b)
 
bool showIcons () const
 
virtual void updateIcons ()
 
virtual void updateMargins ()
 
void setWidgetIconStyleManager (makVrv::DtWidgetIconStyleManager *)
 

Protected Member Functions

virtual void mouseReleaseEvent (QMouseEvent *)
 

Protected Attributes

bool mySticky
 
bool myShowArrow
 
bool myNot
 
bool myShowIcons
 
std::string myArrow
 
std::string myStickyIcon
 
std::string myNotIcon
 
QPixmap myStatusPixmap
 
Qt::Alignment myTextAlignment
 
QProxyStyle * myDrawTextStyle
 
bool myHasBorder
 
bool mySelectedCategory
 
makVrv::DtWidgetIconStyleManagermyWidgetIconStyleManager
 
QSize myIconSize
 

Properties

bool hasborder
 
bool selectedCategory
 

Constructor & Destructor Documentation

makVrf::DtStickyButton::DtStickyButton ( QWidget *  p)
virtual makVrf::DtStickyButton::~DtStickyButton ( )
virtual

Member Function Documentation

void makVrf::DtStickyButton::setSticky ( bool  b)
bool makVrf::DtStickyButton::sticky ( ) const
inline
void makVrf::DtStickyButton::setNot ( bool  b)
bool makVrf::DtStickyButton::isNot ( ) const
inline
void makVrf::DtStickyButton::setShowArrow ( bool  )
bool makVrf::DtStickyButton::showArrow ( ) const
inline
void makVrf::DtStickyButton::setHasBorder ( bool  b)
bool makVrf::DtStickyButton::hasBorder ( ) const
inline
void makVrf::DtStickyButton::setSelectedCategory ( bool  b)
bool makVrf::DtStickyButton::selectedCategory ( ) const
inline
void makVrf::DtStickyButton::setTextAlignment ( Qt::Alignment  )
const Qt::Alignment& makVrf::DtStickyButton::textAlignment ( ) const
inline
virtual QSize makVrf::DtStickyButton::sizeHint ( ) const
virtual
virtual void makVrf::DtStickyButton::paintEvent ( QPaintEvent *  )
virtual
void makVrf::DtStickyButton::setArrow ( const std::string &  )
const std::string& makVrf::DtStickyButton::arrow ( ) const
inline
void makVrf::DtStickyButton::setNotIcon ( const std::string &  )
const std::string& makVrf::DtStickyButton::notIcon ( ) const
inline
void makVrf::DtStickyButton::setIconSize ( const QSize &  )
const QSize& makVrf::DtStickyButton::iconSize ( ) const
inline
void makVrf::DtStickyButton::setStickyIcon ( const std::string &  )
const std::string& makVrf::DtStickyButton::stickyIcon ( ) const
inline
void makVrf::DtStickyButton::setShowIcons ( bool  b)
bool makVrf::DtStickyButton::showIcons ( ) const
inline
virtual void makVrf::DtStickyButton::updateIcons ( )
virtual
virtual void makVrf::DtStickyButton::updateMargins ( )
virtual
void makVrf::DtStickyButton::setWidgetIconStyleManager ( makVrv::DtWidgetIconStyleManager )
virtual void makVrf::DtStickyButton::mouseReleaseEvent ( QMouseEvent *  )
protectedvirtual
void makVrf::DtStickyButton::rightClickReleased ( const QPoint &  )
signal

Member Data Documentation

bool makVrf::DtStickyButton::mySticky
protected
bool makVrf::DtStickyButton::myShowArrow
protected
bool makVrf::DtStickyButton::myNot
protected
bool makVrf::DtStickyButton::myShowIcons
protected
std::string makVrf::DtStickyButton::myArrow
protected
std::string makVrf::DtStickyButton::myStickyIcon
protected
std::string makVrf::DtStickyButton::myNotIcon
protected
QPixmap makVrf::DtStickyButton::myStatusPixmap
protected
Qt::Alignment makVrf::DtStickyButton::myTextAlignment
protected
QProxyStyle* makVrf::DtStickyButton::myDrawTextStyle
protected
bool makVrf::DtStickyButton::myHasBorder
protected
bool makVrf::DtStickyButton::mySelectedCategory
protected
makVrv::DtWidgetIconStyleManager* makVrf::DtStickyButton::myWidgetIconStyleManager
protected
QSize makVrf::DtStickyButton::myIconSize
protected

Property Documentation

bool makVrf::DtStickyButton::hasborder
bool makVrf::DtStickyButton::selectedCategory

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

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)