Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
icl::qt::BoxHandle Class Reference

A Handle for container GUI components (hbox, vbox, hscroll and vscroll) More...

#include <BoxHandle.h>

Inheritance diagram for icl::qt::BoxHandle:
icl::qt::GUIHandle< QWidget > icl::qt::ContainerHandle icl::qt::GUIHandleBase

List of all members.

Public Member Functions

 BoxHandle ()
 empty base constructor
 BoxHandle (bool isHorizontal, QWidget *w, GUIWidget *guiw, QScrollArea *scroll=0)
 create an empty handle
QLayout * getLayout ()
 returns the associated layout
virtual void add (QWidget *comp, const QString &name="")
 adds an external compnent to the underlying widgets layout
virtual void insert (int idx, QWidget *comp, const QString &name="")
 this does not work here (calls add, idx and name is ignored)
bool hasScroll () const
 returns whether this handle has
QScrollArea * getScroll ()
 returns the parent scroll area (which is null, if the component is hbox or vbox)
bool isHorizontal () const
 returns whether the layout orientation is horizontal
bool isVertical () const
 returns whether the layout orientation is vertical

Private Attributes

bool horizontal
 internal property that indicate the underlying layout orientation
QScrollArea * scroll
 optional parent QScrollArea

Detailed Description

A Handle for container GUI components (hbox, vbox, hscroll and vscroll)


Constructor & Destructor Documentation

empty base constructor

icl::qt::BoxHandle::BoxHandle ( bool  isHorizontal,
QWidget *  w,
GUIWidget guiw,
QScrollArea *  scroll = 0 
) [inline]

create an empty handle


Member Function Documentation

virtual void icl::qt::BoxHandle::add ( QWidget *  comp,
const QString &  name = "" 
) [inline, virtual]

adds an external compnent to the underlying widgets layout

name is ignored

Reimplemented from icl::qt::ContainerHandle.

QLayout* icl::qt::BoxHandle::getLayout ( ) [inline]

returns the associated layout

QScrollArea* icl::qt::BoxHandle::getScroll ( ) [inline]

returns the parent scroll area (which is null, if the component is hbox or vbox)

bool icl::qt::BoxHandle::hasScroll ( ) const [inline]

returns whether this handle has

virtual void icl::qt::BoxHandle::insert ( int  idx,
QWidget *  comp,
const QString &  name = "" 
) [inline, virtual]

this does not work here (calls add, idx and name is ignored)

Reimplemented from icl::qt::ContainerHandle.

bool icl::qt::BoxHandle::isHorizontal ( ) const [inline]

returns whether the layout orientation is horizontal

bool icl::qt::BoxHandle::isVertical ( ) const [inline]

returns whether the layout orientation is vertical


Member Data Documentation

internal property that indicate the underlying layout orientation

QScrollArea* icl::qt::BoxHandle::scroll [private]

optional parent QScrollArea


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines