Image Component Library (ICL)
|
Special GUI extension, that mimics the GUIComponent interface. More...
#include <ContainerGUIComponent.h>
Public Member Functions | |
GUI & | operator<< (const GUIComponent &component) const |
hierarchical stream operator to create complex GUIs | |
GUI & | operator<< (const GUI &g) const |
hierarchical stream operator to create complex GUIs | |
const ContainerGUIComponent & | handle (const std::string &handle) const |
sets the component's handle | |
const ContainerGUIComponent & | label (const std::string &label) const |
sets the component's label | |
const ContainerGUIComponent & | size (const utils::Size &size) const |
sets the component's initial size | |
const ContainerGUIComponent & | size (int w, int h) const |
sets the component's initial size | |
const ContainerGUIComponent & | minSize (const utils::Size &minSize) const |
sets the component's minimum size constraint | |
const ContainerGUIComponent & | minSize (int w, int h) const |
sets the component's minimum size constraint | |
const ContainerGUIComponent & | maxSize (const utils::Size &maxSize) const |
sets the component's maximum size constraint | |
const ContainerGUIComponent & | maxSize (int w, int h) const |
sets the component's maximum size constraint | |
const ContainerGUIComponent & | margin (int margin) const |
sets the component's layout margin | |
const ContainerGUIComponent & | spacing (int spacing) const |
sets the component's layout spacing | |
ContainerGUIComponent & | handle (const std::string &handle) |
sets the component's handle | |
ContainerGUIComponent & | label (const std::string &label) |
sets the component's label | |
ContainerGUIComponent & | size (const utils::Size &size) |
sets the component's initial size | |
ContainerGUIComponent & | size (int w, int h) |
sets the component's initial size | |
ContainerGUIComponent & | minSize (const utils::Size &minSize) |
sets the component's minimum size constraint | |
ContainerGUIComponent & | minSize (int w, int h) |
sets the component's minimum size constraint | |
ContainerGUIComponent & | maxSize (const utils::Size &maxSize) |
sets the component's maximum size constraint | |
ContainerGUIComponent & | maxSize (int w, int h) |
sets the component's maximum size constraint | |
ContainerGUIComponent & | margin (int margin) |
sets the component's layout margin | |
ContainerGUIComponent & | spacing (int spacing) |
sets the component's layout spacing | |
Protected Member Functions | |
ContainerGUIComponent (const std::string &type, const std::string ¶ms, QWidget *parent) | |
protected constructor | |
virtual std::string | createDefinition () const |
special reimplementation of the GUI::createDefinition method | |
Protected Attributes | |
GUIComponent | component |
we use these options to create the |
Special GUI extension, that mimics the GUIComponent interface.
The Container GUIComponent mimics the GUIComponent interface in order to provide a unified look and feel within a hierarchical GUI definition section. Internally a mutable GUIComponent is used for parameter accumulation
icl::qt::ContainerGUIComponent::ContainerGUIComponent | ( | const std::string & | type, |
const std::string & | params, | ||
QWidget * | parent | ||
) | [inline, protected] |
protected constructor
virtual std::string icl::qt::ContainerGUIComponent::createDefinition | ( | ) | const [inline, protected, virtual] |
special reimplementation of the GUI::createDefinition method
Reimplemented from icl::qt::GUI.
const ContainerGUIComponent& icl::qt::ContainerGUIComponent::handle | ( | const std::string & | handle | ) | const [inline] |
sets the component's handle
ContainerGUIComponent& icl::qt::ContainerGUIComponent::handle | ( | const std::string & | handle | ) | [inline] |
sets the component's handle
const ContainerGUIComponent& icl::qt::ContainerGUIComponent::label | ( | const std::string & | label | ) | const [inline] |
sets the component's label
ContainerGUIComponent& icl::qt::ContainerGUIComponent::label | ( | const std::string & | label | ) | [inline] |
sets the component's label
const ContainerGUIComponent& icl::qt::ContainerGUIComponent::margin | ( | int | margin | ) | const [inline] |
sets the component's layout margin
ContainerGUIComponent& icl::qt::ContainerGUIComponent::margin | ( | int | margin | ) | [inline] |
sets the component's layout margin
const ContainerGUIComponent& icl::qt::ContainerGUIComponent::maxSize | ( | const utils::Size & | maxSize | ) | const [inline] |
sets the component's maximum size constraint
const ContainerGUIComponent& icl::qt::ContainerGUIComponent::maxSize | ( | int | w, |
int | h | ||
) | const [inline] |
sets the component's maximum size constraint
ContainerGUIComponent& icl::qt::ContainerGUIComponent::maxSize | ( | const utils::Size & | maxSize | ) | [inline] |
sets the component's maximum size constraint
ContainerGUIComponent& icl::qt::ContainerGUIComponent::maxSize | ( | int | w, |
int | h | ||
) | [inline] |
sets the component's maximum size constraint
const ContainerGUIComponent& icl::qt::ContainerGUIComponent::minSize | ( | const utils::Size & | minSize | ) | const [inline] |
sets the component's minimum size constraint
const ContainerGUIComponent& icl::qt::ContainerGUIComponent::minSize | ( | int | w, |
int | h | ||
) | const [inline] |
sets the component's minimum size constraint
ContainerGUIComponent& icl::qt::ContainerGUIComponent::minSize | ( | const utils::Size & | minSize | ) | [inline] |
sets the component's minimum size constraint
ContainerGUIComponent& icl::qt::ContainerGUIComponent::minSize | ( | int | w, |
int | h | ||
) | [inline] |
sets the component's minimum size constraint
GUI& icl::qt::ContainerGUIComponent::operator<< | ( | const GUIComponent & | component | ) | const [inline] |
hierarchical stream operator to create complex GUIs
hierarchical stream operator to create complex GUIs
const ContainerGUIComponent& icl::qt::ContainerGUIComponent::size | ( | const utils::Size & | size | ) | const [inline] |
sets the component's initial size
const ContainerGUIComponent& icl::qt::ContainerGUIComponent::size | ( | int | w, |
int | h | ||
) | const [inline] |
sets the component's initial size
ContainerGUIComponent& icl::qt::ContainerGUIComponent::size | ( | const utils::Size & | size | ) | [inline] |
sets the component's initial size
ContainerGUIComponent& icl::qt::ContainerGUIComponent::size | ( | int | w, |
int | h | ||
) | [inline] |
sets the component's initial size
const ContainerGUIComponent& icl::qt::ContainerGUIComponent::spacing | ( | int | spacing | ) | const [inline] |
sets the component's layout spacing
ContainerGUIComponent& icl::qt::ContainerGUIComponent::spacing | ( | int | spacing | ) | [inline] |
sets the component's layout spacing
GUIComponent icl::qt::ContainerGUIComponent::component [mutable, protected] |
we use these options to create the
Please note that inheritance is not possible because it leads to an abiguous overload for the GUI<<-operator