CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Properties | List of all members
ctkExpandButton Class Reference

#include <Libs/Widgets/ctkExpandButton.h>

Inheritance diagram for ctkExpandButton:
Inheritance graph
[legend]
Collaboration diagram for ctkExpandButton:
Collaboration graph
[legend]

Public Types

typedef QToolButton Superclass
 Superclass typedef. More...
 

Public Member Functions

 ctkExpandButton (QWidget *_parent=0)
 
bool mirrorOnExpand () const
 
Qt::Orientation orientation () const
 
void setMirrorOnExpand (bool newBehavior)
 
void setOrientation (Qt::Orientation newOrientation)
 
virtual QSize sizeHint () const
 
virtual ~ctkExpandButton ()
 

Protected Member Functions

virtual void nextCheckState ()
 

Protected Attributes

QScopedPointer< ctkExpandButtonPrivate > d_ptr
 

Properties

bool mirrorOnExpand
 
Qt::Orientation orientation
 

Detailed Description

QToolButton with a standard icon This button has the same behavior as the extension button which appear as the last item in the toolbar ctkButton's purpose is to show, if the button is checked or hide, some others widgets. we can set the orientation of the icon with setOrientation() the widget can also mirror the icon on click if mirrorOnExpand is true.

Definition at line 43 of file ctkExpandButton.h.

Member Typedef Documentation

◆ Superclass

typedef QToolButton ctkExpandButton::Superclass

Superclass typedef.

Definition at line 51 of file ctkExpandButton.h.

Constructor & Destructor Documentation

◆ ctkExpandButton()

ctkExpandButton::ctkExpandButton ( QWidget *  _parent = 0)
explicit

◆ ~ctkExpandButton()

virtual ctkExpandButton::~ctkExpandButton ( )
virtual

Member Function Documentation

◆ mirrorOnExpand()

bool ctkExpandButton::mirrorOnExpand ( ) const

◆ nextCheckState()

virtual void ctkExpandButton::nextCheckState ( )
protectedvirtual

◆ orientation()

Qt::Orientation ctkExpandButton::orientation ( ) const

◆ setMirrorOnExpand()

void ctkExpandButton::setMirrorOnExpand ( bool  newBehavior)

◆ setOrientation()

void ctkExpandButton::setOrientation ( Qt::Orientation  newOrientation)

◆ sizeHint()

virtual QSize ctkExpandButton::sizeHint ( ) const
virtual

Member Data Documentation

◆ d_ptr

QScopedPointer<ctkExpandButtonPrivate> ctkExpandButton::d_ptr
protected

Definition at line 71 of file ctkExpandButton.h.

Property Documentation

◆ mirrorOnExpand

bool ctkExpandButton::mirrorOnExpand
readwrite

Definition at line 1 of file ctkExpandButton.h.

◆ orientation

Qt::Orientation ctkExpandButton::orientation
readwrite

Definition at line 1 of file ctkExpandButton.h.


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