VR-Forces 4.10 Class Documentation
 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
makVrf::DtStickyButton Class Reference

This class is a subclass of the QToolButton that will allow for right clicking and making the button "sticky". More...

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 setTextAlignment (Qt::Alignment)
 
const Qt::Alignment & textAlignment () const
 
virtual QSize sizeHint () const
 
void setBorderStylesheet (const std::string &)
 
const std::string & borderStylesheet () const
 
void setNoBorderStylesheet (const std::string &)
 
const std::string & noBorderStylesheet () const
 
virtual void paintEvent (QPaintEvent *)
 
void setArrow (const QPixmap &)
 
const QPixmap & arrow () const
 
void setNotIcon (const QPixmap &)
 
const QPixmap & notIcon () const
 
void setStickyIcon (const QPixmap &)
 
const QPixmap & stickyIcon () const
 
void setShowIcons (bool b)
 
bool showIcons () const
 
virtual void updateIcons ()
 
virtual void updateMargins ()
 

Protected Member Functions

virtual void setupStylesheet ()
 
virtual void mouseReleaseEvent (QMouseEvent *)
 

Protected Attributes

bool mySticky
 
bool myHasBorder
 
bool myShowArrow
 
bool myNot
 
bool myShowIcons
 
std::string myNoBorderStylesheet
 
std::string myBorderStylesheet
 
QPixmap myArrow
 
QPixmap myStickyIcon
 
QPixmap myNotIcon
 
QPixmap myStatusPixmap
 
Qt::Alignment myTextAlignment
 
QProxyStyle * myDrawTextStyle
 

Detailed Description

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

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::setTextAlignment ( Qt::Alignment  )
const Qt::Alignment& makVrf::DtStickyButton::textAlignment ( ) const
inline
virtual QSize makVrf::DtStickyButton::sizeHint ( ) const
virtual
void makVrf::DtStickyButton::setBorderStylesheet ( const std::string &  )
const std::string& makVrf::DtStickyButton::borderStylesheet ( ) const
void makVrf::DtStickyButton::setNoBorderStylesheet ( const std::string &  )
const std::string& makVrf::DtStickyButton::noBorderStylesheet ( ) const
virtual void makVrf::DtStickyButton::paintEvent ( QPaintEvent *  )
virtual
void makVrf::DtStickyButton::setArrow ( const QPixmap &  )
const QPixmap& makVrf::DtStickyButton::arrow ( ) const
inline
void makVrf::DtStickyButton::setNotIcon ( const QPixmap &  )
const QPixmap& makVrf::DtStickyButton::notIcon ( ) const
inline
void makVrf::DtStickyButton::setStickyIcon ( const QPixmap &  )
const QPixmap& 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
virtual void makVrf::DtStickyButton::setupStylesheet ( )
protectedvirtual
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::myHasBorder
protected
bool makVrf::DtStickyButton::myShowArrow
protected
bool makVrf::DtStickyButton::myNot
protected
bool makVrf::DtStickyButton::myShowIcons
protected
std::string makVrf::DtStickyButton::myNoBorderStylesheet
protected
std::string makVrf::DtStickyButton::myBorderStylesheet
protected
QPixmap makVrf::DtStickyButton::myArrow
protected
QPixmap makVrf::DtStickyButton::myStickyIcon
protected
QPixmap makVrf::DtStickyButton::myNotIcon
protected
QPixmap makVrf::DtStickyButton::myStatusPixmap
protected
Qt::Alignment makVrf::DtStickyButton::myTextAlignment
protected
QProxyStyle* makVrf::DtStickyButton::myDrawTextStyle
protected

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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)