GOFIGURE2  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Slots | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
ctkCollapsibleGroupBox Class Reference

#include <Code/ExternalCode/ctk/ctkCollapsibleGroupBox.h>

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

Public Member Functions

bool collapsed () const
 
 ctkCollapsibleGroupBox (QWidget *parent=0)
 
 ctkCollapsibleGroupBox (const QString &title, QWidget *parent=0)
 
virtual int heightForWidth (int w) const
 Reimplemtented for internal reasons. More...
 
virtual QSize minimumSizeHint () const
 Reimplemtented for internal reasons. More...
 
void setCollapsed (bool collapse)
 
virtual QSize sizeHint () const
 Reimplemtented for internal reasons. More...
 
virtual ~ctkCollapsibleGroupBox ()
 

Protected Slots

virtual void expand (bool expand)
 

Protected Member Functions

virtual void childEvent (QChildEvent *)
 reimplemented for internal reasons More...
 
virtual void mousePressEvent (QMouseEvent *)
 
virtual void mouseReleaseEvent (QMouseEvent *)
 
virtual void paintEvent (QPaintEvent *)
 
virtual void resizeEvent (QResizeEvent *)
 

Private Member Functions

void init ()
 

Private Attributes

int MaxHeight
 Maximum allowed height. More...
 
QSize OldSize
 Size of the widget for collapsing. More...
 
ctkCollapsibleGroupBoxStyle * Style
 

Detailed Description

A QGroupBox with an arrow indicator that shows/hides the groupbox contents when clicked. It responds to the slot QGroupBox::setChecked(bool) or ctkCollapsibleGroupBox::setCollapsed(bool) When checked is true, the groupbox is expanded When checked is false, the groupbox is collapsed

Definition at line 61 of file ctkCollapsibleGroupBox.h.

Constructor & Destructor Documentation

ctkCollapsibleGroupBox::ctkCollapsibleGroupBox ( QWidget *  parent = 0)

Definition at line 33 of file ctkCollapsibleGroupBox.cpp.

ctkCollapsibleGroupBox::ctkCollapsibleGroupBox ( const QString &  title,
QWidget *  parent = 0 
)

Definition at line 40 of file ctkCollapsibleGroupBox.cpp.

ctkCollapsibleGroupBox::~ctkCollapsibleGroupBox ( )
virtual

Definition at line 47 of file ctkCollapsibleGroupBox.cpp.

Member Function Documentation

void ctkCollapsibleGroupBox::childEvent ( QChildEvent *  c)
protectedvirtual

reimplemented for internal reasons

Definition at line 115 of file ctkCollapsibleGroupBox.cpp.

bool ctkCollapsibleGroupBox::collapsed ( ) const
inline

Return the collapse state of the groupbox true if the groupbox is collapsed (closed), false if it is expanded(open)

Definition at line 111 of file ctkCollapsibleGroupBox.h.

void ctkCollapsibleGroupBox::expand ( bool  expand)
protectedvirtualslot

called when the arrow indicator is clicked users can call it programatically by calling setChecked(bool)

Definition at line 76 of file ctkCollapsibleGroupBox.cpp.

int ctkCollapsibleGroupBox::heightForWidth ( int  w) const
virtual

Reimplemtented for internal reasons.

Definition at line 190 of file ctkCollapsibleGroupBox.cpp.

void ctkCollapsibleGroupBox::init ( )
private

Definition at line 56 of file ctkCollapsibleGroupBox.cpp.

QSize ctkCollapsibleGroupBox::minimumSizeHint ( ) const
virtual

Reimplemtented for internal reasons.

Definition at line 176 of file ctkCollapsibleGroupBox.cpp.

void ctkCollapsibleGroupBox::mousePressEvent ( QMouseEvent *  event)
protectedvirtual

Definition at line 143 of file ctkCollapsibleGroupBox.cpp.

void ctkCollapsibleGroupBox::mouseReleaseEvent ( QMouseEvent *  event)
protectedvirtual

Definition at line 153 of file ctkCollapsibleGroupBox.cpp.

void ctkCollapsibleGroupBox::paintEvent ( QPaintEvent *  e)
protectedvirtual

Definition at line 130 of file ctkCollapsibleGroupBox.cpp.

void ctkCollapsibleGroupBox::resizeEvent ( QResizeEvent *  _event)
protectedvirtual

Definition at line 197 of file ctkCollapsibleGroupBox.cpp.

void ctkCollapsibleGroupBox::setCollapsed ( bool  collapse)
inline

Utility function to collapse the groupbox Collapse(close) the group box if collapse is true, expand(open) it otherwise.

See Also
QGroupBox::setChecked(bool)

Definition at line 117 of file ctkCollapsibleGroupBox.h.

QSize ctkCollapsibleGroupBox::sizeHint ( ) const
virtual

Reimplemtented for internal reasons.

Definition at line 183 of file ctkCollapsibleGroupBox.cpp.

Member Data Documentation

int ctkCollapsibleGroupBox::MaxHeight
private

Maximum allowed height.

Definition at line 106 of file ctkCollapsibleGroupBox.h.

QSize ctkCollapsibleGroupBox::OldSize
private

Size of the widget for collapsing.

Definition at line 104 of file ctkCollapsibleGroupBox.h.

ctkCollapsibleGroupBoxStyle* ctkCollapsibleGroupBox::Style
private

Definition at line 107 of file ctkCollapsibleGroupBox.h.


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