Image Component Library (ICL)
|
A Handle for container GUI components (hbox, vbox, hscroll and vscroll) More...
#include <BoxHandle.h>
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 |
A Handle for container GUI components (hbox, vbox, hscroll and vscroll)
icl::qt::BoxHandle::BoxHandle | ( | ) | [inline] |
empty base constructor
icl::qt::BoxHandle::BoxHandle | ( | bool | isHorizontal, |
QWidget * | w, | ||
GUIWidget * | guiw, | ||
QScrollArea * | scroll = 0 |
||
) | [inline] |
create an empty handle
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
bool icl::qt::BoxHandle::horizontal [private] |
internal property that indicate the underlying layout orientation
QScrollArea* icl::qt::BoxHandle::scroll [private] |
optional parent QScrollArea